Merge pull request #1187 from layui/2.x

release v2.8.0-rc.5
pull/1188/head v2.8.0-rc.5
贤心 2022-12-12 23:12:41 +08:00 committed by GitHub
commit f20875a2ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 8 deletions

2
dist/layui.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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",

View File

@ -15,7 +15,7 @@
}
,Layui = function(){
this.v = '2.8.0-rc.4'; // Layui 版本号
this.v = '2.8.0-rc.5'; // Layui 版本号
}
//识别预先可能定义的指定全局对象

View File

@ -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));
};