From daafa7d133e57b098c30b7e22e33c49d66b6489b Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Wed, 8 Sep 2021 23:44:02 +0800 Subject: [PATCH] docs(tree): check-strategy --- CHANGELOG.en-US.md | 4 +++- CHANGELOG.zh-CN.md | 2 ++ src/tree/demos/enUS/index.demo-entry.md | 2 +- src/tree/demos/zhCN/index.demo-entry.md | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 23c0e2bd9..b28241738 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -1,8 +1,10 @@ # CHANGELOG +## Pending + ### Feats -- `n-tree` add `check-strategy` document prop. +- `n-tree` add `check-strategy` prop. ## 2.18.1 (2021-09-08) diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 7bfe27254..fd7cbbc3c 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -1,5 +1,7 @@ # CHANGELOG +## Pending + ### Feats - `n-tree` 增加 `check-strategy` 文档属性 diff --git a/src/tree/demos/enUS/index.demo-entry.md b/src/tree/demos/enUS/index.demo-entry.md index fcd088004..96bf22a53 100644 --- a/src/tree/demos/enUS/index.demo-entry.md +++ b/src/tree/demos/enUS/index.demo-entry.md @@ -31,7 +31,7 @@ batch-render | block-node | `boolean` | `false` | The node name is spread out in the whole row. | | cancelable | `boolean` | `true` | Whether node's select status can be cancelled. | | cascade | `boolean` | `false` | Whether to cascade checkboxes. | -| check-strategy | `string` | `'all'` | The way to set the value of callback function. `all` means setting all checked node. `parent` means setting all checked parent node when all child node are checked. `child` means setting all child node. | +| check-strategy | `string` | `'all'` | The strategy of setting checked callback's keys argument. `all` means setting all checked node. `parent` means setting all checked parent node of whom all child node are checked. `child` means setting all child node. | | checkable | `boolean` | `false` | Whether to display the selection box, you need to set `cascade` to `true`. | | children-field | `string` | `'children'` | The children field in `TreeOption`. | | checked-keys | `Array` | `undefined` | If set, checked status will work in controlled manner. | diff --git a/src/tree/demos/zhCN/index.demo-entry.md b/src/tree/demos/zhCN/index.demo-entry.md index 3bfd74632..853bd5a0e 100644 --- a/src/tree/demos/zhCN/index.demo-entry.md +++ b/src/tree/demos/zhCN/index.demo-entry.md @@ -31,7 +31,7 @@ batch-render | block-node | `boolean` | `false` | 节点名称整行撑开 | | cancelable | `boolean` | `true` | 选中之后是否允许取消 | | cascade | `boolean` | `false` | 是否关联选项 | -| check-strategy | `string` | `'all'` | 设置勾选策略来指定回调参数的值,`all` 表示回调函数值为全部选中节点;`parent` 表示回调函数值为父节点(当父节点下所有子节点都选中时);`child` 表示回调函数值为子节点 | +| check-strategy | `string` | `'all'` | 设置勾选策略来指定勾选回调返回的值,`all` 表示回调函数值为全部选中节点;`parent` 表示回调函数值为父节点(当父节点下所有子节点都选中时);`child` 表示回调函数值为子节点 | | checkable | `boolean` | `false` | 是否显示选择框,需要将 `cascade` 设置为 `true` | | children-field | `string` | `'children'` | 替代 `TreeOption` 中的 children 字段名 | | checked-keys | `Array` | `undefined` | 如果设定则 `checked` 状态受控 |