Commit 0112d6b313e66f624cd91e9ef933af57b0d280f9

Authored by Netfan
Committed by GitHub
1 parent e4c3d091

fix(tree): value prop type (#613)

src/components/Tree/src/props.ts
@@ -6,7 +6,7 @@ import { propTypes } from '/@/utils/propTypes'; @@ -6,7 +6,7 @@ import { propTypes } from '/@/utils/propTypes';
6 6
7 export const basicProps = { 7 export const basicProps = {
8 value: { 8 value: {
9 - type: Array as PropType<Keys>, 9 + type: [Object, Array] as PropType<Keys | CheckKeys>,
10 }, 10 },
11 renderIcon: { 11 renderIcon: {
12 type: Function as PropType<(params: Recordable) => string>, 12 type: Function as PropType<(params: Recordable) => string>,