elementUI设置input的只读或禁用的方法-创新互联
只读:readonly
在data里定义:readonly: true,
然后在input框里加上readonly就可以了。
禁用:disabled
在data里定义:edit: true,
然后在input框里加上::disabled="edit"就可以了
PS:下面看下elementui通过 disabled 属性指定是否禁用 input 组件,如何用DOM操作取消disabled 属性
通过 disabled 属性指定是否禁用 input 组件
文章名称:elementUI设置input的只读或禁用的方法-创新互联
URL标题:http://pcwzsj.com/article/cdsdse.html