当前位置:网站首页>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 !!!
边栏推荐
- Video to image -cv2 Videocapture() usage
- 科创人·味多美CIO胡博:数字化是不流血的革命,正确答案藏在业务的田间地头
- MySQL高级篇1
- Yunna | how to use the system to manage fixed assets? How to manage fixed assets?
- TwinCAT 3 EL7211模块控制倍福伺服
- Botu V16 changes the model and firmware version of PLC
- [spark] basic Scala operations (continuous update)
- leetcode 416. Partition equal subset sum partition equal subset sum (medium)
- ML:置信区间的简介(精密度/准确度/精确度的三者区别及其关系)、使用方法、案例应用之详细攻略
- 【UML】UML的几种关系(依赖-关联-聚合-组合-继承-实现)
猜你喜欢
MySQL advanced 1
Sofaregistry source code | data synchronization module analysis
初始I/O及其基本操作
How to seamlessly transition from traditional microservice framework to service grid ASM
Serpentine matrix (array simulates direction, D represents turning)
TwinCAT 3 EL7211模塊控制倍福伺服
Interviewer: how to solve the problem of massive requests for data that does not exist in redis, which affects the database?
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
What is the essential difference between get and post requests?
Outsourcing for 3 years is a waste
随机推荐
How much is the fixed asset management system and the price of the fixed asset management system
岁月匆匆那年
[lorawan node application] the application and power consumption of Anxin ra-08/ra-08h module in lorawan network
【PHP】php压测,报错:通常每个套接字地址(协议/网络地址/端口)只允许使用
Time does not spare
Yunna | how to use the system to manage fixed assets? How to manage fixed assets?
【编程题】迷宫问题
Which direction of network development is better? Data communication engineer learning path sharing
Move DataGridView up and down
浮点数通信
How to create a module in the idea and how to delete a module in the idea?
分布式任务调度 ElasticJob demo
DataGridView上移 下移行
Sword finger offer II 035 Minimum time difference
【云原生】容器场景下的内核安全
开发者,为什么说容器技术的成熟预示着云原生时代的到来?
Modbus TCP RTU protocol chart
Comparison between strings localecompare
About SQL: create a view_ XB view, whose function is ① to delete views with duplicate names before creating them ② to display the number of male and female students in this class in the XSB table, and
@ConfigurationProperties使用不当引发的bug