当前位置:网站首页>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
边栏推荐
- d3js小记
- openresty ngx_lua变量操作
- Voice chip wt2003h4 B008 single chip to realize the quick design of intelligent doorbell scheme
- Acwing第 58 场周赛【完结】
- Bumblebee: build, deliver, and run ebpf programs smoothly like silk
- Devtools的简单使用
- 平台入驻与独立部署优缺点对比
- Utilisation simple de devtools
- 丸子百度小程序详细配置教程,审核通过。
- Six stone programming: advantages of automated testing
猜你喜欢

Chinese natural language processing, medical, legal and other public data sets, sorting and sharing

【LeetCode】111. Minimum depth of binary tree (2 brushes of wrong questions)

Flume配置4——自定义MYSQLSource

Pytest (4) - test case execution sequence

Design of kindergarten real-time monitoring and control system

The most powerful new household god card of Bank of communications. Apply to earn 2100 yuan. Hurry up if you haven't applied!

Simple use of devtools

Summary and practice of knowledge map construction technology
![Hmi-30- [motion mode] the module on the right side of the instrument starts to write](/img/6b/09bb8fd95b707a459534eaeb72eb59.jpg)
Hmi-30- [motion mode] the module on the right side of the instrument starts to write

Flume configuration 4 - customize mysqlsource
随机推荐
Last words record
Introduce reflow & repaint, and how to optimize it?
Bert fine tuning skills experiment
El select, El option drop-down selection box
TCP security of network security foundation
Open source SPL optimized report application coping endlessly
Sqoop安装
Devtools的簡單使用
Acwing第 58 场周赛【完结】
Sqoop命令
Devtools的简单使用
2021 Li Hongyi machine learning (1): basic concepts
Bumblebee: build, deliver, and run ebpf programs smoothly like silk
Medusa installation and simple use
Linux安装Redis
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
Start the remedial work. Print the contents of the array using the pointer
Unpool(nn.MaxUnpool2d)
Flume configuration 4 - customize mysqlsource
Zabbix