From 8be3974c4ac0bc667e095878e2e53fbc93f5f209 Mon Sep 17 00:00:00 2001 From: shenjunjian <40288193@qq.com> Date: Tue, 17 Dec 2024 00:27:59 -0800 Subject: [PATCH] fix(tree): default-expanded-keys description is wrong --- examples/sites/demos/apis/tree.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/sites/demos/apis/tree.js b/examples/sites/demos/apis/tree.js index 82d97c9263..663e4ff6f0 100644 --- a/examples/sites/demos/apis/tree.js +++ b/examples/sites/demos/apis/tree.js @@ -132,11 +132,12 @@ export default { }, { name: 'default-expanded-keys', - type: 'boolean', - defaultValue: 'false', + type: 'string[]', + defaultValue: '[]', desc: { - 'zh-CN': '默认展开节点的keys', - 'en-US': 'The keys of the node are expanded by default' + 'zh-CN': '默认展开节点的keys。当属性变化时,会自动收起全部并重新展开指定的数据项。 ', + 'en-US': + 'The keys of the node are expanded by default.When the property changes, it automatically collapses all and reexpands the specified data item.' }, mode: ['pc'], pcDemo: 'expand-control'