Quellcode durchsuchen

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

Zhong vor 1 Jahr
Ursprung
Commit
38d58ab47a
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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: {