Переглянути джерело

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: {