소스 검색

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