@wyfex/ivue 0.9.0 → 0.11.0
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/index.es.js +11 -6
- package/dist/index.umd.cjs +11 -6
- package/dist/ivue.css +1 -1
- package/dist/types/UseElButton/types.d.ts +1 -1
- package/dist/types/UseElConfigProvider/index.vue.d.ts +0 -20
- package/dist/types/UseElConfigProvider/props.d.ts +0 -9
- package/dist/types/UseElDatePicker/index.vue.d.ts +2 -2
- package/dist/types/UseElDatePicker/props.d.ts +1 -1
- package/dist/types/UseElDescriptions/hook.d.ts +2 -1
- package/dist/types/UseElDescriptions/index.vue.d.ts +1 -1
- package/dist/types/UseElDialog/hook.d.ts +4 -314
- package/dist/types/UseElDialog/index.vue.d.ts +14 -20
- package/dist/types/UseElDialog/props.d.ts +5 -9
- package/dist/types/UseElDrawer/hook.d.ts +4 -352
- package/dist/types/UseElDrawer/index.vue.d.ts +2 -2
- package/dist/types/UseElSelect/hook.d.ts +5 -4
- package/dist/types/UseElSelect/index.vue.d.ts +2 -2
- package/dist/types/UseElSelect/props.d.ts +1 -1
- package/dist/types/UseElTable/components/EditableCell.vue.d.ts +4 -0
- package/dist/types/UseElTable/components/RecTableColumn.vue.d.ts +86 -0
- package/dist/types/UseElTable/components/Selection.vue.d.ts +12 -0
- package/dist/types/UseElTable/components/Span.vue.d.ts +4 -0
- package/dist/types/UseElTable/defaultExtConfig.d.ts +35 -0
- package/dist/types/UseElTable/hooks/useElTable.d.ts +18 -0
- package/dist/types/UseElTable/hooks/usePagination.d.ts +9 -0
- package/dist/types/UseElTable/hooks/useSelection.d.ts +15 -0
- package/dist/types/UseElTable/index.vue.d.ts +122 -0
- package/dist/types/UseElTable/props.d.ts +50 -0
- package/dist/types/UseElTable/types.d.ts +96 -0
- package/dist/types/UseElTable/utils.d.ts +9 -0
- package/dist/types/UseRender/index.vue.d.ts +1 -1
- package/dist/types/UseSvgIcon/index.vue.d.ts +54 -0
- package/dist/types/UseSvgIcon/props.d.ts +27 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +3 -3
- package/src/components/UseElButton/types.ts +1 -1
- package/src/components/UseElConfigProvider/props.ts +0 -15
- package/src/components/UseElDialog/props.ts +9 -11
- package/src/components/UseElTable/defaultExtConfig.ts +64 -0
- package/src/components/UseElTable/props.ts +83 -0
- package/src/components/UseElTable/types.ts +144 -0
- package/src/components/UseSvgIcon/props.ts +59 -0
- package/src/types/index.ts +9 -14
|
@@ -1,360 +1,12 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { DrawerInstance } from 'element-plus';
|
|
3
3
|
import { Props } from './types';
|
|
4
4
|
export declare const useElDrawer: ({ props, edRef }: {
|
|
5
5
|
props: Props;
|
|
6
|
-
edRef: Ref<
|
|
6
|
+
edRef: Ref<DrawerInstance | null>;
|
|
7
7
|
}) => {
|
|
8
|
-
edRef: Ref<
|
|
9
|
-
|
|
10
|
-
$data: {};
|
|
11
|
-
$props: {
|
|
12
|
-
readonly direction?: "ltr" | "rtl" | "ttb" | "btt" | undefined;
|
|
13
|
-
readonly resizable?: boolean | undefined;
|
|
14
|
-
readonly size?: string | number | undefined;
|
|
15
|
-
readonly withHeader?: boolean | undefined;
|
|
16
|
-
readonly modalFade?: boolean | undefined;
|
|
17
|
-
readonly headerAriaLevel?: string | undefined;
|
|
18
|
-
readonly appendToBody?: boolean | undefined;
|
|
19
|
-
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
20
|
-
readonly beforeClose?: import('element-plus').DialogBeforeCloseFn | undefined;
|
|
21
|
-
readonly destroyOnClose?: boolean | undefined;
|
|
22
|
-
readonly closeOnClickModal?: boolean | undefined;
|
|
23
|
-
readonly closeOnPressEscape?: boolean | undefined;
|
|
24
|
-
readonly lockScroll?: boolean | undefined;
|
|
25
|
-
readonly modal?: boolean | undefined;
|
|
26
|
-
readonly modalPenetrable?: boolean | undefined;
|
|
27
|
-
readonly openDelay?: number | undefined;
|
|
28
|
-
readonly closeDelay?: number | undefined;
|
|
29
|
-
readonly top?: string | undefined;
|
|
30
|
-
readonly modelValue?: boolean | undefined;
|
|
31
|
-
readonly modalClass?: string | undefined;
|
|
32
|
-
readonly width?: string | number | undefined;
|
|
33
|
-
readonly zIndex?: number | undefined;
|
|
34
|
-
readonly trapFocus?: boolean | undefined;
|
|
35
|
-
readonly transition?: import('element-plus').DialogTransition | undefined;
|
|
36
|
-
readonly center?: boolean | undefined;
|
|
37
|
-
readonly alignCenter?: boolean | undefined;
|
|
38
|
-
readonly closeIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
39
|
-
readonly draggable?: boolean | undefined;
|
|
40
|
-
readonly overflow?: boolean | undefined;
|
|
41
|
-
readonly fullscreen?: boolean | undefined;
|
|
42
|
-
readonly headerClass?: string | undefined;
|
|
43
|
-
readonly bodyClass?: string | undefined;
|
|
44
|
-
readonly footerClass?: string | undefined;
|
|
45
|
-
readonly showClose?: boolean | undefined;
|
|
46
|
-
readonly title?: string | undefined;
|
|
47
|
-
readonly ariaLevel?: string | undefined;
|
|
48
|
-
readonly onOpen?: (() => any) | undefined | undefined;
|
|
49
|
-
readonly onResize?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
|
|
50
|
-
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined | undefined;
|
|
51
|
-
readonly onClose?: (() => any) | undefined | undefined;
|
|
52
|
-
readonly onOpened?: (() => any) | undefined | undefined;
|
|
53
|
-
readonly onClosed?: (() => any) | undefined | undefined;
|
|
54
|
-
readonly onOpenAutoFocus?: (() => any) | undefined | undefined;
|
|
55
|
-
readonly onCloseAutoFocus?: (() => any) | undefined | undefined;
|
|
56
|
-
readonly "onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
|
|
57
|
-
readonly "onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
|
|
58
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
59
|
-
$attrs: import('vue').Attrs;
|
|
60
|
-
$refs: {
|
|
61
|
-
[x: string]: unknown;
|
|
62
|
-
};
|
|
63
|
-
$slots: Readonly<{
|
|
64
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
65
|
-
}>;
|
|
66
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
67
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
68
|
-
$host: Element | null;
|
|
69
|
-
$emit: ((event: "close") => void) & ((event: "resize", evt: MouseEvent, size: number) => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "open") => void) & ((event: "opened") => void) & ((event: "closed") => void) & ((event: "openAutoFocus") => void) & ((event: "closeAutoFocus") => void) & ((event: "resize-start", evt: MouseEvent, size: number) => void) & ((event: "resize-end", evt: MouseEvent, size: number) => void);
|
|
70
|
-
$el: any;
|
|
71
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').DrawerProps> & Readonly<{
|
|
72
|
-
onOpen?: (() => any) | undefined;
|
|
73
|
-
onResize?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
74
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
75
|
-
onClose?: (() => any) | undefined;
|
|
76
|
-
onOpened?: (() => any) | undefined;
|
|
77
|
-
onClosed?: (() => any) | undefined;
|
|
78
|
-
onOpenAutoFocus?: (() => any) | undefined;
|
|
79
|
-
onCloseAutoFocus?: (() => any) | undefined;
|
|
80
|
-
"onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
81
|
-
"onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
82
|
-
}>, {
|
|
83
|
-
handleClose: () => void;
|
|
84
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
85
|
-
open: () => void;
|
|
86
|
-
resize: (evt: MouseEvent, size: number) => void;
|
|
87
|
-
"update:modelValue": (value: boolean) => void;
|
|
88
|
-
close: () => void;
|
|
89
|
-
opened: () => void;
|
|
90
|
-
closed: () => void;
|
|
91
|
-
openAutoFocus: () => void;
|
|
92
|
-
closeAutoFocus: () => void;
|
|
93
|
-
"resize-start": (evt: MouseEvent, size: number) => void;
|
|
94
|
-
"resize-end": (evt: MouseEvent, size: number) => void;
|
|
95
|
-
}, string, {
|
|
96
|
-
direction: "ltr" | "rtl" | "ttb" | "btt";
|
|
97
|
-
size: string | number;
|
|
98
|
-
overflow: boolean;
|
|
99
|
-
transition: import('element-plus').DialogTransition;
|
|
100
|
-
appendTo: string | HTMLElement;
|
|
101
|
-
title: string;
|
|
102
|
-
closeOnClickModal: boolean;
|
|
103
|
-
closeOnPressEscape: boolean;
|
|
104
|
-
lockScroll: boolean;
|
|
105
|
-
modal: boolean;
|
|
106
|
-
openDelay: number;
|
|
107
|
-
closeDelay: number;
|
|
108
|
-
headerAriaLevel: string;
|
|
109
|
-
alignCenter: boolean;
|
|
110
|
-
draggable: boolean;
|
|
111
|
-
showClose: boolean;
|
|
112
|
-
ariaLevel: string;
|
|
113
|
-
withHeader: boolean;
|
|
114
|
-
modalFade: boolean;
|
|
115
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
116
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
117
|
-
created?: (() => void) | (() => void)[];
|
|
118
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
119
|
-
mounted?: (() => void) | (() => void)[];
|
|
120
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
121
|
-
updated?: (() => void) | (() => void)[];
|
|
122
|
-
activated?: (() => void) | (() => void)[];
|
|
123
|
-
deactivated?: (() => void) | (() => void)[];
|
|
124
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
125
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
126
|
-
destroyed?: (() => void) | (() => void)[];
|
|
127
|
-
unmounted?: (() => void) | (() => void)[];
|
|
128
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
129
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
130
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
131
|
-
};
|
|
132
|
-
$forceUpdate: () => void;
|
|
133
|
-
$nextTick: typeof import('vue').nextTick;
|
|
134
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
135
|
-
} & Readonly<{
|
|
136
|
-
direction: "ltr" | "rtl" | "ttb" | "btt";
|
|
137
|
-
size: string | number;
|
|
138
|
-
overflow: boolean;
|
|
139
|
-
transition: import('element-plus').DialogTransition;
|
|
140
|
-
appendTo: string | HTMLElement;
|
|
141
|
-
title: string;
|
|
142
|
-
closeOnClickModal: boolean;
|
|
143
|
-
closeOnPressEscape: boolean;
|
|
144
|
-
lockScroll: boolean;
|
|
145
|
-
modal: boolean;
|
|
146
|
-
openDelay: number;
|
|
147
|
-
closeDelay: number;
|
|
148
|
-
headerAriaLevel: string;
|
|
149
|
-
alignCenter: boolean;
|
|
150
|
-
draggable: boolean;
|
|
151
|
-
showClose: boolean;
|
|
152
|
-
ariaLevel: string;
|
|
153
|
-
withHeader: boolean;
|
|
154
|
-
modalFade: boolean;
|
|
155
|
-
}> & Omit<Readonly<import('element-plus').DrawerProps> & Readonly<{
|
|
156
|
-
onOpen?: (() => any) | undefined;
|
|
157
|
-
onResize?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
158
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
159
|
-
onClose?: (() => any) | undefined;
|
|
160
|
-
onOpened?: (() => any) | undefined;
|
|
161
|
-
onClosed?: (() => any) | undefined;
|
|
162
|
-
onOpenAutoFocus?: (() => any) | undefined;
|
|
163
|
-
onCloseAutoFocus?: (() => any) | undefined;
|
|
164
|
-
"onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
165
|
-
"onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
166
|
-
}>, "title" | "size" | "showClose" | "appendTo" | "closeOnClickModal" | "closeOnPressEscape" | "lockScroll" | "modal" | "openDelay" | "closeDelay" | "headerAriaLevel" | "transition" | "alignCenter" | "draggable" | "overflow" | "ariaLevel" | "handleClose" | "direction" | "withHeader" | "modalFade"> & {
|
|
167
|
-
handleClose: () => void;
|
|
168
|
-
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
169
|
-
$slots: {
|
|
170
|
-
header?: (props: {
|
|
171
|
-
close: () => void;
|
|
172
|
-
titleId: string;
|
|
173
|
-
titleClass: string;
|
|
174
|
-
}) => any;
|
|
175
|
-
} & {
|
|
176
|
-
title?: (props: {}) => any;
|
|
177
|
-
} & {
|
|
178
|
-
default?: (props: {}) => any;
|
|
179
|
-
} & {
|
|
180
|
-
footer?: (props: {}) => any;
|
|
181
|
-
};
|
|
182
|
-
}, {
|
|
183
|
-
$: import('vue').ComponentInternalInstance;
|
|
184
|
-
$data: {};
|
|
185
|
-
$props: {
|
|
186
|
-
readonly direction?: "ltr" | "rtl" | "ttb" | "btt" | undefined;
|
|
187
|
-
readonly resizable?: boolean | undefined;
|
|
188
|
-
readonly size?: string | number | undefined;
|
|
189
|
-
readonly withHeader?: boolean | undefined;
|
|
190
|
-
readonly modalFade?: boolean | undefined;
|
|
191
|
-
readonly headerAriaLevel?: string | undefined;
|
|
192
|
-
readonly appendToBody?: boolean | undefined;
|
|
193
|
-
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
194
|
-
readonly beforeClose?: import('element-plus').DialogBeforeCloseFn | undefined;
|
|
195
|
-
readonly destroyOnClose?: boolean | undefined;
|
|
196
|
-
readonly closeOnClickModal?: boolean | undefined;
|
|
197
|
-
readonly closeOnPressEscape?: boolean | undefined;
|
|
198
|
-
readonly lockScroll?: boolean | undefined;
|
|
199
|
-
readonly modal?: boolean | undefined;
|
|
200
|
-
readonly modalPenetrable?: boolean | undefined;
|
|
201
|
-
readonly openDelay?: number | undefined;
|
|
202
|
-
readonly closeDelay?: number | undefined;
|
|
203
|
-
readonly top?: string | undefined;
|
|
204
|
-
readonly modelValue?: boolean | undefined;
|
|
205
|
-
readonly modalClass?: string | undefined;
|
|
206
|
-
readonly width?: string | number | undefined;
|
|
207
|
-
readonly zIndex?: number | undefined;
|
|
208
|
-
readonly trapFocus?: boolean | undefined;
|
|
209
|
-
readonly transition?: import('element-plus').DialogTransition | undefined;
|
|
210
|
-
readonly center?: boolean | undefined;
|
|
211
|
-
readonly alignCenter?: boolean | undefined;
|
|
212
|
-
readonly closeIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
213
|
-
readonly draggable?: boolean | undefined;
|
|
214
|
-
readonly overflow?: boolean | undefined;
|
|
215
|
-
readonly fullscreen?: boolean | undefined;
|
|
216
|
-
readonly headerClass?: string | undefined;
|
|
217
|
-
readonly bodyClass?: string | undefined;
|
|
218
|
-
readonly footerClass?: string | undefined;
|
|
219
|
-
readonly showClose?: boolean | undefined;
|
|
220
|
-
readonly title?: string | undefined;
|
|
221
|
-
readonly ariaLevel?: string | undefined;
|
|
222
|
-
readonly onOpen?: (() => any) | undefined | undefined;
|
|
223
|
-
readonly onResize?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
|
|
224
|
-
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined | undefined;
|
|
225
|
-
readonly onClose?: (() => any) | undefined | undefined;
|
|
226
|
-
readonly onOpened?: (() => any) | undefined | undefined;
|
|
227
|
-
readonly onClosed?: (() => any) | undefined | undefined;
|
|
228
|
-
readonly onOpenAutoFocus?: (() => any) | undefined | undefined;
|
|
229
|
-
readonly onCloseAutoFocus?: (() => any) | undefined | undefined;
|
|
230
|
-
readonly "onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
|
|
231
|
-
readonly "onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
|
|
232
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
233
|
-
$attrs: import('vue').Attrs;
|
|
234
|
-
$refs: {
|
|
235
|
-
[x: string]: unknown;
|
|
236
|
-
};
|
|
237
|
-
$slots: Readonly<{
|
|
238
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
239
|
-
}>;
|
|
240
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
241
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
242
|
-
$host: Element | null;
|
|
243
|
-
$emit: ((event: "close") => void) & ((event: "resize", evt: MouseEvent, size: number) => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "open") => void) & ((event: "opened") => void) & ((event: "closed") => void) & ((event: "openAutoFocus") => void) & ((event: "closeAutoFocus") => void) & ((event: "resize-start", evt: MouseEvent, size: number) => void) & ((event: "resize-end", evt: MouseEvent, size: number) => void);
|
|
244
|
-
$el: any;
|
|
245
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').DrawerProps> & Readonly<{
|
|
246
|
-
onOpen?: (() => any) | undefined;
|
|
247
|
-
onResize?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
248
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
249
|
-
onClose?: (() => any) | undefined;
|
|
250
|
-
onOpened?: (() => any) | undefined;
|
|
251
|
-
onClosed?: (() => any) | undefined;
|
|
252
|
-
onOpenAutoFocus?: (() => any) | undefined;
|
|
253
|
-
onCloseAutoFocus?: (() => any) | undefined;
|
|
254
|
-
"onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
255
|
-
"onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
256
|
-
}>, {
|
|
257
|
-
handleClose: () => void;
|
|
258
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
259
|
-
open: () => void;
|
|
260
|
-
resize: (evt: MouseEvent, size: number) => void;
|
|
261
|
-
"update:modelValue": (value: boolean) => void;
|
|
262
|
-
close: () => void;
|
|
263
|
-
opened: () => void;
|
|
264
|
-
closed: () => void;
|
|
265
|
-
openAutoFocus: () => void;
|
|
266
|
-
closeAutoFocus: () => void;
|
|
267
|
-
"resize-start": (evt: MouseEvent, size: number) => void;
|
|
268
|
-
"resize-end": (evt: MouseEvent, size: number) => void;
|
|
269
|
-
}, string, {
|
|
270
|
-
direction: "ltr" | "rtl" | "ttb" | "btt";
|
|
271
|
-
size: string | number;
|
|
272
|
-
overflow: boolean;
|
|
273
|
-
transition: import('element-plus').DialogTransition;
|
|
274
|
-
appendTo: string | HTMLElement;
|
|
275
|
-
title: string;
|
|
276
|
-
closeOnClickModal: boolean;
|
|
277
|
-
closeOnPressEscape: boolean;
|
|
278
|
-
lockScroll: boolean;
|
|
279
|
-
modal: boolean;
|
|
280
|
-
openDelay: number;
|
|
281
|
-
closeDelay: number;
|
|
282
|
-
headerAriaLevel: string;
|
|
283
|
-
alignCenter: boolean;
|
|
284
|
-
draggable: boolean;
|
|
285
|
-
showClose: boolean;
|
|
286
|
-
ariaLevel: string;
|
|
287
|
-
withHeader: boolean;
|
|
288
|
-
modalFade: boolean;
|
|
289
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
290
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
291
|
-
created?: (() => void) | (() => void)[];
|
|
292
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
293
|
-
mounted?: (() => void) | (() => void)[];
|
|
294
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
295
|
-
updated?: (() => void) | (() => void)[];
|
|
296
|
-
activated?: (() => void) | (() => void)[];
|
|
297
|
-
deactivated?: (() => void) | (() => void)[];
|
|
298
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
299
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
300
|
-
destroyed?: (() => void) | (() => void)[];
|
|
301
|
-
unmounted?: (() => void) | (() => void)[];
|
|
302
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
303
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
304
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
305
|
-
};
|
|
306
|
-
$forceUpdate: () => void;
|
|
307
|
-
$nextTick: typeof import('vue').nextTick;
|
|
308
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
309
|
-
} & Readonly<{
|
|
310
|
-
direction: "ltr" | "rtl" | "ttb" | "btt";
|
|
311
|
-
size: string | number;
|
|
312
|
-
overflow: boolean;
|
|
313
|
-
transition: import('element-plus').DialogTransition;
|
|
314
|
-
appendTo: string | HTMLElement;
|
|
315
|
-
title: string;
|
|
316
|
-
closeOnClickModal: boolean;
|
|
317
|
-
closeOnPressEscape: boolean;
|
|
318
|
-
lockScroll: boolean;
|
|
319
|
-
modal: boolean;
|
|
320
|
-
openDelay: number;
|
|
321
|
-
closeDelay: number;
|
|
322
|
-
headerAriaLevel: string;
|
|
323
|
-
alignCenter: boolean;
|
|
324
|
-
draggable: boolean;
|
|
325
|
-
showClose: boolean;
|
|
326
|
-
ariaLevel: string;
|
|
327
|
-
withHeader: boolean;
|
|
328
|
-
modalFade: boolean;
|
|
329
|
-
}> & Omit<Readonly<import('element-plus').DrawerProps> & Readonly<{
|
|
330
|
-
onOpen?: (() => any) | undefined;
|
|
331
|
-
onResize?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
332
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
333
|
-
onClose?: (() => any) | undefined;
|
|
334
|
-
onOpened?: (() => any) | undefined;
|
|
335
|
-
onClosed?: (() => any) | undefined;
|
|
336
|
-
onOpenAutoFocus?: (() => any) | undefined;
|
|
337
|
-
onCloseAutoFocus?: (() => any) | undefined;
|
|
338
|
-
"onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
339
|
-
"onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
340
|
-
}>, "title" | "size" | "showClose" | "appendTo" | "closeOnClickModal" | "closeOnPressEscape" | "lockScroll" | "modal" | "openDelay" | "closeDelay" | "headerAriaLevel" | "transition" | "alignCenter" | "draggable" | "overflow" | "ariaLevel" | "handleClose" | "direction" | "withHeader" | "modalFade"> & {
|
|
341
|
-
handleClose: () => void;
|
|
342
|
-
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
343
|
-
$slots: {
|
|
344
|
-
header?: (props: {
|
|
345
|
-
close: () => void;
|
|
346
|
-
titleId: string;
|
|
347
|
-
titleClass: string;
|
|
348
|
-
}) => any;
|
|
349
|
-
} & {
|
|
350
|
-
title?: (props: {}) => any;
|
|
351
|
-
} & {
|
|
352
|
-
default?: (props: {}) => any;
|
|
353
|
-
} & {
|
|
354
|
-
footer?: (props: {}) => any;
|
|
355
|
-
};
|
|
356
|
-
}>;
|
|
357
|
-
handleClose: import('vue').ComputedRef<() => void>;
|
|
8
|
+
edRef: Ref<DrawerInstance | null, DrawerInstance | null>;
|
|
9
|
+
handleClose: import('vue').ComputedRef<(() => void) | undefined>;
|
|
358
10
|
drawerSize: import('vue').ComputedRef<string | number>;
|
|
359
11
|
iconComponent: import('vue').ComputedRef<string>;
|
|
360
12
|
handleFullScreen: () => void;
|
|
@@ -62,8 +62,8 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
62
62
|
default: () => void;
|
|
63
63
|
};
|
|
64
64
|
}>, {
|
|
65
|
-
edRef:
|
|
66
|
-
handleClose: import('vue').ComputedRef<() => void>;
|
|
65
|
+
edRef: import('vue').Ref<null, null>;
|
|
66
|
+
handleClose: import('vue').ComputedRef<(() => void) | undefined>;
|
|
67
67
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
68
68
|
title: {
|
|
69
69
|
type: StringConstructor;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
1
2
|
import { Emits, Props } from './types';
|
|
2
3
|
import { GlobalConfig } from '../../../types';
|
|
3
4
|
export declare const useElSelect: ({ props, emits, globalConfig }: {
|
|
4
5
|
props: Props;
|
|
5
6
|
emits: Emits;
|
|
6
|
-
globalConfig: GlobalConfig
|
|
7
|
+
globalConfig: ComputedRef<GlobalConfig>;
|
|
7
8
|
}) => {
|
|
8
|
-
optionsComputed:
|
|
9
|
+
optionsComputed: ComputedRef<{
|
|
9
10
|
[x: string]: any;
|
|
10
11
|
}[]>;
|
|
11
|
-
modelValue:
|
|
12
|
-
contentComputed:
|
|
12
|
+
modelValue: ComputedRef<string | string[]>;
|
|
13
|
+
contentComputed: ComputedRef<{}>;
|
|
13
14
|
handleSelectChange: (e: string | number | (string | number)[]) => void;
|
|
14
15
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
modelValue: {
|
|
3
|
-
type: (StringConstructor | BooleanConstructor |
|
|
3
|
+
type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
6
|
options: {
|
|
@@ -40,7 +40,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
40
40
|
"update:label": (label: string | string[]) => any;
|
|
41
41
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
42
42
|
modelValue: {
|
|
43
|
-
type: (StringConstructor | BooleanConstructor |
|
|
43
|
+
type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
|
|
44
44
|
default: string;
|
|
45
45
|
};
|
|
46
46
|
options: {
|
|
@@ -2,7 +2,7 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { DictProps, RenderConfig } from '../../../types';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
modelValue: {
|
|
5
|
-
type: (StringConstructor | BooleanConstructor |
|
|
5
|
+
type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
8
|
options: {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EditableCellAndSpanVueProps } from '../types';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<EditableCellAndSpanVueProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EditableCellAndSpanVueProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { TableColumn, Props } from '../types';
|
|
3
|
+
import { GlobalConfig } from '../../../../types';
|
|
4
|
+
declare var __VLS_9: {
|
|
5
|
+
label: string | undefined;
|
|
6
|
+
prop: string | undefined;
|
|
7
|
+
}, __VLS_24: string, __VLS_25: {
|
|
8
|
+
item: TableColumn;
|
|
9
|
+
column: any;
|
|
10
|
+
$index: any;
|
|
11
|
+
}, __VLS_29: string, __VLS_30: {
|
|
12
|
+
row: any;
|
|
13
|
+
item: TableColumn;
|
|
14
|
+
data: any;
|
|
15
|
+
dictData: any;
|
|
16
|
+
}, __VLS_37: {
|
|
17
|
+
row: any;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
[K in NonNullable<typeof __VLS_24>]?: (props: typeof __VLS_25) => any;
|
|
21
|
+
} & {
|
|
22
|
+
[K in NonNullable<typeof __VLS_29>]?: (props: typeof __VLS_30) => any;
|
|
23
|
+
} & {
|
|
24
|
+
header?: (props: typeof __VLS_9) => any;
|
|
25
|
+
} & {
|
|
26
|
+
default?: (props: typeof __VLS_37) => any;
|
|
27
|
+
};
|
|
28
|
+
declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
29
|
+
columnObj: {
|
|
30
|
+
type: PropType<TableColumn>;
|
|
31
|
+
default: () => {};
|
|
32
|
+
};
|
|
33
|
+
tableColumnAlign: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
validator: (val: string) => boolean;
|
|
37
|
+
};
|
|
38
|
+
mergedProps: {
|
|
39
|
+
type: PropType<Props>;
|
|
40
|
+
default: () => {};
|
|
41
|
+
};
|
|
42
|
+
globalConfig: {
|
|
43
|
+
type: PropType<GlobalConfig>;
|
|
44
|
+
default: () => {};
|
|
45
|
+
};
|
|
46
|
+
processDictData: {
|
|
47
|
+
type: FunctionConstructor;
|
|
48
|
+
default: () => void;
|
|
49
|
+
};
|
|
50
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
51
|
+
columnObj: {
|
|
52
|
+
type: PropType<TableColumn>;
|
|
53
|
+
default: () => {};
|
|
54
|
+
};
|
|
55
|
+
tableColumnAlign: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
validator: (val: string) => boolean;
|
|
59
|
+
};
|
|
60
|
+
mergedProps: {
|
|
61
|
+
type: PropType<Props>;
|
|
62
|
+
default: () => {};
|
|
63
|
+
};
|
|
64
|
+
globalConfig: {
|
|
65
|
+
type: PropType<GlobalConfig>;
|
|
66
|
+
default: () => {};
|
|
67
|
+
};
|
|
68
|
+
processDictData: {
|
|
69
|
+
type: FunctionConstructor;
|
|
70
|
+
default: () => void;
|
|
71
|
+
};
|
|
72
|
+
}>> & Readonly<{}>, {
|
|
73
|
+
mergedProps: Props;
|
|
74
|
+
globalConfig: GlobalConfig;
|
|
75
|
+
tableColumnAlign: string;
|
|
76
|
+
columnObj: TableColumn;
|
|
77
|
+
processDictData: Function;
|
|
78
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
79
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
80
|
+
declare const _default: typeof __VLS_export;
|
|
81
|
+
export default _default;
|
|
82
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
83
|
+
new (): {
|
|
84
|
+
$slots: S;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Selection } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: string;
|
|
4
|
+
config: Selection;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:modelValue": (value: string[]) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EditableCellAndSpanVueProps } from '../types';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<EditableCellAndSpanVueProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EditableCellAndSpanVueProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
extraHeader: {
|
|
3
|
+
style: {
|
|
4
|
+
padding: string;
|
|
5
|
+
borderBottom: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
selection: {
|
|
9
|
+
width: number;
|
|
10
|
+
enableRowClick: false;
|
|
11
|
+
align: string;
|
|
12
|
+
fixed: true;
|
|
13
|
+
};
|
|
14
|
+
index: {
|
|
15
|
+
width: number;
|
|
16
|
+
align: string;
|
|
17
|
+
fixed: true;
|
|
18
|
+
};
|
|
19
|
+
expand: {
|
|
20
|
+
show: false;
|
|
21
|
+
};
|
|
22
|
+
operation: {
|
|
23
|
+
width: number;
|
|
24
|
+
fixed: string;
|
|
25
|
+
};
|
|
26
|
+
pagination: {
|
|
27
|
+
total: number;
|
|
28
|
+
marginTop: number;
|
|
29
|
+
position: string;
|
|
30
|
+
pageSizes: number[];
|
|
31
|
+
background: true;
|
|
32
|
+
layout: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { TableInstance } from 'element-plus';
|
|
3
|
+
import { Emits, Props, TableColumn } from '../types';
|
|
4
|
+
import { GlobalConfig } from '../../../../types';
|
|
5
|
+
export declare const useElTable: ({ mergedProps, emits, globalConfig, rootRef, tableWrapperRef, etRef }: {
|
|
6
|
+
mergedProps: ComputedRef<Props>;
|
|
7
|
+
emits: Emits;
|
|
8
|
+
globalConfig: ComputedRef<GlobalConfig>;
|
|
9
|
+
rootRef: Ref<HTMLDivElement | null>;
|
|
10
|
+
tableWrapperRef: Ref<HTMLDivElement | null>;
|
|
11
|
+
etRef: Ref<TableInstance | null>;
|
|
12
|
+
}) => {
|
|
13
|
+
tableRealHeight: Ref<string, string>;
|
|
14
|
+
processHeaderCellClassName: ({ column }: any) => "" | "hideAllSelection";
|
|
15
|
+
tableColumnsComputed: ComputedRef<TableColumn[]>;
|
|
16
|
+
processDictData: (item: TableColumn) => Record<string, unknown>[];
|
|
17
|
+
validateRequired: (row: Record<string, any>) => boolean;
|
|
18
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { Emits, Props } from '../types';
|
|
3
|
+
export declare const usePagination: ({ mergedProps, emits }: {
|
|
4
|
+
mergedProps: ComputedRef<Props>;
|
|
5
|
+
emits: Emits;
|
|
6
|
+
}) => {
|
|
7
|
+
paginationFixedComputed: ComputedRef<any>;
|
|
8
|
+
handlePagination: (val: number | undefined, type: string) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Attrs, ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { TableInstance } from 'element-plus';
|
|
3
|
+
import { Emits, Props } from '../types';
|
|
4
|
+
export declare const useSelection: ({ mergedProps, emits, attrs, etRef }: {
|
|
5
|
+
mergedProps: ComputedRef<Props>;
|
|
6
|
+
emits: Emits;
|
|
7
|
+
attrs: Attrs;
|
|
8
|
+
etRef: Ref<TableInstance | null>;
|
|
9
|
+
}) => {
|
|
10
|
+
handleSelectAll: (selection: any) => void;
|
|
11
|
+
handleSelect: (selection: any, row: any) => void;
|
|
12
|
+
handleRowClick: (row: any) => void;
|
|
13
|
+
radioComputed: import('vue').WritableComputedRef<string, string>;
|
|
14
|
+
selectionContent: ComputedRef<string>;
|
|
15
|
+
};
|