mirror of https://github.com/layui/layui
优化 input 输入框组件的禁用状态
parent
b50e22dd01
commit
7ea407236d
|
@ -277,6 +277,7 @@ layui.define(['lay', 'layer', 'util'], function(exports){
|
||||||
value: ['up', 'down'],
|
value: ['up', 'down'],
|
||||||
split: true,
|
split: true,
|
||||||
className: 'layui-input-number',
|
className: 'layui-input-number',
|
||||||
|
disabled: disabled, // 跟随输入框禁用状态
|
||||||
click: function(elem){
|
click: function(elem){
|
||||||
var index = $(this).index();
|
var index = $(this).index();
|
||||||
var value = elem.val();
|
var value = elem.val();
|
||||||
|
|
Loading…
Reference in New Issue