From 0112d6b313e66f624cd91e9ef933af57b0d280f9 Mon Sep 17 00:00:00 2001 From: Netfan Date: Mon, 17 May 2021 13:32:43 +0800 Subject: [PATCH] fix(tree): value prop type (#613) --- src/components/Tree/src/props.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Tree/src/props.ts b/src/components/Tree/src/props.ts index ff356513..2d83aa88 100644 --- a/src/components/Tree/src/props.ts +++ b/src/components/Tree/src/props.ts @@ -6,7 +6,7 @@ import { propTypes } from '/@/utils/propTypes'; export const basicProps = { value: { - type: Array as PropType, + type: [Object, Array] as PropType, }, renderIcon: { type: Function as PropType<(params: Recordable) => string>,