@juzhenfe/page-model 3.14.10 → 3.14.12
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/dist/components/buttons-renderer/index.vue.d.ts +14 -11
- package/dist/components/buttons-renderer/utils/index.d.ts +2 -0
- package/dist/components/column-filter-tools/index.vue.d.ts +12 -6
- package/dist/components/column-sort-tools/index.vue.d.ts +13 -6
- package/dist/components/form/constructor.d.ts +9 -0
- package/dist/components/page-model/components/selectable-operate/index.vue.d.ts +14 -10
- package/dist/components/page-model/constructor.d.ts +16 -0
- package/dist/components/simple-popover/index.vue.d.ts +9 -4
- package/dist/components/table/components/context-menu/index.vue.d.ts +160 -0
- package/dist/components/table/components/table-column/index.vue.d.ts +9 -10
- package/dist/components/table/constructor.d.ts +18 -0
- package/dist/components/table/type.d.ts +160 -109
- package/dist/index.es.js +1266 -1040
- package/dist/index.min.css +1 -1
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import EventChain from "../../utils/event-chain";
|
|
2
1
|
import { Ref } from "vue";
|
|
3
2
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
3
|
els: {
|
|
@@ -14,6 +13,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
14
13
|
required: false;
|
|
15
14
|
default: () => any[];
|
|
16
15
|
};
|
|
16
|
+
direction: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
17
21
|
}, {
|
|
18
22
|
props: any;
|
|
19
23
|
isOpenAuthButton: Ref<boolean>;
|
|
@@ -21,15 +25,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
21
25
|
showEls: import("vue").ComputedRef<any>;
|
|
22
26
|
BEMSpace: string;
|
|
23
27
|
createBEMName: (name: string) => string;
|
|
24
|
-
emit: (event: "add" | "upd" | "del" | "custom", ...args: any[]) => void;
|
|
25
|
-
addButtonHandler: (button: PageModel.Button) => boolean;
|
|
26
|
-
updButtonHandler: (button: PageModel.Button) => boolean;
|
|
27
|
-
delButtonHandler: (button: PageModel.Button) => boolean;
|
|
28
|
-
importButtonHandler: (button: PageModel.Button) => boolean;
|
|
29
|
-
copyButtonHandler: (button: PageModel.Button) => boolean;
|
|
30
|
-
eventButtonHandler: (button: PageModel.Button) => boolean;
|
|
31
|
-
eventChain: EventChain;
|
|
32
|
-
execButtonClickEvent: (button: PageModel.Button) => void;
|
|
28
|
+
emit: (event: "add" | "upd" | "del" | "custom" | "count-change", ...args: any[]) => void;
|
|
33
29
|
handleCommand: (command: string) => void;
|
|
34
30
|
handleButtonClick: (index: number) => void;
|
|
35
31
|
readonly ArrowDown: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
@@ -51,7 +47,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
51
47
|
};
|
|
52
48
|
render(): any;
|
|
53
49
|
};
|
|
54
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "upd" | "del" | "custom")[], "add" | "upd" | "del" | "custom", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "upd" | "del" | "custom" | "count-change")[], "add" | "upd" | "del" | "custom" | "count-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
51
|
els: {
|
|
56
52
|
type: ArrayConstructor;
|
|
57
53
|
required: true;
|
|
@@ -65,14 +61,21 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
65
61
|
required: false;
|
|
66
62
|
default: () => any[];
|
|
67
63
|
};
|
|
64
|
+
direction: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
required: false;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
68
69
|
}>> & {
|
|
69
70
|
onAdd?: (...args: any[]) => any;
|
|
70
71
|
onUpd?: (...args: any[]) => any;
|
|
71
72
|
onDel?: (...args: any[]) => any;
|
|
72
73
|
onImport?: (...args: any[]) => any;
|
|
73
74
|
onCustom?: (...args: any[]) => any;
|
|
75
|
+
"onCount-change"?: (...args: any[]) => any;
|
|
74
76
|
}, {
|
|
75
77
|
context: any;
|
|
76
78
|
executeData: unknown[];
|
|
79
|
+
direction: string;
|
|
77
80
|
}, {}>;
|
|
78
81
|
export default _sfc_main;
|
|
@@ -6,7 +6,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6
6
|
};
|
|
7
7
|
}, {
|
|
8
8
|
props: any;
|
|
9
|
-
emit: (event: "screen", ...args: any[]) => void;
|
|
9
|
+
emit: (event: "closed" | "screen", ...args: any[]) => void;
|
|
10
10
|
BEMSpace: string;
|
|
11
11
|
createBEMName: (name: string) => string;
|
|
12
12
|
filterColumnList: import("vue").Ref<any[]>;
|
|
@@ -53,9 +53,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
53
53
|
}, {
|
|
54
54
|
BEMSpace: string;
|
|
55
55
|
props: any;
|
|
56
|
+
emit: (event: "closed", ...args: any[]) => void;
|
|
56
57
|
nextZIndex: () => number;
|
|
57
58
|
visible: import("vue").Ref<boolean>;
|
|
58
59
|
isRender: import("vue").Ref<boolean>;
|
|
60
|
+
hideTimer: any;
|
|
61
|
+
triggerType: "element" | "rect";
|
|
59
62
|
currentTriggerElement: HTMLElement;
|
|
60
63
|
popoverRectInfo: import("vue").Ref<any>;
|
|
61
64
|
getPopoverTriggerElementRectInfo: (element: HTMLElement) => void;
|
|
@@ -71,14 +74,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
71
74
|
}>;
|
|
72
75
|
isChildElement: (rootElement: HTMLElement, childElement: HTMLElement) => boolean;
|
|
73
76
|
isPopperChildElement: (element: HTMLElement) => boolean;
|
|
74
|
-
|
|
77
|
+
handleClickElement: (e: Event) => void;
|
|
75
78
|
handleResize: (...rest: any[]) => void;
|
|
76
79
|
bindEvent: () => void;
|
|
77
80
|
unbindEvent: () => void;
|
|
78
81
|
hide: () => void;
|
|
79
82
|
zIndex: import("vue").Ref<number>;
|
|
80
|
-
show: (element: HTMLElement) => void;
|
|
81
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
83
|
+
show: (element: HTMLElement | DOMRect) => void;
|
|
84
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closed"[], "closed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
82
85
|
width: {
|
|
83
86
|
type: NumberConstructor;
|
|
84
87
|
required: false;
|
|
@@ -89,7 +92,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
89
92
|
required: false;
|
|
90
93
|
default: string;
|
|
91
94
|
};
|
|
92
|
-
}
|
|
95
|
+
}>> & {
|
|
96
|
+
onClosed?: (...args: any[]) => any;
|
|
97
|
+
}, {
|
|
93
98
|
width: number;
|
|
94
99
|
placement: string;
|
|
95
100
|
}, {}>;
|
|
@@ -110,12 +115,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
110
115
|
value: FilterMatchModeEnum;
|
|
111
116
|
}[];
|
|
112
117
|
};
|
|
113
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "screen"[], "screen", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
118
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "screen")[], "closed" | "screen", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
114
119
|
manager: {
|
|
115
120
|
type: any;
|
|
116
121
|
required: false;
|
|
117
122
|
};
|
|
118
123
|
}>> & {
|
|
124
|
+
onClosed?: (...args: any[]) => any;
|
|
119
125
|
onScreen?: (...args: any[]) => any;
|
|
120
126
|
}, {
|
|
121
127
|
manager: any;
|
|
@@ -5,7 +5,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
5
5
|
};
|
|
6
6
|
}, {
|
|
7
7
|
props: any;
|
|
8
|
-
emit: (event: "screen", ...args: any[]) => void;
|
|
8
|
+
emit: (event: "closed" | "screen", ...args: any[]) => void;
|
|
9
9
|
BEMSpace: string;
|
|
10
10
|
createBEMName: (name: string) => string;
|
|
11
11
|
columnFieldList: import("vue").Ref<{
|
|
@@ -33,6 +33,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
33
33
|
getAddFilterItem: (field: string) => PageModel.TableColumnSortParamsItem;
|
|
34
34
|
handleFieldChange: (index: number, prop: string) => void;
|
|
35
35
|
handleSelectSortItem: (item: PageModel.TableColumnSortParamsItem, sortValue: PageModel.SortOption) => void;
|
|
36
|
+
popoverRef: import("vue").Ref<any>;
|
|
36
37
|
handleClickSelect: (addProp: string) => void;
|
|
37
38
|
handleRemoveItem: (index: number) => void;
|
|
38
39
|
handleClear: () => void;
|
|
@@ -51,9 +52,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
51
52
|
}, {
|
|
52
53
|
BEMSpace: string;
|
|
53
54
|
props: any;
|
|
55
|
+
emit: (event: "closed", ...args: any[]) => void;
|
|
54
56
|
nextZIndex: () => number;
|
|
55
57
|
visible: import("vue").Ref<boolean>;
|
|
56
58
|
isRender: import("vue").Ref<boolean>;
|
|
59
|
+
hideTimer: any;
|
|
60
|
+
triggerType: "element" | "rect";
|
|
57
61
|
currentTriggerElement: HTMLElement;
|
|
58
62
|
popoverRectInfo: import("vue").Ref<any>;
|
|
59
63
|
getPopoverTriggerElementRectInfo: (element: HTMLElement) => void;
|
|
@@ -69,14 +73,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
69
73
|
}>;
|
|
70
74
|
isChildElement: (rootElement: HTMLElement, childElement: HTMLElement) => boolean;
|
|
71
75
|
isPopperChildElement: (element: HTMLElement) => boolean;
|
|
72
|
-
|
|
76
|
+
handleClickElement: (e: Event) => void;
|
|
73
77
|
handleResize: (...rest: any[]) => void;
|
|
74
78
|
bindEvent: () => void;
|
|
75
79
|
unbindEvent: () => void;
|
|
76
80
|
hide: () => void;
|
|
77
81
|
zIndex: import("vue").Ref<number>;
|
|
78
|
-
show: (element: HTMLElement) => void;
|
|
79
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
82
|
+
show: (element: HTMLElement | DOMRect) => void;
|
|
83
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closed"[], "closed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
80
84
|
width: {
|
|
81
85
|
type: NumberConstructor;
|
|
82
86
|
required: false;
|
|
@@ -87,7 +91,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
87
91
|
required: false;
|
|
88
92
|
default: string;
|
|
89
93
|
};
|
|
90
|
-
}
|
|
94
|
+
}>> & {
|
|
95
|
+
onClosed?: (...args: any[]) => any;
|
|
96
|
+
}, {
|
|
91
97
|
width: number;
|
|
92
98
|
placement: string;
|
|
93
99
|
}, {}>;
|
|
@@ -132,12 +138,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
132
138
|
}>> & {
|
|
133
139
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
134
140
|
}, {}, {}>;
|
|
135
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "screen"[], "screen", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
141
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "screen")[], "closed" | "screen", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
136
142
|
manager: {
|
|
137
143
|
type: any;
|
|
138
144
|
required: false;
|
|
139
145
|
};
|
|
140
146
|
}>> & {
|
|
147
|
+
onClosed?: (...args: any[]) => any;
|
|
141
148
|
onScreen?: (...args: any[]) => any;
|
|
142
149
|
}, {
|
|
143
150
|
manager: any;
|
|
@@ -41,6 +41,15 @@ export default class FormManager<MODEL = AnyObject> extends IManager {
|
|
|
41
41
|
title: string;
|
|
42
42
|
message: string;
|
|
43
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* 表单弹窗是否可见
|
|
46
|
+
*/
|
|
47
|
+
isFormVisible: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 设置表单弹窗的可见性
|
|
50
|
+
* @param visible 是否可见
|
|
51
|
+
*/
|
|
52
|
+
updateFormVisible(visible: boolean): void;
|
|
44
53
|
/**
|
|
45
54
|
* 更新表单数据
|
|
46
55
|
* @param formData
|
|
@@ -28,6 +28,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
28
28
|
required: false;
|
|
29
29
|
default: () => any[];
|
|
30
30
|
};
|
|
31
|
+
direction: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
required: false;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
31
36
|
}, {
|
|
32
37
|
props: any;
|
|
33
38
|
isOpenAuthButton: import("vue").Ref<boolean>;
|
|
@@ -35,15 +40,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
35
40
|
showEls: import("vue").ComputedRef<any>;
|
|
36
41
|
BEMSpace: string;
|
|
37
42
|
createBEMName: (name: string) => string;
|
|
38
|
-
emit: (event: "add" | "upd" | "del" | "custom", ...args: any[]) => void;
|
|
39
|
-
addButtonHandler: (button: PageModel.Button<AnyObject, any>) => boolean;
|
|
40
|
-
updButtonHandler: (button: PageModel.Button<AnyObject, any>) => boolean;
|
|
41
|
-
delButtonHandler: (button: PageModel.Button<AnyObject, any>) => boolean;
|
|
42
|
-
importButtonHandler: (button: PageModel.Button<AnyObject, any>) => boolean;
|
|
43
|
-
copyButtonHandler: (button: PageModel.Button<AnyObject, any>) => boolean;
|
|
44
|
-
eventButtonHandler: (button: PageModel.Button<AnyObject, any>) => boolean;
|
|
45
|
-
eventChain: import("../../../../utils/event-chain").default;
|
|
46
|
-
execButtonClickEvent: (button: PageModel.Button<AnyObject, any>) => void;
|
|
43
|
+
emit: (event: "add" | "upd" | "del" | "custom" | "count-change", ...args: any[]) => void;
|
|
47
44
|
handleCommand: (command: string) => void;
|
|
48
45
|
handleButtonClick: (index: number) => void;
|
|
49
46
|
readonly ArrowDown: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
@@ -65,7 +62,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
65
62
|
};
|
|
66
63
|
render(): any;
|
|
67
64
|
};
|
|
68
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "upd" | "del" | "custom")[], "add" | "upd" | "del" | "custom", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "upd" | "del" | "custom" | "count-change")[], "add" | "upd" | "del" | "custom" | "count-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
69
66
|
els: {
|
|
70
67
|
type: ArrayConstructor;
|
|
71
68
|
required: true;
|
|
@@ -79,15 +76,22 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
79
76
|
required: false;
|
|
80
77
|
default: () => any[];
|
|
81
78
|
};
|
|
79
|
+
direction: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
required: false;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
82
84
|
}>> & {
|
|
83
85
|
onAdd?: (...args: any[]) => any;
|
|
84
86
|
onUpd?: (...args: any[]) => any;
|
|
85
87
|
onDel?: (...args: any[]) => any;
|
|
86
88
|
onImport?: (...args: any[]) => any;
|
|
87
89
|
onCustom?: (...args: any[]) => any;
|
|
90
|
+
"onCount-change"?: (...args: any[]) => any;
|
|
88
91
|
}, {
|
|
89
92
|
context: any;
|
|
90
93
|
executeData: unknown[];
|
|
94
|
+
direction: string;
|
|
91
95
|
}, {}>;
|
|
92
96
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
93
97
|
els: {
|
|
@@ -121,5 +121,21 @@ export default class PageModelManager extends Reflections {
|
|
|
121
121
|
exposeActions: {
|
|
122
122
|
[key: string]: (...rest: any[]) => unknown;
|
|
123
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
* 筛选弹出框是否可见
|
|
126
|
+
*/
|
|
127
|
+
isFilterPopupVisible: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* 设置筛选弹出可见性
|
|
130
|
+
*/
|
|
131
|
+
updateFilterPopupVisible(visible: boolean): void;
|
|
132
|
+
/**
|
|
133
|
+
* 排序弹出框是否可见
|
|
134
|
+
*/
|
|
135
|
+
isSortPopupVisible: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* 设置排序弹出可见性
|
|
138
|
+
*/
|
|
139
|
+
updateSortPopupVisible(visible: boolean): void;
|
|
124
140
|
destroy(): void;
|
|
125
141
|
}
|
|
@@ -12,9 +12,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
12
12
|
}, {
|
|
13
13
|
BEMSpace: string;
|
|
14
14
|
props: any;
|
|
15
|
+
emit: (event: "closed", ...args: any[]) => void;
|
|
15
16
|
nextZIndex: () => number;
|
|
16
17
|
visible: import("vue").Ref<boolean>;
|
|
17
18
|
isRender: import("vue").Ref<boolean>;
|
|
19
|
+
hideTimer: any;
|
|
20
|
+
triggerType: "element" | "rect";
|
|
18
21
|
currentTriggerElement: HTMLElement;
|
|
19
22
|
popoverRectInfo: import("vue").Ref<any>;
|
|
20
23
|
getPopoverTriggerElementRectInfo: (element: HTMLElement) => void;
|
|
@@ -30,14 +33,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
30
33
|
}>;
|
|
31
34
|
isChildElement: (rootElement: HTMLElement, childElement: HTMLElement) => boolean;
|
|
32
35
|
isPopperChildElement: (element: HTMLElement) => boolean;
|
|
33
|
-
|
|
36
|
+
handleClickElement: (e: Event) => void;
|
|
34
37
|
handleResize: (...rest: any[]) => void;
|
|
35
38
|
bindEvent: () => void;
|
|
36
39
|
unbindEvent: () => void;
|
|
37
40
|
hide: () => void;
|
|
38
41
|
zIndex: import("vue").Ref<number>;
|
|
39
|
-
show: (element: HTMLElement) => void;
|
|
40
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
42
|
+
show: (element: HTMLElement | DOMRect) => void;
|
|
43
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closed"[], "closed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
44
|
width: {
|
|
42
45
|
type: NumberConstructor;
|
|
43
46
|
required: false;
|
|
@@ -48,7 +51,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
48
51
|
required: false;
|
|
49
52
|
default: string;
|
|
50
53
|
};
|
|
51
|
-
}
|
|
54
|
+
}>> & {
|
|
55
|
+
onClosed?: (...args: any[]) => any;
|
|
56
|
+
}, {
|
|
52
57
|
width: number;
|
|
53
58
|
placement: string;
|
|
54
59
|
}, {}>;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
emit: (event: "add" | "upd" | "del" | "custom", ...args: any[]) => void;
|
|
3
|
+
simplePopoverRef: import("vue").Ref<any>;
|
|
4
|
+
currentOpt: import("vue").Ref<any>;
|
|
5
|
+
buttonCount: import("vue").Ref<number>;
|
|
6
|
+
handleCountChange: (count: number) => void;
|
|
7
|
+
contextMenuHeight: import("vue").ComputedRef<string>;
|
|
8
|
+
show: (event: MouseEvent, opt: {
|
|
9
|
+
els: any[];
|
|
10
|
+
context?: any;
|
|
11
|
+
executeData?: any[];
|
|
12
|
+
}) => void;
|
|
13
|
+
hide: () => void;
|
|
14
|
+
handleItemClick: (item: any, index: number) => void;
|
|
15
|
+
SimplePopover: import("vue").DefineComponent<{
|
|
16
|
+
width: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
placement: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: false;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
BEMSpace: string;
|
|
28
|
+
props: any;
|
|
29
|
+
emit: (event: "closed", ...args: any[]) => void;
|
|
30
|
+
nextZIndex: () => number;
|
|
31
|
+
visible: import("vue").Ref<boolean>;
|
|
32
|
+
isRender: import("vue").Ref<boolean>;
|
|
33
|
+
hideTimer: any;
|
|
34
|
+
triggerType: "element" | "rect";
|
|
35
|
+
currentTriggerElement: HTMLElement;
|
|
36
|
+
popoverRectInfo: import("vue").Ref<any>;
|
|
37
|
+
getPopoverTriggerElementRectInfo: (element: HTMLElement) => void;
|
|
38
|
+
popoverRef: import("vue").Ref<HTMLElement>;
|
|
39
|
+
popoverStyle: import("vue").ComputedRef<{
|
|
40
|
+
top?: undefined;
|
|
41
|
+
left?: undefined;
|
|
42
|
+
width?: undefined;
|
|
43
|
+
} | {
|
|
44
|
+
top: string;
|
|
45
|
+
left: string;
|
|
46
|
+
width: string;
|
|
47
|
+
}>;
|
|
48
|
+
isChildElement: (rootElement: HTMLElement, childElement: HTMLElement) => boolean;
|
|
49
|
+
isPopperChildElement: (element: HTMLElement) => boolean;
|
|
50
|
+
handleClickElement: (e: Event) => void;
|
|
51
|
+
handleResize: (...rest: any[]) => void;
|
|
52
|
+
bindEvent: () => void;
|
|
53
|
+
unbindEvent: () => void;
|
|
54
|
+
hide: () => void;
|
|
55
|
+
zIndex: import("vue").Ref<number>;
|
|
56
|
+
show: (element: HTMLElement | DOMRect) => void;
|
|
57
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closed"[], "closed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
width: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
required: false;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
placement: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
required: false;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
}>> & {
|
|
69
|
+
onClosed?: (...args: any[]) => any;
|
|
70
|
+
}, {
|
|
71
|
+
width: number;
|
|
72
|
+
placement: string;
|
|
73
|
+
}, {}>;
|
|
74
|
+
ButtonRenderer: import("vue").DefineComponent<{
|
|
75
|
+
els: {
|
|
76
|
+
type: ArrayConstructor;
|
|
77
|
+
required: true;
|
|
78
|
+
};
|
|
79
|
+
context: {
|
|
80
|
+
type: any;
|
|
81
|
+
required: false;
|
|
82
|
+
};
|
|
83
|
+
executeData: {
|
|
84
|
+
type: ArrayConstructor;
|
|
85
|
+
required: false;
|
|
86
|
+
default: () => any[];
|
|
87
|
+
};
|
|
88
|
+
direction: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
required: false;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
}, {
|
|
94
|
+
props: any;
|
|
95
|
+
isOpenAuthButton: import("vue").Ref<boolean>;
|
|
96
|
+
authButtons: import("vue").Ref<string[]>;
|
|
97
|
+
showEls: import("vue").ComputedRef<any>;
|
|
98
|
+
BEMSpace: string;
|
|
99
|
+
createBEMName: (name: string) => string;
|
|
100
|
+
emit: (event: "add" | "upd" | "del" | "custom" | "count-change", ...args: any[]) => void;
|
|
101
|
+
handleCommand: (command: string) => void;
|
|
102
|
+
handleButtonClick: (index: number) => void;
|
|
103
|
+
readonly ArrowDown: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
104
|
+
ButtonItemRender: {
|
|
105
|
+
name: string;
|
|
106
|
+
props: {
|
|
107
|
+
text: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
renderFn: {
|
|
112
|
+
type: FunctionConstructor;
|
|
113
|
+
default: any;
|
|
114
|
+
};
|
|
115
|
+
context: {
|
|
116
|
+
type: ObjectConstructor;
|
|
117
|
+
default: any;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
render(): any;
|
|
121
|
+
};
|
|
122
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "upd" | "del" | "custom" | "count-change")[], "add" | "upd" | "del" | "custom" | "count-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
123
|
+
els: {
|
|
124
|
+
type: ArrayConstructor;
|
|
125
|
+
required: true;
|
|
126
|
+
};
|
|
127
|
+
context: {
|
|
128
|
+
type: any;
|
|
129
|
+
required: false;
|
|
130
|
+
};
|
|
131
|
+
executeData: {
|
|
132
|
+
type: ArrayConstructor;
|
|
133
|
+
required: false;
|
|
134
|
+
default: () => any[];
|
|
135
|
+
};
|
|
136
|
+
direction: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
required: false;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
}>> & {
|
|
142
|
+
onAdd?: (...args: any[]) => any;
|
|
143
|
+
onUpd?: (...args: any[]) => any;
|
|
144
|
+
onDel?: (...args: any[]) => any;
|
|
145
|
+
onImport?: (...args: any[]) => any;
|
|
146
|
+
onCustom?: (...args: any[]) => any;
|
|
147
|
+
"onCount-change"?: (...args: any[]) => any;
|
|
148
|
+
}, {
|
|
149
|
+
context: any;
|
|
150
|
+
executeData: unknown[];
|
|
151
|
+
direction: string;
|
|
152
|
+
}, {}>;
|
|
153
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("add" | "upd" | "del" | "custom")[], "add" | "upd" | "del" | "custom", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
154
|
+
onAdd?: (...args: any[]) => any;
|
|
155
|
+
onUpd?: (...args: any[]) => any;
|
|
156
|
+
onDel?: (...args: any[]) => any;
|
|
157
|
+
onImport?: (...args: any[]) => any;
|
|
158
|
+
onCustom?: (...args: any[]) => any;
|
|
159
|
+
}, {}, {}>;
|
|
160
|
+
export default _sfc_main;
|
|
@@ -164,17 +164,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
164
164
|
default: string;
|
|
165
165
|
};
|
|
166
166
|
}, {
|
|
167
|
-
/**
|
|
168
|
-
* 弹出层组件实例
|
|
169
|
-
*/
|
|
170
167
|
BEMSpace: string;
|
|
171
168
|
props: any;
|
|
169
|
+
emit: (event: "closed", ...args: any[]) => void;
|
|
172
170
|
nextZIndex: () => number;
|
|
173
171
|
visible: import("vue").Ref<boolean>;
|
|
174
172
|
isRender: import("vue").Ref<boolean>;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
*/
|
|
173
|
+
hideTimer: any;
|
|
174
|
+
triggerType: "element" | "rect";
|
|
178
175
|
currentTriggerElement: HTMLElement;
|
|
179
176
|
popoverRectInfo: import("vue").Ref<any>;
|
|
180
177
|
getPopoverTriggerElementRectInfo: (element: HTMLElement) => void;
|
|
@@ -190,14 +187,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
190
187
|
}>;
|
|
191
188
|
isChildElement: (rootElement: HTMLElement, childElement: HTMLElement) => boolean;
|
|
192
189
|
isPopperChildElement: (element: HTMLElement) => boolean;
|
|
193
|
-
|
|
190
|
+
handleClickElement: (e: Event) => void;
|
|
194
191
|
handleResize: (...rest: any[]) => void;
|
|
195
192
|
bindEvent: () => void;
|
|
196
193
|
unbindEvent: () => void;
|
|
197
194
|
hide: () => void;
|
|
198
195
|
zIndex: import("vue").Ref<number>;
|
|
199
|
-
show: (element: HTMLElement) => void;
|
|
200
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
196
|
+
show: (element: HTMLElement | DOMRect) => void;
|
|
197
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closed"[], "closed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
201
198
|
width: {
|
|
202
199
|
type: NumberConstructor;
|
|
203
200
|
required: false;
|
|
@@ -208,7 +205,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
208
205
|
required: false;
|
|
209
206
|
default: string;
|
|
210
207
|
};
|
|
211
|
-
}
|
|
208
|
+
}>> & {
|
|
209
|
+
onClosed?: (...args: any[]) => any;
|
|
210
|
+
}, {
|
|
212
211
|
width: number;
|
|
213
212
|
placement: string;
|
|
214
213
|
}, {}>;
|
|
@@ -45,6 +45,14 @@ export default class TableManager extends IManager {
|
|
|
45
45
|
* 获取本地的表格的列筛选参数
|
|
46
46
|
*/
|
|
47
47
|
initColumnSortParams(): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 是否当前列字段工具可见
|
|
50
|
+
*/
|
|
51
|
+
isColumnToolsVisible: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* * 切换列字段工具的可见
|
|
54
|
+
*/
|
|
55
|
+
updateColumnToolsVisible(visible: boolean): void;
|
|
48
56
|
get table(): PageModel.Table<AnyObject, TableManager>;
|
|
49
57
|
/**
|
|
50
58
|
* config配置的rowKey
|
|
@@ -124,6 +132,10 @@ export default class TableManager extends IManager {
|
|
|
124
132
|
getValidSelections(selections: any[]): any[];
|
|
125
133
|
patchTableSelectable(): void;
|
|
126
134
|
patchTableRadio(): void;
|
|
135
|
+
/**
|
|
136
|
+
* 设置上下文菜单
|
|
137
|
+
*/
|
|
138
|
+
patchTableContextMenu(): boolean;
|
|
127
139
|
patchTableSortable(): void;
|
|
128
140
|
/**
|
|
129
141
|
* 构建单元格的唯一key
|
|
@@ -279,5 +291,11 @@ export default class TableManager extends IManager {
|
|
|
279
291
|
updateScrollTop(top: any): void;
|
|
280
292
|
scrollLeft: number;
|
|
281
293
|
updateScrollLeft(left: any): void;
|
|
294
|
+
/**
|
|
295
|
+
* 组件暴露的方法
|
|
296
|
+
*/
|
|
297
|
+
exposeActions: {
|
|
298
|
+
[key: string]: (...rest: any[]) => unknown;
|
|
299
|
+
};
|
|
282
300
|
destroy(): void;
|
|
283
301
|
}
|