ソースを参照

fix(component): resolve the error when clicking on a row when clickRowToExpand is true (#3714)

Zhong 1 年間 前
コミット
38d58ab47a
1 ファイル変更1 行追加0 行削除
  1. 1 0
      src/components/Tree/src/types/tree.ts

+ 1 - 0
src/components/Tree/src/types/tree.ts

@@ -91,6 +91,7 @@ export const treeProps = buildProps({
 
   expandedKeys: {
     type: Array as PropType<KeyType[]>,
+    default: () => [],
   },
 
   selectedKeys: {