@nutui/nutui 4.3.6 → 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 +37 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +4588 -4837
- 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/image/Image.js +79 -111
- package/dist/packages/imagepreview/ImagePreview.js +3 -3
- package/dist/packages/{index-uHBD4dfS.js → index-wLaOjIn1.js} +2 -2
- package/dist/packages/input/Input.js +111 -181
- package/dist/packages/invoice/Invoice.js +4 -4
- package/dist/packages/menuitem/MenuItem.js +2 -2
- package/dist/packages/notify/Notify.js +1 -1
- package/dist/packages/numberkeyboard/NumberKeyboard.js +7 -3
- 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/tabpane/TabPane.js +1 -1
- 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/image/image.vue.d.ts +111 -0
- package/dist/types/__VUE/image/index.d.ts +6 -0
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.d.ts +6 -0
- package/dist/types/__VUE/input/input.vue.d.ts +171 -0
- package/dist/types/__VUE/input/{type.d.ts → types.d.ts} +2 -2
- package/dist/types/__VUE/input/util.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 +4 -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 +11 -6
- 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/image/index.vue.d.ts +0 -126
- package/dist/types/__VUE/input/index.vue.d.ts +0 -221
- package/dist/types/__VUE/overlay/index.vue.d.ts +0 -85
- package/dist/types/__VUE/watermark/index.vue.d.ts +0 -201
- /package/dist/types/__VUE/image/{type.d.ts → types.d.ts} +0 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import { ImageFit, ImagePosition } from './types';
|
|
3
|
+
export type ImageProps = Partial<{
|
|
4
|
+
src: string;
|
|
5
|
+
fit: ImageFit;
|
|
6
|
+
position: ImagePosition;
|
|
7
|
+
alt: string;
|
|
8
|
+
width: string;
|
|
9
|
+
height: string;
|
|
10
|
+
round: boolean;
|
|
11
|
+
radius: string | number;
|
|
12
|
+
showError: boolean;
|
|
13
|
+
showLoading: boolean;
|
|
14
|
+
lazyLoad: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
17
|
+
src: string;
|
|
18
|
+
fit: ImageFit;
|
|
19
|
+
position: string;
|
|
20
|
+
alt: string;
|
|
21
|
+
width: string;
|
|
22
|
+
height: string;
|
|
23
|
+
round: boolean;
|
|
24
|
+
radius: string | number;
|
|
25
|
+
showError: boolean;
|
|
26
|
+
showLoading: boolean;
|
|
27
|
+
lazyLoad: boolean;
|
|
28
|
+
}>>, {
|
|
29
|
+
fit: string;
|
|
30
|
+
position: string;
|
|
31
|
+
alt: string;
|
|
32
|
+
width: string;
|
|
33
|
+
height: string;
|
|
34
|
+
round: boolean;
|
|
35
|
+
showError: boolean;
|
|
36
|
+
showLoading: boolean;
|
|
37
|
+
lazyLoad: boolean;
|
|
38
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
|
+
click: (...args: any[]) => void;
|
|
40
|
+
error: (...args: any[]) => void;
|
|
41
|
+
load: (...args: any[]) => void;
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
43
|
+
src: string;
|
|
44
|
+
fit: ImageFit;
|
|
45
|
+
position: string;
|
|
46
|
+
alt: string;
|
|
47
|
+
width: string;
|
|
48
|
+
height: string;
|
|
49
|
+
round: boolean;
|
|
50
|
+
radius: string | number;
|
|
51
|
+
showError: boolean;
|
|
52
|
+
showLoading: boolean;
|
|
53
|
+
lazyLoad: boolean;
|
|
54
|
+
}>>, {
|
|
55
|
+
fit: string;
|
|
56
|
+
position: string;
|
|
57
|
+
alt: string;
|
|
58
|
+
width: string;
|
|
59
|
+
height: string;
|
|
60
|
+
round: boolean;
|
|
61
|
+
showError: boolean;
|
|
62
|
+
showLoading: boolean;
|
|
63
|
+
lazyLoad: boolean;
|
|
64
|
+
}>>> & {
|
|
65
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
onLoad?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
round: boolean;
|
|
70
|
+
width: string;
|
|
71
|
+
height: string;
|
|
72
|
+
position: string;
|
|
73
|
+
fit: ImageFit;
|
|
74
|
+
alt: string;
|
|
75
|
+
showError: boolean;
|
|
76
|
+
showLoading: boolean;
|
|
77
|
+
lazyLoad: boolean;
|
|
78
|
+
}, {}>, {
|
|
79
|
+
loading?(_: {}): any;
|
|
80
|
+
error?(_: {}): any;
|
|
81
|
+
}>;
|
|
82
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
83
|
+
export default _nut_default;
|
|
84
|
+
|
|
85
|
+
declare module 'vue' {
|
|
86
|
+
interface GlobalComponents {
|
|
87
|
+
NutImage: typeof _default;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
91
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
92
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
93
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
94
|
+
} : {
|
|
95
|
+
type: import('vue').PropType<T[K]>;
|
|
96
|
+
required: true;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
type __VLS_WithDefaults<P, D> = {
|
|
100
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
101
|
+
default: D[K];
|
|
102
|
+
}> : P[K];
|
|
103
|
+
};
|
|
104
|
+
type __VLS_Prettify<T> = {
|
|
105
|
+
[K in keyof T]: T[K];
|
|
106
|
+
} & {};
|
|
107
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
108
|
+
new (): {
|
|
109
|
+
$slots: S;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Image from './image.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { ImageProps } from './image.vue';
|
|
4
|
+
export type { ImageFit, ImagePosition } from './types';
|
|
5
|
+
export type ImageInstance = ComponentPublicInstance & InstanceType<typeof Image>;
|
|
6
|
+
export { Image, Image as default };
|
|
@@ -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: () => {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Input from './input.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { InputProps } from './input.vue';
|
|
4
|
+
export type { InputType, InputAlign, InputConfirmType, InputFormatTrigger } from './types';
|
|
5
|
+
export type InputInstance = ComponentPublicInstance & InstanceType<typeof Input>;
|
|
6
|
+
export { Input, Input as default };
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import type { InputType, InputAlign, InputFormatTrigger, InputConfirmType } from './types';
|
|
3
|
+
export type InputProps = Partial<{
|
|
4
|
+
type: InputType;
|
|
5
|
+
modelValue: string | number;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
inputAlign: InputAlign;
|
|
8
|
+
required: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
readonly: boolean;
|
|
11
|
+
maxLength: string | number;
|
|
12
|
+
clearable: boolean;
|
|
13
|
+
clearSize: string | number;
|
|
14
|
+
border: boolean;
|
|
15
|
+
formatTrigger: InputFormatTrigger;
|
|
16
|
+
formatter: (value: string) => string;
|
|
17
|
+
showWordLimit: boolean;
|
|
18
|
+
autofocus: boolean;
|
|
19
|
+
confirmType: InputConfirmType;
|
|
20
|
+
error: boolean;
|
|
21
|
+
showClearIcon: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
24
|
+
type: InputType;
|
|
25
|
+
modelValue: string | number;
|
|
26
|
+
placeholder: string;
|
|
27
|
+
inputAlign: InputAlign;
|
|
28
|
+
required: boolean;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
readonly: boolean;
|
|
31
|
+
maxLength: string | number;
|
|
32
|
+
clearable: boolean;
|
|
33
|
+
clearSize: string | number;
|
|
34
|
+
border: boolean;
|
|
35
|
+
formatTrigger: InputFormatTrigger;
|
|
36
|
+
formatter: (value: string) => string;
|
|
37
|
+
showWordLimit: boolean;
|
|
38
|
+
autofocus: boolean;
|
|
39
|
+
confirmType: InputConfirmType;
|
|
40
|
+
error: boolean;
|
|
41
|
+
showClearIcon: boolean;
|
|
42
|
+
}>>, {
|
|
43
|
+
type: string;
|
|
44
|
+
modelValue: string;
|
|
45
|
+
placeholder: string;
|
|
46
|
+
inputAlign: string;
|
|
47
|
+
required: boolean;
|
|
48
|
+
disabled: boolean;
|
|
49
|
+
readonly: boolean;
|
|
50
|
+
maxLength: string;
|
|
51
|
+
clearable: boolean;
|
|
52
|
+
clearSize: string;
|
|
53
|
+
border: boolean;
|
|
54
|
+
formatTrigger: string;
|
|
55
|
+
showWordLimit: boolean;
|
|
56
|
+
autofocus: boolean;
|
|
57
|
+
confirmType: string;
|
|
58
|
+
error: boolean;
|
|
59
|
+
showClearIcon: boolean;
|
|
60
|
+
}>, {
|
|
61
|
+
focus: () => void;
|
|
62
|
+
blur: () => void;
|
|
63
|
+
select: () => void;
|
|
64
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
65
|
+
click: (...args: any[]) => void;
|
|
66
|
+
clear: (...args: any[]) => void;
|
|
67
|
+
blur: (...args: any[]) => void;
|
|
68
|
+
focus: (...args: any[]) => void;
|
|
69
|
+
keypress: (...args: any[]) => void;
|
|
70
|
+
"update:modelValue": (...args: any[]) => void;
|
|
71
|
+
clickInput: (...args: any[]) => void;
|
|
72
|
+
confirm: (...args: any[]) => void;
|
|
73
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
74
|
+
type: InputType;
|
|
75
|
+
modelValue: string | number;
|
|
76
|
+
placeholder: string;
|
|
77
|
+
inputAlign: InputAlign;
|
|
78
|
+
required: boolean;
|
|
79
|
+
disabled: boolean;
|
|
80
|
+
readonly: boolean;
|
|
81
|
+
maxLength: string | number;
|
|
82
|
+
clearable: boolean;
|
|
83
|
+
clearSize: string | number;
|
|
84
|
+
border: boolean;
|
|
85
|
+
formatTrigger: InputFormatTrigger;
|
|
86
|
+
formatter: (value: string) => string;
|
|
87
|
+
showWordLimit: boolean;
|
|
88
|
+
autofocus: boolean;
|
|
89
|
+
confirmType: InputConfirmType;
|
|
90
|
+
error: boolean;
|
|
91
|
+
showClearIcon: boolean;
|
|
92
|
+
}>>, {
|
|
93
|
+
type: string;
|
|
94
|
+
modelValue: string;
|
|
95
|
+
placeholder: string;
|
|
96
|
+
inputAlign: string;
|
|
97
|
+
required: boolean;
|
|
98
|
+
disabled: boolean;
|
|
99
|
+
readonly: boolean;
|
|
100
|
+
maxLength: string;
|
|
101
|
+
clearable: boolean;
|
|
102
|
+
clearSize: string;
|
|
103
|
+
border: boolean;
|
|
104
|
+
formatTrigger: string;
|
|
105
|
+
showWordLimit: boolean;
|
|
106
|
+
autofocus: boolean;
|
|
107
|
+
confirmType: string;
|
|
108
|
+
error: boolean;
|
|
109
|
+
showClearIcon: boolean;
|
|
110
|
+
}>>> & {
|
|
111
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
113
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
onKeypress?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
onClickInput?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
disabled: boolean;
|
|
121
|
+
type: InputType;
|
|
122
|
+
border: boolean;
|
|
123
|
+
error: boolean;
|
|
124
|
+
placeholder: string;
|
|
125
|
+
modelValue: string | number;
|
|
126
|
+
maxLength: string | number;
|
|
127
|
+
clearable: boolean;
|
|
128
|
+
autofocus: boolean;
|
|
129
|
+
readonly: boolean;
|
|
130
|
+
inputAlign: InputAlign;
|
|
131
|
+
required: boolean;
|
|
132
|
+
clearSize: string | number;
|
|
133
|
+
formatTrigger: InputFormatTrigger;
|
|
134
|
+
showWordLimit: boolean;
|
|
135
|
+
confirmType: InputConfirmType;
|
|
136
|
+
showClearIcon: boolean;
|
|
137
|
+
}, {}>, {
|
|
138
|
+
left?(_: {}): any;
|
|
139
|
+
clear?(_: {}): any;
|
|
140
|
+
right?(_: {}): any;
|
|
141
|
+
}>;
|
|
142
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
143
|
+
export default _nut_default;
|
|
144
|
+
|
|
145
|
+
declare module 'vue' {
|
|
146
|
+
interface GlobalComponents {
|
|
147
|
+
NutInput: typeof _default;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
151
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
152
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
153
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
154
|
+
} : {
|
|
155
|
+
type: import('vue').PropType<T[K]>;
|
|
156
|
+
required: true;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
type __VLS_WithDefaults<P, D> = {
|
|
160
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
161
|
+
default: D[K];
|
|
162
|
+
}> : P[K];
|
|
163
|
+
};
|
|
164
|
+
type __VLS_Prettify<T> = {
|
|
165
|
+
[K in keyof T]: T[K];
|
|
166
|
+
} & {};
|
|
167
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
168
|
+
new (): {
|
|
169
|
+
$slots: S;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type InputAlign = 'left' | 'center' | 'right';
|
|
2
2
|
export type InputFormatTrigger = 'onChange' | 'onBlur';
|
|
3
3
|
export type InputType = 'tel' | 'url' | 'date' | 'file' | 'text' | 'time' | 'week' | 'color' | 'digit' | 'email' | 'image' | 'month' | 'radio' | 'range' | 'reset' | 'button' | 'hidden' | 'number' | 'search' | 'submit' | 'checkbox' | 'password' | 'textarea' | 'datetime-local' | 'idcard' | 'nickname' | 'safe-password';
|
|
4
4
|
export type InputRule = {
|
|
@@ -6,7 +6,7 @@ export type InputRule = {
|
|
|
6
6
|
message?: string;
|
|
7
7
|
required?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export type
|
|
9
|
+
export type InputConfirmType = 'send' | 'search' | 'next' | 'go' | 'done';
|
|
10
10
|
export interface InputTarget extends HTMLInputElement {
|
|
11
11
|
composing?: boolean;
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
|
-
import type { InputType } from './
|
|
2
|
+
import type { InputType } from './types';
|
|
3
3
|
export declare function formatNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
4
4
|
export declare function mapInputType(type: InputType): {
|
|
5
5
|
type: InputHTMLAttributes['type'];
|
|
@@ -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[]>;
|
|
@@ -53,6 +53,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
53
53
|
clickKeyIndex: Ref<string | number | undefined>;
|
|
54
54
|
defaultKey: () => keys[];
|
|
55
55
|
closeBoard: () => void;
|
|
56
|
+
confirm: () => void;
|
|
56
57
|
onTouchEnd: (event: TouchEvent) => void;
|
|
57
58
|
onTouchMove: (event: TouchEvent) => void;
|
|
58
59
|
onTouchstart: (item: {
|
|
@@ -65,7 +66,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
65
66
|
root: Ref<any>;
|
|
66
67
|
show: Ref<boolean>;
|
|
67
68
|
translate: (keyPath: string, ...args: unknown[]) => any;
|
|
68
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "delete" | "blur" | "close" | "update:
|
|
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<{
|
|
69
70
|
confirmText: {
|
|
70
71
|
type: StringConstructor;
|
|
71
72
|
default: string;
|
|
@@ -109,9 +110,10 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
109
110
|
}>> & {
|
|
110
111
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
111
112
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
112
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
113
113
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
114
115
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
115
117
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
116
118
|
}, {
|
|
117
119
|
type: NumberKeyboardType;
|
|
@@ -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;
|