@dt-frames/ui 2.0.15 → 2.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/imgs/tree/forder-open.svg +1 -0
- package/es/assets/imgs/tree/forder.svg +1 -0
- package/es/assets/locales/zh.ts +1 -1
- package/es/components/curd/index.js +28 -8
- package/es/components/curd/src/components/Curd.d.ts +10 -0
- package/es/components/curd/src/hooks/useCurd.d.ts +2 -4
- package/es/components/curd/src/props.d.ts +5 -1
- package/es/components/drawer/index.js +25 -24
- package/es/components/form/index.js +75 -40
- package/es/components/form/index.less +16 -0
- package/es/components/form/src/props.d.ts +3 -3
- package/es/components/modal/index.js +8 -143
- package/es/components/modal/index.less +23 -0
- package/es/components/modal/src/index.d.ts +2 -84
- package/es/components/table/index.js +61 -134
- package/es/components/table/index.less +25 -0
- package/es/components/table/src/components/editTable/EditTableCell.d.ts +1 -0
- package/es/components/table/src/index.d.ts +0 -10
- package/es/components/table/src/props.d.ts +0 -4
- package/es/components/table/src/types/table.type.d.ts +8 -0
- package/es/components/tree/index.js +203 -89
- package/es/components/tree/index.less +88 -13
- package/es/components/tree/src/basicProps.d.ts +55 -11
- package/es/components/tree/src/components/ContextMenu.d.ts +6 -0
- package/es/components/tree/src/components/TreeHeader.d.ts +2 -2
- package/es/components/tree/src/hooks/useTree.d.ts +3 -2
- package/es/components/tree/src/index.d.ts +131 -40
- package/es/components/tree/src/type/menu.d.ts +3 -0
- package/es/components/tree/src/type/tree.d.ts +0 -1
- package/es/components/upload/index.js +112 -65
- package/es/components/upload/index.less +17 -1
- package/es/components/upload/src/components/WordView.d.ts +1 -0
- package/es/components/upload/src/index.d.ts +2 -1
- package/es/components/upload/src/utils/upload.d.ts +1 -1
- package/es/theme/index.js +314 -309
- package/es/theme/index.less +1 -0
- package/es/theme/src/components/header/components/size.d.ts +5 -5
- package/es/theme/src/components/header/index.d.ts +5 -5
- package/es/theme/src/components/header/multiple-header.d.ts +5 -5
- package/es/theme/src/index.d.ts +10 -10
- package/manualContentPath.js +10 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/es/packages/ui/src/assets/locales/en.d.ts +0 -103
- package/es/packages/ui/src/assets/locales/index.d.ts +0 -2
- package/es/packages/ui/src/assets/locales/zh.d.ts +0 -104
- package/es/packages/ui/src/components/form/index.d.ts +0 -7
- package/es/packages/ui/src/components/form/src/components/FormButtons.d.ts +0 -105
- package/es/packages/ui/src/components/form/src/components/FormItem.d.ts +0 -159
- package/es/packages/ui/src/components/form/src/components/componentMap.d.ts +0 -4
- package/es/packages/ui/src/components/form/src/components/formIcon.d.ts +0 -1223
- package/es/packages/ui/src/components/form/src/components/formInputUseDialog.d.ts +0 -911
- package/es/packages/ui/src/components/form/src/components/index.d.ts +0 -4
- package/es/packages/ui/src/components/form/src/components/radioButton.d.ts +0 -34
- package/es/packages/ui/src/components/form/src/enums/index.d.ts +0 -7
- package/es/packages/ui/src/components/form/src/hooks/helper.d.ts +0 -14
- package/es/packages/ui/src/components/form/src/hooks/useForm.d.ts +0 -6
- package/es/packages/ui/src/components/form/src/hooks/useFormActions.d.ts +0 -12
- package/es/packages/ui/src/components/form/src/hooks/useFormEvent.d.ts +0 -25
- package/es/packages/ui/src/components/form/src/hooks/useFormValue.d.ts +0 -3
- package/es/packages/ui/src/components/form/src/hooks/useFormValues.d.ts +0 -11
- package/es/packages/ui/src/components/form/src/hooks/useLabelWidth.d.ts +0 -6
- package/es/packages/ui/src/components/form/src/props.d.ts +0 -127
- package/es/packages/ui/src/components/form/src/types/actions.type.d.ts +0 -15
- package/es/packages/ui/src/components/form/src/types/form.type.d.ts +0 -79
- package/es/packages/ui/src/components/form/src/types/items.type.d.ts +0 -409
- package/es/packages/ui/src/components/iframe/index.d.ts +0 -2
- package/es/packages/ui/src/components/modal/index.d.ts +0 -4
- package/es/packages/ui/src/components/modal/src/hooks/useModal.d.ts +0 -5
- package/es/packages/ui/src/components/modal/src/props.d.ts +0 -101
- package/es/packages/ui/src/components/modal/src/types/modal.type.d.ts +0 -17
- package/es/packages/ui/src/components/upload/index.d.ts +0 -4
- package/es/packages/ui/src/components/upload/src/basicProps.d.ts +0 -87
- package/es/packages/ui/src/components/upload/src/components/PdfView.d.ts +0 -9
- package/es/packages/ui/src/components/upload/src/components/WordView.d.ts +0 -6
- package/es/packages/ui/src/components/upload/src/hooks/useFile.d.ts +0 -16
- package/es/packages/ui/src/components/upload/src/index.d.ts +0 -242
- package/es/packages/ui/src/components/upload/src/type/file.d.ts +0 -10
- package/es/packages/ui/src/components/upload/src/utils/upload.d.ts +0 -2
- package/es/packages/ui/src/global.d.ts +0 -7
- package/es/packages/ui/src/theme/index.d.ts +0 -12
- package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +0 -4
- package/es/packages/ui/src/theme/src/enums/index.d.ts +0 -1
- package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +0 -34
- package/es/packages/ui/src/theme/src/hooks/index.d.ts +0 -6
- package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +0 -2
- package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +0 -25
- package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +0 -29
- package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +0 -8
- package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +0 -7
- package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +0 -9
- package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +0 -2
- package/es/packages/ui/src/theme/src/stores/index.d.ts +0 -3
- package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +0 -25
- package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +0 -19
- package/es/packages/ui/src/theme/src/types/index.d.ts +0 -3
- package/es/packages/ui/src/theme/src/types/menu.type.d.ts +0 -15
- package/es/packages/ui/src/theme/src/types/theme.type.d.ts +0 -62
- package/es/packages/ui/src/utils/withInstall.d.ts +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.dt-tree-search{
|
|
2
|
-
padding: 10px;
|
|
2
|
+
padding: 0 4px 0 10px;
|
|
3
3
|
|
|
4
4
|
& > i {
|
|
5
5
|
width: 24px;
|
|
@@ -22,17 +22,58 @@
|
|
|
22
22
|
overflow-y: auto;
|
|
23
23
|
padding: 10px 0;
|
|
24
24
|
|
|
25
|
+
.ant-tree-treenode{
|
|
26
|
+
padding: 0;
|
|
27
|
+
align-items: center;
|
|
28
|
+
.ant-tree-switcher-icon{
|
|
29
|
+
line-height: 28px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ant-tree-checkbox {
|
|
34
|
+
margin-top: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
25
37
|
.tree-title{
|
|
26
38
|
font-size: 13px;
|
|
27
39
|
position: relative;
|
|
28
40
|
display: flex;
|
|
29
41
|
align-items: center;
|
|
30
42
|
width: 100%;
|
|
43
|
+
line-height: 28px;
|
|
31
44
|
padding-right: 10px;
|
|
45
|
+
padding-left: 3px;
|
|
46
|
+
transition: all 0.2s;
|
|
47
|
+
svg {
|
|
48
|
+
width: 22px;
|
|
49
|
+
padding-right: 8px;
|
|
50
|
+
opacity: 0.7;
|
|
51
|
+
}
|
|
32
52
|
&:hover .tree-action{
|
|
33
53
|
visibility: visible;
|
|
34
54
|
}
|
|
55
|
+
&:hover{
|
|
56
|
+
background-color: @primary-color-hover;
|
|
57
|
+
}
|
|
35
58
|
}
|
|
59
|
+
|
|
60
|
+
.anticon-file {
|
|
61
|
+
opacity: 0.6;
|
|
62
|
+
svg{
|
|
63
|
+
width: 12px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.toolbar{
|
|
69
|
+
transition: color 0.2s;
|
|
70
|
+
&:hover{
|
|
71
|
+
color: @primary-color;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.dragging::after {
|
|
76
|
+
bottom: 0 !important;
|
|
36
77
|
}
|
|
37
78
|
|
|
38
79
|
.tree-action{
|
|
@@ -41,24 +82,55 @@
|
|
|
41
82
|
top: 0;
|
|
42
83
|
right: 3px;
|
|
43
84
|
display: flex;
|
|
85
|
+
.i{
|
|
86
|
+
font-size: 16px;
|
|
87
|
+
width: 22px;
|
|
88
|
+
color: @primary-color;
|
|
89
|
+
}
|
|
44
90
|
}
|
|
45
|
-
}
|
|
46
91
|
|
|
47
|
-
.
|
|
48
|
-
|
|
49
|
-
|
|
92
|
+
.tree-active-node {
|
|
93
|
+
background-color: @primary-color-hover;
|
|
94
|
+
color: @primary-color;
|
|
50
95
|
}
|
|
51
|
-
}
|
|
52
96
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
97
|
+
&-middle{
|
|
98
|
+
.ant-spin-nested-loading{
|
|
99
|
+
.ant-tree-treenode{
|
|
100
|
+
.ant-tree-switcher-icon{
|
|
101
|
+
line-height: 32px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
.tree-title{
|
|
105
|
+
font-size: 13px;
|
|
106
|
+
line-height: 32px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&-large{
|
|
112
|
+
.ant-spin-nested-loading{
|
|
113
|
+
.ant-tree-treenode{
|
|
114
|
+
.ant-tree-switcher-icon{
|
|
115
|
+
line-height: 36px;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
.tree-title{
|
|
119
|
+
font-size: 14px;
|
|
120
|
+
line-height: 36px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.anticon-file {
|
|
124
|
+
svg{
|
|
125
|
+
width: 13px;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
56
129
|
}
|
|
57
130
|
}
|
|
58
131
|
|
|
59
132
|
|
|
60
133
|
.dt-context-menu{
|
|
61
|
-
width: 156px;
|
|
62
134
|
ul{
|
|
63
135
|
margin: 0;
|
|
64
136
|
list-style: none;
|
|
@@ -79,12 +151,15 @@
|
|
|
79
151
|
li {
|
|
80
152
|
display: inline-block;
|
|
81
153
|
width: 100%;
|
|
82
|
-
height:
|
|
154
|
+
height: 34px;
|
|
83
155
|
margin: 0 !important;
|
|
84
|
-
line-height:
|
|
156
|
+
line-height: 32px;
|
|
157
|
+
&.ant-menu-item{
|
|
158
|
+
height: 34px;
|
|
159
|
+
}
|
|
85
160
|
|
|
86
161
|
span {
|
|
87
|
-
line-height:
|
|
162
|
+
line-height: 34px;
|
|
88
163
|
font-size: 13px;
|
|
89
164
|
}
|
|
90
165
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, PropType } from "vue";
|
|
2
2
|
import { Recordable } from "@dt-frames/core";
|
|
3
|
-
import { KeyType, CheckKeys, FieldNames,
|
|
3
|
+
import { KeyType, CheckKeys, FieldNames, TreeItem } from './type/tree';
|
|
4
4
|
import { Axis, ContextMenuItem } from "./type/menu";
|
|
5
5
|
export declare const BasicProps: {
|
|
6
6
|
defaultExpandLevel: {
|
|
@@ -9,10 +9,51 @@ export declare const BasicProps: {
|
|
|
9
9
|
defaultExpandAll: {
|
|
10
10
|
type: BooleanConstructor;
|
|
11
11
|
};
|
|
12
|
+
height: {
|
|
13
|
+
type: PropType<String | Number>;
|
|
14
|
+
};
|
|
12
15
|
showIcon: {
|
|
13
16
|
type: BooleanConstructor;
|
|
14
17
|
default: boolean;
|
|
15
18
|
};
|
|
19
|
+
blockNode: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
fieldNames: {
|
|
24
|
+
type: PropType<FieldNames>;
|
|
25
|
+
default: {
|
|
26
|
+
children: string;
|
|
27
|
+
title: string;
|
|
28
|
+
key: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
disabled: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
draggable: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
filterTreeNode: {
|
|
40
|
+
type: PropType<(node: Recordable) => boolean>;
|
|
41
|
+
};
|
|
42
|
+
multiple: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
selectable: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
showLine: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
activeKey: {
|
|
55
|
+
type: PropType<KeyType>;
|
|
56
|
+
};
|
|
16
57
|
loading: {
|
|
17
58
|
type: BooleanConstructor;
|
|
18
59
|
default: boolean;
|
|
@@ -33,9 +74,6 @@ export declare const BasicProps: {
|
|
|
33
74
|
type: PropType<CheckKeys>;
|
|
34
75
|
default: () => any[];
|
|
35
76
|
};
|
|
36
|
-
fieldNames: {
|
|
37
|
-
type: PropType<FieldNames>;
|
|
38
|
-
};
|
|
39
77
|
beforeRightClick: {
|
|
40
78
|
type: PropType<(...arg: any) => ContextMenuItem[]>;
|
|
41
79
|
default: any;
|
|
@@ -50,9 +88,8 @@ export declare const BasicProps: {
|
|
|
50
88
|
type: PropType<String | Boolean>;
|
|
51
89
|
default: boolean;
|
|
52
90
|
};
|
|
53
|
-
|
|
54
|
-
type: PropType<
|
|
55
|
-
default: () => any[];
|
|
91
|
+
action: {
|
|
92
|
+
type: PropType<(record: Recordable) => any>;
|
|
56
93
|
};
|
|
57
94
|
clickRowToExpand: {
|
|
58
95
|
type: BooleanConstructor;
|
|
@@ -66,10 +103,14 @@ export declare const BasicProps: {
|
|
|
66
103
|
type: PropType<(searchValue: any, node: TreeItem, fieldNames: FieldNames) => boolean>;
|
|
67
104
|
default: any;
|
|
68
105
|
};
|
|
69
|
-
checkable:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
106
|
+
checkable: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
110
|
+
expandOnSearch: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
73
114
|
treeData: {
|
|
74
115
|
type: PropType<import("ant-design-vue/lib/tree").DataNode[]>;
|
|
75
116
|
};
|
|
@@ -143,4 +184,7 @@ export declare const rightMenuProps: {
|
|
|
143
184
|
type: PropType<ContextMenuItem[]>;
|
|
144
185
|
default: () => any[];
|
|
145
186
|
};
|
|
187
|
+
node: {
|
|
188
|
+
type: PropType<Recordable<any>>;
|
|
189
|
+
};
|
|
146
190
|
};
|
|
@@ -27,6 +27,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
27
27
|
type: import("vue").PropType<ContextMenuItem[]>;
|
|
28
28
|
default: () => any[];
|
|
29
29
|
};
|
|
30
|
+
node: {
|
|
31
|
+
type: import("vue").PropType<import("@dt-frames/core").Recordable<any>>;
|
|
32
|
+
};
|
|
30
33
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
34
|
width: {
|
|
32
35
|
type: NumberConstructor;
|
|
@@ -54,6 +57,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
54
57
|
type: import("vue").PropType<ContextMenuItem[]>;
|
|
55
58
|
default: () => any[];
|
|
56
59
|
};
|
|
60
|
+
node: {
|
|
61
|
+
type: import("vue").PropType<import("@dt-frames/core").Recordable<any>>;
|
|
62
|
+
};
|
|
57
63
|
}>>, {
|
|
58
64
|
showIcon: boolean;
|
|
59
65
|
width: number;
|
|
@@ -87,10 +87,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
87
87
|
}>> & {
|
|
88
88
|
onSearch?: (...args: any[]) => any;
|
|
89
89
|
}, {
|
|
90
|
-
|
|
90
|
+
search: boolean;
|
|
91
91
|
title: string;
|
|
92
|
+
checkable: boolean;
|
|
92
93
|
toolbar: boolean;
|
|
93
|
-
search: boolean;
|
|
94
94
|
searchText: string;
|
|
95
95
|
checkAll: Function;
|
|
96
96
|
expandAll: Function;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from "vue";
|
|
2
2
|
import { FieldNames, TreeItem, KeyType, InsertNodeParams } from "../type/tree";
|
|
3
|
-
import { TreeDataItem } from "ant-design-vue/
|
|
4
|
-
export declare function useTree(treeDataRef: Ref<TreeDataItem[]>, getFieldNames: ComputedRef<FieldNames
|
|
3
|
+
import { TreeDataItem, AntTreeNodeDropEvent } from "ant-design-vue/es/tree/Tree";
|
|
4
|
+
export declare function useTree(treeDataRef: Ref<TreeDataItem[]>, getFieldNames: ComputedRef<FieldNames>, emit: (event: string, ...args: any[]) => void): {
|
|
5
5
|
getAllKeys: (list?: TreeDataItem[]) => KeyType[];
|
|
6
6
|
getEnabledKeys: (list?: TreeDataItem[]) => KeyType[];
|
|
7
7
|
getChildrenKeys: (nodeKey: string | number, list?: TreeDataItem[]) => KeyType[];
|
|
@@ -11,4 +11,5 @@ export declare function useTree(treeDataRef: Ref<TreeDataItem[]>, getFieldNames:
|
|
|
11
11
|
insertNodesByKey: ({ parentKey, list, push }: InsertNodeParams) => void;
|
|
12
12
|
deleteNodeByKey: (key: string, list?: TreeDataItem[]) => void;
|
|
13
13
|
getSelectedNode: (key: KeyType, list?: TreeItem[], selectedNode?: TreeItem | null) => TreeItem;
|
|
14
|
+
onDrop: (info: AntTreeNodeDropEvent) => void;
|
|
14
15
|
};
|
|
@@ -8,10 +8,51 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
8
8
|
defaultExpandAll: {
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
};
|
|
11
|
+
height: {
|
|
12
|
+
type: import("vue").PropType<String | Number>;
|
|
13
|
+
};
|
|
11
14
|
showIcon: {
|
|
12
15
|
type: BooleanConstructor;
|
|
13
16
|
default: boolean;
|
|
14
17
|
};
|
|
18
|
+
blockNode: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
fieldNames: {
|
|
23
|
+
type: import("vue").PropType<FieldNames>;
|
|
24
|
+
default: {
|
|
25
|
+
children: string;
|
|
26
|
+
title: string;
|
|
27
|
+
key: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
disabled: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
draggable: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
filterTreeNode: {
|
|
39
|
+
type: import("vue").PropType<(node: Recordable<any>) => boolean>;
|
|
40
|
+
};
|
|
41
|
+
multiple: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
selectable: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
showLine: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
activeKey: {
|
|
54
|
+
type: import("vue").PropType<KeyType>;
|
|
55
|
+
};
|
|
15
56
|
loading: {
|
|
16
57
|
type: BooleanConstructor;
|
|
17
58
|
default: boolean;
|
|
@@ -32,9 +73,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
32
73
|
type: import("vue").PropType<CheckKeys>;
|
|
33
74
|
default: () => any[];
|
|
34
75
|
};
|
|
35
|
-
fieldNames: {
|
|
36
|
-
type: import("vue").PropType<FieldNames>;
|
|
37
|
-
};
|
|
38
76
|
beforeRightClick: {
|
|
39
77
|
type: import("vue").PropType<(...arg: any) => import("./type/menu").ContextMenuItem[]>;
|
|
40
78
|
default: any;
|
|
@@ -49,9 +87,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
49
87
|
type: import("vue").PropType<String | Boolean>;
|
|
50
88
|
default: boolean;
|
|
51
89
|
};
|
|
52
|
-
|
|
53
|
-
type: import("vue").PropType<
|
|
54
|
-
default: () => any[];
|
|
90
|
+
action: {
|
|
91
|
+
type: import("vue").PropType<(record: Recordable<any>) => any>;
|
|
55
92
|
};
|
|
56
93
|
clickRowToExpand: {
|
|
57
94
|
type: BooleanConstructor;
|
|
@@ -65,10 +102,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
65
102
|
type: import("vue").PropType<(searchValue: any, node: TreeItem, fieldNames: FieldNames) => boolean>;
|
|
66
103
|
default: any;
|
|
67
104
|
};
|
|
68
|
-
checkable:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
105
|
+
checkable: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
expandOnSearch: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
72
113
|
treeData: {
|
|
73
114
|
type: import("vue").PropType<import("ant-design-vue/lib/tree").DataNode[]>;
|
|
74
115
|
};
|
|
@@ -98,9 +139,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
98
139
|
}>, slot?: string, data?: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
99
140
|
[key: string]: any;
|
|
100
141
|
}>[];
|
|
101
|
-
|
|
102
|
-
[name: string]: import("vue").Slot;
|
|
103
|
-
}>, excludeKeys?: string[]) => any;
|
|
142
|
+
getUiSize: import("vue").ComputedRef<import('../../../theme').UiSize>;
|
|
104
143
|
props: any;
|
|
105
144
|
attrs: {
|
|
106
145
|
[x: string]: unknown;
|
|
@@ -108,7 +147,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
108
147
|
slots: Readonly<{
|
|
109
148
|
[name: string]: import("vue").Slot;
|
|
110
149
|
}>;
|
|
111
|
-
emit: (event: "update:expandedKeys" | "update:selectedKeys" | "update:value" | "check" | "change" | "clickNode" | "update:searchValue", ...args: any[]) => void;
|
|
150
|
+
emit: (event: "update:expandedKeys" | "update:selectedKeys" | "update:value" | "check" | "change" | "clickNode" | "drop" | "update:searchValue", ...args: any[]) => void;
|
|
151
|
+
activeKey: import("vue").Ref<KeyType>;
|
|
112
152
|
state: {
|
|
113
153
|
expandedKeys: KeyType[];
|
|
114
154
|
selectedKeys: KeyType[];
|
|
@@ -6283,24 +6323,25 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6283
6323
|
}>;
|
|
6284
6324
|
getTreeData: import("vue").ComputedRef<TreeItem[]>;
|
|
6285
6325
|
getNotFound: import("vue").ComputedRef<boolean>;
|
|
6286
|
-
getIcon: (params: Recordable, icon?: string) => string;
|
|
6326
|
+
getIcon: (params: Recordable, icon?: string) => string | JSX.Element;
|
|
6287
6327
|
treeData: import("vue").ComputedRef<any>;
|
|
6288
6328
|
getBindValues: import("vue").ComputedRef<any>;
|
|
6289
6329
|
showTitle: import("vue").ComputedRef<string | true | import("vue").Slot>;
|
|
6290
6330
|
handleClickNode: (key: string, children: TreeItem[], node: TreeItem) => void;
|
|
6291
|
-
renderAction: (node: TreeItem) => JSX.Element
|
|
6331
|
+
renderAction: (node: TreeItem) => JSX.Element;
|
|
6292
6332
|
handleSearch: (searchValue: string) => void;
|
|
6293
6333
|
createContextMenu: ((options: CreateContextOptions) => Promise<unknown>) | (() => void);
|
|
6294
6334
|
handleRightClick: ({ event, node }: Recordable) => Promise<void>;
|
|
6295
|
-
deleteNodeByKey: (key: string, list?: import("ant-design-vue/
|
|
6335
|
+
deleteNodeByKey: (key: string, list?: import("ant-design-vue/es/tree").DataNode[]) => void;
|
|
6296
6336
|
insertNodeByKey: ({ parentKey, node, push }: import("./type/tree").InsertNodeParams) => void;
|
|
6297
6337
|
insertNodesByKey: ({ parentKey, list, push }: import("./type/tree").InsertNodeParams) => void;
|
|
6298
|
-
filterByLevel: (level?: number, list?: import("ant-design-vue/
|
|
6299
|
-
updateNodeByKey: (key: string, node: import("ant-design-vue/
|
|
6300
|
-
getAllKeys: (list?: import("ant-design-vue/
|
|
6301
|
-
getChildrenKeys: (nodeKey: string | number, list?: import("ant-design-vue/
|
|
6302
|
-
getEnabledKeys: (list?: import("ant-design-vue/
|
|
6338
|
+
filterByLevel: (level?: number, list?: import("ant-design-vue/es/tree").DataNode[], currentLevel?: number) => string[] | number[];
|
|
6339
|
+
updateNodeByKey: (key: string, node: import("ant-design-vue/es/tree").DataNode, list?: import("ant-design-vue/es/tree").DataNode[]) => void;
|
|
6340
|
+
getAllKeys: (list?: import("ant-design-vue/es/tree").DataNode[]) => KeyType[];
|
|
6341
|
+
getChildrenKeys: (nodeKey: string | number, list?: import("ant-design-vue/es/tree").DataNode[]) => KeyType[];
|
|
6342
|
+
getEnabledKeys: (list?: import("ant-design-vue/es/tree").DataNode[]) => KeyType[];
|
|
6303
6343
|
getSelectedNode: (key: KeyType, list?: TreeItem[], selectedNode?: TreeItem) => TreeItem;
|
|
6344
|
+
onDrop: (info: import("ant-design-vue/es/tree").AntTreeNodeDropEvent) => void;
|
|
6304
6345
|
setExpandedKeys: (keys: KeyType[]) => void;
|
|
6305
6346
|
getExpandedKeys: () => KeyType[];
|
|
6306
6347
|
setSelectedKeys: (keys: KeyType[]) => void;
|
|
@@ -6402,25 +6443,66 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6402
6443
|
}>> & {
|
|
6403
6444
|
onSearch?: (...args: any[]) => any;
|
|
6404
6445
|
}, {
|
|
6405
|
-
|
|
6446
|
+
search: boolean;
|
|
6406
6447
|
title: string;
|
|
6448
|
+
checkable: boolean;
|
|
6407
6449
|
toolbar: boolean;
|
|
6408
|
-
search: boolean;
|
|
6409
6450
|
searchText: string;
|
|
6410
6451
|
checkAll: Function;
|
|
6411
6452
|
expandAll: Function;
|
|
6412
6453
|
}>;
|
|
6413
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:expandedKeys" | "update:selectedKeys" | "update:value" | "check" | "change" | "clickNode" | "update:searchValue")[], "update:expandedKeys" | "update:selectedKeys" | "update:value" | "check" | "change" | "clickNode" | "update:searchValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6454
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:expandedKeys" | "update:selectedKeys" | "update:value" | "check" | "change" | "clickNode" | "drop" | "update:searchValue")[], "update:expandedKeys" | "update:selectedKeys" | "update:value" | "check" | "change" | "clickNode" | "drop" | "update:searchValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6414
6455
|
defaultExpandLevel: {
|
|
6415
6456
|
type: StringConstructor;
|
|
6416
6457
|
};
|
|
6417
6458
|
defaultExpandAll: {
|
|
6418
6459
|
type: BooleanConstructor;
|
|
6419
6460
|
};
|
|
6461
|
+
height: {
|
|
6462
|
+
type: import("vue").PropType<String | Number>;
|
|
6463
|
+
};
|
|
6420
6464
|
showIcon: {
|
|
6421
6465
|
type: BooleanConstructor;
|
|
6422
6466
|
default: boolean;
|
|
6423
6467
|
};
|
|
6468
|
+
blockNode: {
|
|
6469
|
+
type: BooleanConstructor;
|
|
6470
|
+
default: boolean;
|
|
6471
|
+
};
|
|
6472
|
+
fieldNames: {
|
|
6473
|
+
type: import("vue").PropType<FieldNames>;
|
|
6474
|
+
default: {
|
|
6475
|
+
children: string;
|
|
6476
|
+
title: string;
|
|
6477
|
+
key: string;
|
|
6478
|
+
};
|
|
6479
|
+
};
|
|
6480
|
+
disabled: {
|
|
6481
|
+
type: BooleanConstructor;
|
|
6482
|
+
default: boolean;
|
|
6483
|
+
};
|
|
6484
|
+
draggable: {
|
|
6485
|
+
type: BooleanConstructor;
|
|
6486
|
+
default: boolean;
|
|
6487
|
+
};
|
|
6488
|
+
filterTreeNode: {
|
|
6489
|
+
type: import("vue").PropType<(node: Recordable<any>) => boolean>;
|
|
6490
|
+
};
|
|
6491
|
+
multiple: {
|
|
6492
|
+
type: BooleanConstructor;
|
|
6493
|
+
default: boolean;
|
|
6494
|
+
};
|
|
6495
|
+
selectable: {
|
|
6496
|
+
type: BooleanConstructor;
|
|
6497
|
+
default: boolean;
|
|
6498
|
+
};
|
|
6499
|
+
showLine: {
|
|
6500
|
+
type: BooleanConstructor;
|
|
6501
|
+
default: boolean;
|
|
6502
|
+
};
|
|
6503
|
+
activeKey: {
|
|
6504
|
+
type: import("vue").PropType<KeyType>;
|
|
6505
|
+
};
|
|
6424
6506
|
loading: {
|
|
6425
6507
|
type: BooleanConstructor;
|
|
6426
6508
|
default: boolean;
|
|
@@ -6441,9 +6523,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6441
6523
|
type: import("vue").PropType<CheckKeys>;
|
|
6442
6524
|
default: () => any[];
|
|
6443
6525
|
};
|
|
6444
|
-
fieldNames: {
|
|
6445
|
-
type: import("vue").PropType<FieldNames>;
|
|
6446
|
-
};
|
|
6447
6526
|
beforeRightClick: {
|
|
6448
6527
|
type: import("vue").PropType<(...arg: any) => import("./type/menu").ContextMenuItem[]>;
|
|
6449
6528
|
default: any;
|
|
@@ -6458,9 +6537,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6458
6537
|
type: import("vue").PropType<String | Boolean>;
|
|
6459
6538
|
default: boolean;
|
|
6460
6539
|
};
|
|
6461
|
-
|
|
6462
|
-
type: import("vue").PropType<
|
|
6463
|
-
default: () => any[];
|
|
6540
|
+
action: {
|
|
6541
|
+
type: import("vue").PropType<(record: Recordable<any>) => any>;
|
|
6464
6542
|
};
|
|
6465
6543
|
clickRowToExpand: {
|
|
6466
6544
|
type: BooleanConstructor;
|
|
@@ -6474,10 +6552,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6474
6552
|
type: import("vue").PropType<(searchValue: any, node: TreeItem, fieldNames: FieldNames) => boolean>;
|
|
6475
6553
|
default: any;
|
|
6476
6554
|
};
|
|
6477
|
-
checkable:
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6555
|
+
checkable: {
|
|
6556
|
+
type: BooleanConstructor;
|
|
6557
|
+
default: boolean;
|
|
6558
|
+
};
|
|
6559
|
+
expandOnSearch: {
|
|
6560
|
+
type: BooleanConstructor;
|
|
6561
|
+
default: boolean;
|
|
6562
|
+
};
|
|
6481
6563
|
treeData: {
|
|
6482
6564
|
type: import("vue").PropType<import("ant-design-vue/lib/tree").DataNode[]>;
|
|
6483
6565
|
};
|
|
@@ -6500,10 +6582,24 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6500
6582
|
onCheck?: (...args: any[]) => any;
|
|
6501
6583
|
onChange?: (...args: any[]) => any;
|
|
6502
6584
|
onClickNode?: (...args: any[]) => any;
|
|
6585
|
+
onDrop?: (...args: any[]) => any;
|
|
6503
6586
|
"onUpdate:searchValue"?: (...args: any[]) => any;
|
|
6504
6587
|
}, {
|
|
6588
|
+
search: boolean;
|
|
6589
|
+
title: string;
|
|
6505
6590
|
defaultExpandAll: boolean;
|
|
6506
6591
|
showIcon: boolean;
|
|
6592
|
+
blockNode: boolean;
|
|
6593
|
+
fieldNames: {
|
|
6594
|
+
children: string;
|
|
6595
|
+
title: string;
|
|
6596
|
+
key: string;
|
|
6597
|
+
};
|
|
6598
|
+
disabled: boolean;
|
|
6599
|
+
draggable: boolean;
|
|
6600
|
+
multiple: boolean;
|
|
6601
|
+
selectable: boolean;
|
|
6602
|
+
showLine: boolean;
|
|
6507
6603
|
loading: boolean;
|
|
6508
6604
|
checkStrictly: boolean;
|
|
6509
6605
|
expandedKeys: KeyType[];
|
|
@@ -6511,16 +6607,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6511
6607
|
checkedKeys: CheckKeys;
|
|
6512
6608
|
beforeRightClick: (...arg: any) => import("./type/menu").ContextMenuItem[];
|
|
6513
6609
|
highlight: String | Boolean;
|
|
6514
|
-
actionList: import("./type/tree").TreeActionItem[];
|
|
6515
6610
|
clickRowToExpand: boolean;
|
|
6516
6611
|
searchValue: string;
|
|
6517
6612
|
filterFn: (searchValue: any, node: TreeItem, fieldNames: FieldNames) => boolean;
|
|
6518
6613
|
checkable: boolean;
|
|
6519
6614
|
expandOnSearch: boolean;
|
|
6520
|
-
checkOnSearch: boolean;
|
|
6521
|
-
selectedOnSearch: boolean;
|
|
6522
|
-
title: string;
|
|
6523
6615
|
toolbar: boolean;
|
|
6524
|
-
search: boolean;
|
|
6525
6616
|
}>;
|
|
6526
6617
|
export default _sfc_main;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Recordable } from "@dt-frames/core";
|
|
1
2
|
export interface Axis {
|
|
2
3
|
x: number;
|
|
3
4
|
y: number;
|
|
@@ -21,6 +22,7 @@ export interface CreateContextOptions {
|
|
|
21
22
|
icon?: string;
|
|
22
23
|
styles?: any;
|
|
23
24
|
items?: ContextMenuItem[];
|
|
25
|
+
node?: Recordable;
|
|
24
26
|
}
|
|
25
27
|
export interface ContextMenuProps {
|
|
26
28
|
event?: MouseEvent;
|
|
@@ -30,4 +32,5 @@ export interface ContextMenuProps {
|
|
|
30
32
|
axis?: Axis;
|
|
31
33
|
width?: number;
|
|
32
34
|
showIcon?: boolean;
|
|
35
|
+
node?: Recordable;
|
|
33
36
|
}
|