同步主干最新内容到 2.x 分支

同步主干最新内容到 2.x 分支
pull/1284/head
贤心 2023-06-15 23:11:49 +08:00 committed by GitHub
commit 63b48e95f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -314,6 +314,12 @@ layui.define(['lay', 'layer', 'util'], function(exports){
reElem.addClass(CLASS + 'up');
}
// 删除input已有文本并放入 placeholder方便输入
if (input.val()) {
// 有值时才删除并替换placeholder
input.attr('placeholder', input.val());
input.val(''); // 清空输入框的值
}
followScroll();
}