当前位置:网站首页>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
边栏推荐
- Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
- Use UDP to send a JPEG image, and UPD will convert it into the mat format of OpenCV after receiving it
- this+闭包+作用域 面试题
- Apache Web page security optimization
- How to make OS X read bash_ Profile instead of Profile file - how to make OS X to read bash_ profile not . profile file
- Six stone programming: advantages of automated testing
- When the low alcohol race track enters the reshuffle period, how can the new brand break the three major problems?
- 1.五层网络模型
- 【微服务|SCG】Filters的33种用法
- 2. Common request methods
猜你喜欢
Single box check box
【LeetCode】110. Balanced binary tree (2 brushes of wrong questions)
Day_ 17 IO stream file class
[200 opencv routines] 99 Modified alpha mean filter
openresty ngx_lua執行階段
Bert fine tuning skills experiment
Pytest (5) - assertion
Devtools的简单使用
Yyds dry goods inventory intelligent fan based on CC2530 design
openresty ngx_ Lua execution phase
随机推荐
Spark SQL learning bullet 2
Why do you understand a16z? Those who prefer Web3.0 Privacy Infrastructure: nym
2021 Li Hongyi machine learning (2): pytorch
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Apache Web page security optimization
Use UDP to send a JPEG image, and UPD will convert it into the mat format of OpenCV after receiving it
Azkaban实战
Design of KTV intelligent dimming system based on MCU
问题解决:AttributeError: ‘NoneType‘ object has no attribute ‘append‘
D3js notes
Marubeni Baidu applet detailed configuration tutorial, approved.
Zabbix
Returns the lowest common ancestor of two nodes in a binary tree
Avoid material "minefields"! Play with super high conversion rate
Pytest (4) - test case execution sequence
Unpool(nn.MaxUnpool2d)
d3js小记
spoon插入更新oracle数据库,插了一部分提示报错Assertion botch: negative time
Qrcode: generate QR code from text
SFTP cannot connect to the server # yyds dry goods inventory #