当前位置:网站首页>El tree whether leaf node or not, the drop-down button is permanent
El tree whether leaf node or not, the drop-down button is permanent
2022-07-05 02:46:00 【AzeShinja】
After looking around, I didn't configure the permanent drop-down button , Then we will change his properties
My tree sub nodes are obtained by clicking a folder and requesting the interface , So we used updateKeyChildren This function
So let's encapsulate this function
updateKeyChildren(id, data) {
this.$refs.projectTree.updateKeyChildren(id, data);
const node = this.$refs.projectTree.getNode(id);
node.childNodes.forEach((item) => {
item.expanded = false;
item.isLeaf = false;
});
},
That's it , After testing getNode And traverse this childNodes It takes little time to use .
If there is a better way to leave a message in the comment area
边栏推荐
- Exploration of short text analysis in the field of medical and health (II)
- Hmi-31- [motion mode] solve the problem of picture display of music module
- Master Fur
- Day_ 17 IO stream file class
- 8. Commodity management - commodity classification
- LeetCode 314. Binary tree vertical order traversal - Binary Tree Series Question 6
- Good documentation
- Last words record
- 2021 Li Hongyi machine learning (3): what if neural network training fails
- Introduce reflow & repaint, and how to optimize it?
猜你喜欢
![Hmi-32- [motion mode] add light panel and basic information column](/img/9c/0b25c0a41758652848aed2a269880f.jpg)
Hmi-32- [motion mode] add light panel and basic information column

Azkaban概述

Design and practice of kubernetes cluster and application monitoring scheme

openresty ngx_lua执行阶段

Open source SPL optimized report application coping endlessly
![[uc/os-iii] chapter 1.2.3.4 understanding RTOS](/img/33/1d94583a834060cc31cab36db09d6e.jpg)
[uc/os-iii] chapter 1.2.3.4 understanding RTOS

Zabbix

Azkaban实战

Devtools的简单使用

丸子百度小程序详细配置教程,审核通过。
随机推荐
Which common ports should the server open
ELFK部署
Azkaban实战
Single box check box
【LeetCode】98. Verify the binary search tree (2 brushes of wrong questions)
Yolov5 model training and detection
为什么腾讯阿里等互联网大厂诞生的好产品越来越少?
[daily problem insight] Li Kou - the 280th weekly match (I really didn't know it could be so simple to solve other people's problems)
Master Fur
Simple use of devtools
平台入驻与独立部署优缺点对比
openresty ngx_lua執行階段
Design of kindergarten real-time monitoring and control system
Summary and practice of knowledge map construction technology
Day_ 17 IO stream file class
TCP security of network security foundation
【微服务|SCG】Filters的33种用法
Linux安装Redis
Eight days of learning C language - while loop (embedded) (single chip microcomputer)
Erreur de type de datagramme MySQL en utilisant Druid