1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
| import type { PropType } from 'vue';
| import type { ReplaceFields, ActionItem, Keys, CheckKeys } from './types';
| import type { ContextMenuItem } from '/@/hooks/web/useContextMenu';
| import type { TreeDataItem } from 'ant-design-vue/es/tree/Tree';
| import { propTypes } from '/@/utils/propTypes';
|
| export const basicProps = {
| value: {
| type: Array as PropType<Keys>,
| },
| renderIcon: {
| type: Function as PropType<(params: Recordable) => string>,
| },
|
| helpMessage: {
| type: [String, Array] as PropType<string | string[]>,
| default: '',
| },
|
| title: propTypes.string,
| toolbar: propTypes.bool,
| search: propTypes.bool,
| checkStrictly: propTypes.bool,
| clickRowToExpand: propTypes.bool.def(true),
|
| replaceFields: {
| type: Object as PropType<ReplaceFields>,
| },
|
| treeData: {
| type: Array as PropType<TreeDataItem[]>,
| },
|
| actionList: {
| type: Array as PropType<ActionItem[]>,
| default: () => [],
| },
|
| expandedKeys: {
| type: Array as PropType<Keys>,
| default: () => [],
| },
|
| selectedKeys: {
| type: Array as PropType<Keys>,
| default: () => [],
| },
|
| checkedKeys: {
| type: Array as PropType<CheckKeys>,
| default: () => [],
| },
|
| beforeRightClick: {
| type: Function as PropType<(...arg: any) => ContextMenuItem[]>,
| default: null,
| },
|
| rightMenuList: {
| type: Array as PropType<ContextMenuItem[]>,
| },
| };
|
| export const treeNodeProps = {
| actionList: {
| type: Array as PropType<ActionItem[]>,
| default: () => [],
| },
| replaceFields: {
| type: Object as PropType<ReplaceFields>,
| },
| treeData: {
| type: Array as PropType<TreeDataItem[]>,
| default: () => [],
| },
| };
|
|