cosey 0.7.5 → 0.7.6
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/components/audio-card/audio-card.api.d.ts +1 -1
- package/components/audio-card/audio-card.d.ts +2 -2
- package/components/audio-card/index.d.ts +3 -3
- package/components/config-provider/config-provider.js +11 -4
- package/components/config-provider/override-element-plus.js +19 -7
- package/components/copy/copy.api.d.ts +6 -1
- package/components/copy/copy.api.js +4 -0
- package/components/copy/copy.d.ts +11 -1
- package/components/copy/copy.js +1 -0
- package/components/copy/index.d.ts +21 -3
- package/components/editor/editor.js +1 -1
- package/components/field/components/number-range/number-range.d.ts +3 -3
- package/components/field/components/number-range/number-range.vue.js +1 -1
- package/components/field/components/radio-group/radio-group.d.ts +1 -1
- package/components/field/field.api.d.ts +1 -0
- package/components/field/field.api.js +1 -0
- package/components/field/index.js +1 -0
- package/components/file-card/file-card.api.d.ts +1 -1
- package/components/file-card/file-card.d.ts +2 -2
- package/components/file-card/index.d.ts +3 -3
- package/components/form/form-item.api.d.ts +2 -1
- package/components/form/form-item.api.js +2 -1
- package/components/form/form-item.vue.js +4 -4
- package/components/form/index.d.ts +1 -1
- package/components/form/useBubbleTemplate.d.ts +3 -1
- package/components/form/useBubbleTemplate.js +1 -1
- package/components/form-dialog/form-dialog.api.d.ts +237 -0
- package/components/form-dialog/form-dialog.api.js +53 -0
- package/components/form-dialog/form-dialog.d.ts +221 -59
- package/components/form-dialog/form-dialog.js +53 -46
- package/components/form-dialog/index.d.ts +2 -2
- package/components/form-dialog/index.js +2 -2
- package/components/form-dialog/useFormDialogWidth.d.ts +1 -1
- package/components/form-dialog/useFormDialogWidth.js +1 -1
- package/components/form-drawer/form-drawer.api.d.ts +226 -0
- package/components/form-drawer/form-drawer.api.js +26 -0
- package/components/form-drawer/form-drawer.d.ts +273 -43
- package/components/form-drawer/form-drawer.js +54 -11
- package/components/form-drawer/index.d.ts +44 -76
- package/components/form-drawer/index.js +2 -2
- package/components/form-group/form-group.api.d.ts +73 -0
- package/components/form-group/form-group.api.js +41 -0
- package/components/form-group/form-group.d.ts +143 -14
- package/components/form-group/form-group.js +69 -0
- package/components/{input-number-range/style/index.d.ts → form-group/form-group.style.d.ts} +1 -1
- package/components/form-group/{style/index.js → form-group.style.js} +2 -2
- package/components/form-group/index.d.ts +230 -22
- package/components/form-group/index.js +2 -1
- package/components/form-list/form-list.api.d.ts +1 -0
- package/components/form-query/form-query.api.js +1 -1
- package/components/image-card/image-card.api.d.ts +1 -1
- package/components/image-card/image-card.d.ts +2 -2
- package/components/image-card/index.d.ts +3 -3
- package/components/index.js +8 -6
- package/components/input-number-range/index.d.ts +118 -15
- package/components/input-number-range/index.js +2 -2
- package/components/input-number-range/input-number-range.api.d.ts +43 -0
- package/components/input-number-range/input-number-range.api.js +44 -0
- package/components/input-number-range/input-number-range.d.ts +79 -24
- package/components/input-number-range/input-number-range.js +109 -4
- package/components/{long-text/style/index.d.ts → input-number-range/input-number-range.style.d.ts} +1 -1
- package/components/input-number-range/{style/index.js → input-number-range.style.js} +1 -1
- package/components/long-text/index.d.ts +63 -17
- package/components/long-text/index.js +2 -2
- package/components/long-text/long-text.api.d.ts +23 -0
- package/components/long-text/long-text.api.js +20 -0
- package/components/long-text/long-text.d.ts +38 -14
- package/components/long-text/long-text.js +56 -6
- package/components/{scroll-view/style/index.d.ts → long-text/long-text.style.d.ts} +1 -1
- package/components/long-text/{style/index.js → long-text.style.js} +2 -2
- package/components/media-card/index.d.ts +3 -3
- package/components/media-card/media-card.api.d.ts +2 -2
- package/components/media-card/media-card.d.ts +2 -2
- package/components/media-card/media-card.style.js +2 -1
- package/components/panel/panel.api.d.ts +2 -5
- package/components/remote-select/index.d.ts +6 -6
- package/components/remote-select/remote-select.api.d.ts +1 -1
- package/components/remote-select/remote-select.d.ts +2 -2
- package/components/remote-select/remote-select.js +1 -1
- package/components/scroll-view/index.d.ts +5 -5
- package/components/scroll-view/scroll-view.style.d.ts +4 -0
- package/components/scroll-view/{style/index.js → scroll-view.style.js} +1 -1
- package/components/scroll-view/scroll-view.vue.d.ts +1 -1
- package/components/scroll-view/scroll-view.vue.js +1 -1
- package/components/stack-dialog/index.d.ts +609 -4
- package/components/stack-dialog/index.js +2 -2
- package/components/stack-dialog/stack-dialog.api.d.ts +200 -0
- package/components/stack-dialog/stack-dialog.api.js +65 -0
- package/components/stack-dialog/stack-dialog.d.ts +204 -30
- package/components/stack-dialog/stack-dialog.js +67 -59
- package/components/svga-card/index.d.ts +3 -3
- package/components/svga-card/svga-card.api.d.ts +1 -1
- package/components/svga-card/svga-card.d.ts +2 -2
- package/components/table/index.d.ts +4 -4
- package/components/table/index.js +1 -1
- package/components/table/table-column/table-column.d.ts +3 -3
- package/components/table/table-column-editor/table-column-editor.api.d.ts +17 -0
- package/components/table/table-column-editor/table-column-editor.api.js +15 -0
- package/components/table/table-column-editor/table-column-editor.d.ts +26 -11
- package/components/table/table-column-editor/table-column-editor.js +154 -4
- package/components/table/table-export/item.d.ts +15 -0
- package/components/table/table-export/item.js +37 -0
- package/components/table/table-export/list.d.ts +15 -0
- package/components/table/table-export/list.js +27 -0
- package/components/table/table-export/table-export.api.d.ts +208 -0
- package/components/table/table-export/table-export.api.js +32 -0
- package/components/table/table-export/table-export.d.ts +262 -35
- package/components/table/table-export/table-export.js +238 -26
- package/components/table/table-export/{style/index.js → table-export.style.js} +1 -1
- package/components/table/table-query/table-query.api.d.ts +172 -0
- package/components/table/table-query/table-query.api.js +31 -0
- package/components/table/table-query/table-query.d.ts +207 -44
- package/components/table/table-query/table-query.js +84 -24
- package/components/table/table-stats/table-stats.api.d.ts +17 -0
- package/components/table/table-stats/table-stats.api.js +12 -0
- package/components/table/table-stats/table-stats.d.ts +23 -14
- package/components/table/table-stats/table-stats.js +37 -5
- package/components/table/table.d.ts +2 -2
- package/components/table/table.js +1 -1
- package/components/table/table.vue.d.ts +2 -2
- package/components/table/table.vue.js +10 -9
- package/components/theme/getGlobalStyleHook.js +2 -22
- package/components/transition-group/index.d.ts +3 -3
- package/components/transition-group/transition-group.d.ts +1 -1
- package/components/upload/upload.js +1 -1
- package/components/video-card/index.d.ts +3 -3
- package/components/video-card/video-card.api.d.ts +1 -1
- package/components/video-card/video-card.d.ts +2 -2
- package/config/root-config-provider.js +1 -1
- package/hooks/useColorScheme.d.ts +2 -2
- package/hooks/useColorScheme.js +1 -1
- package/index.js +7 -2
- package/layout/layout-header/style/index.js +1 -1
- package/package.json +4 -5
- package/router/index.d.ts +1 -0
- package/router/index.js +4 -3
- package/types/helper.d.ts +8 -0
- package/utils/index.js +1 -0
- package/utils/warning.d.ts +2 -0
- package/utils/warning.js +2 -0
- package/components/form-dialog/form-dialog.vue.js +0 -63
- package/components/form-drawer/form-drawer.vue.d.ts +0 -482
- package/components/form-drawer/form-drawer.vue.js +0 -64
- package/components/form-group/form-group.vue.d.ts +0 -19
- package/components/form-group/form-group.vue.js +0 -139
- package/components/input-number-range/input-number-range.vue.d.ts +0 -18
- package/components/input-number-range/input-number-range.vue.js +0 -166
- package/components/long-text/long-text.vue.d.ts +0 -14
- package/components/long-text/long-text.vue.js +0 -94
- package/components/stack-dialog/stack-dialog.vue.js +0 -75
- package/components/table/table-column-editor/table-column-editor.vue.d.ts +0 -22
- package/components/table/table-column-editor/table-column-editor.vue.js +0 -188
- package/components/table/table-export/item.vue.d.ts +0 -7
- package/components/table/table-export/item.vue.js +0 -41
- package/components/table/table-export/list.vue.d.ts +0 -7
- package/components/table/table-export/list.vue.js +0 -32
- package/components/table/table-export/style/index.d.ts +0 -4
- package/components/table/table-export/table-export.vue.d.ts +0 -428
- package/components/table/table-export/table-export.vue.js +0 -250
- package/components/table/table-query/table-query.vue.d.ts +0 -349
- package/components/table/table-query/table-query.vue.js +0 -92
- package/components/table/table-stats/table-stats.vue.d.ts +0 -6
- package/components/table/table-stats/table-stats.vue.js +0 -52
- /package/components/scroll-view/{scroll-view.d.ts → scroll-view.api.d.ts} +0 -0
- /package/components/scroll-view/{scroll-view.js → scroll-view.api.js} +0 -0
- /package/components/{form-group/style/index.d.ts → table/table-export/table-export.style.d.ts} +0 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { type DialogInstance } from 'element-plus';
|
|
2
|
+
import { type ExtractPropTypes, type SlotsType } from 'vue';
|
|
3
|
+
import { type ElDialogSlots } from '../form-dialog';
|
|
4
|
+
export declare const stackDialogProps: {
|
|
5
|
+
appendToBody: BooleanConstructor;
|
|
6
|
+
appendTo: {
|
|
7
|
+
readonly type: import("vue").PropType<string | HTMLElement>;
|
|
8
|
+
readonly required: false;
|
|
9
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
10
|
+
__epPropKey: true;
|
|
11
|
+
} & {
|
|
12
|
+
readonly default: "body";
|
|
13
|
+
};
|
|
14
|
+
beforeClose: {
|
|
15
|
+
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
16
|
+
readonly required: false;
|
|
17
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
18
|
+
__epPropKey: true;
|
|
19
|
+
};
|
|
20
|
+
destroyOnClose: BooleanConstructor;
|
|
21
|
+
closeOnClickModal: {
|
|
22
|
+
readonly type: import("vue").PropType<boolean>;
|
|
23
|
+
readonly required: false;
|
|
24
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
25
|
+
__epPropKey: true;
|
|
26
|
+
} & {
|
|
27
|
+
readonly default: true;
|
|
28
|
+
};
|
|
29
|
+
closeOnPressEscape: {
|
|
30
|
+
readonly type: import("vue").PropType<boolean>;
|
|
31
|
+
readonly required: false;
|
|
32
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
33
|
+
__epPropKey: true;
|
|
34
|
+
} & {
|
|
35
|
+
readonly default: true;
|
|
36
|
+
};
|
|
37
|
+
lockScroll: {
|
|
38
|
+
readonly type: import("vue").PropType<boolean>;
|
|
39
|
+
readonly required: false;
|
|
40
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
|
+
__epPropKey: true;
|
|
42
|
+
} & {
|
|
43
|
+
readonly default: true;
|
|
44
|
+
};
|
|
45
|
+
modal: {
|
|
46
|
+
readonly type: import("vue").PropType<boolean>;
|
|
47
|
+
readonly required: false;
|
|
48
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
49
|
+
__epPropKey: true;
|
|
50
|
+
} & {
|
|
51
|
+
readonly default: true;
|
|
52
|
+
};
|
|
53
|
+
modalPenetrable: BooleanConstructor;
|
|
54
|
+
openDelay: {
|
|
55
|
+
readonly type: import("vue").PropType<number>;
|
|
56
|
+
readonly required: false;
|
|
57
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
58
|
+
__epPropKey: true;
|
|
59
|
+
} & {
|
|
60
|
+
readonly default: 0;
|
|
61
|
+
};
|
|
62
|
+
closeDelay: {
|
|
63
|
+
readonly type: import("vue").PropType<number>;
|
|
64
|
+
readonly required: false;
|
|
65
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
|
+
__epPropKey: true;
|
|
67
|
+
} & {
|
|
68
|
+
readonly default: 0;
|
|
69
|
+
};
|
|
70
|
+
top: {
|
|
71
|
+
readonly type: import("vue").PropType<string>;
|
|
72
|
+
readonly required: false;
|
|
73
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
74
|
+
__epPropKey: true;
|
|
75
|
+
};
|
|
76
|
+
modelValue: BooleanConstructor;
|
|
77
|
+
modalClass: StringConstructor;
|
|
78
|
+
headerClass: StringConstructor;
|
|
79
|
+
bodyClass: StringConstructor;
|
|
80
|
+
footerClass: StringConstructor;
|
|
81
|
+
width: {
|
|
82
|
+
readonly type: import("vue").PropType<string | number>;
|
|
83
|
+
readonly required: false;
|
|
84
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
|
+
__epPropKey: true;
|
|
86
|
+
};
|
|
87
|
+
zIndex: {
|
|
88
|
+
readonly type: import("vue").PropType<number>;
|
|
89
|
+
readonly required: false;
|
|
90
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
91
|
+
__epPropKey: true;
|
|
92
|
+
};
|
|
93
|
+
trapFocus: BooleanConstructor;
|
|
94
|
+
headerAriaLevel: {
|
|
95
|
+
readonly type: import("vue").PropType<string>;
|
|
96
|
+
readonly required: false;
|
|
97
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
98
|
+
__epPropKey: true;
|
|
99
|
+
} & {
|
|
100
|
+
readonly default: "2";
|
|
101
|
+
};
|
|
102
|
+
transition: {
|
|
103
|
+
readonly type: import("vue").PropType<import("element-plus").DialogTransition>;
|
|
104
|
+
readonly required: false;
|
|
105
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
106
|
+
__epPropKey: true;
|
|
107
|
+
} & {
|
|
108
|
+
readonly default: undefined;
|
|
109
|
+
};
|
|
110
|
+
center: BooleanConstructor;
|
|
111
|
+
alignCenter: {
|
|
112
|
+
readonly type: import("vue").PropType<boolean>;
|
|
113
|
+
readonly required: false;
|
|
114
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
115
|
+
__epPropKey: true;
|
|
116
|
+
} & {
|
|
117
|
+
readonly default: undefined;
|
|
118
|
+
};
|
|
119
|
+
closeIcon: {
|
|
120
|
+
readonly type: import("vue").PropType<string | import("vue").Component>;
|
|
121
|
+
readonly required: false;
|
|
122
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
123
|
+
__epPropKey: true;
|
|
124
|
+
};
|
|
125
|
+
draggable: {
|
|
126
|
+
readonly type: import("vue").PropType<boolean>;
|
|
127
|
+
readonly required: false;
|
|
128
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
129
|
+
__epPropKey: true;
|
|
130
|
+
} & {
|
|
131
|
+
readonly default: undefined;
|
|
132
|
+
};
|
|
133
|
+
overflow: {
|
|
134
|
+
readonly type: import("vue").PropType<boolean>;
|
|
135
|
+
readonly required: false;
|
|
136
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
137
|
+
__epPropKey: true;
|
|
138
|
+
} & {
|
|
139
|
+
readonly default: undefined;
|
|
140
|
+
};
|
|
141
|
+
fullscreen: BooleanConstructor;
|
|
142
|
+
showClose: {
|
|
143
|
+
readonly type: import("vue").PropType<boolean>;
|
|
144
|
+
readonly required: false;
|
|
145
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
146
|
+
__epPropKey: true;
|
|
147
|
+
} & {
|
|
148
|
+
readonly default: true;
|
|
149
|
+
};
|
|
150
|
+
title: {
|
|
151
|
+
readonly type: import("vue").PropType<string>;
|
|
152
|
+
readonly required: false;
|
|
153
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
154
|
+
__epPropKey: true;
|
|
155
|
+
} & {
|
|
156
|
+
readonly default: "";
|
|
157
|
+
};
|
|
158
|
+
ariaLevel: {
|
|
159
|
+
readonly type: import("vue").PropType<string>;
|
|
160
|
+
readonly required: false;
|
|
161
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
162
|
+
__epPropKey: true;
|
|
163
|
+
} & {
|
|
164
|
+
readonly default: "2";
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
export type StackDialogProps = ExtractPropTypes<typeof stackDialogProps>;
|
|
168
|
+
export interface StackDialogSlots extends ElDialogSlots {
|
|
169
|
+
}
|
|
170
|
+
export declare const stackDialogSlots: SlotsType<StackDialogSlots>;
|
|
171
|
+
export declare const stackDialogEmits: {
|
|
172
|
+
open: () => boolean;
|
|
173
|
+
opened: () => boolean;
|
|
174
|
+
close: () => boolean;
|
|
175
|
+
closed: () => boolean;
|
|
176
|
+
"update:modelValue": (value: boolean) => boolean;
|
|
177
|
+
openAutoFocus: () => boolean;
|
|
178
|
+
closeAutoFocus: () => boolean;
|
|
179
|
+
};
|
|
180
|
+
export type StackDialogEmits = typeof stackDialogEmits;
|
|
181
|
+
export interface StackDialogExpose extends DialogInstance {
|
|
182
|
+
}
|
|
183
|
+
export interface StackDialogInfo {
|
|
184
|
+
transform: string;
|
|
185
|
+
}
|
|
186
|
+
export declare function createStackDialogInfo(): {
|
|
187
|
+
transform: string;
|
|
188
|
+
};
|
|
189
|
+
export interface StackDialogContext {
|
|
190
|
+
addInfo: (info: StackDialogInfo) => void;
|
|
191
|
+
removeInfo: (info: StackDialogInfo) => void;
|
|
192
|
+
}
|
|
193
|
+
export declare function useStackDialogProvide(): void;
|
|
194
|
+
export declare function useStackDialog(): {
|
|
195
|
+
onShow: () => void;
|
|
196
|
+
onHide: () => void;
|
|
197
|
+
info: {
|
|
198
|
+
transform: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { dialogProps, dialogEmits } from 'element-plus';
|
|
2
|
+
import { inject, onBeforeUnmount, reactive, provide } from 'vue';
|
|
3
|
+
|
|
4
|
+
const stackDialogProps = {
|
|
5
|
+
...dialogProps
|
|
6
|
+
};
|
|
7
|
+
const stackDialogSlots = Object;
|
|
8
|
+
const stackDialogEmits = {
|
|
9
|
+
...dialogEmits
|
|
10
|
+
};
|
|
11
|
+
function createStackDialogInfo() {
|
|
12
|
+
return reactive({
|
|
13
|
+
transform: ""
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const stackDialogContextKey = Symbol("stackDialogContext");
|
|
17
|
+
function useStackDialogProvide() {
|
|
18
|
+
const infoList = [];
|
|
19
|
+
const updateInfo = () => {
|
|
20
|
+
const count = 10;
|
|
21
|
+
const total = 10;
|
|
22
|
+
infoList.forEach((info, index) => {
|
|
23
|
+
const x = Math.min(index / count, 1);
|
|
24
|
+
const t = 1 - Math.pow(1 - x, 4);
|
|
25
|
+
const scale = 1 - index / infoList.length * 0.05;
|
|
26
|
+
info.transform = `translateY(${t * total}vh) scale(${scale})`;
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const addInfo = (info) => {
|
|
30
|
+
if (!infoList.includes(info)) {
|
|
31
|
+
infoList.unshift(info);
|
|
32
|
+
updateInfo();
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const removeInfo = (info) => {
|
|
36
|
+
if (infoList.includes(info)) {
|
|
37
|
+
infoList.splice(infoList.indexOf(info), 1);
|
|
38
|
+
updateInfo();
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
provide(stackDialogContextKey, {
|
|
42
|
+
addInfo,
|
|
43
|
+
removeInfo
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function useStackDialog() {
|
|
47
|
+
const context = inject(stackDialogContextKey, null);
|
|
48
|
+
const info = createStackDialogInfo();
|
|
49
|
+
const onShow = () => {
|
|
50
|
+
context?.addInfo(info);
|
|
51
|
+
};
|
|
52
|
+
const onHide = () => {
|
|
53
|
+
context?.removeInfo(info);
|
|
54
|
+
};
|
|
55
|
+
onBeforeUnmount(() => {
|
|
56
|
+
context?.removeInfo(info);
|
|
57
|
+
});
|
|
58
|
+
return {
|
|
59
|
+
onShow,
|
|
60
|
+
onHide,
|
|
61
|
+
info
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { createStackDialogInfo, stackDialogEmits, stackDialogProps, stackDialogSlots, useStackDialog, useStackDialogProvide };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { EmitFn, ExtractPropTypes } from 'vue';
|
|
3
|
-
import { type ElDialogSlots } from '../form-dialog';
|
|
4
|
-
export declare const stackDialogProps: {
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
2
|
appendToBody: BooleanConstructor;
|
|
6
3
|
appendTo: {
|
|
7
4
|
readonly type: import("vue").PropType<string | HTMLElement>;
|
|
@@ -163,29 +160,206 @@ export declare const stackDialogProps: {
|
|
|
163
160
|
} & {
|
|
164
161
|
readonly default: "2";
|
|
165
162
|
};
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
163
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
164
|
+
open: () => boolean;
|
|
165
|
+
opened: () => boolean;
|
|
166
|
+
close: () => boolean;
|
|
167
|
+
closed: () => boolean;
|
|
168
|
+
"update:modelValue": (value: boolean) => boolean;
|
|
169
|
+
openAutoFocus: () => boolean;
|
|
170
|
+
closeAutoFocus: () => boolean;
|
|
171
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
172
|
+
appendToBody: BooleanConstructor;
|
|
173
|
+
appendTo: {
|
|
174
|
+
readonly type: import("vue").PropType<string | HTMLElement>;
|
|
175
|
+
readonly required: false;
|
|
176
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
177
|
+
__epPropKey: true;
|
|
178
|
+
} & {
|
|
179
|
+
readonly default: "body";
|
|
180
|
+
};
|
|
181
|
+
beforeClose: {
|
|
182
|
+
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
183
|
+
readonly required: false;
|
|
184
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
185
|
+
__epPropKey: true;
|
|
186
|
+
};
|
|
187
|
+
destroyOnClose: BooleanConstructor;
|
|
188
|
+
closeOnClickModal: {
|
|
189
|
+
readonly type: import("vue").PropType<boolean>;
|
|
190
|
+
readonly required: false;
|
|
191
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
192
|
+
__epPropKey: true;
|
|
193
|
+
} & {
|
|
194
|
+
readonly default: true;
|
|
195
|
+
};
|
|
196
|
+
closeOnPressEscape: {
|
|
197
|
+
readonly type: import("vue").PropType<boolean>;
|
|
198
|
+
readonly required: false;
|
|
199
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
200
|
+
__epPropKey: true;
|
|
201
|
+
} & {
|
|
202
|
+
readonly default: true;
|
|
203
|
+
};
|
|
204
|
+
lockScroll: {
|
|
205
|
+
readonly type: import("vue").PropType<boolean>;
|
|
206
|
+
readonly required: false;
|
|
207
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
208
|
+
__epPropKey: true;
|
|
209
|
+
} & {
|
|
210
|
+
readonly default: true;
|
|
211
|
+
};
|
|
212
|
+
modal: {
|
|
213
|
+
readonly type: import("vue").PropType<boolean>;
|
|
214
|
+
readonly required: false;
|
|
215
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
216
|
+
__epPropKey: true;
|
|
217
|
+
} & {
|
|
218
|
+
readonly default: true;
|
|
219
|
+
};
|
|
220
|
+
modalPenetrable: BooleanConstructor;
|
|
221
|
+
openDelay: {
|
|
222
|
+
readonly type: import("vue").PropType<number>;
|
|
223
|
+
readonly required: false;
|
|
224
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
225
|
+
__epPropKey: true;
|
|
226
|
+
} & {
|
|
227
|
+
readonly default: 0;
|
|
228
|
+
};
|
|
229
|
+
closeDelay: {
|
|
230
|
+
readonly type: import("vue").PropType<number>;
|
|
231
|
+
readonly required: false;
|
|
232
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
233
|
+
__epPropKey: true;
|
|
234
|
+
} & {
|
|
235
|
+
readonly default: 0;
|
|
236
|
+
};
|
|
237
|
+
top: {
|
|
238
|
+
readonly type: import("vue").PropType<string>;
|
|
239
|
+
readonly required: false;
|
|
240
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
241
|
+
__epPropKey: true;
|
|
242
|
+
};
|
|
243
|
+
modelValue: BooleanConstructor;
|
|
244
|
+
modalClass: StringConstructor;
|
|
245
|
+
headerClass: StringConstructor;
|
|
246
|
+
bodyClass: StringConstructor;
|
|
247
|
+
footerClass: StringConstructor;
|
|
248
|
+
width: {
|
|
249
|
+
readonly type: import("vue").PropType<string | number>;
|
|
250
|
+
readonly required: false;
|
|
251
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
252
|
+
__epPropKey: true;
|
|
253
|
+
};
|
|
254
|
+
zIndex: {
|
|
255
|
+
readonly type: import("vue").PropType<number>;
|
|
256
|
+
readonly required: false;
|
|
257
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
258
|
+
__epPropKey: true;
|
|
259
|
+
};
|
|
260
|
+
trapFocus: BooleanConstructor;
|
|
261
|
+
headerAriaLevel: {
|
|
262
|
+
readonly type: import("vue").PropType<string>;
|
|
263
|
+
readonly required: false;
|
|
264
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
265
|
+
__epPropKey: true;
|
|
266
|
+
} & {
|
|
267
|
+
readonly default: "2";
|
|
268
|
+
};
|
|
269
|
+
transition: {
|
|
270
|
+
readonly type: import("vue").PropType<import("element-plus").DialogTransition>;
|
|
271
|
+
readonly required: false;
|
|
272
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
273
|
+
__epPropKey: true;
|
|
274
|
+
} & {
|
|
275
|
+
readonly default: undefined;
|
|
276
|
+
};
|
|
277
|
+
center: BooleanConstructor;
|
|
278
|
+
alignCenter: {
|
|
279
|
+
readonly type: import("vue").PropType<boolean>;
|
|
280
|
+
readonly required: false;
|
|
281
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
282
|
+
__epPropKey: true;
|
|
283
|
+
} & {
|
|
284
|
+
readonly default: undefined;
|
|
285
|
+
};
|
|
286
|
+
closeIcon: {
|
|
287
|
+
readonly type: import("vue").PropType<string | import("vue").Component>;
|
|
288
|
+
readonly required: false;
|
|
289
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
290
|
+
__epPropKey: true;
|
|
291
|
+
};
|
|
292
|
+
draggable: {
|
|
293
|
+
readonly type: import("vue").PropType<boolean>;
|
|
294
|
+
readonly required: false;
|
|
295
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
296
|
+
__epPropKey: true;
|
|
297
|
+
} & {
|
|
298
|
+
readonly default: undefined;
|
|
299
|
+
};
|
|
300
|
+
overflow: {
|
|
301
|
+
readonly type: import("vue").PropType<boolean>;
|
|
302
|
+
readonly required: false;
|
|
303
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
304
|
+
__epPropKey: true;
|
|
305
|
+
} & {
|
|
306
|
+
readonly default: undefined;
|
|
307
|
+
};
|
|
308
|
+
fullscreen: BooleanConstructor;
|
|
309
|
+
showClose: {
|
|
310
|
+
readonly type: import("vue").PropType<boolean>;
|
|
311
|
+
readonly required: false;
|
|
312
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
313
|
+
__epPropKey: true;
|
|
314
|
+
} & {
|
|
315
|
+
readonly default: true;
|
|
316
|
+
};
|
|
317
|
+
title: {
|
|
318
|
+
readonly type: import("vue").PropType<string>;
|
|
319
|
+
readonly required: false;
|
|
320
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
321
|
+
__epPropKey: true;
|
|
322
|
+
} & {
|
|
323
|
+
readonly default: "";
|
|
324
|
+
};
|
|
325
|
+
ariaLevel: {
|
|
326
|
+
readonly type: import("vue").PropType<string>;
|
|
327
|
+
readonly required: false;
|
|
328
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
329
|
+
__epPropKey: true;
|
|
330
|
+
} & {
|
|
331
|
+
readonly default: "2";
|
|
332
|
+
};
|
|
333
|
+
}>> & Readonly<{
|
|
334
|
+
onOpen?: (() => any) | undefined;
|
|
335
|
+
onClose?: (() => any) | undefined;
|
|
336
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
337
|
+
onOpened?: (() => any) | undefined;
|
|
338
|
+
onClosed?: (() => any) | undefined;
|
|
339
|
+
onOpenAutoFocus?: (() => any) | undefined;
|
|
340
|
+
onCloseAutoFocus?: (() => any) | undefined;
|
|
341
|
+
}>, {
|
|
342
|
+
overflow: boolean;
|
|
343
|
+
transition: import("element-plus").DialogTransition;
|
|
344
|
+
center: boolean;
|
|
345
|
+
title: string;
|
|
346
|
+
closeOnPressEscape: boolean;
|
|
347
|
+
draggable: boolean;
|
|
348
|
+
appendToBody: boolean;
|
|
349
|
+
appendTo: string | HTMLElement;
|
|
350
|
+
modelValue: boolean;
|
|
351
|
+
showClose: boolean;
|
|
352
|
+
closeOnClickModal: boolean;
|
|
353
|
+
destroyOnClose: boolean;
|
|
354
|
+
lockScroll: boolean;
|
|
355
|
+
modal: boolean;
|
|
356
|
+
modalPenetrable: boolean;
|
|
357
|
+
openDelay: number;
|
|
358
|
+
closeDelay: number;
|
|
359
|
+
trapFocus: boolean;
|
|
360
|
+
headerAriaLevel: string;
|
|
361
|
+
alignCenter: boolean;
|
|
362
|
+
fullscreen: boolean;
|
|
363
|
+
ariaLevel: string;
|
|
364
|
+
}, import("vue").SlotsType<import("./stack-dialog.api").StackDialogSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
365
|
+
export default _default;
|
|
@@ -1,61 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, ref, createVNode, mergeProps } from 'vue';
|
|
2
|
+
import { stackDialogEmits, stackDialogSlots, stackDialogProps, useStackDialog } from './stack-dialog.api.js';
|
|
3
|
+
import stdin_default$1 from './stack-dialog.style.js';
|
|
4
|
+
import { ElDialog } from 'element-plus';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import { elFormDialogExposeKeys } from '../form-dialog/form-dialog.api.js';
|
|
7
|
+
import { useComponentConfig } from '../config-provider/config-provider.api.js';
|
|
8
|
+
import { createMergedExpose } from '../../utils/vue.js';
|
|
3
9
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
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
|
-
}
|
|
10
|
+
var stdin_default = defineComponent({
|
|
11
|
+
name: "CoStackDialog",
|
|
12
|
+
props: stackDialogProps,
|
|
13
|
+
slots: stackDialogSlots,
|
|
14
|
+
emits: stackDialogEmits,
|
|
15
|
+
setup(props, {
|
|
16
|
+
slots,
|
|
17
|
+
emit,
|
|
18
|
+
expose: _expose
|
|
19
|
+
}) {
|
|
20
|
+
const {
|
|
21
|
+
prefixCls
|
|
22
|
+
} = useComponentConfig("stack-dialog", props);
|
|
23
|
+
const {
|
|
24
|
+
hashId
|
|
25
|
+
} = stdin_default$1(prefixCls);
|
|
26
|
+
const elPopupRef = ref();
|
|
27
|
+
const expose = createMergedExpose(elFormDialogExposeKeys, () => elPopupRef.value);
|
|
28
|
+
_expose(expose);
|
|
29
|
+
const {
|
|
30
|
+
onShow,
|
|
31
|
+
onHide,
|
|
32
|
+
info
|
|
33
|
+
} = useStackDialog();
|
|
34
|
+
return () => {
|
|
35
|
+
return createVNode(ElDialog, mergeProps({
|
|
36
|
+
"ref": elPopupRef
|
|
37
|
+
}, props, {
|
|
38
|
+
"class": [hashId.value, prefixCls.value],
|
|
39
|
+
"headerClass": classNames(props.headerClass, `${prefixCls.value}-header`),
|
|
40
|
+
"bodyClass": classNames(props.bodyClass, `${prefixCls.value}-body`),
|
|
41
|
+
"footerClass": classNames(props.footerClass, `${prefixCls.value}-footer`),
|
|
42
|
+
"onUpdate:modelValue": value => emit("update:modelValue", value),
|
|
43
|
+
"style": {
|
|
44
|
+
maxWidth: props.fullscreen ? null : "calc(100vw - 32px)",
|
|
45
|
+
...info
|
|
46
|
+
},
|
|
47
|
+
"append-to-body": true,
|
|
48
|
+
"onOpen": () => {
|
|
49
|
+
onShow();
|
|
50
|
+
emit("open");
|
|
51
|
+
},
|
|
52
|
+
"onOpened": () => {
|
|
53
|
+
onShow();
|
|
54
|
+
emit("opened");
|
|
55
|
+
},
|
|
56
|
+
"onClose": () => {
|
|
57
|
+
onHide();
|
|
58
|
+
emit("close");
|
|
59
|
+
},
|
|
60
|
+
"onClosed": () => {
|
|
61
|
+
onHide();
|
|
62
|
+
emit("closed");
|
|
63
|
+
}
|
|
64
|
+
}), slots);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
60
68
|
|
|
61
|
-
export {
|
|
69
|
+
export { stdin_default as default };
|
|
@@ -23,7 +23,7 @@ declare const _SvgaCard: {
|
|
|
23
23
|
type: StringConstructor;
|
|
24
24
|
};
|
|
25
25
|
type: {
|
|
26
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
26
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
27
27
|
};
|
|
28
28
|
title: {
|
|
29
29
|
type: StringConstructor;
|
|
@@ -72,7 +72,7 @@ declare const _SvgaCard: {
|
|
|
72
72
|
type: StringConstructor;
|
|
73
73
|
};
|
|
74
74
|
type: {
|
|
75
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
75
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
76
76
|
};
|
|
77
77
|
title: {
|
|
78
78
|
type: StringConstructor;
|
|
@@ -115,7 +115,7 @@ declare const _SvgaCard: {
|
|
|
115
115
|
type: StringConstructor;
|
|
116
116
|
};
|
|
117
117
|
type: {
|
|
118
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
118
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
119
119
|
};
|
|
120
120
|
title: {
|
|
121
121
|
type: StringConstructor;
|
|
@@ -22,7 +22,7 @@ export declare const svgaCardProps: {
|
|
|
22
22
|
type: StringConstructor;
|
|
23
23
|
};
|
|
24
24
|
type: {
|
|
25
|
-
type: import("vue").PropType<"image" | "video" | "audio" | (string & {})>;
|
|
25
|
+
type: import("vue").PropType<"image" | "video" | "audio" | "svga" | (string & {})>;
|
|
26
26
|
};
|
|
27
27
|
title: {
|
|
28
28
|
type: StringConstructor;
|