当前位置:网站首页>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
边栏推荐
- openresty ngx_lua执行阶段
- openresty ngx_lua变量操作
- 1.五层网络模型
- Vb+access hotel service management system
- this+闭包+作用域 面试题
- Cut! 39 year old Ali P9, saved 150million
- El select, El option drop-down selection box
- Day_ 17 IO stream file class
- Structure of ViewModel
- Design and implementation of campus epidemic prevention and control system based on SSM
猜你喜欢
Design and practice of kubernetes cluster and application monitoring scheme
openresty ngx_lua執行階段
ASP. Net core 6 framework unveiling example demonstration [01]: initial programming experience
Exploration of short text analysis in the field of medical and health (II)
Tencent cloud, realize image upload
The most powerful new household god card of Bank of communications. Apply to earn 2100 yuan. Hurry up if you haven't applied!
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Bumblebee: build, deliver, and run ebpf programs smoothly like silk
CAM Pytorch
"C zero foundation introduction hundred knowledge and hundred cases" (72) multi wave entrustment -- Mom shouted for dinner
随机推荐
2. Common request methods
Elk log analysis system
Openresty ngx Lua Execution stage
Android advanced interview question record in 2022
TCP security of network security foundation
Eight days of learning C language - while loop (embedded) (single chip microcomputer)
【LeetCode】106. Construct binary tree from middle order and post order traversal sequence (wrong question 2)
Summary and practice of knowledge map construction technology
Bert fine tuning skills experiment
Bumblebee: build, deliver, and run ebpf programs smoothly like silk
2021 Li Hongyi machine learning (1): basic concepts
Medusa installation and simple use
Character painting, I use characters to draw a Bing Dwen Dwen
CAM Pytorch
openresty ngx_lua变量操作
Yyds dry goods inventory intelligent fan based on CC2530 design
Port, domain name, protocol.
College Students' innovation project management system
【微服务|SCG】Filters的33种用法
Utilisation simple de devtools