vue3 el-tree-select change方法
时间: 2023-10-20 22:27:35 浏览: 200
Vue3中的el-tree-select组件的change方法可以使用以下代码实现:
```javascript
change(selectTree) {
// 判断是否选择了某个节点
if (selectTree.value.length > 0) {
// 获取选择的节点ID
const selectedNodeId = selectTree.value<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Vue3 el-select+el-tree组合+模糊搜索](https://blog.csdn.net/weixin_57166067/article/details/130975159)[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: 100%"]
[ .reference_list ]
阅读全文