在data里定义:readonly: true, 然后在input框里加上readonly就可以了。
在data里定义:edit: true, 然后在input框里加上::disabled="edit"就可以了
elementUI 设置input的只读或禁用
原文:https://www.cnblogs.com/yysbolg/p/9876100.html