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",
|
"name": "layui",
|
||||||
"version": "2.8.0-rc.4",
|
"version": "2.8.0-rc.5",
|
||||||
"description": "Classic modular Front-End UI library",
|
"description": "Classic modular Front-End UI library",
|
||||||
"main": "dist/layui.js",
|
"main": "dist/layui.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
,Layui = function(){
|
,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)
|
var elemPreview = lay(that.elem).find('.'+ ELEM_PREVIEW)
|
||||||
,value = options.range ? ((that.rangeLinked ? that.endState : that.endDate) ? that.parse() : '') : that.parse();
|
,value = options.range ? ((that.rangeLinked ? that.endState : that.endDate) ? that.parse() : '') : that.parse();
|
||||||
|
|
||||||
//显示预览
|
// 显示预览
|
||||||
var oldValue = elemPreview.html();
|
|
||||||
elemPreview.html(value);
|
elemPreview.html(value);
|
||||||
oldValue && // 如果一开始有内容的时候才需要有一个变化过程
|
|
||||||
(elemPreview.css({
|
// 预览颜色渐变
|
||||||
|
var oldValue = elemPreview.html();
|
||||||
|
oldValue && (elemPreview.css({
|
||||||
'color': '#5FB878'
|
'color': '#5FB878'
|
||||||
}),
|
}),
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
elemPreview.css({
|
elemPreview.css({
|
||||||
'color': '#666'
|
'color': '#777'
|
||||||
});
|
});
|
||||||
}, 300));
|
}, 300));
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue