@nutui/nutui 4.3.7 → 4.3.8
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 +17 -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/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/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/menuitem/MenuItem.js +1 -1
- 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/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
|
@@ -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;
|
|
@@ -67,7 +67,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
67
67
|
reduce: (value: number) => void;
|
|
68
68
|
getSlots: (name: string) => import("vue").Slot<any> | undefined;
|
|
69
69
|
translate: (keyPath: string, ...args: unknown[]) => any;
|
|
70
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reduce" | "add" | "
|
|
70
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reduce" | "add" | "update:visible" | "close" | "clickCloseIcon" | "clickOverlay" | "selectSku" | "changeStepper" | "overLimit" | "clickBtnOperate")[], "reduce" | "add" | "update:visible" | "close" | "clickCloseIcon" | "clickOverlay" | "selectSku" | "changeStepper" | "overLimit" | "clickBtnOperate", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
71
71
|
visible: {
|
|
72
72
|
type: BooleanConstructor;
|
|
73
73
|
default: boolean;
|
|
@@ -121,8 +121,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
121
121
|
default: boolean;
|
|
122
122
|
};
|
|
123
123
|
}>> & {
|
|
124
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
125
124
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
125
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
126
126
|
onClickCloseIcon?: ((...args: any[]) => any) | undefined;
|
|
127
127
|
onClickOverlay?: ((...args: any[]) => any) | undefined;
|
|
128
128
|
onReduce?: ((...args: any[]) => any) | undefined;
|
|
@@ -21,8 +21,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
21
|
close: () => void;
|
|
22
22
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
23
|
click: (...args: any[]) => void;
|
|
24
|
-
close: (...args: any[]) => void;
|
|
25
24
|
open: (...args: any[]) => void;
|
|
25
|
+
close: (...args: any[]) => void;
|
|
26
26
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
27
27
|
name: string;
|
|
28
28
|
touchMoveStopPropagation: boolean;
|
|
@@ -189,8 +189,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
189
189
|
background: string;
|
|
190
190
|
ellipsis: boolean;
|
|
191
191
|
sticky: boolean;
|
|
192
|
-
align: TabsAlign;
|
|
193
192
|
direction: TabsDirection;
|
|
193
|
+
align: TabsAlign;
|
|
194
194
|
modelValue: string | number;
|
|
195
195
|
titleScroll: boolean;
|
|
196
196
|
swipeable: boolean;
|
|
@@ -172,8 +172,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
172
172
|
type: TourType;
|
|
173
173
|
mask: boolean;
|
|
174
174
|
closeOnClickOverlay: boolean;
|
|
175
|
-
theme: PopoverTheme;
|
|
176
175
|
offset: Number[];
|
|
176
|
+
theme: PopoverTheme;
|
|
177
177
|
current: number;
|
|
178
178
|
modelValue: boolean;
|
|
179
179
|
completeTxt: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Watermark from './watermark.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { WatermarkProps } from './watermark.vue';
|
|
4
|
+
export type {} from './types';
|
|
5
|
+
export type WatermarkInstance = ComponentPublicInstance & InstanceType<typeof Watermark>;
|
|
6
|
+
export { Watermark, Watermark as default };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type WatermarkProps = Partial<{
|
|
3
|
+
gapX: number;
|
|
4
|
+
gapY: number;
|
|
5
|
+
zIndex: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
rotate: number;
|
|
9
|
+
image: string;
|
|
10
|
+
imageWidth: number;
|
|
11
|
+
imageHeight: number;
|
|
12
|
+
content: string | string[];
|
|
13
|
+
fontColor: string;
|
|
14
|
+
fontStyle: string;
|
|
15
|
+
fontFamily: string;
|
|
16
|
+
fontWeight: string;
|
|
17
|
+
fontSize: string | number;
|
|
18
|
+
fullPage: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
21
|
+
gapX: number;
|
|
22
|
+
gapY: number;
|
|
23
|
+
zIndex: number;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
rotate: number;
|
|
27
|
+
image: string;
|
|
28
|
+
imageWidth: number;
|
|
29
|
+
imageHeight: number;
|
|
30
|
+
content: string | string[];
|
|
31
|
+
fontColor: string;
|
|
32
|
+
fontStyle: string;
|
|
33
|
+
fontFamily: string;
|
|
34
|
+
fontWeight: string;
|
|
35
|
+
fontSize: string | number;
|
|
36
|
+
fullPage: boolean;
|
|
37
|
+
}>>, {
|
|
38
|
+
gapX: number;
|
|
39
|
+
gapY: number;
|
|
40
|
+
zIndex: number;
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
rotate: number;
|
|
44
|
+
imageWidth: number;
|
|
45
|
+
imageHeight: number;
|
|
46
|
+
content: string;
|
|
47
|
+
fontColor: string;
|
|
48
|
+
fontStyle: string;
|
|
49
|
+
fontFamily: string;
|
|
50
|
+
fontWeight: string;
|
|
51
|
+
fontSize: number;
|
|
52
|
+
fullPage: boolean;
|
|
53
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
54
|
+
gapX: number;
|
|
55
|
+
gapY: number;
|
|
56
|
+
zIndex: number;
|
|
57
|
+
width: number;
|
|
58
|
+
height: number;
|
|
59
|
+
rotate: number;
|
|
60
|
+
image: string;
|
|
61
|
+
imageWidth: number;
|
|
62
|
+
imageHeight: number;
|
|
63
|
+
content: string | string[];
|
|
64
|
+
fontColor: string;
|
|
65
|
+
fontStyle: string;
|
|
66
|
+
fontFamily: string;
|
|
67
|
+
fontWeight: string;
|
|
68
|
+
fontSize: string | number;
|
|
69
|
+
fullPage: boolean;
|
|
70
|
+
}>>, {
|
|
71
|
+
gapX: number;
|
|
72
|
+
gapY: number;
|
|
73
|
+
zIndex: number;
|
|
74
|
+
width: number;
|
|
75
|
+
height: number;
|
|
76
|
+
rotate: number;
|
|
77
|
+
imageWidth: number;
|
|
78
|
+
imageHeight: number;
|
|
79
|
+
content: string;
|
|
80
|
+
fontColor: string;
|
|
81
|
+
fontStyle: string;
|
|
82
|
+
fontFamily: string;
|
|
83
|
+
fontWeight: string;
|
|
84
|
+
fontSize: number;
|
|
85
|
+
fullPage: boolean;
|
|
86
|
+
}>>>, {
|
|
87
|
+
width: number;
|
|
88
|
+
height: number;
|
|
89
|
+
zIndex: number;
|
|
90
|
+
content: string | string[];
|
|
91
|
+
fontFamily: string;
|
|
92
|
+
fontSize: string | number;
|
|
93
|
+
fontStyle: string;
|
|
94
|
+
fontWeight: string;
|
|
95
|
+
rotate: number;
|
|
96
|
+
gapX: number;
|
|
97
|
+
gapY: number;
|
|
98
|
+
imageWidth: number;
|
|
99
|
+
imageHeight: number;
|
|
100
|
+
fontColor: string;
|
|
101
|
+
fullPage: boolean;
|
|
102
|
+
}, {}>;
|
|
103
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
104
|
+
export default _nut_default;
|
|
105
|
+
|
|
106
|
+
declare module 'vue' {
|
|
107
|
+
interface GlobalComponents {
|
|
108
|
+
NutWatermark: typeof _default;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
112
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
113
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
114
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
115
|
+
} : {
|
|
116
|
+
type: import('vue').PropType<T[K]>;
|
|
117
|
+
required: true;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
type __VLS_WithDefaults<P, D> = {
|
|
121
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
122
|
+
default: D[K];
|
|
123
|
+
}> : P[K];
|
|
124
|
+
};
|
|
125
|
+
type __VLS_Prettify<T> = {
|
|
126
|
+
[K in keyof T]: T[K];
|
|
127
|
+
} & {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ import Cell from './__VUE/cell/index';
|
|
|
6
6
|
export * from './__VUE/cell/index';
|
|
7
7
|
import CellGroup from './__VUE/cellgroup/index';
|
|
8
8
|
export * from './__VUE/cellgroup/index';
|
|
9
|
-
import Overlay from './__VUE/overlay/index
|
|
9
|
+
import Overlay from './__VUE/overlay/index';
|
|
10
|
+
export * from './__VUE/overlay/index';
|
|
10
11
|
import Popup from './__VUE/popup/index.vue';
|
|
11
12
|
import ConfigProvider from './__VUE/configprovider/index.vue';
|
|
12
13
|
import Image from './__VUE/image/index';
|
|
@@ -116,7 +117,8 @@ import { showImagePreview } from './__VUE/imagepreview/index';
|
|
|
116
117
|
import Countup from './__VUE/countup/index.vue';
|
|
117
118
|
import Countdown from './__VUE/countdown/index';
|
|
118
119
|
export * from './__VUE/countdown/index';
|
|
119
|
-
import Badge from './__VUE/badge/index
|
|
120
|
+
import Badge from './__VUE/badge/index';
|
|
121
|
+
export * from './__VUE/badge/index';
|
|
120
122
|
import Tag from './__VUE/tag/index';
|
|
121
123
|
export * from './__VUE/tag/index';
|
|
122
124
|
import Popover from './__VUE/popover/index.vue';
|
|
@@ -130,7 +132,8 @@ import Table from './__VUE/table/index.vue';
|
|
|
130
132
|
import Animate from './__VUE/animate/index';
|
|
131
133
|
export * from './__VUE/animate/index';
|
|
132
134
|
import Ellipsis from './__VUE/ellipsis/index.vue';
|
|
133
|
-
import Watermark from './__VUE/watermark/index
|
|
135
|
+
import Watermark from './__VUE/watermark/index';
|
|
136
|
+
export * from './__VUE/watermark/index';
|
|
134
137
|
import TrendArrow from './__VUE/trendarrow/index';
|
|
135
138
|
export * from './__VUE/trendarrow/index';
|
|
136
139
|
import Tour from './__VUE/tour/index.vue';
|
|
@@ -151,7 +154,7 @@ import Invoice from './__VUE/invoice/index';
|
|
|
151
154
|
export * from './__VUE/invoice/index';
|
|
152
155
|
import AvatarCropper from './__VUE/avatarcropper/index.vue';
|
|
153
156
|
declare function install(app: App): void;
|
|
154
|
-
declare const version = "4.3.
|
|
157
|
+
declare const version = "4.3.8";
|
|
155
158
|
export { install, version, Locale, Button, Cell, CellGroup, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Space, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavbar, SideNavbarItem, SubSideNavbar, Range, Searchbar, Cascader, Calendar, CalendarCard, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, Picker, ShortPassword, Textarea, Uploader, NumberKeyboard, Form, FormItem, Swipe, SwipeGroup, ActionSheet, Backtop, Drag, Dialog, InfiniteLoading, PullRefresh, Notify, Switch, Toast, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, Noticebar, Empty, Video, Steps, Step, Swiper, SwiperItem, Price, ImagePreview, Countup, Countdown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Animate, Ellipsis, Watermark, TrendArrow, Tour, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment, Invoice, AvatarCropper, showDialog, showNotify, showToast, showImagePreview };
|
|
156
159
|
declare const _default: {
|
|
157
160
|
install: typeof install;
|
package/package.json
CHANGED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
declare type Install<T> = T & {
|
|
3
|
-
install(app: import('vue').App): void;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
|
-
value: {
|
|
7
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
8
|
-
};
|
|
9
|
-
max: {
|
|
10
|
-
type: NumberConstructor;
|
|
11
|
-
default: number;
|
|
12
|
-
};
|
|
13
|
-
dot: {
|
|
14
|
-
type: BooleanConstructor;
|
|
15
|
-
default: boolean;
|
|
16
|
-
};
|
|
17
|
-
bubble: {
|
|
18
|
-
type: BooleanConstructor;
|
|
19
|
-
default: boolean;
|
|
20
|
-
};
|
|
21
|
-
hidden: {
|
|
22
|
-
type: BooleanConstructor;
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
top: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
right: {
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
default: string;
|
|
32
|
-
};
|
|
33
|
-
zIndex: {
|
|
34
|
-
type: NumberConstructor;
|
|
35
|
-
default: number;
|
|
36
|
-
};
|
|
37
|
-
color: {
|
|
38
|
-
type: StringConstructor;
|
|
39
|
-
default: string;
|
|
40
|
-
};
|
|
41
|
-
}, {
|
|
42
|
-
state: {};
|
|
43
|
-
stl: import("vue").ComputedRef<{
|
|
44
|
-
top: string;
|
|
45
|
-
right: string;
|
|
46
|
-
zIndex: number;
|
|
47
|
-
background: string;
|
|
48
|
-
}>;
|
|
49
|
-
content: import("vue").ComputedRef<string | number | undefined>;
|
|
50
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
-
value: {
|
|
52
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
53
|
-
};
|
|
54
|
-
max: {
|
|
55
|
-
type: NumberConstructor;
|
|
56
|
-
default: number;
|
|
57
|
-
};
|
|
58
|
-
dot: {
|
|
59
|
-
type: BooleanConstructor;
|
|
60
|
-
default: boolean;
|
|
61
|
-
};
|
|
62
|
-
bubble: {
|
|
63
|
-
type: BooleanConstructor;
|
|
64
|
-
default: boolean;
|
|
65
|
-
};
|
|
66
|
-
hidden: {
|
|
67
|
-
type: BooleanConstructor;
|
|
68
|
-
default: boolean;
|
|
69
|
-
};
|
|
70
|
-
top: {
|
|
71
|
-
type: StringConstructor;
|
|
72
|
-
default: string;
|
|
73
|
-
};
|
|
74
|
-
right: {
|
|
75
|
-
type: StringConstructor;
|
|
76
|
-
default: string;
|
|
77
|
-
};
|
|
78
|
-
zIndex: {
|
|
79
|
-
type: NumberConstructor;
|
|
80
|
-
default: number;
|
|
81
|
-
};
|
|
82
|
-
color: {
|
|
83
|
-
type: StringConstructor;
|
|
84
|
-
default: string;
|
|
85
|
-
};
|
|
86
|
-
}>>, {
|
|
87
|
-
color: string;
|
|
88
|
-
right: string;
|
|
89
|
-
top: string;
|
|
90
|
-
zIndex: number;
|
|
91
|
-
hidden: boolean;
|
|
92
|
-
dot: boolean;
|
|
93
|
-
max: number;
|
|
94
|
-
bubble: boolean;
|
|
95
|
-
}, {}>>;
|
|
96
|
-
export default _default;
|
|
97
|
-
|
|
98
|
-
declare module 'vue' {
|
|
99
|
-
interface GlobalComponents {
|
|
100
|
-
NutBadge: typeof _default;
|
|
101
|
-
}
|
|
102
|
-
}
|