Skip to content

Commit 442b013

Browse files
committed
fix: ts type
1 parent b0c8ee6 commit 442b013

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/components/Tree/index.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ export default defineComponent({
1717

1818
props: {
1919
...treeNodePropsPass,
20-
// JSONLike data.
21-
data: {
22-
type: [String, Number, Boolean, Array, Object] as PropType<JSONDataType>,
23-
default: null,
24-
},
2520
collapsedNodeLength: {
2621
type: Number,
2722
default: Infinity,
@@ -35,11 +30,6 @@ export default defineComponent({
3530
type: Function as PropType<(node: NodeDataType) => boolean>,
3631
default: (): boolean => false,
3732
},
38-
// Data root path.
39-
rootPath: {
40-
type: String,
41-
default: 'root',
42-
},
4333
// Whether to use virtual scroll, usually applied to big data.
4434
virtual: {
4535
type: Boolean,

src/components/TreeNode/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineComponent, reactive, computed, PropType, CSSProperties } from 'vu
22
import Brackets from 'src/components/Brackets';
33
import CheckController from 'src/components/CheckController';
44
import Carets from 'src/components/Carets';
5-
import { getDataType, JSONFlattenReturnType, stringToAutoType } from 'src/utils';
5+
import { getDataType, JSONFlattenReturnType, JSONDataType, stringToAutoType } from 'src/utils';
66
import { useClipboard } from 'src/hooks/useClipboard';
77
import './styles.less';
88

0 commit comments

Comments
 (0)