Ver Fonte

fix docs typo (#1266)

fix default-expand-keys => default-expanded-keys
郑瑞召 há 8 anos atrás
pai
commit
a65a62f65c
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      examples/docs/en-US/tree.md
  2. 1 1
      examples/docs/zh-CN/tree.md

+ 1 - 1
examples/docs/en-US/tree.md

@@ -226,7 +226,7 @@ Used for node selection. In the following example, data for each layer is acquir
 | highlight-current | whether current node is highlighted | boolean | - | false |
 | default-expand-all | whether to expand all nodes by default | boolean | - | false |
 | auto-expand-parent | whether to expand father node when a child node is expanded | boolean | — | true |
-| default-expand-keys | array of keys of initially expanded nodes | array | — | — |
+| default-expanded-keys | array of keys of initially expanded nodes | array | — | — |
 | show-checkbox | whether node is selectable | boolean | — | false |
 | check-strictly | whether checked state of a node not affects its father and child nodes when `show-checkbox` is `true` | boolean | — | false |
 | default-checked-keys | array of keys of initially checked nodes | array | — | — |

+ 1 - 1
examples/docs/zh-CN/tree.md

@@ -238,7 +238,7 @@
 | highlight-current | 是否高亮当前选中节点,默认值是 false。| boolean | - | false |
 | default-expand-all | 是否默认展开所有节点 | boolean | - | false |
 | auto-expand-parent | 展开子节点的时候是否自动展开父节点 | boolean | — | true |
-| default-expand-keys | 默认展开的节点的 key 的数组 | array | — | — |
+| default-expanded-keys | 默认展开的节点的 key 的数组 | array | — | — |
 | show-checkbox | 节点是否可被选择 | boolean | — | false |
 | check-strictly | 在显示复选框的情况下,是否严格的遵循父子不互相关联的做法,默认为 false | boolean | — | false |
 | default-checked-keys | 默认勾选的节点的 key 的数组 | array | — | — |