Sfoglia il codice sorgente

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

Zhong 1 anno fa
parent
commit
38d58ab47a
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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: {