当前位置:网站首页>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 死锁

How to design test cases

Distributed task scheduling elasticjob demo

间歇采样转发干扰

MySQL advanced 1

IDEA中的常用设置

Interviewer: how to solve the problem of massive requests for data that does not exist in redis, which affects the database?

岁月不饶人

Serpentine matrix (array simulates direction, D represents turning)

初始I/O及其基本操作
随机推荐
字符串之间的比较之 localeCompare
MySQL deadlock
Yunna | how to use the system to manage fixed assets? How to manage fixed assets?
网工常见面试题分享:Telnet、TTL、路由器与交换机
Which direction of network development is better? Data communication engineer learning path sharing
【mysql篇-基础篇】通用语法2
In 2022, the latest and most detailed idea associated database method and visual operation of database in idea (including graphic process)
间歇采样转发干扰
MySQL foundation 3
字节、字、双字 关系
元素使用 align-items center 和 overflow auto 之后,部分内容显示不全
炒股开户选择哪家券商公司比较好哪家平台更安全
Lower expectations
Ml: introduction to confidence interval (the difference and relationship between precision / accuracy / accuracy), use method, and detailed introduction to case application
科创人·味多美CIO胡博:数字化是不流血的革命,正确答案藏在业务的田间地头
岁月匆匆那年
Common settings in idea
[MySQL basic] general syntax 2
[uitableview] Pit 1: tableview:heightforheaderinsection: method does not execute
What is the essential difference between get and post requests?