mirror of https://github.com/layui/layui
commit
f20875a2ba
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "layui",
|
||||
"version": "2.8.0-rc.4",
|
||||
"version": "2.8.0-rc.5",
|
||||
"description": "Classic modular Front-End UI library",
|
||||
"main": "dist/layui.js",
|
||||
"license": "MIT",
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
}
|
||||
|
||||
,Layui = function(){
|
||||
this.v = '2.8.0-rc.4'; // Layui 版本号
|
||||
this.v = '2.8.0-rc.5'; // Layui 版本号
|
||||
}
|
||||
|
||||
//识别预先可能定义的指定全局对象
|
||||
|
|
|
@ -1601,16 +1601,17 @@
|
|||
var elemPreview = lay(that.elem).find('.'+ ELEM_PREVIEW)
|
||||
,value = options.range ? ((that.rangeLinked ? that.endState : that.endDate) ? that.parse() : '') : that.parse();
|
||||
|
||||
//显示预览
|
||||
var oldValue = elemPreview.html();
|
||||
// 显示预览
|
||||
elemPreview.html(value);
|
||||
oldValue && // 如果一开始有内容的时候才需要有一个变化过程
|
||||
(elemPreview.css({
|
||||
|
||||
// 预览颜色渐变
|
||||
var oldValue = elemPreview.html();
|
||||
oldValue && (elemPreview.css({
|
||||
'color': '#5FB878'
|
||||
}),
|
||||
setTimeout(function(){
|
||||
elemPreview.css({
|
||||
'color': '#666'
|
||||
'color': '#777'
|
||||
});
|
||||
}, 300));
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue