Browse Source

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

Netfan 4 năm trước cách đây
mục cha
commit
0112d6b313
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 = {
   value: {
-    type: Array as PropType<Keys>,
+    type: [Object, Array] as PropType<Keys | CheckKeys>,
   },
   renderIcon: {
     type: Function as PropType<(params: Recordable) => string>,