From c0839ca716d9bdd7f45e32bda7051682b77e888a Mon Sep 17 00:00:00 2001 From: Wanpan Date: Thu, 13 Jun 2024 11:41:43 +0800 Subject: [PATCH] docs: TreeSelect add treeTitleRender props (#49393) --- components/tree-select/index.en-US.md | 1 + components/tree-select/index.zh-CN.md | 1 + 2 files changed, 2 insertions(+) diff --git a/components/tree-select/index.en-US.md b/components/tree-select/index.en-US.md index 63602c4191..b5f327648d 100644 --- a/components/tree-select/index.en-US.md +++ b/components/tree-select/index.en-US.md @@ -69,6 +69,7 @@ Common props ref:[Common props](/docs/react/common-props) | treeCheckStrictly | Whether to check nodes precisely (in the `checkable` mode), means parent and child nodes are not associated, and it will make `labelInValue` be true | boolean | false | | | treeData | Data of the treeNodes, manual construction work is no longer needed if this property has been set(ensure the Uniqueness of each value) | array<{ value, title, children, \[disabled, disableCheckbox, selectable, checkable] }> | \[] | | | treeDataSimpleMode | Enable simple mode of treeData. Changes the `treeData` schema to: \[{id:1, pId:0, value:'1', title:"test1",...},...] where pId is parent node's id). It is possible to replace the default `id` and `pId` keys by providing object to `treeDataSimpleMode` | boolean \| object<{ id: string, pId: string, rootPId: string }> | false | | +| treeTitleRender | Customize tree node title render | (nodeData) => ReactNode | - | 5.12.0 | | treeDefaultExpandAll | Whether to expand all treeNodes by default | boolean | false | | | treeDefaultExpandedKeys | Default expanded treeNodes | string\[] | - | | | treeExpandAction | Tree title open logic when click, optional: false \| `click` \| `doubleClick` | string \| boolean | false | 4.21.0 | diff --git a/components/tree-select/index.zh-CN.md b/components/tree-select/index.zh-CN.md index c30c417829..ad9cdec245 100644 --- a/components/tree-select/index.zh-CN.md +++ b/components/tree-select/index.zh-CN.md @@ -70,6 +70,7 @@ demo: | treeCheckStrictly | `checkable` 状态下节点选择完全受控(父子节点选中状态不再关联),会使得 `labelInValue` 强制为 true | boolean | false | | | treeData | treeNodes 数据,如果设置则不需要手动构造 TreeNode 节点(value 在整个树范围内唯一) | array<{value, title, children, \[disabled, disableCheckbox, selectable, checkable]}> | \[] | | | treeDataSimpleMode | 使用简单格式的 treeData,具体设置参考可设置的类型 (此时 treeData 应变为这样的数据结构: \[{id:1, pId:0, value:'1', title:"test1",...},...], `pId` 是父节点的 id) | boolean \| object<{ id: string, pId: string, rootPId: string }> | false | | +| treeTitleRender | 自定义渲染节点 | (nodeData) => ReactNode | - | 5.12.0 | | treeDefaultExpandAll | 默认展开所有树节点 | boolean | false | | | treeDefaultExpandedKeys | 默认展开的树节点 | string\[] | - | | | treeExpandAction | 点击节点 title 时的展开逻辑,可选:false \| `click` \| `doubleClick` | string \| boolean | false | 4.21.0 |