el-tree ref
时间: 2023-10-06 18:05:32 浏览: 151
el-tree创建结构线,并且可拖动
el-tree ref是一个Vue组件中的一个属性,用于为该组件添加一个引用标识符,以便在代码中可以通过该标识符来获取对该组件的引用。在示例代码中,我们可以看到el-tree组件使用了ref属性,并分别为其设置了不同的引用标识符,如ref="navTree"和ref="tree"。这样,在代码中就可以通过this.$refs.navTree和this.$refs.tree来获取对这两个el-tree组件的引用。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [elment-ui tree单选实现](https://download.csdn.net/download/weixin_38546608/14017560)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [el-tree的使用总结](https://blog.csdn.net/m0_58191077/article/details/122701310)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [vue动态绑定ref(使用变量)以及获取](https://blog.csdn.net/qq_43363884/article/details/102891279)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文