Browse Source

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

Netfan 4 years ago
parent
commit
0112d6b313
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Tree/src/props.ts

+ 1 - 1
src/components/Tree/src/props.ts

@@ -6,7 +6,7 @@ import { propTypes } from '/@/utils/propTypes';
 
 
 export const basicProps = {
 export const basicProps = {
   value: {
   value: {
-    type: Array as PropType<Keys>,
+    type: [Object, Array] as PropType<Keys | CheckKeys>,
   },
   },
   renderIcon: {
   renderIcon: {
     type: Function as PropType<(params: Recordable) => string>,
     type: Function as PropType<(params: Recordable) => string>,