@nutui/nutui 4.3.7 → 4.3.9
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/CHANGELOG.md +26 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +4275 -4416
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/actionsheet/ActionSheet.js +1 -1
- package/dist/packages/address/Address.js +1 -1
- package/dist/packages/address/index.css +1 -1
- package/dist/packages/badge/Badge.js +60 -72
- package/dist/packages/calendar/Calendar.js +1 -1
- package/dist/packages/cascader/Cascader.js +1 -1
- package/dist/packages/countdown/Countdown.js +2 -2
- package/dist/packages/dialog/Dialog.js +3 -3
- package/dist/packages/elevator/index.css +1 -1
- package/dist/packages/elevator/index.scss +4 -0
- package/dist/packages/fixednav/FixedNav.js +2 -2
- package/dist/packages/imagepreview/ImagePreview.js +3 -3
- package/dist/packages/{index-uHBD4dfS.js → index-wLaOjIn1.js} +2 -2
- package/dist/packages/list/index.css +1 -1
- package/dist/packages/list/index.scss +4 -0
- package/dist/packages/menuitem/MenuItem.js +1 -1
- package/dist/packages/menuitem/index.css +1 -1
- package/dist/packages/menuitem/index.scss +4 -0
- package/dist/packages/notify/Notify.js +1 -1
- package/dist/packages/numberkeyboard/NumberKeyboard.js +1 -1
- package/dist/packages/overlay/Overlay.js +40 -54
- package/dist/packages/popover/Popover.js +1 -1
- package/dist/packages/popup/Popup.js +1 -1
- package/dist/packages/shortpassword/ShortPassword.js +1 -1
- package/dist/packages/sku/Sku.js +1 -1
- package/dist/packages/tabbaritem/TabbarItem.js +3 -3
- package/dist/packages/timeselect/TimeSelect.js +1 -1
- package/dist/packages/watermark/Watermark.js +69 -159
- package/dist/smartips/web-types.json +3 -3
- package/dist/style.css +1 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
- package/dist/types/__VUE/address/index.vue.d.ts +5 -5
- package/dist/types/__VUE/badge/badge.vue.d.ts +93 -0
- package/dist/types/__VUE/badge/index.d.ts +5 -0
- package/dist/types/__VUE/calendar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/circleprogress/circle-progress.vue.d.ts +2 -2
- package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +1 -1
- package/dist/types/__VUE/dialog/index.vue.d.ts +4 -4
- package/dist/types/__VUE/divider/divider.vue.d.ts +1 -1
- package/dist/types/__VUE/fixednav/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
- package/dist/types/__VUE/input/input.vue.d.ts +1 -1
- package/dist/types/__VUE/list/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menu/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/overlay/index.d.ts +5 -0
- package/dist/types/__VUE/overlay/overlay.vue.d.ts +87 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/popover/index.vue.d.ts +4 -4
- package/dist/types/__VUE/popup/index.vue.d.ts +3 -3
- package/dist/types/__VUE/row/row.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +2 -2
- package/dist/types/__VUE/sku/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swipe/swipe.vue.d.ts +1 -1
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tour/index.vue.d.ts +1 -1
- package/dist/types/__VUE/watermark/index.d.ts +6 -0
- package/dist/types/__VUE/watermark/watermark.vue.d.ts +127 -0
- package/dist/types/index.d.ts +7 -4
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/__VUE/badge/index.vue.d.ts +0 -102
- package/dist/types/__VUE/overlay/index.vue.d.ts +0 -85
- package/dist/types/__VUE/watermark/index.vue.d.ts +0 -201
|
@@ -133,7 +133,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
133
133
|
cancelActionSheet: () => void;
|
|
134
134
|
chooseItem: (item: ActionSheetMenuItems, index: number) => void;
|
|
135
135
|
close: (e: Event) => void;
|
|
136
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
136
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "cancel" | "close" | "choose")[], "update:visible" | "cancel" | "close" | "choose", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
137
137
|
cancelTxt: {
|
|
138
138
|
type: StringConstructor;
|
|
139
139
|
default: string;
|
|
@@ -250,9 +250,9 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
250
250
|
default: () => {};
|
|
251
251
|
};
|
|
252
252
|
}>> & {
|
|
253
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
253
254
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
254
255
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
255
|
-
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
256
256
|
onChoose?: ((...args: any[]) => any) | undefined;
|
|
257
257
|
}, {
|
|
258
258
|
round: boolean;
|
|
@@ -260,7 +260,6 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
260
260
|
style: Record<string, any>;
|
|
261
261
|
title: string;
|
|
262
262
|
transition: string;
|
|
263
|
-
overlay: boolean;
|
|
264
263
|
visible: boolean;
|
|
265
264
|
zIndex: string | number;
|
|
266
265
|
duration: string | number;
|
|
@@ -268,6 +267,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
268
267
|
overlayClass: string;
|
|
269
268
|
overlayStyle: Record<string, any>;
|
|
270
269
|
closeOnClickOverlay: boolean;
|
|
270
|
+
overlay: boolean;
|
|
271
271
|
position: import("../popup/types").PopupPosition;
|
|
272
272
|
popClass: string;
|
|
273
273
|
closeable: boolean;
|
|
@@ -146,7 +146,6 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
146
146
|
height: Ref<string | number>;
|
|
147
147
|
style: Ref<Record<string, any>>;
|
|
148
148
|
transition: Ref<string>;
|
|
149
|
-
overlay: Ref<boolean>;
|
|
150
149
|
visible: Ref<boolean>;
|
|
151
150
|
zIndex: Ref<string | number>;
|
|
152
151
|
duration: Ref<string | number>;
|
|
@@ -154,6 +153,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
154
153
|
overlayClass: Ref<string>;
|
|
155
154
|
overlayStyle: Ref<Record<string, any>>;
|
|
156
155
|
closeOnClickOverlay: Ref<boolean>;
|
|
156
|
+
overlay: Ref<boolean>;
|
|
157
157
|
position: Ref<import("../popup/types").PopupPosition>;
|
|
158
158
|
popClass: Ref<string>;
|
|
159
159
|
closeable: Ref<boolean>;
|
|
@@ -174,8 +174,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
174
174
|
customAndExistTitle: Ref<string>;
|
|
175
175
|
columnsPlaceholder: Ref<string | unknown[]>;
|
|
176
176
|
onChange: Ref<((...args: any[]) => any) | undefined>;
|
|
177
|
-
onClose: Ref<((...args: any[]) => any) | undefined>;
|
|
178
177
|
"onUpdate:visible": Ref<((...args: any[]) => any) | undefined>;
|
|
178
|
+
onClose: Ref<((...args: any[]) => any) | undefined>;
|
|
179
179
|
onSelected: Ref<((...args: any[]) => any) | undefined>;
|
|
180
180
|
"onUpdate:modelValue": Ref<((...args: any[]) => any) | undefined>;
|
|
181
181
|
onType: Ref<((...args: any[]) => any) | undefined>;
|
|
@@ -204,7 +204,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
204
204
|
handClose: (type?: string) => void;
|
|
205
205
|
handleElevatorItem: (key: string, item: AddressData) => void;
|
|
206
206
|
initCustomSelected: () => void;
|
|
207
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("type" | "
|
|
207
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("type" | "update:visible" | "change" | "close" | "selected" | "update:modelValue" | "closeMask" | "switchModule")[], "type" | "update:visible" | "change" | "close" | "selected" | "update:modelValue" | "closeMask" | "switchModule", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
208
208
|
modelValue: {
|
|
209
209
|
type: ArrayConstructor;
|
|
210
210
|
default: () => never[];
|
|
@@ -338,8 +338,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
338
338
|
};
|
|
339
339
|
}>> & {
|
|
340
340
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
341
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
342
341
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
342
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
343
343
|
onSelected?: ((...args: any[]) => any) | undefined;
|
|
344
344
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
345
345
|
onType?: ((...args: any[]) => any) | undefined;
|
|
@@ -351,7 +351,6 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
351
351
|
height: string | number;
|
|
352
352
|
style: Record<string, any>;
|
|
353
353
|
transition: string;
|
|
354
|
-
overlay: boolean;
|
|
355
354
|
visible: boolean;
|
|
356
355
|
zIndex: string | number;
|
|
357
356
|
duration: string | number;
|
|
@@ -359,6 +358,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
359
358
|
overlayClass: string;
|
|
360
359
|
overlayStyle: Record<string, any>;
|
|
361
360
|
closeOnClickOverlay: boolean;
|
|
361
|
+
overlay: boolean;
|
|
362
362
|
position: import("../popup/types").PopupPosition;
|
|
363
363
|
popClass: string;
|
|
364
364
|
closeable: boolean;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type BadgeProps = Partial<{
|
|
3
|
+
value: string | number;
|
|
4
|
+
max: number;
|
|
5
|
+
dot: boolean;
|
|
6
|
+
bubble: boolean;
|
|
7
|
+
hidden: boolean;
|
|
8
|
+
top: string;
|
|
9
|
+
right: string;
|
|
10
|
+
zIndex: number;
|
|
11
|
+
color: string;
|
|
12
|
+
}>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
14
|
+
value: string | number;
|
|
15
|
+
max: number;
|
|
16
|
+
dot: boolean;
|
|
17
|
+
bubble: boolean;
|
|
18
|
+
hidden: boolean;
|
|
19
|
+
top: string;
|
|
20
|
+
right: string;
|
|
21
|
+
zIndex: number;
|
|
22
|
+
color: string;
|
|
23
|
+
}>>, {
|
|
24
|
+
max: number;
|
|
25
|
+
dot: boolean;
|
|
26
|
+
bubble: boolean;
|
|
27
|
+
hidden: boolean;
|
|
28
|
+
top: string;
|
|
29
|
+
right: string;
|
|
30
|
+
zIndex: number;
|
|
31
|
+
color: string;
|
|
32
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
33
|
+
value: string | number;
|
|
34
|
+
max: number;
|
|
35
|
+
dot: boolean;
|
|
36
|
+
bubble: boolean;
|
|
37
|
+
hidden: boolean;
|
|
38
|
+
top: string;
|
|
39
|
+
right: string;
|
|
40
|
+
zIndex: number;
|
|
41
|
+
color: string;
|
|
42
|
+
}>>, {
|
|
43
|
+
max: number;
|
|
44
|
+
dot: boolean;
|
|
45
|
+
bubble: boolean;
|
|
46
|
+
hidden: boolean;
|
|
47
|
+
top: string;
|
|
48
|
+
right: string;
|
|
49
|
+
zIndex: number;
|
|
50
|
+
color: string;
|
|
51
|
+
}>>>, {
|
|
52
|
+
color: string;
|
|
53
|
+
right: string;
|
|
54
|
+
top: string;
|
|
55
|
+
zIndex: number;
|
|
56
|
+
hidden: boolean;
|
|
57
|
+
dot: boolean;
|
|
58
|
+
max: number;
|
|
59
|
+
bubble: boolean;
|
|
60
|
+
}, {}>, {
|
|
61
|
+
icon?(_: {}): any;
|
|
62
|
+
default?(_: {}): any;
|
|
63
|
+
}>;
|
|
64
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
65
|
+
export default _nut_default;
|
|
66
|
+
|
|
67
|
+
declare module 'vue' {
|
|
68
|
+
interface GlobalComponents {
|
|
69
|
+
NutBadge: typeof _default;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
73
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
74
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
75
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
76
|
+
} : {
|
|
77
|
+
type: import('vue').PropType<T[K]>;
|
|
78
|
+
required: true;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
type __VLS_WithDefaults<P, D> = {
|
|
82
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
83
|
+
default: D[K];
|
|
84
|
+
}> : P[K];
|
|
85
|
+
};
|
|
86
|
+
type __VLS_Prettify<T> = {
|
|
87
|
+
[K in keyof T]: T[K];
|
|
88
|
+
} & {};
|
|
89
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
90
|
+
new (): {
|
|
91
|
+
$slots: S;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
@@ -87,7 +87,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
87
87
|
dayInfo: import("vue").ComputedRef<import("vue").Slot<any> | undefined>;
|
|
88
88
|
bottomInfo: import("vue").ComputedRef<import("vue").Slot<any> | undefined>;
|
|
89
89
|
footerInfo: import("vue").ComputedRef<import("vue").Slot<any> | undefined>;
|
|
90
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "
|
|
90
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:visible" | "close" | "choose")[], "select" | "update:visible" | "close" | "choose", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
91
|
type: {
|
|
92
92
|
type: StringConstructor;
|
|
93
93
|
default: string;
|
|
@@ -159,8 +159,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
159
159
|
disabledDate: FunctionConstructor;
|
|
160
160
|
}>> & {
|
|
161
161
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
162
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
163
162
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
163
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
164
164
|
onChoose?: ((...args: any[]) => any) | undefined;
|
|
165
165
|
}, {
|
|
166
166
|
type: string;
|
|
@@ -111,7 +111,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
111
111
|
onPathChange: (pathNodes: CascaderOption[]) => void;
|
|
112
112
|
innerValue: Ref<CascaderValue>;
|
|
113
113
|
innerVisible: import("vue").WritableComputedRef<boolean>;
|
|
114
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
114
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "change" | "update:modelValue" | "pathChange")[], "update:visible" | "change" | "update:modelValue" | "pathChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
115
115
|
modelValue: ArrayConstructor;
|
|
116
116
|
visible: BooleanConstructor;
|
|
117
117
|
title: StringConstructor;
|
|
@@ -222,7 +222,6 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
222
222
|
round: boolean;
|
|
223
223
|
style: Record<string, any>;
|
|
224
224
|
transition: string;
|
|
225
|
-
overlay: boolean;
|
|
226
225
|
visible: boolean;
|
|
227
226
|
zIndex: string | number;
|
|
228
227
|
duration: string | number;
|
|
@@ -230,6 +229,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
230
229
|
overlayClass: string;
|
|
231
230
|
overlayStyle: Record<string, any>;
|
|
232
231
|
closeOnClickOverlay: boolean;
|
|
232
|
+
overlay: boolean;
|
|
233
233
|
position: import("../popup/types").PopupPosition;
|
|
234
234
|
popClass: string;
|
|
235
235
|
closeable: boolean;
|
|
@@ -48,9 +48,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
48
48
|
}>>>, {
|
|
49
49
|
color: any;
|
|
50
50
|
progress: string | number;
|
|
51
|
-
radius: string | number;
|
|
52
|
-
strokeWidth: string | number;
|
|
53
51
|
strokeLinecap: CircleProgressStrokeLinecap;
|
|
52
|
+
strokeWidth: string | number;
|
|
53
|
+
radius: string | number;
|
|
54
54
|
pathColor: string;
|
|
55
55
|
clockwise: boolean;
|
|
56
56
|
}, {}>, {
|
|
@@ -160,8 +160,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
160
160
|
title: string;
|
|
161
161
|
icon: any;
|
|
162
162
|
border: boolean;
|
|
163
|
-
value: string;
|
|
164
163
|
rotate: string | number;
|
|
164
|
+
value: string;
|
|
165
165
|
}, {}>, {
|
|
166
166
|
title?(_: {}): any;
|
|
167
167
|
value?(_: {}): any;
|
|
@@ -151,7 +151,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
151
151
|
onClickOverlay: () => void;
|
|
152
152
|
contentStyle: import("vue").ComputedRef<CSSProperties>;
|
|
153
153
|
translate: (keyPath: string, ...args: unknown[]) => any;
|
|
154
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
154
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "cancel" | "opened" | "closed" | "update" | "ok")[], "update:visible" | "cancel" | "opened" | "closed" | "update" | "ok", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
155
155
|
closeOnClickOverlay: {
|
|
156
156
|
type: BooleanConstructor;
|
|
157
157
|
default: boolean;
|
|
@@ -290,8 +290,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
290
290
|
default: () => {};
|
|
291
291
|
};
|
|
292
292
|
}>> & {
|
|
293
|
-
onCancel?: ((...args: any[]) => any) | undefined;
|
|
294
293
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
294
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
295
295
|
onOpened?: ((...args: any[]) => any) | undefined;
|
|
296
296
|
onClosed?: ((...args: any[]) => any) | undefined;
|
|
297
297
|
onUpdate?: ((...args: any[]) => any) | undefined;
|
|
@@ -301,7 +301,6 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
301
301
|
style: Record<string, any>;
|
|
302
302
|
title: string;
|
|
303
303
|
transition: string;
|
|
304
|
-
overlay: boolean;
|
|
305
304
|
visible: boolean;
|
|
306
305
|
zIndex: string | number;
|
|
307
306
|
duration: string | number;
|
|
@@ -309,10 +308,12 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
309
308
|
overlayClass: string;
|
|
310
309
|
overlayStyle: Record<string, any>;
|
|
311
310
|
closeOnClickOverlay: boolean;
|
|
311
|
+
overlay: boolean;
|
|
312
312
|
content: string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
313
313
|
[key: string]: any;
|
|
314
314
|
}>;
|
|
315
315
|
position: import("../popup/types").PopupPosition;
|
|
316
|
+
textAlign: TextAlign;
|
|
316
317
|
popClass: string;
|
|
317
318
|
closeable: boolean;
|
|
318
319
|
closeIconPosition: import("../popup/types").PopupCloseIconPosition;
|
|
@@ -320,7 +321,6 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
320
321
|
teleport: string | Element;
|
|
321
322
|
teleportDisable: boolean;
|
|
322
323
|
safeAreaInsetBottom: boolean;
|
|
323
|
-
textAlign: TextAlign;
|
|
324
324
|
cancelText: string;
|
|
325
325
|
okText: string;
|
|
326
326
|
noFooter: boolean;
|
|
@@ -28,9 +28,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
28
28
|
direction: string;
|
|
29
29
|
}>>>, {
|
|
30
30
|
dashed: boolean;
|
|
31
|
+
direction: DividerDirection;
|
|
31
32
|
contentPosition: DividerPosition;
|
|
32
33
|
hairline: boolean;
|
|
33
|
-
direction: DividerDirection;
|
|
34
34
|
}, {}>, Readonly<Record<string, any>> & Record<string, any>>;
|
|
35
35
|
declare const _nut_default: WithInstall<typeof _default>;
|
|
36
36
|
export default _nut_default;
|
|
@@ -90,8 +90,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
90
90
|
onSelected?: ((...args: any[]) => any) | undefined;
|
|
91
91
|
}, {
|
|
92
92
|
type: string;
|
|
93
|
-
overlay: boolean;
|
|
94
93
|
visible: boolean;
|
|
94
|
+
overlay: boolean;
|
|
95
95
|
position: Record<string, any>;
|
|
96
96
|
navList: any[];
|
|
97
97
|
activeColor: string;
|
|
@@ -61,7 +61,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
61
61
|
imageRatio: import("vue").Ref<number>;
|
|
62
62
|
displayWidth: import("vue").Ref<number>;
|
|
63
63
|
displayHeight: import("vue").Ref<number>;
|
|
64
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
64
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scale" | "close")[], "scale" | "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
65
|
image: {
|
|
66
66
|
type: PropType<ImageInterface>;
|
|
67
67
|
default: () => {};
|
|
@@ -119,8 +119,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
119
119
|
}, {
|
|
120
120
|
disabled: boolean;
|
|
121
121
|
type: InputType;
|
|
122
|
-
error: boolean;
|
|
123
122
|
border: boolean;
|
|
123
|
+
error: boolean;
|
|
124
124
|
placeholder: string;
|
|
125
125
|
modelValue: string | number;
|
|
126
126
|
maxLength: string | number;
|
|
@@ -68,9 +68,9 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
68
68
|
onScrollBottom?: ((...args: any[]) => any) | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
height: number;
|
|
71
|
+
margin: number;
|
|
71
72
|
listData: unknown[];
|
|
72
73
|
bufferSize: number;
|
|
73
|
-
margin: number;
|
|
74
74
|
}, {}>>;
|
|
75
75
|
export default _default;
|
|
76
76
|
|
|
@@ -81,10 +81,10 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
81
81
|
default: string;
|
|
82
82
|
};
|
|
83
83
|
}>>, {
|
|
84
|
-
overlay: boolean;
|
|
85
84
|
duration: string | number;
|
|
86
85
|
lockScroll: boolean;
|
|
87
86
|
closeOnClickOverlay: boolean;
|
|
87
|
+
overlay: boolean;
|
|
88
88
|
direction: MenuDirection;
|
|
89
89
|
activeColor: string;
|
|
90
90
|
scrollFixed: string | number | boolean;
|
|
@@ -46,7 +46,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
46
46
|
onClick: (option: MenuItemOption) => void;
|
|
47
47
|
handleClose: () => void;
|
|
48
48
|
handleClickOutside: () => void;
|
|
49
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
49
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "change" | "close" | "update:modelValue")[], "open" | "change" | "close" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
50
|
title: StringConstructor;
|
|
51
51
|
options: {
|
|
52
52
|
type: PropType<MenuItemOption[]>;
|
|
@@ -66,7 +66,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
66
66
|
root: Ref<any>;
|
|
67
67
|
show: Ref<boolean>;
|
|
68
68
|
translate: (keyPath: string, ...args: unknown[]) => any;
|
|
69
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "delete" | "
|
|
69
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "delete" | "update:visible" | "blur" | "close" | "update:modelValue" | "confirm")[], "input" | "delete" | "update:visible" | "blur" | "close" | "update:modelValue" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
70
|
confirmText: {
|
|
71
71
|
type: StringConstructor;
|
|
72
72
|
default: string;
|
|
@@ -110,8 +110,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
110
110
|
}>> & {
|
|
111
111
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
112
112
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
113
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
114
113
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
115
115
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
116
116
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
117
117
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Overlay from './overlay.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { OverlayProps } from './overlay.vue';
|
|
4
|
+
export type OverlayInstance = ComponentPublicInstance & InstanceType<typeof Overlay>;
|
|
5
|
+
export { Overlay, Overlay as default };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import { CSSProperties } from 'vue';
|
|
3
|
+
export type OverlayProps = Partial<{
|
|
4
|
+
visible: boolean;
|
|
5
|
+
zIndex: string | number;
|
|
6
|
+
duration: string | number;
|
|
7
|
+
lockScroll: boolean;
|
|
8
|
+
overlayClass: string;
|
|
9
|
+
overlayStyle: CSSProperties;
|
|
10
|
+
closeOnClickOverlay: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
13
|
+
visible: boolean;
|
|
14
|
+
zIndex: string | number;
|
|
15
|
+
duration: string | number;
|
|
16
|
+
lockScroll: boolean;
|
|
17
|
+
overlayClass: string;
|
|
18
|
+
overlayStyle: CSSProperties;
|
|
19
|
+
closeOnClickOverlay: boolean;
|
|
20
|
+
}>>, {
|
|
21
|
+
visible: boolean;
|
|
22
|
+
zIndex: number;
|
|
23
|
+
duration: number;
|
|
24
|
+
lockScroll: boolean;
|
|
25
|
+
overlayClass: string;
|
|
26
|
+
closeOnClickOverlay: boolean;
|
|
27
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
click: (...args: any[]) => void;
|
|
29
|
+
"update:visible": (...args: any[]) => void;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
31
|
+
visible: boolean;
|
|
32
|
+
zIndex: string | number;
|
|
33
|
+
duration: string | number;
|
|
34
|
+
lockScroll: boolean;
|
|
35
|
+
overlayClass: string;
|
|
36
|
+
overlayStyle: CSSProperties;
|
|
37
|
+
closeOnClickOverlay: boolean;
|
|
38
|
+
}>>, {
|
|
39
|
+
visible: boolean;
|
|
40
|
+
zIndex: number;
|
|
41
|
+
duration: number;
|
|
42
|
+
lockScroll: boolean;
|
|
43
|
+
overlayClass: string;
|
|
44
|
+
closeOnClickOverlay: boolean;
|
|
45
|
+
}>>> & {
|
|
46
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
visible: boolean;
|
|
50
|
+
zIndex: string | number;
|
|
51
|
+
duration: string | number;
|
|
52
|
+
lockScroll: boolean;
|
|
53
|
+
overlayClass: string;
|
|
54
|
+
closeOnClickOverlay: boolean;
|
|
55
|
+
}, {}>, {
|
|
56
|
+
default?(_: {}): any;
|
|
57
|
+
}>;
|
|
58
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
59
|
+
export default _nut_default;
|
|
60
|
+
|
|
61
|
+
declare module 'vue' {
|
|
62
|
+
interface GlobalComponents {
|
|
63
|
+
NutOverlay: typeof _default;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
67
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
68
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
69
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
70
|
+
} : {
|
|
71
|
+
type: import('vue').PropType<T[K]>;
|
|
72
|
+
required: true;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
type __VLS_WithDefaults<P, D> = {
|
|
76
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
77
|
+
default: D[K];
|
|
78
|
+
}> : P[K];
|
|
79
|
+
};
|
|
80
|
+
type __VLS_Prettify<T> = {
|
|
81
|
+
[K in keyof T]: T[K];
|
|
82
|
+
} & {};
|
|
83
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
84
|
+
new (): {
|
|
85
|
+
$slots: S;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -117,6 +117,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
117
117
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
118
118
|
}, {
|
|
119
119
|
title: string;
|
|
120
|
+
columns: (import("./types").PickerOption | import("./types").PickerOption[])[];
|
|
120
121
|
modelValue: (string | number)[];
|
|
121
122
|
threeDimensional: boolean;
|
|
122
123
|
swipeDuration: string | number;
|
|
@@ -125,7 +126,6 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
125
126
|
fieldNames: import("./types").PickerFieldNames;
|
|
126
127
|
cancelText: string;
|
|
127
128
|
okText: string;
|
|
128
|
-
columns: (import("./types").PickerOption | import("./types").PickerOption[])[];
|
|
129
129
|
showToolbar: boolean;
|
|
130
130
|
}, {}>>;
|
|
131
131
|
export default _default;
|
|
@@ -85,7 +85,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
85
85
|
renderIcon: (icon: import("vue").Component, props?: any) => "" | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
86
86
|
[key: string]: any;
|
|
87
87
|
}>;
|
|
88
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
88
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "open" | "close" | "choose" | "update")[], "update:visible" | "open" | "close" | "choose" | "update", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
89
89
|
visible: {
|
|
90
90
|
type: BooleanConstructor;
|
|
91
91
|
default: boolean;
|
|
@@ -154,19 +154,19 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
154
154
|
default: string;
|
|
155
155
|
};
|
|
156
156
|
}>> & {
|
|
157
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
158
157
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
158
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
159
159
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
160
160
|
onChoose?: ((...args: any[]) => any) | undefined;
|
|
161
161
|
onUpdate?: ((...args: any[]) => any) | undefined;
|
|
162
162
|
}, {
|
|
163
|
-
overlay: boolean;
|
|
164
163
|
visible: boolean;
|
|
165
164
|
duration: string | number;
|
|
166
165
|
overlayClass: string;
|
|
167
166
|
closeOnClickOverlay: boolean;
|
|
168
|
-
|
|
167
|
+
overlay: boolean;
|
|
169
168
|
offset: unknown[];
|
|
169
|
+
theme: PopoverTheme;
|
|
170
170
|
list: PopoverList[];
|
|
171
171
|
customClass: string;
|
|
172
172
|
bgColor: string;
|
|
@@ -100,7 +100,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
100
100
|
zIndex: import("vue").Ref<string | number>;
|
|
101
101
|
showSlot: import("vue").Ref<boolean>;
|
|
102
102
|
closed: import("vue").Ref<boolean>;
|
|
103
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
103
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "open" | "close" | "clickPop" | "clickCloseIcon" | "opened" | "closed" | "clickOverlay")[], "update:visible" | "open" | "close" | "clickPop" | "clickCloseIcon" | "opened" | "closed" | "clickOverlay", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
104
104
|
visible: {
|
|
105
105
|
type: BooleanConstructor;
|
|
106
106
|
default: boolean;
|
|
@@ -181,8 +181,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
181
181
|
default: () => {};
|
|
182
182
|
};
|
|
183
183
|
}>> & {
|
|
184
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
185
184
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
185
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
186
186
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
187
187
|
onClickPop?: ((...args: any[]) => any) | undefined;
|
|
188
188
|
onClickCloseIcon?: ((...args: any[]) => any) | undefined;
|
|
@@ -193,7 +193,6 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
193
193
|
round: boolean;
|
|
194
194
|
style: Record<string, any>;
|
|
195
195
|
transition: string;
|
|
196
|
-
overlay: boolean;
|
|
197
196
|
visible: boolean;
|
|
198
197
|
zIndex: string | number;
|
|
199
198
|
duration: string | number;
|
|
@@ -201,6 +200,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
201
200
|
overlayClass: string;
|
|
202
201
|
overlayStyle: Record<string, any>;
|
|
203
202
|
closeOnClickOverlay: boolean;
|
|
203
|
+
overlay: boolean;
|
|
204
204
|
position: import("./types").PopupPosition;
|
|
205
205
|
popClass: string;
|
|
206
206
|
closeable: boolean;
|
|
@@ -33,9 +33,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
33
33
|
}>>>, {
|
|
34
34
|
type: string;
|
|
35
35
|
justify: string;
|
|
36
|
+
flexWrap: string;
|
|
36
37
|
gutter: string | number;
|
|
37
38
|
align: string;
|
|
38
|
-
flexWrap: string;
|
|
39
39
|
}, {}>, {
|
|
40
40
|
default?(_: {}): any;
|
|
41
41
|
}>;
|
|
@@ -48,7 +48,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
48
48
|
onTips: () => void;
|
|
49
49
|
show: import("vue").Ref<boolean>;
|
|
50
50
|
translate: (keyPath: string, ...args: unknown[]) => any;
|
|
51
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
51
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "close" | "focus" | "update:modelValue" | "complete" | "tips")[], "update:visible" | "close" | "focus" | "update:modelValue" | "complete" | "tips", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
52
|
title: {
|
|
53
53
|
type: StringConstructor;
|
|
54
54
|
default: string;
|
|
@@ -87,8 +87,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
87
87
|
};
|
|
88
88
|
}>> & {
|
|
89
89
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
90
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
91
90
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
91
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
92
92
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
93
93
|
onTips?: ((...args: any[]) => any) | undefined;
|
|
94
94
|
onComplete?: ((...args: any[]) => any) | undefined;
|