Skip to content

Commit 169df2c

Browse files
committed
fix: type check failed for prop "data".
1 parent 06b9730 commit 169df2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Tree/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default defineComponent({
1818
...treeNodePropsPass,
1919
// JSONLike data.
2020
data: {
21-
type: Object as PropType<JSONDataType>,
21+
type: [String, Number, Boolean, Array, Object] as PropType<JSONDataType>,
2222
default: null,
2323
},
2424
// Define the depth of the tree, nodes greater than this depth will not be expanded.

0 commit comments

Comments
 (0)