
model:表單數據對象
ref:用來給DOM元素或子組件注冊引用信息(必須配置)
prop:表單域 model 字段,在使用 validate、resetFields 方法的情況下,該屬性是必填的
在methods里提供方法
btnCancel(){ this.$refs.formModel.resetFields() },

model:表單數據對象
ref:用來給DOM元素或子組件注冊引用信息(必須配置)
prop:表單域 model 字段,在使用 validate、resetFields 方法的情況下,該屬性是必填的
在methods里提供方法
btnCancel(){ this.$refs.formModel.resetFields() },
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。