mirror of https://github.com/layui/layui
commit
63b48e95f3
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue