mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-08 01:53:34 +08:00
feat: Tree support rootClassName & rootStyle (#34578)
* feat: tree support rootClassName & rootStyle * feat: Tree support rootClassName and rootStyle * chore: update rc-cascader * chore: update rc-tree * chore: update cascader * chore: update deps
This commit is contained in:
parent
8562427674
commit
c0b58aaf93
@ -38,6 +38,8 @@ Almost anything can be represented in a tree structure. Examples include directo
|
|||||||
| loadData | Load data asynchronously | function(node) | - | |
|
| loadData | Load data asynchronously | function(node) | - | |
|
||||||
| loadedKeys | (Controlled) Set loaded tree nodes. Need work with `loadData` | string\[] | \[] | |
|
| loadedKeys | (Controlled) Set loaded tree nodes. Need work with `loadData` | string\[] | \[] | |
|
||||||
| multiple | Allows selecting multiple treeNodes | boolean | false | |
|
| multiple | Allows selecting multiple treeNodes | boolean | false | |
|
||||||
|
| rootClassName | ClassName on the root element | string | - | 4.20.0 |
|
||||||
|
| rootStyle | Style on the root element | CSSProperties | - | 4.20.0 |
|
||||||
| selectable | Whether can be selected | boolean | true | |
|
| selectable | Whether can be selected | boolean | true | |
|
||||||
| selectedKeys | (Controlled) Specifies the keys of the selected treeNodes | string\[] | - | |
|
| selectedKeys | (Controlled) Specifies the keys of the selected treeNodes | string\[] | - | |
|
||||||
| showIcon | Shows the icon before a TreeNode's title. There is no default style; you must set a custom style for it if set to true | boolean | false | |
|
| showIcon | Shows the icon before a TreeNode's title. There is no default style; you must set a custom style for it if set to true | boolean | false | |
|
||||||
|
@ -39,6 +39,8 @@ cover: https://gw.alipayobjects.com/zos/alicdn/Xh-oWqg9k/Tree.svg
|
|||||||
| loadData | 异步加载数据 | function(node) | - | |
|
| loadData | 异步加载数据 | function(node) | - | |
|
||||||
| loadedKeys | (受控)已经加载的节点,需要配合 `loadData` 使用 | string\[] | \[] | |
|
| loadedKeys | (受控)已经加载的节点,需要配合 `loadData` 使用 | string\[] | \[] | |
|
||||||
| multiple | 支持点选多个节点(节点本身) | boolean | false | |
|
| multiple | 支持点选多个节点(节点本身) | boolean | false | |
|
||||||
|
| rootClassName | 添加在 Tree 最外层的 className | string | - | 4.20.0 |
|
||||||
|
| rootStyle | 添加在 Tree 最外层的 style | CSSProperties | - | 4.20.0 |
|
||||||
| selectable | 是否可选中 | boolean | true | |
|
| selectable | 是否可选中 | boolean | true | |
|
||||||
| selectedKeys | (受控)设置选中的树节点 | string\[] | - | |
|
| selectedKeys | (受控)设置选中的树节点 | string\[] | - | |
|
||||||
| showIcon | 是否展示 TreeNode title 前的图标,没有默认样式,如设置为 true,需要自行定义图标相关样式 | boolean | false | |
|
| showIcon | 是否展示 TreeNode title 前的图标,没有默认样式,如设置为 true,需要自行定义图标相关样式 | boolean | false | |
|
||||||
|
12
package.json
12
package.json
@ -121,7 +121,7 @@
|
|||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"memoize-one": "^6.0.0",
|
"memoize-one": "^6.0.0",
|
||||||
"moment": "^2.25.3",
|
"moment": "^2.25.3",
|
||||||
"rc-cascader": "~3.2.1",
|
"rc-cascader": "~3.4.1",
|
||||||
"rc-checkbox": "~2.3.0",
|
"rc-checkbox": "~2.3.0",
|
||||||
"rc-collapse": "~3.1.0",
|
"rc-collapse": "~3.1.0",
|
||||||
"rc-dialog": "~8.7.0",
|
"rc-dialog": "~8.7.0",
|
||||||
@ -131,7 +131,7 @@
|
|||||||
"rc-image": "~5.3.0",
|
"rc-image": "~5.3.0",
|
||||||
"rc-input": "~0.0.1-alpha.5",
|
"rc-input": "~0.0.1-alpha.5",
|
||||||
"rc-input-number": "~7.3.0",
|
"rc-input-number": "~7.3.0",
|
||||||
"rc-mentions": "~1.6.1",
|
"rc-mentions": "~1.7.0",
|
||||||
"rc-menu": "~9.5.1",
|
"rc-menu": "~9.5.1",
|
||||||
"rc-motion": "^2.4.4",
|
"rc-motion": "^2.4.4",
|
||||||
"rc-notification": "~4.5.7",
|
"rc-notification": "~4.5.7",
|
||||||
@ -144,12 +144,12 @@
|
|||||||
"rc-slider": "~10.0.0-alpha.4",
|
"rc-slider": "~10.0.0-alpha.4",
|
||||||
"rc-steps": "~4.1.0",
|
"rc-steps": "~4.1.0",
|
||||||
"rc-switch": "~3.2.0",
|
"rc-switch": "~3.2.0",
|
||||||
"rc-table": "~7.23.0",
|
"rc-table": "~7.24.0",
|
||||||
"rc-tabs": "~11.10.0",
|
"rc-tabs": "~11.11.0",
|
||||||
"rc-textarea": "~0.3.0",
|
"rc-textarea": "~0.3.0",
|
||||||
"rc-tooltip": "~5.1.1",
|
"rc-tooltip": "~5.1.1",
|
||||||
"rc-tree": "~5.4.3",
|
"rc-tree": "~5.5.0",
|
||||||
"rc-tree-select": "~5.1.1",
|
"rc-tree-select": "~5.2.0",
|
||||||
"rc-trigger": "^5.2.10",
|
"rc-trigger": "^5.2.10",
|
||||||
"rc-upload": "~4.3.0",
|
"rc-upload": "~4.3.0",
|
||||||
"rc-util": "^5.19.3",
|
"rc-util": "^5.19.3",
|
||||||
|
Loading…
Reference in New Issue
Block a user