当前位置:网站首页>Antd - tree structure: default deployment node attribute failure - Basic promotion
Antd - tree structure: default deployment node attribute failure - Basic promotion
2022-06-30 00:43:00 【yehaocheng520】
When writing the background management system today , There is a need for permission , Since a role can have multiple permissions , So consider the following tree structure :
In order to show this structure more intuitively , You need to expand all tree sections by default .
According to the official website document , You can see that there are two parameters :autoExpandParent and defaultExpandParent, Set these two parameters to true, Follow the documentation , It should be able to expand by default . But the actual situation is the folded tree structure .
Baidu later found that other gods met me .
According to the ideas provided by the great God , Two things need to be noted :
1. Set up defaultExpandParent Parameter is true
It can also be set at the same time autoExpandParent This parameter is true.
2. Will get treeData The tree data interface is placed in the parent component , And then through props Pass to the current component
After the experiment , It worked ..
complete !!!
边栏推荐
- 数据中台咋就从“小甜甜”变成了“牛夫人”?
- MySQL advanced 1
- Which department should the company's fixed assets be managed? How should the company's fixed assets be managed
- 如何在IDEA中自定義模板、快速生成完整的代碼?
- 科创人·味多美CIO胡博:数字化是不流血的革命,正确答案藏在业务的田间地头
- php微信商家转账到零钱 发起商家转账API
- IDEA中的常用设置
- 开发者,为什么说容器技术的成熟预示着云原生时代的到来?
- Byte, word, doubleword relationship
- 传统微服务框架如何无缝过渡到服务网格 ASM
猜你喜欢
![[daily question 1] traversal of binary tree](/img/e2/313251d574f47708abca308c4c8d5d.png)
[daily question 1] traversal of binary tree

The SQL statement concat cannot find the result

@ConfigurationProperties使用不当引发的bug

Bytek suffered a disastrous defeat in the interview: he was hanged on one side, but fortunately Huawei pushed him in, and he got an offer on three sides

Sword finger offer II 035 Minimum time difference

Intermittent sampling and forwarding interference

Time does not spare

A Yu's Rainbow Bridge

MySQL高级篇2

科创人·味多美CIO胡博:数字化是不流血的革命,正确答案藏在业务的田间地头
随机推荐
[uitableview] Pit 1: tableview:heightforheaderinsection: method does not execute
MySQL foundation 2
MySQL基础2
中小企业签署ERP合同时,需要注意这几点
Distributed task scheduling elasticjob demo
【PHP】PHP变量内存释放
Lower expectations
Yunna | fixed assets system management, NC system management where are the fixed assets
Go 中的 UDP 服务器和客户端
Time flies that year
I / o initial et son fonctionnement de base
【每日一题】二叉树的前后序遍历
DL:深度学习模型优化之模型训练技巧总结之适时自动调整学习率实现代码
The third bullet of wechat payment app application for refund
TwinCAT 3 EL7211模塊控制倍福伺服
[PHP] PHP pressure test, error reporting: generally, each socket address (Protocol / network address / port) is only allowed to be used
Store log files in RAM to reduce physical storage loss
间歇采样转发干扰
Modbus TCP RTU protocol chart
如何做好测试用例设计