Skip to content

Commit 7a47fb4

Browse files
authored
Merge pull request #226 from leezng/fix-type
fix: type check failed for prop "data". #224
2 parents 06b9730 + 169df2c commit 7a47fb4

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)