Преглед на файлове

🐞 fix(Tree): 调整checkedKeys属性的类型 (#2562)

Houtaroy преди 2 години
родител
ревизия
d88915bac3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/components/Tree/src/types/tree.ts

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

@@ -100,7 +100,7 @@ export const treeProps = buildProps({
   },
 
   checkedKeys: {
-    type: Array as PropType<CheckKeys>,
+    type: [Array, Object] as PropType<CheckKeys>,
     default: () => [],
   },