@nutui/nutui 4.3.6 → 4.3.7
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 +20 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +4053 -4161
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/image/Image.js +79 -111
- package/dist/packages/input/Input.js +111 -181
- package/dist/packages/invoice/Invoice.js +4 -4
- package/dist/packages/menuitem/MenuItem.js +1 -1
- package/dist/packages/numberkeyboard/NumberKeyboard.js +6 -2
- package/dist/packages/tabpane/TabPane.js +1 -1
- package/dist/smartips/web-types.json +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/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/numberkeyboard/index.vue.d.ts +3 -1
- package/dist/types/index.d.ts +5 -3
- package/package.json +1 -1
- 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/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 };
|
|
@@ -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
|
+
error: boolean;
|
|
123
|
+
border: 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'];
|
|
@@ -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:visible" | "update:modelValue")[], "input" | "delete" | "blur" | "close" | "update:visible" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
69
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "delete" | "blur" | "close" | "update:visible" | "update:modelValue" | "confirm")[], "input" | "delete" | "blur" | "close" | "update:visible" | "update:modelValue" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
69
70
|
confirmText: {
|
|
70
71
|
type: StringConstructor;
|
|
71
72
|
default: string;
|
|
@@ -112,6 +113,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
112
113
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
113
114
|
"onUpdate:visible"?: ((...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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,7 +9,8 @@ export * from './__VUE/cellgroup/index';
|
|
|
9
9
|
import Overlay from './__VUE/overlay/index.vue';
|
|
10
10
|
import Popup from './__VUE/popup/index.vue';
|
|
11
11
|
import ConfigProvider from './__VUE/configprovider/index.vue';
|
|
12
|
-
import Image from './__VUE/image/index
|
|
12
|
+
import Image from './__VUE/image/index';
|
|
13
|
+
export * from './__VUE/image/index';
|
|
13
14
|
import Layout from './__VUE/layout/index';
|
|
14
15
|
export * from './__VUE/layout/index';
|
|
15
16
|
import Col from './__VUE/col/index';
|
|
@@ -53,7 +54,8 @@ import CheckboxGroup from './__VUE/checkboxgroup/index.vue';
|
|
|
53
54
|
import DatePicker from './__VUE/datepicker/index.vue';
|
|
54
55
|
import InputNumber from './__VUE/inputnumber/index';
|
|
55
56
|
export * from './__VUE/inputnumber/index';
|
|
56
|
-
import Input from './__VUE/input/index
|
|
57
|
+
import Input from './__VUE/input/index';
|
|
58
|
+
export * from './__VUE/input/index';
|
|
57
59
|
import Radio from './__VUE/radio/index';
|
|
58
60
|
export * from './__VUE/radio/index';
|
|
59
61
|
import RadioGroup from './__VUE/radiogroup/index';
|
|
@@ -149,7 +151,7 @@ import Invoice from './__VUE/invoice/index';
|
|
|
149
151
|
export * from './__VUE/invoice/index';
|
|
150
152
|
import AvatarCropper from './__VUE/avatarcropper/index.vue';
|
|
151
153
|
declare function install(app: App): void;
|
|
152
|
-
declare const version = "4.3.
|
|
154
|
+
declare const version = "4.3.7";
|
|
153
155
|
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 };
|
|
154
156
|
declare const _default: {
|
|
155
157
|
install: typeof install;
|
package/package.json
CHANGED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { PropType, CSSProperties } from 'vue';
|
|
2
|
-
import { ImageFit } from './type';
|
|
3
|
-
|
|
4
|
-
declare type Install<T> = T & {
|
|
5
|
-
install(app: import('vue').App): void;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: Install< import("vue").DefineComponent<{
|
|
8
|
-
src: StringConstructor;
|
|
9
|
-
fit: {
|
|
10
|
-
type: PropType<ImageFit>;
|
|
11
|
-
default: string;
|
|
12
|
-
};
|
|
13
|
-
position: {
|
|
14
|
-
type: PropType<string>;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
alt: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
width: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
default: string;
|
|
24
|
-
};
|
|
25
|
-
height: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
round: {
|
|
30
|
-
type: BooleanConstructor;
|
|
31
|
-
default: boolean;
|
|
32
|
-
};
|
|
33
|
-
radius: (NumberConstructor | StringConstructor)[];
|
|
34
|
-
showError: {
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
default: boolean;
|
|
37
|
-
};
|
|
38
|
-
showLoading: {
|
|
39
|
-
type: BooleanConstructor;
|
|
40
|
-
default: boolean;
|
|
41
|
-
};
|
|
42
|
-
lazyLoad: {
|
|
43
|
-
type: BooleanConstructor;
|
|
44
|
-
default: boolean;
|
|
45
|
-
};
|
|
46
|
-
}, {
|
|
47
|
-
imageClick: (event: Event) => void;
|
|
48
|
-
classes: import("vue").ComputedRef<{
|
|
49
|
-
[x: string]: boolean;
|
|
50
|
-
}>;
|
|
51
|
-
styles: import("vue").ComputedRef<CSSProperties>;
|
|
52
|
-
stylebox: import("vue").ComputedRef<{
|
|
53
|
-
height?: string | undefined;
|
|
54
|
-
width?: string | undefined;
|
|
55
|
-
overflow?: string | undefined;
|
|
56
|
-
borderRadius?: any;
|
|
57
|
-
}>;
|
|
58
|
-
error: () => void;
|
|
59
|
-
load: () => void;
|
|
60
|
-
show: import("vue").Ref<boolean>;
|
|
61
|
-
imgRef: import("vue").Ref<null>;
|
|
62
|
-
loading: import("vue").Ref<boolean>;
|
|
63
|
-
isError: import("vue").Ref<boolean>;
|
|
64
|
-
slotLoding: import("vue").Ref<import("vue").Slot<any> | undefined>;
|
|
65
|
-
slotError: import("vue").Ref<import("vue").Slot<any> | undefined>;
|
|
66
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "error" | "load")[], "click" | "error" | "load", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
67
|
-
src: StringConstructor;
|
|
68
|
-
fit: {
|
|
69
|
-
type: PropType<ImageFit>;
|
|
70
|
-
default: string;
|
|
71
|
-
};
|
|
72
|
-
position: {
|
|
73
|
-
type: PropType<string>;
|
|
74
|
-
default: string;
|
|
75
|
-
};
|
|
76
|
-
alt: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
default: string;
|
|
79
|
-
};
|
|
80
|
-
width: {
|
|
81
|
-
type: StringConstructor;
|
|
82
|
-
default: string;
|
|
83
|
-
};
|
|
84
|
-
height: {
|
|
85
|
-
type: StringConstructor;
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
|
-
round: {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
default: boolean;
|
|
91
|
-
};
|
|
92
|
-
radius: (NumberConstructor | StringConstructor)[];
|
|
93
|
-
showError: {
|
|
94
|
-
type: BooleanConstructor;
|
|
95
|
-
default: boolean;
|
|
96
|
-
};
|
|
97
|
-
showLoading: {
|
|
98
|
-
type: BooleanConstructor;
|
|
99
|
-
default: boolean;
|
|
100
|
-
};
|
|
101
|
-
lazyLoad: {
|
|
102
|
-
type: BooleanConstructor;
|
|
103
|
-
default: boolean;
|
|
104
|
-
};
|
|
105
|
-
}>> & {
|
|
106
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
107
|
-
onLoad?: ((...args: any[]) => any) | undefined;
|
|
108
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
109
|
-
}, {
|
|
110
|
-
round: boolean;
|
|
111
|
-
width: string;
|
|
112
|
-
height: string;
|
|
113
|
-
position: string;
|
|
114
|
-
fit: ImageFit;
|
|
115
|
-
alt: string;
|
|
116
|
-
showError: boolean;
|
|
117
|
-
showLoading: boolean;
|
|
118
|
-
lazyLoad: boolean;
|
|
119
|
-
}, {}>>;
|
|
120
|
-
export default _default;
|
|
121
|
-
|
|
122
|
-
declare module 'vue' {
|
|
123
|
-
interface GlobalComponents {
|
|
124
|
-
NutImage: typeof _default;
|
|
125
|
-
}
|
|
126
|
-
}
|