el-form-item中:required
时间: 2023-12-14 10:01:29 浏览: 217
el-table树形表格表单验证(列表生成序号)
在el-form-item中,required是一个属性,用来指定表单项是否需要进行非空验证。当required的值为true时,表示需要进行非空验证,即该表单项必填;当required的值为false时,表示不需要进行非空验证,即该表单项非必填。该属性可以用于控制表单项的输入状态,当required为true并且disabled为false时,当前输入框可以输入,并且输入的内容需要进行非空验证;当required为false并且disabled为true时,当前输入框不能输入,并且输入框不进行非空验证。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [el-form-item 使用 required 属性改变自定义校验文字](https://blog.csdn.net/qq_43750656/article/details/127881453)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [记一次使用ElementUi框架给Form中的Table添加表单验证](https://blog.csdn.net/u011523825/article/details/127317636)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文