el-form+el-tree
时间: 2023-10-19 09:28:15 浏览: 146
el-table嵌套 el-form并且加正则校验
引用中提到,el-form、el-tree和el-select是实现这个功能的三个组件。其中,el-form用于包裹表单,el-tree用于显示树形数据,el-select用于选择对应值。在引用中提供了一种有效的方法来使用el-tree组件。需要在el-form中使用el-form-item将el-tree包裹起来,并通过ref来获取el-tree的实例。在data中定义校验规则Rules,并在其中使用validator来进行校验操作。引用中也提到了使用el-table、el-select和el-tree来实现element中el-table表格动态选择对应值的方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [el-table+el-tree+el-select动态选择对应值](https://blog.csdn.net/weixin_43388691/article/details/127385435)[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* [el-form中el-tree的rules校验](https://blog.csdn.net/qq_41838435/article/details/128207482)[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 ]
阅读全文