Commit d88915bac3d2735ee3183b0abb69fb2f0d12c845
Committed by
GitHub
1 parent
a1b9bbc2
🐞 fix(Tree): 调整checkedKeys属性的类型 (#2562)
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Tree/src/types/tree.ts
@@ -100,7 +100,7 @@ export const treeProps = buildProps({ | @@ -100,7 +100,7 @@ export const treeProps = buildProps({ | ||
100 | }, | 100 | }, |
101 | 101 | ||
102 | checkedKeys: { | 102 | checkedKeys: { |
103 | - type: Array as PropType<CheckKeys>, | 103 | + type: [Array, Object] as PropType<CheckKeys>, |
104 | default: () => [], | 104 | default: () => [], |
105 | }, | 105 | }, |
106 | 106 |