当前位置:网站首页>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 !!!
边栏推荐
- 如何在IDEA中自定义模板、快速生成完整的代码?
- Serpentine matrix (array simulates direction, D represents turning)
- [PHP] PHP variable memory release
- A Yu's Rainbow Bridge
- Initial i/o and its basic operations
- 初始I/O及其基本操作
- IDEA工具快捷键的使用
- 初始I/O及其基本操作
- 科创人·味多美CIO胡博:数字化是不流血的革命,正确答案藏在业务的田间地头
- 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
猜你喜欢

分布式任务调度 ElasticJob demo

外包干了三年,废的一踏糊涂...

IDEA工具快捷键的使用

What is the essential difference between get and post requests?

YuMinHong: my retreat and advance; The five best software architecture patterns that architects must understand; Redis kills 52 consecutive questions | manong weekly VIP member exclusive email weekly

In 2022, the latest and most detailed idea associated database method and visual operation of database in idea (including graphic process)

Developers, why does the maturity of container technology herald the arrival of cloud native era?

Five key elements of the data center

Which direction of network development is better? Data communication engineer learning path sharing

TwinCAT 3 el7211 module controls Beifu servo
随机推荐
如何在IDEA中自定义模板、快速生成完整的代码?
视频转图像-cv2.VideoCapture()用法
Move DataGridView up and down
【云原生】容器场景下的内核安全
Serpentine matrix (array simulates direction, D represents turning)
How to customize templates and quickly generate complete code in idea?
HDCP Paring
[lorawan node application] the application and power consumption of Anxin ra-08/ra-08h module in lorawan network
[cloud native] kernel security in container scenario
Birds in the corn field
Traffic, but no sales? 6 steps to increase website sales
科创人·味多美CIO胡博:数字化是不流血的革命,正确答案藏在业务的田间地头
简单的页面
SOFARegistry 源码|数据同步模块解析
Five key elements of the data center
炒股开户选择哪家证券公司比较好哪家平台更安全
Interviewer: why does database connection consume resources? I can't even answer.. I was stunned!
数据中台咋就从“小甜甜”变成了“牛夫人”?
字符串之间的比较之 localeCompare
What is the essential difference between get and post requests?