@wyfex/ivue 0.8.0 → 0.9.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.
@@ -0,0 +1,325 @@
1
+ import { Ref } from 'vue';
2
+ import { ElDialog } from 'element-plus';
3
+ import { Props } from './types';
4
+ export declare const useElDialog: ({ props, edRef }: {
5
+ props: Props;
6
+ edRef: Ref<InstanceType<typeof ElDialog>>;
7
+ }) => {
8
+ edRef: Ref<{
9
+ $: import('vue').ComponentInternalInstance;
10
+ $data: {};
11
+ $props: {
12
+ readonly appendToBody?: boolean | undefined;
13
+ readonly appendTo?: (string | HTMLElement) | undefined;
14
+ readonly beforeClose?: import('element-plus').DialogBeforeCloseFn | undefined;
15
+ readonly destroyOnClose?: boolean | undefined;
16
+ readonly closeOnClickModal?: boolean | undefined;
17
+ readonly closeOnPressEscape?: boolean | undefined;
18
+ readonly lockScroll?: boolean | undefined;
19
+ readonly modal?: boolean | undefined;
20
+ readonly modalPenetrable?: boolean | undefined;
21
+ readonly openDelay?: number | undefined;
22
+ readonly closeDelay?: number | undefined;
23
+ readonly top?: string | undefined;
24
+ readonly modelValue?: boolean | undefined;
25
+ readonly modalClass?: string | undefined;
26
+ readonly width?: string | number | undefined;
27
+ readonly zIndex?: number | undefined;
28
+ readonly trapFocus?: boolean | undefined;
29
+ readonly headerAriaLevel?: string | undefined;
30
+ readonly transition?: import('element-plus').DialogTransition | undefined;
31
+ readonly center?: boolean | undefined;
32
+ readonly alignCenter?: boolean | undefined;
33
+ readonly closeIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
34
+ readonly draggable?: boolean | undefined;
35
+ readonly overflow?: boolean | undefined;
36
+ readonly fullscreen?: boolean | undefined;
37
+ readonly headerClass?: string | undefined;
38
+ readonly bodyClass?: string | undefined;
39
+ readonly footerClass?: string | undefined;
40
+ readonly showClose?: boolean | undefined;
41
+ readonly title?: string | undefined;
42
+ readonly ariaLevel?: string | undefined;
43
+ readonly onOpen?: (() => any) | undefined | undefined;
44
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined | undefined;
45
+ readonly onClose?: (() => any) | undefined | undefined;
46
+ readonly onOpened?: (() => any) | undefined | undefined;
47
+ readonly onClosed?: (() => any) | undefined | undefined;
48
+ readonly onOpenAutoFocus?: (() => any) | undefined | undefined;
49
+ readonly onCloseAutoFocus?: (() => any) | undefined | undefined;
50
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
51
+ $attrs: import('vue').Attrs;
52
+ $refs: {
53
+ [x: string]: unknown;
54
+ };
55
+ $slots: Readonly<{
56
+ [name: string]: import('vue').Slot<any> | undefined;
57
+ }>;
58
+ $root: import('vue').ComponentPublicInstance | null;
59
+ $parent: import('vue').ComponentPublicInstance | null;
60
+ $host: Element | null;
61
+ $emit: ((event: "close") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "open") => void) & ((event: "opened") => void) & ((event: "closed") => void) & ((event: "openAutoFocus") => void) & ((event: "closeAutoFocus") => void);
62
+ $el: any;
63
+ $options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').DialogProps> & Readonly<{
64
+ onOpen?: (() => any) | undefined;
65
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
66
+ onClose?: (() => any) | undefined;
67
+ onOpened?: (() => any) | undefined;
68
+ onClosed?: (() => any) | undefined;
69
+ onOpenAutoFocus?: (() => any) | undefined;
70
+ onCloseAutoFocus?: (() => any) | undefined;
71
+ }>, {
72
+ visible: Ref<boolean, boolean>;
73
+ dialogContentRef: Ref<any, any>;
74
+ resetPosition: () => void;
75
+ handleClose: () => void;
76
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
77
+ open: () => void;
78
+ "update:modelValue": (value: boolean) => void;
79
+ close: () => void;
80
+ opened: () => void;
81
+ closed: () => void;
82
+ openAutoFocus: () => void;
83
+ closeAutoFocus: () => void;
84
+ }, string, {
85
+ overflow: boolean;
86
+ transition: import('element-plus').DialogTransition;
87
+ appendTo: string | HTMLElement;
88
+ title: string;
89
+ closeOnClickModal: boolean;
90
+ closeOnPressEscape: boolean;
91
+ lockScroll: boolean;
92
+ modal: boolean;
93
+ openDelay: number;
94
+ closeDelay: number;
95
+ headerAriaLevel: string;
96
+ alignCenter: boolean;
97
+ draggable: boolean;
98
+ showClose: boolean;
99
+ ariaLevel: string;
100
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
101
+ beforeCreate?: (() => void) | (() => void)[];
102
+ created?: (() => void) | (() => void)[];
103
+ beforeMount?: (() => void) | (() => void)[];
104
+ mounted?: (() => void) | (() => void)[];
105
+ beforeUpdate?: (() => void) | (() => void)[];
106
+ updated?: (() => void) | (() => void)[];
107
+ activated?: (() => void) | (() => void)[];
108
+ deactivated?: (() => void) | (() => void)[];
109
+ beforeDestroy?: (() => void) | (() => void)[];
110
+ beforeUnmount?: (() => void) | (() => void)[];
111
+ destroyed?: (() => void) | (() => void)[];
112
+ unmounted?: (() => void) | (() => void)[];
113
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
114
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
115
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
116
+ };
117
+ $forceUpdate: () => void;
118
+ $nextTick: typeof import('vue').nextTick;
119
+ $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;
120
+ } & Readonly<{
121
+ overflow: boolean;
122
+ transition: import('element-plus').DialogTransition;
123
+ appendTo: string | HTMLElement;
124
+ title: string;
125
+ closeOnClickModal: boolean;
126
+ closeOnPressEscape: boolean;
127
+ lockScroll: boolean;
128
+ modal: boolean;
129
+ openDelay: number;
130
+ closeDelay: number;
131
+ headerAriaLevel: string;
132
+ alignCenter: boolean;
133
+ draggable: boolean;
134
+ showClose: boolean;
135
+ ariaLevel: string;
136
+ }> & Omit<Readonly<import('element-plus').DialogProps> & Readonly<{
137
+ onOpen?: (() => any) | undefined;
138
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
139
+ onClose?: (() => any) | undefined;
140
+ onOpened?: (() => any) | undefined;
141
+ onClosed?: (() => any) | undefined;
142
+ onOpenAutoFocus?: (() => any) | undefined;
143
+ onCloseAutoFocus?: (() => any) | undefined;
144
+ }>, "title" | "showClose" | "appendTo" | "closeOnClickModal" | "closeOnPressEscape" | "lockScroll" | "modal" | "openDelay" | "closeDelay" | "headerAriaLevel" | "transition" | "alignCenter" | "draggable" | "overflow" | "ariaLevel" | "visible" | "dialogContentRef" | "resetPosition" | "handleClose"> & {
145
+ visible: boolean;
146
+ dialogContentRef: any;
147
+ resetPosition: () => void;
148
+ handleClose: () => void;
149
+ } & {} & import('vue').ComponentCustomProperties & {} & {
150
+ $slots: {
151
+ header?: (props: {
152
+ close: () => void;
153
+ titleId: string;
154
+ titleClass: string;
155
+ }) => any;
156
+ } & {
157
+ title?: (props: {}) => any;
158
+ } & {
159
+ default?: (props: {}) => any;
160
+ } & {
161
+ footer?: (props: {}) => any;
162
+ };
163
+ }, {
164
+ $: import('vue').ComponentInternalInstance;
165
+ $data: {};
166
+ $props: {
167
+ readonly appendToBody?: boolean | undefined;
168
+ readonly appendTo?: (string | HTMLElement) | undefined;
169
+ readonly beforeClose?: import('element-plus').DialogBeforeCloseFn | undefined;
170
+ readonly destroyOnClose?: boolean | undefined;
171
+ readonly closeOnClickModal?: boolean | undefined;
172
+ readonly closeOnPressEscape?: boolean | undefined;
173
+ readonly lockScroll?: boolean | undefined;
174
+ readonly modal?: boolean | undefined;
175
+ readonly modalPenetrable?: boolean | undefined;
176
+ readonly openDelay?: number | undefined;
177
+ readonly closeDelay?: number | undefined;
178
+ readonly top?: string | undefined;
179
+ readonly modelValue?: boolean | undefined;
180
+ readonly modalClass?: string | undefined;
181
+ readonly width?: string | number | undefined;
182
+ readonly zIndex?: number | undefined;
183
+ readonly trapFocus?: boolean | undefined;
184
+ readonly headerAriaLevel?: string | undefined;
185
+ readonly transition?: import('element-plus').DialogTransition | undefined;
186
+ readonly center?: boolean | undefined;
187
+ readonly alignCenter?: boolean | undefined;
188
+ readonly closeIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
189
+ readonly draggable?: boolean | undefined;
190
+ readonly overflow?: boolean | undefined;
191
+ readonly fullscreen?: boolean | undefined;
192
+ readonly headerClass?: string | undefined;
193
+ readonly bodyClass?: string | undefined;
194
+ readonly footerClass?: string | undefined;
195
+ readonly showClose?: boolean | undefined;
196
+ readonly title?: string | undefined;
197
+ readonly ariaLevel?: string | undefined;
198
+ readonly onOpen?: (() => any) | undefined | undefined;
199
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined | undefined;
200
+ readonly onClose?: (() => any) | undefined | undefined;
201
+ readonly onOpened?: (() => any) | undefined | undefined;
202
+ readonly onClosed?: (() => any) | undefined | undefined;
203
+ readonly onOpenAutoFocus?: (() => any) | undefined | undefined;
204
+ readonly onCloseAutoFocus?: (() => any) | undefined | undefined;
205
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
206
+ $attrs: import('vue').Attrs;
207
+ $refs: {
208
+ [x: string]: unknown;
209
+ };
210
+ $slots: Readonly<{
211
+ [name: string]: import('vue').Slot<any> | undefined;
212
+ }>;
213
+ $root: import('vue').ComponentPublicInstance | null;
214
+ $parent: import('vue').ComponentPublicInstance | null;
215
+ $host: Element | null;
216
+ $emit: ((event: "close") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "open") => void) & ((event: "opened") => void) & ((event: "closed") => void) & ((event: "openAutoFocus") => void) & ((event: "closeAutoFocus") => void);
217
+ $el: any;
218
+ $options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').DialogProps> & Readonly<{
219
+ onOpen?: (() => any) | undefined;
220
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
221
+ onClose?: (() => any) | undefined;
222
+ onOpened?: (() => any) | undefined;
223
+ onClosed?: (() => any) | undefined;
224
+ onOpenAutoFocus?: (() => any) | undefined;
225
+ onCloseAutoFocus?: (() => any) | undefined;
226
+ }>, {
227
+ visible: Ref<boolean, boolean>;
228
+ dialogContentRef: Ref<any, any>;
229
+ resetPosition: () => void;
230
+ handleClose: () => void;
231
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
232
+ open: () => void;
233
+ "update:modelValue": (value: boolean) => void;
234
+ close: () => void;
235
+ opened: () => void;
236
+ closed: () => void;
237
+ openAutoFocus: () => void;
238
+ closeAutoFocus: () => void;
239
+ }, string, {
240
+ overflow: boolean;
241
+ transition: import('element-plus').DialogTransition;
242
+ appendTo: string | HTMLElement;
243
+ title: string;
244
+ closeOnClickModal: boolean;
245
+ closeOnPressEscape: boolean;
246
+ lockScroll: boolean;
247
+ modal: boolean;
248
+ openDelay: number;
249
+ closeDelay: number;
250
+ headerAriaLevel: string;
251
+ alignCenter: boolean;
252
+ draggable: boolean;
253
+ showClose: boolean;
254
+ ariaLevel: string;
255
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
256
+ beforeCreate?: (() => void) | (() => void)[];
257
+ created?: (() => void) | (() => void)[];
258
+ beforeMount?: (() => void) | (() => void)[];
259
+ mounted?: (() => void) | (() => void)[];
260
+ beforeUpdate?: (() => void) | (() => void)[];
261
+ updated?: (() => void) | (() => void)[];
262
+ activated?: (() => void) | (() => void)[];
263
+ deactivated?: (() => void) | (() => void)[];
264
+ beforeDestroy?: (() => void) | (() => void)[];
265
+ beforeUnmount?: (() => void) | (() => void)[];
266
+ destroyed?: (() => void) | (() => void)[];
267
+ unmounted?: (() => void) | (() => void)[];
268
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
269
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
270
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
271
+ };
272
+ $forceUpdate: () => void;
273
+ $nextTick: typeof import('vue').nextTick;
274
+ $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;
275
+ } & Readonly<{
276
+ overflow: boolean;
277
+ transition: import('element-plus').DialogTransition;
278
+ appendTo: string | HTMLElement;
279
+ title: string;
280
+ closeOnClickModal: boolean;
281
+ closeOnPressEscape: boolean;
282
+ lockScroll: boolean;
283
+ modal: boolean;
284
+ openDelay: number;
285
+ closeDelay: number;
286
+ headerAriaLevel: string;
287
+ alignCenter: boolean;
288
+ draggable: boolean;
289
+ showClose: boolean;
290
+ ariaLevel: string;
291
+ }> & Omit<Readonly<import('element-plus').DialogProps> & Readonly<{
292
+ onOpen?: (() => any) | undefined;
293
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
294
+ onClose?: (() => any) | undefined;
295
+ onOpened?: (() => any) | undefined;
296
+ onClosed?: (() => any) | undefined;
297
+ onOpenAutoFocus?: (() => any) | undefined;
298
+ onCloseAutoFocus?: (() => any) | undefined;
299
+ }>, "title" | "showClose" | "appendTo" | "closeOnClickModal" | "closeOnPressEscape" | "lockScroll" | "modal" | "openDelay" | "closeDelay" | "headerAriaLevel" | "transition" | "alignCenter" | "draggable" | "overflow" | "ariaLevel" | "visible" | "dialogContentRef" | "resetPosition" | "handleClose"> & {
300
+ visible: boolean;
301
+ dialogContentRef: any;
302
+ resetPosition: () => void;
303
+ handleClose: () => void;
304
+ } & {} & import('vue').ComponentCustomProperties & {} & {
305
+ $slots: {
306
+ header?: (props: {
307
+ close: () => void;
308
+ titleId: string;
309
+ titleClass: string;
310
+ }) => any;
311
+ } & {
312
+ title?: (props: {}) => any;
313
+ } & {
314
+ default?: (props: {}) => any;
315
+ } & {
316
+ footer?: (props: {}) => any;
317
+ };
318
+ }>;
319
+ handleClose: import('vue').ComputedRef<() => void>;
320
+ isFullScreen: Ref<boolean, boolean>;
321
+ iconComponent: import('vue').ComputedRef<string>;
322
+ handleFullScreen: () => void;
323
+ handleClosed: () => void;
324
+ handleClick: (fn: Function) => void;
325
+ };
@@ -0,0 +1,187 @@
1
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ title: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ appendToBody: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ headerStyleConfig: {
11
+ type: import('vue').PropType<Record<string, any>>;
12
+ default: () => {
13
+ bgColor: string;
14
+ color: string;
15
+ };
16
+ };
17
+ maxHeight: {
18
+ type: (StringConstructor | NumberConstructor)[];
19
+ default: string;
20
+ };
21
+ noresize: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ closeOnClickModal: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ destroyOnClose: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ showFullScreenIcon: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ showFooter: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ showFooterBorder: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ footerPosition: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ validator: (val: string) => boolean;
49
+ };
50
+ strictCloseEvent: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ onClose: {
55
+ type: FunctionConstructor;
56
+ default: () => void;
57
+ };
58
+ confirmBtnText: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ cancelBtnText: {
63
+ type: StringConstructor;
64
+ default: string;
65
+ };
66
+ cancelBtnType: {
67
+ type: StringConstructor;
68
+ default: string;
69
+ validator: (val: string) => boolean;
70
+ };
71
+ onConfirm: {
72
+ type: FunctionConstructor;
73
+ default: () => void;
74
+ };
75
+ onCancel: {
76
+ type: FunctionConstructor;
77
+ default: () => void;
78
+ };
79
+ }>, {
80
+ edRef: Readonly<import('vue').ShallowRef<any, any>>;
81
+ handleClose: import('vue').ComputedRef<() => void>;
82
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
83
+ title: {
84
+ type: StringConstructor;
85
+ default: string;
86
+ };
87
+ appendToBody: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ headerStyleConfig: {
92
+ type: import('vue').PropType<Record<string, any>>;
93
+ default: () => {
94
+ bgColor: string;
95
+ color: string;
96
+ };
97
+ };
98
+ maxHeight: {
99
+ type: (StringConstructor | NumberConstructor)[];
100
+ default: string;
101
+ };
102
+ noresize: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ closeOnClickModal: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ destroyOnClose: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ showFullScreenIcon: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ showFooter: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
122
+ showFooterBorder: {
123
+ type: BooleanConstructor;
124
+ default: boolean;
125
+ };
126
+ footerPosition: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ validator: (val: string) => boolean;
130
+ };
131
+ strictCloseEvent: {
132
+ type: BooleanConstructor;
133
+ default: boolean;
134
+ };
135
+ onClose: {
136
+ type: FunctionConstructor;
137
+ default: () => void;
138
+ };
139
+ confirmBtnText: {
140
+ type: StringConstructor;
141
+ default: string;
142
+ };
143
+ cancelBtnText: {
144
+ type: StringConstructor;
145
+ default: string;
146
+ };
147
+ cancelBtnType: {
148
+ type: StringConstructor;
149
+ default: string;
150
+ validator: (val: string) => boolean;
151
+ };
152
+ onConfirm: {
153
+ type: FunctionConstructor;
154
+ default: () => void;
155
+ };
156
+ onCancel: {
157
+ type: FunctionConstructor;
158
+ default: () => void;
159
+ };
160
+ }>> & Readonly<{}>, {
161
+ title: string;
162
+ onClose: Function;
163
+ appendToBody: boolean;
164
+ headerStyleConfig: Record<string, any>;
165
+ maxHeight: string | number;
166
+ noresize: boolean;
167
+ closeOnClickModal: boolean;
168
+ destroyOnClose: boolean;
169
+ showFullScreenIcon: boolean;
170
+ showFooter: boolean;
171
+ showFooterBorder: boolean;
172
+ footerPosition: string;
173
+ strictCloseEvent: boolean;
174
+ confirmBtnText: string;
175
+ cancelBtnText: string;
176
+ cancelBtnType: string;
177
+ onConfirm: Function;
178
+ onCancel: Function;
179
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
180
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
181
+ declare const _default: typeof __VLS_export;
182
+ export default _default;
183
+ type __VLS_WithSlots<T, S> = T & {
184
+ new (): {
185
+ $slots: S;
186
+ };
187
+ };
@@ -0,0 +1,81 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: {
3
+ title: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ appendToBody: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ headerStyleConfig: {
12
+ type: PropType<Record<string, any>>;
13
+ default: () => {
14
+ bgColor: string;
15
+ color: string;
16
+ };
17
+ };
18
+ maxHeight: {
19
+ type: (StringConstructor | NumberConstructor)[];
20
+ default: string;
21
+ };
22
+ noresize: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ closeOnClickModal: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ destroyOnClose: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ showFullScreenIcon: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ showFooter: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ showFooterBorder: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ footerPosition: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ validator: (val: string) => boolean;
50
+ };
51
+ strictCloseEvent: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ onClose: {
56
+ type: FunctionConstructor;
57
+ default: () => void;
58
+ };
59
+ confirmBtnText: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ cancelBtnText: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ cancelBtnType: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ validator: (val: string) => boolean;
71
+ };
72
+ onConfirm: {
73
+ type: FunctionConstructor;
74
+ default: () => void;
75
+ };
76
+ onCancel: {
77
+ type: FunctionConstructor;
78
+ default: () => void;
79
+ };
80
+ };
81
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { default as componentProps } from './props';
3
+ export type Props = ExtractPropTypes<typeof componentProps>;
@@ -163,7 +163,7 @@ export declare const useElDrawer: ({ props, edRef }: {
163
163
  onCloseAutoFocus?: (() => any) | undefined;
164
164
  "onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined;
165
165
  "onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined;
166
- }>, "title" | "size" | "showClose" | "appendTo" | "closeOnClickModal" | "direction" | "withHeader" | "modalFade" | "headerAriaLevel" | "closeOnPressEscape" | "lockScroll" | "modal" | "openDelay" | "closeDelay" | "transition" | "alignCenter" | "draggable" | "overflow" | "ariaLevel" | "handleClose"> & {
166
+ }>, "title" | "size" | "showClose" | "appendTo" | "closeOnClickModal" | "closeOnPressEscape" | "lockScroll" | "modal" | "openDelay" | "closeDelay" | "headerAriaLevel" | "transition" | "alignCenter" | "draggable" | "overflow" | "ariaLevel" | "handleClose" | "direction" | "withHeader" | "modalFade"> & {
167
167
  handleClose: () => void;
168
168
  } & {} & import('vue').ComponentCustomProperties & {} & {
169
169
  $slots: {
@@ -337,7 +337,7 @@ export declare const useElDrawer: ({ props, edRef }: {
337
337
  onCloseAutoFocus?: (() => any) | undefined;
338
338
  "onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined;
339
339
  "onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined;
340
- }>, "title" | "size" | "showClose" | "appendTo" | "closeOnClickModal" | "direction" | "withHeader" | "modalFade" | "headerAriaLevel" | "closeOnPressEscape" | "lockScroll" | "modal" | "openDelay" | "closeDelay" | "transition" | "alignCenter" | "draggable" | "overflow" | "ariaLevel" | "handleClose"> & {
340
+ }>, "title" | "size" | "showClose" | "appendTo" | "closeOnClickModal" | "closeOnPressEscape" | "lockScroll" | "modal" | "openDelay" | "closeDelay" | "headerAriaLevel" | "transition" | "alignCenter" | "draggable" | "overflow" | "ariaLevel" | "handleClose" | "direction" | "withHeader" | "modalFade"> & {
341
341
  handleClose: () => void;
342
342
  } & {} & import('vue').ComponentCustomProperties & {} & {
343
343
  $slots: {
@@ -132,8 +132,8 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
132
132
  size: string | number;
133
133
  onClose: Function;
134
134
  appendToBody: boolean;
135
- destroyOnClose: boolean;
136
135
  closeOnClickModal: boolean;
136
+ destroyOnClose: boolean;
137
137
  showFullScreenIcon: boolean;
138
138
  showFooter: boolean;
139
139
  footerPosition: string;
@@ -2,6 +2,7 @@ export { default as UseElButton } from './UseElButton/index.vue';
2
2
  export { default as UseElConfigProvider } from './UseElConfigProvider/index.vue';
3
3
  export { default as UseElDatePicker } from './UseElDatePicker/index.vue';
4
4
  export { default as UseElDescriptions } from './UseElDescriptions/index.vue';
5
+ export { default as UseElDialog } from './UseElDialog/index.vue';
5
6
  export { default as UseElDrawer } from './UseElDrawer/index.vue';
6
7
  export { default as UseElInput } from './UseElInput/index.vue';
7
8
  export { default as UseElSelect } from './UseElSelect/index.vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wyfex/ivue",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "万有前端 X 体系下基于 Vite8 + Vue3 + Typescript6 + ElementPlus2 构建的 iVue 组件库",
5
5
  "homepage": "https://wyfe.top/idocs/ivue",
6
6
  "type": "module",