From ee40b676e6ccd13fb5adbd15fa11db8e1a957fc3 Mon Sep 17 00:00:00 2001 From: Uyarn Date: Wed, 12 Jul 2023 15:52:25 +0800 Subject: [PATCH] chore: update tree docs --- db/TDesign.db | Bin 831488 -> 831488 bytes .../tdesign-react/src/tree/tree.en-US.md | 6 ++---- .../products/tdesign-react/src/tree/tree.md | 2 -- .../tdesign-vue-next/src/tree/tree.en-US.md | 6 ++---- .../tdesign-vue-next/src/tree/tree.md | 2 -- .../tdesign-vue/src/tree/tree.en-US.md | 6 ++---- .../products/tdesign-vue/src/tree/tree.md | 2 -- 7 files changed, 6 insertions(+), 18 deletions(-) diff --git a/db/TDesign.db b/db/TDesign.db index a11fad62be0301dca2bf530e6fcf9118dc493b47..f5a35e9638bed4263bc9b9a9300f38aa35285957 100644 GIT binary patch delta 937 zcmcJN?MqWp9LMk3uDjdLxzqVL)AB@_T612v9vzIJg6f4r4e4RV?zU?i-0jM|Q-eTL zp$96|97lXn5|YxJ3ZW|++5?1SXplkg9K9$k5MTL5h|Xqv(I3#^emM6Ye&_f7p6@+9 zDQ8d0IZ(zAGYqpx$&A73BVhQ2f4ojV2ZyFOAr5kf;4AnNK8H`?ID804rf$`n%?4Wh zHhJQ~h`ZJ_pLEc#ndHvCCHKuGH=yV!dJ0R)p%^F}#Yizx%-WJ0I=vik8DOknm2fH8 z#99WxZS7JDPUKF2F?hUA|BkUT>w5Mp%jE|7-x~c z7qbhq({OjUH!R_>6uBB!vC@jwxFk97`Cwd;<$xH+oe^2aVq2R;-^Er{ier`52bGvA z#Z(+=$4ZA3ZW- zED`Mv(4Jx}^j9gNDp6651VvfCmad^nR6vzNSXJnTwn&#GZ#Qz_Gt@3^o3@-i0W}m; zRNP9-LUtU z3HerlDz)YmyaTksBIMDr^q0?(&n0Na+IuXyKNEBX4Z4@RA(GV+RFTbfK56RAm!40qCSIj5Pu%i4H5 zF=A9s1dR5wd@;A8UBKwIUi0N4570KP$N

AzI`7$+~|+d9T$}qYbv8IDON~XaG%& zk$1UhIwmq|MLvB?@+f)awIBu^BQJ}mHKfHu1RJ^5Ap#Ad zq(i$~4BuWV2}zI+ErKsZ3F=T7Y>@^*mqC)8TV3jqRIfhx9lpb#KmX}4GaY8C2~i=0 zyj4~dTJ!s9r7r5$??+U{d(@G{W3VN zk}rbpnP%>GGe;Fo(G^39DW<{{OR*J4Hgk~4TPpYeuy)VsmB~52=`GIz9Wvc2X(c1b zsxU0s7q~-ZSc8M^0{sRDQYsQB1>Gx(-|h`@&W-p-PN2tLw;Jpn8#G6?U$LtG%2=R3 z$a_-2bO=e~N|5cuu@LU!VjF*o$u3@yBXMq0+}(oLc&3AIW1*c#vbGI_nsM`da0EBL z!U{f#pwEj3hxchTZg)~4X7oP%6T*Hx6qzojp2I4B+JYXr9znmE673{G^29soeh@oi zmQQgH9>9RJ=A5uU+o!FD<+E$%PqQ_4J+{ZVh3OWqmiv5@Nq;Z@Zuk@bdJ?KSSVBF?p|clDm&#X*#qn~v1>Yoi7AxJnO&<*g@KK(1$j4p$f+meL-<|pkt>ly5 diff --git a/packages/products/tdesign-react/src/tree/tree.en-US.md b/packages/products/tdesign-react/src/tree/tree.en-US.md index 8fb786bf..a93c87f9 100644 --- a/packages/products/tdesign-react/src/tree/tree.en-US.md +++ b/packages/products/tdesign-react/src/tree/tree.en-US.md @@ -10,7 +10,6 @@ style | Object | - | 样式,Typescript:`React.CSSProperties` | N activable | Boolean | false | \- | N activeMultiple | Boolean | false | \- | N actived | Array | - | Typescript:`Array` | N -defaultActived | Array | - | uncontrolled property。Typescript:`Array` | N allowFoldNodeOnFilter | Boolean | false | \- | N checkProps | Object | - | Typescript:`CheckboxProps`,[Checkbox API Documents](./checkbox?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/tree/type.ts) | N checkStrictly | Boolean | false | \- | N @@ -26,7 +25,6 @@ expandMutex | Boolean | false | \- | N expandOnClickNode | Boolean | false | \- | N expandParent | Boolean | false | \- | N expanded | Array | [] | Typescript:`Array` | N -defaultExpanded | Array | [] | uncontrolled property。Typescript:`Array` | N filter | Function | - | Typescript:`(node: TreeNodeModel) => boolean` | N height | String / Number | - | table height | N hover | Boolean | - | \- | N @@ -42,7 +40,7 @@ scroll | Object | - | lazy load and virtual scroll。Typescript:`TScroll`。[s transition | Boolean | true | \- | N value | Array | [] | Typescript:`Array` `type TreeNodeValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/tree/type.ts) | N defaultValue | Array | [] | uncontrolled property。Typescript:`Array` `type TreeNodeValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/tree/type.ts) | N -valueMode | String | onlyLeaf | options:onlyLeaf/parentFirst/all | N +valueMode | String | onlyLeaf | options: onlyLeaf/parentFirst/all | N onActive | Function | | Typescript:`(value: Array, context: { node: TreeNodeModel; e?: MouseEvent; trigger: 'node-click' \| 'setItem' }) => void`
| N onChange | Function | | Typescript:`(value: Array, context: { node: TreeNodeModel; e?: any; trigger: 'node-click' \| 'setItem' }) => void`
| N onClick | Function | | Typescript:`(context: { node: TreeNodeModel; e: MouseEvent }) => void`
| N @@ -131,4 +129,4 @@ bufferSize | Number | 20 | \- | N isFixedRowHeight | Boolean | false | \- | N rowHeight | Number | - | \- | N threshold | Number | 100 | \- | N -type | String | - | required。options:lazy/virtual | Y +type | String | - | required。options: lazy/virtual | Y diff --git a/packages/products/tdesign-react/src/tree/tree.md b/packages/products/tdesign-react/src/tree/tree.md index 3e68eb32..efbcc33f 100644 --- a/packages/products/tdesign-react/src/tree/tree.md +++ b/packages/products/tdesign-react/src/tree/tree.md @@ -10,7 +10,6 @@ style | Object | - | 样式,TS 类型:`React.CSSProperties` | N activable | Boolean | false | 节点是否可高亮 | N activeMultiple | Boolean | false | 是否允许多个节点同时高亮 | N actived | Array | - | 高亮的节点值。TS 类型:`Array` | N -defaultActived | Array | - | 高亮的节点值。非受控属性。TS 类型:`Array` | N allowFoldNodeOnFilter | Boolean | false | 是否允许在过滤时节点折叠节点 | N checkProps | Object | - | 透传属性到 checkbox 组件。参考 checkbox 组件 API。TS 类型:`CheckboxProps`,[Checkbox API Documents](./checkbox?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/tree/type.ts) | N checkStrictly | Boolean | false | 父子节点选中状态不再关联,可各自选中或取消 | N @@ -26,7 +25,6 @@ expandMutex | Boolean | false | 同级别展开互斥,手风琴效果 | N expandOnClickNode | Boolean | false | 是否支持点击节点也能展开收起 | N expandParent | Boolean | false | 展开子节点时是否自动展开父节点 | N expanded | Array | [] | 展开的节点值。TS 类型:`Array` | N -defaultExpanded | Array | [] | 展开的节点值。非受控属性。TS 类型:`Array` | N filter | Function | - | 节点过滤方法,只呈现返回值为 true 的节点,泛型 `T` 表示树节点 TS 类型。TS 类型:`(node: TreeNodeModel) => boolean` | N height | String / Number | - | 表格高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px。如果不是绝对固定表格高度,建议使用 `maxHeight` | N hover | Boolean | - | 节点是否有悬浮状态 | N diff --git a/packages/products/tdesign-vue-next/src/tree/tree.en-US.md b/packages/products/tdesign-vue-next/src/tree/tree.en-US.md index 39f960bc..ba29b5a9 100644 --- a/packages/products/tdesign-vue-next/src/tree/tree.en-US.md +++ b/packages/products/tdesign-vue-next/src/tree/tree.en-US.md @@ -8,7 +8,6 @@ name | type | default | description | required activable | Boolean | false | \- | N activeMultiple | Boolean | false | \- | N actived | Array | - | `v-model:actived` is supported。Typescript:`Array` | N -defaultActived | Array | - | uncontrolled property。Typescript:`Array` | N allowFoldNodeOnFilter | Boolean | false | \- | N checkProps | Object | - | Typescript:`CheckboxProps`,[Checkbox API Documents](./checkbox?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/tree/type.ts) | N checkStrictly | Boolean | false | \- | N @@ -24,7 +23,6 @@ expandMutex | Boolean | false | \- | N expandOnClickNode | Boolean | false | \- | N expandParent | Boolean | false | \- | N expanded | Array | [] | `v-model:expanded` is supported。Typescript:`Array` | N -defaultExpanded | Array | [] | uncontrolled property。Typescript:`Array` | N filter | Function | - | Typescript:`(node: TreeNodeModel) => boolean` | N height | String / Number | - | table height | N hover | Boolean | - | \- | N @@ -40,7 +38,7 @@ scroll | Object | - | lazy load and virtual scroll。Typescript:`TScroll`。[s transition | Boolean | true | \- | N value | Array | [] | `v-model` and `v-model:value` is supported。Typescript:`Array` `type TreeNodeValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/tree/type.ts) | N defaultValue | Array | [] | uncontrolled property。Typescript:`Array` `type TreeNodeValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/tree/type.ts) | N -valueMode | String | onlyLeaf | options:onlyLeaf/parentFirst/all | N +valueMode | String | onlyLeaf | options: onlyLeaf/parentFirst/all | N onActive | Function | | Typescript:`(value: Array, context: { node: TreeNodeModel; e?: MouseEvent; trigger: 'node-click' \| 'setItem' }) => void`
| N onChange | Function | | Typescript:`(value: Array, context: { node: TreeNodeModel; e?: any; trigger: 'node-click' \| 'setItem' }) => void`
| N onClick | Function | | Typescript:`(context: { node: TreeNodeModel; e: MouseEvent }) => void`
| N @@ -143,4 +141,4 @@ bufferSize | Number | 20 | \- | N isFixedRowHeight | Boolean | false | \- | N rowHeight | Number | - | \- | N threshold | Number | 100 | \- | N -type | String | - | required。options:lazy/virtual | Y +type | String | - | required。options: lazy/virtual | Y diff --git a/packages/products/tdesign-vue-next/src/tree/tree.md b/packages/products/tdesign-vue-next/src/tree/tree.md index 55782268..449ab748 100644 --- a/packages/products/tdesign-vue-next/src/tree/tree.md +++ b/packages/products/tdesign-vue-next/src/tree/tree.md @@ -8,7 +8,6 @@ activable | Boolean | false | 节点是否可高亮 | N activeMultiple | Boolean | false | 是否允许多个节点同时高亮 | N actived | Array | - | 高亮的节点值。支持语法糖 `v-model:actived`。TS 类型:`Array` | N -defaultActived | Array | - | 高亮的节点值。非受控属性。TS 类型:`Array` | N allowFoldNodeOnFilter | Boolean | false | 是否允许在过滤时节点折叠节点 | N checkProps | Object | - | 透传属性到 checkbox 组件。参考 checkbox 组件 API。TS 类型:`CheckboxProps`,[Checkbox API Documents](./checkbox?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/tree/type.ts) | N checkStrictly | Boolean | false | 父子节点选中状态不再关联,可各自选中或取消 | N @@ -24,7 +23,6 @@ expandMutex | Boolean | false | 同级别展开互斥,手风琴效果 | N expandOnClickNode | Boolean | false | 是否支持点击节点也能展开收起 | N expandParent | Boolean | false | 展开子节点时是否自动展开父节点 | N expanded | Array | [] | 展开的节点值。支持语法糖 `v-model:expanded`。TS 类型:`Array` | N -defaultExpanded | Array | [] | 展开的节点值。非受控属性。TS 类型:`Array` | N filter | Function | - | 节点过滤方法,只呈现返回值为 true 的节点,泛型 `T` 表示树节点 TS 类型。TS 类型:`(node: TreeNodeModel) => boolean` | N height | String / Number | - | 表格高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px。如果不是绝对固定表格高度,建议使用 `maxHeight` | N hover | Boolean | - | 节点是否有悬浮状态 | N diff --git a/packages/products/tdesign-vue/src/tree/tree.en-US.md b/packages/products/tdesign-vue/src/tree/tree.en-US.md index 71f7ace5..8a1ebb4b 100644 --- a/packages/products/tdesign-vue/src/tree/tree.en-US.md +++ b/packages/products/tdesign-vue/src/tree/tree.en-US.md @@ -8,7 +8,6 @@ name | type | default | description | required activable | Boolean | false | \- | N activeMultiple | Boolean | false | \- | N actived | Array | - | `.sync` is supported。Typescript:`Array` | N -defaultActived | Array | - | uncontrolled property。Typescript:`Array` | N allowFoldNodeOnFilter | Boolean | false | \- | N checkProps | Object | - | Typescript:`CheckboxProps`,[Checkbox API Documents](./checkbox?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/tree/type.ts) | N checkStrictly | Boolean | false | \- | N @@ -24,7 +23,6 @@ expandMutex | Boolean | false | \- | N expandOnClickNode | Boolean | false | \- | N expandParent | Boolean | false | \- | N expanded | Array | [] | `.sync` is supported。Typescript:`Array` | N -defaultExpanded | Array | [] | uncontrolled property。Typescript:`Array` | N filter | Function | - | Typescript:`(node: TreeNodeModel) => boolean` | N height | String / Number | - | table height | N hover | Boolean | - | \- | N @@ -40,7 +38,7 @@ scroll | Object | - | lazy load and virtual scroll。Typescript:`TScroll`。[s transition | Boolean | true | \- | N value | Array | [] | `v-model` is supported。Typescript:`Array` `type TreeNodeValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/tree/type.ts) | N defaultValue | Array | [] | uncontrolled property。Typescript:`Array` `type TreeNodeValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/tree/type.ts) | N -valueMode | String | onlyLeaf | options:onlyLeaf/parentFirst/all | N +valueMode | String | onlyLeaf | options: onlyLeaf/parentFirst/all | N onActive | Function | | Typescript:`(value: Array, context: { node: TreeNodeModel; e?: MouseEvent; trigger: 'node-click' \| 'setItem' }) => void`
| N onChange | Function | | Typescript:`(value: Array, context: { node: TreeNodeModel; e?: any; trigger: 'node-click' \| 'setItem' }) => void`
| N onClick | Function | | Typescript:`(context: { node: TreeNodeModel; e: MouseEvent }) => void`
| N @@ -143,4 +141,4 @@ bufferSize | Number | 20 | \- | N isFixedRowHeight | Boolean | false | \- | N rowHeight | Number | - | \- | N threshold | Number | 100 | \- | N -type | String | - | required。options:lazy/virtual | Y +type | String | - | required。options: lazy/virtual | Y diff --git a/packages/products/tdesign-vue/src/tree/tree.md b/packages/products/tdesign-vue/src/tree/tree.md index 89092b0b..7f00c34a 100644 --- a/packages/products/tdesign-vue/src/tree/tree.md +++ b/packages/products/tdesign-vue/src/tree/tree.md @@ -8,7 +8,6 @@ activable | Boolean | false | 节点是否可高亮 | N activeMultiple | Boolean | false | 是否允许多个节点同时高亮 | N actived | Array | - | 高亮的节点值。支持语法糖 `.sync`。TS 类型:`Array` | N -defaultActived | Array | - | 高亮的节点值。非受控属性。TS 类型:`Array` | N allowFoldNodeOnFilter | Boolean | false | 是否允许在过滤时节点折叠节点 | N checkProps | Object | - | 透传属性到 checkbox 组件。参考 checkbox 组件 API。TS 类型:`CheckboxProps`,[Checkbox API Documents](./checkbox?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/tree/type.ts) | N checkStrictly | Boolean | false | 父子节点选中状态不再关联,可各自选中或取消 | N @@ -24,7 +23,6 @@ expandMutex | Boolean | false | 同级别展开互斥,手风琴效果 | N expandOnClickNode | Boolean | false | 是否支持点击节点也能展开收起 | N expandParent | Boolean | false | 展开子节点时是否自动展开父节点 | N expanded | Array | [] | 展开的节点值。支持语法糖 `.sync`。TS 类型:`Array` | N -defaultExpanded | Array | [] | 展开的节点值。非受控属性。TS 类型:`Array` | N filter | Function | - | 节点过滤方法,只呈现返回值为 true 的节点,泛型 `T` 表示树节点 TS 类型。TS 类型:`(node: TreeNodeModel) => boolean` | N height | String / Number | - | 表格高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px。如果不是绝对固定表格高度,建议使用 `maxHeight` | N hover | Boolean | - | 节点是否有悬浮状态 | N