@nutui/nutui 4.3.2 → 4.3.3
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 +2 -4
- package/dist/nutui.js +6502 -6815
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/addresslist/AddressList.js +2 -2
- package/dist/packages/backtop/Backtop.js +79 -89
- package/dist/packages/calendar/Calendar.js +814 -3
- package/dist/packages/calendar/index.scss +0 -1
- package/dist/packages/calendarcard/CalendarCard.js +1 -1
- package/dist/packages/card/Card.js +2 -2
- package/dist/packages/circleprogress/CircleProgress.js +90 -97
- package/dist/packages/comment/Comment.js +2 -2
- package/dist/packages/ecard/Ecard.js +2 -2
- package/dist/packages/input/Input.js +7 -7
- package/dist/packages/inputnumber/InputNumber.js +83 -102
- package/dist/packages/invoice/Invoice.js +87 -138
- package/dist/packages/navbar/Navbar.js +103 -115
- package/dist/packages/progress/Progress.js +96 -115
- package/dist/packages/rate/Rate.js +98 -140
- package/dist/packages/sku/Sku.js +2 -2
- package/dist/packages/swipe/Swipe.js +96 -110
- package/dist/packages/swipegroup/SwipeGroup.js +41 -23
- package/dist/packages/tag/Tag.js +57 -66
- package/dist/packages/uploader/Uploader.js +4 -4
- package/dist/smartips/web-types.json +2 -2
- package/dist/styles/base-jdb.css +1 -1
- package/dist/styles/base-jddkh.css +1 -1
- package/dist/styles/base-jdt.css +1 -1
- package/dist/styles/themes/default.scss +0 -1
- package/dist/styles/themes/jdb.scss +0 -1
- package/dist/styles/themes/jddkh.scss +0 -1
- package/dist/styles/themes/jdt.scss +0 -1
- package/dist/styles/variables-jdb.scss +0 -1
- package/dist/styles/variables-jddkh.scss +0 -1
- package/dist/styles/variables-jdt.scss +0 -1
- package/dist/styles/variables.scss +0 -1
- package/dist/types/__VUE/backtop/backtop.vue.d.ts +87 -0
- package/dist/types/__VUE/backtop/index.d.ts +5 -0
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -12
- package/dist/types/__VUE/circleprogress/circle-progress.vue.d.ts +88 -0
- package/dist/types/__VUE/circleprogress/index.d.ts +6 -0
- package/dist/types/__VUE/inputnumber/index.d.ts +5 -0
- package/dist/types/__VUE/inputnumber/input-number.vue.d.ts +112 -0
- package/dist/types/__VUE/invoice/index.d.ts +6 -0
- package/dist/types/__VUE/invoice/invoice.vue.d.ts +59 -0
- package/dist/types/__VUE/invoice/types.d.ts +12 -0
- package/dist/types/__VUE/navbar/index.d.ts +5 -0
- package/dist/types/__VUE/navbar/navbar.vue.d.ts +125 -0
- package/dist/types/__VUE/progress/index.d.ts +6 -0
- package/dist/types/__VUE/progress/progress.vue.d.ts +91 -0
- package/dist/types/__VUE/rate/index.d.ts +5 -0
- package/dist/types/__VUE/rate/rate.vue.d.ts +208 -0
- package/dist/types/__VUE/swipe/index.d.ts +6 -0
- package/dist/types/__VUE/swipe/swipe.vue.d.ts +79 -0
- package/dist/types/__VUE/swipe/types.d.ts +1 -0
- package/dist/types/__VUE/swipegroup/index.d.ts +5 -0
- package/dist/types/__VUE/swipegroup/swipe-group.vue.d.ts +47 -0
- package/dist/types/__VUE/tag/index.d.ts +6 -0
- package/dist/types/__VUE/tag/tag.vue.d.ts +90 -0
- package/dist/types/__VUE/tag/types.d.ts +1 -1
- package/dist/types/index.d.ts +22 -13
- package/package.json +1 -1
- package/dist/packages/calendaritem/CalendarItem.js +0 -819
- package/dist/packages/calendaritem/index.css +0 -0
- package/dist/packages/calendaritem/index.mjs +0 -2
- package/dist/packages/calendaritem/index.scss +0 -0
- package/dist/packages/calendaritem/style/css.mjs +0 -2
- package/dist/packages/calendaritem/style/index.mjs +0 -2
- package/dist/types/__VUE/backtop/index.vue.d.ts +0 -98
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +0 -95
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +0 -117
- package/dist/types/__VUE/invoice/index.vue.d.ts +0 -53
- package/dist/types/__VUE/navbar/index.vue.d.ts +0 -129
- package/dist/types/__VUE/progress/index.vue.d.ts +0 -120
- package/dist/types/__VUE/rate/index.vue.d.ts +0 -240
- package/dist/types/__VUE/swipe/index.vue.d.ts +0 -70
- package/dist/types/__VUE/swipegroup/index.vue.d.ts +0 -26
- package/dist/types/__VUE/tag/index.vue.d.ts +0 -94
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type RateProps = Partial<{
|
|
3
|
+
count: string | number;
|
|
4
|
+
modelValue: string | number;
|
|
5
|
+
customIcon: any;
|
|
6
|
+
size: string | number;
|
|
7
|
+
activeColor: string;
|
|
8
|
+
voidColor: string;
|
|
9
|
+
readonly: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
allowHalf: boolean;
|
|
12
|
+
touchable: boolean;
|
|
13
|
+
spacing: string | number;
|
|
14
|
+
}>;
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
16
|
+
count: string | number;
|
|
17
|
+
modelValue: string | number;
|
|
18
|
+
customIcon: any;
|
|
19
|
+
size: string | number;
|
|
20
|
+
activeColor: string;
|
|
21
|
+
voidColor: string;
|
|
22
|
+
readonly: boolean;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
allowHalf: boolean;
|
|
25
|
+
touchable: boolean;
|
|
26
|
+
spacing: string | number;
|
|
27
|
+
}>>, {
|
|
28
|
+
count: number;
|
|
29
|
+
modelValue: number;
|
|
30
|
+
customIcon: () => import("vue").DefineComponent<{
|
|
31
|
+
class: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
name: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
color: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
width: {
|
|
44
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
height: {
|
|
48
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
classes: import("vue").ComputedRef<{
|
|
53
|
+
[x: string]: string | boolean;
|
|
54
|
+
"nut-icon": boolean;
|
|
55
|
+
}>;
|
|
56
|
+
style: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
57
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
class: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
name: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
color: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
width: {
|
|
71
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
height: {
|
|
75
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
}>>, {
|
|
79
|
+
name: string;
|
|
80
|
+
width: string | number;
|
|
81
|
+
height: string | number;
|
|
82
|
+
color: string;
|
|
83
|
+
class: string;
|
|
84
|
+
}>;
|
|
85
|
+
activeColor: string;
|
|
86
|
+
voidColor: string;
|
|
87
|
+
readonly: boolean;
|
|
88
|
+
disabled: boolean;
|
|
89
|
+
allowHalf: boolean;
|
|
90
|
+
touchable: boolean;
|
|
91
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
92
|
+
change: (...args: any[]) => void;
|
|
93
|
+
"update:modelValue": (...args: any[]) => void;
|
|
94
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
95
|
+
count: string | number;
|
|
96
|
+
modelValue: string | number;
|
|
97
|
+
customIcon: any;
|
|
98
|
+
size: string | number;
|
|
99
|
+
activeColor: string;
|
|
100
|
+
voidColor: string;
|
|
101
|
+
readonly: boolean;
|
|
102
|
+
disabled: boolean;
|
|
103
|
+
allowHalf: boolean;
|
|
104
|
+
touchable: boolean;
|
|
105
|
+
spacing: string | number;
|
|
106
|
+
}>>, {
|
|
107
|
+
count: number;
|
|
108
|
+
modelValue: number;
|
|
109
|
+
customIcon: () => import("vue").DefineComponent<{
|
|
110
|
+
class: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
name: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
color: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
width: {
|
|
123
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
height: {
|
|
127
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
130
|
+
}, {
|
|
131
|
+
classes: import("vue").ComputedRef<{
|
|
132
|
+
[x: string]: string | boolean;
|
|
133
|
+
"nut-icon": boolean;
|
|
134
|
+
}>;
|
|
135
|
+
style: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
136
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
137
|
+
class: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
name: {
|
|
142
|
+
type: StringConstructor;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
145
|
+
color: {
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
width: {
|
|
150
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
153
|
+
height: {
|
|
154
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
}>>, {
|
|
158
|
+
name: string;
|
|
159
|
+
width: string | number;
|
|
160
|
+
height: string | number;
|
|
161
|
+
color: string;
|
|
162
|
+
class: string;
|
|
163
|
+
}>;
|
|
164
|
+
activeColor: string;
|
|
165
|
+
voidColor: string;
|
|
166
|
+
readonly: boolean;
|
|
167
|
+
disabled: boolean;
|
|
168
|
+
allowHalf: boolean;
|
|
169
|
+
touchable: boolean;
|
|
170
|
+
}>>> & {
|
|
171
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
172
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
173
|
+
}, {
|
|
174
|
+
disabled: boolean;
|
|
175
|
+
activeColor: string;
|
|
176
|
+
modelValue: string | number;
|
|
177
|
+
count: string | number;
|
|
178
|
+
readonly: boolean;
|
|
179
|
+
customIcon: any;
|
|
180
|
+
voidColor: string;
|
|
181
|
+
allowHalf: boolean;
|
|
182
|
+
touchable: boolean;
|
|
183
|
+
}, {}>;
|
|
184
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
185
|
+
export default _nut_default;
|
|
186
|
+
|
|
187
|
+
declare module 'vue' {
|
|
188
|
+
interface GlobalComponents {
|
|
189
|
+
NutRate: typeof _default;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
193
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
194
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
195
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
196
|
+
} : {
|
|
197
|
+
type: import('vue').PropType<T[K]>;
|
|
198
|
+
required: true;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
type __VLS_WithDefaults<P, D> = {
|
|
202
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
203
|
+
default: D[K];
|
|
204
|
+
}> : P[K];
|
|
205
|
+
};
|
|
206
|
+
type __VLS_Prettify<T> = {
|
|
207
|
+
[K in keyof T]: T[K];
|
|
208
|
+
} & {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Swipe from './swipe.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { SwipeProps } from './swipe.vue';
|
|
4
|
+
export type { SwipePosition } from './types';
|
|
5
|
+
export type SwipeInstance = ComponentPublicInstance & InstanceType<typeof Swipe>;
|
|
6
|
+
export { Swipe, Swipe as default };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import { type SwipePosition } from './types';
|
|
3
|
+
export type SwipeProps = Partial<{
|
|
4
|
+
name: string;
|
|
5
|
+
touchMoveStopPropagation: boolean;
|
|
6
|
+
touchMovePreventDefault: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
10
|
+
name: string;
|
|
11
|
+
touchMoveStopPropagation: boolean;
|
|
12
|
+
touchMovePreventDefault: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
}>>, {
|
|
15
|
+
name: string;
|
|
16
|
+
touchMoveStopPropagation: boolean;
|
|
17
|
+
touchMovePreventDefault: boolean;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
}>, {
|
|
20
|
+
open: (p?: SwipePosition) => void;
|
|
21
|
+
close: () => void;
|
|
22
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
click: (...args: any[]) => void;
|
|
24
|
+
close: (...args: any[]) => void;
|
|
25
|
+
open: (...args: any[]) => void;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
27
|
+
name: string;
|
|
28
|
+
touchMoveStopPropagation: boolean;
|
|
29
|
+
touchMovePreventDefault: boolean;
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
}>>, {
|
|
32
|
+
name: string;
|
|
33
|
+
touchMoveStopPropagation: boolean;
|
|
34
|
+
touchMovePreventDefault: boolean;
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
}>>> & {
|
|
37
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
name: string;
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
touchMoveStopPropagation: boolean;
|
|
44
|
+
touchMovePreventDefault: boolean;
|
|
45
|
+
}, {}>, {
|
|
46
|
+
left?(_: {}): any;
|
|
47
|
+
default?(_: {}): any;
|
|
48
|
+
right?(_: {}): any;
|
|
49
|
+
}>;
|
|
50
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
51
|
+
export default _nut_default;
|
|
52
|
+
|
|
53
|
+
declare module 'vue' {
|
|
54
|
+
interface GlobalComponents {
|
|
55
|
+
NutSwipe: typeof _default;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
59
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
60
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
61
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
62
|
+
} : {
|
|
63
|
+
type: import('vue').PropType<T[K]>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
type __VLS_WithDefaults<P, D> = {
|
|
68
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
69
|
+
default: D[K];
|
|
70
|
+
}> : P[K];
|
|
71
|
+
};
|
|
72
|
+
type __VLS_Prettify<T> = {
|
|
73
|
+
[K in keyof T]: T[K];
|
|
74
|
+
} & {};
|
|
75
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
76
|
+
new (): {
|
|
77
|
+
$slots: S;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import SwipeGroup from './swipe-group.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { SwipeGroupProps } from './swipe-group.vue';
|
|
4
|
+
export type SwipeGroupInstance = ComponentPublicInstance & InstanceType<typeof SwipeGroup>;
|
|
5
|
+
export { SwipeGroup, SwipeGroup as default };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type SwipeGroupProps = Partial<{
|
|
3
|
+
lock: boolean;
|
|
4
|
+
}>;
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
6
|
+
lock: boolean;
|
|
7
|
+
}>>, {
|
|
8
|
+
lock: boolean;
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
10
|
+
lock: boolean;
|
|
11
|
+
}>>, {
|
|
12
|
+
lock: boolean;
|
|
13
|
+
}>>>, {
|
|
14
|
+
lock: boolean;
|
|
15
|
+
}, {}>, {
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
}>;
|
|
18
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
19
|
+
export default _nut_default;
|
|
20
|
+
|
|
21
|
+
declare module 'vue' {
|
|
22
|
+
interface GlobalComponents {
|
|
23
|
+
NutSwipeGroup: typeof _default;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type __VLS_WithDefaults<P, D> = {
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
+
default: D[K];
|
|
38
|
+
}> : P[K];
|
|
39
|
+
};
|
|
40
|
+
type __VLS_Prettify<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|
|
43
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Tag from './tag.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { TagProps } from './tag.vue';
|
|
4
|
+
export type { TagType } from './types';
|
|
5
|
+
export type TagInstance = ComponentPublicInstance & InstanceType<typeof Tag>;
|
|
6
|
+
export { Tag, Tag as default };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import { TagType } from './types';
|
|
3
|
+
export type TagProps = Partial<{
|
|
4
|
+
color: string;
|
|
5
|
+
textColor: string;
|
|
6
|
+
type: TagType;
|
|
7
|
+
plain: boolean;
|
|
8
|
+
round: boolean;
|
|
9
|
+
mark: boolean;
|
|
10
|
+
closeable: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
13
|
+
color: string;
|
|
14
|
+
textColor: string;
|
|
15
|
+
type: TagType;
|
|
16
|
+
plain: boolean;
|
|
17
|
+
round: boolean;
|
|
18
|
+
mark: boolean;
|
|
19
|
+
closeable: boolean;
|
|
20
|
+
}>>, {
|
|
21
|
+
color: string;
|
|
22
|
+
textColor: string;
|
|
23
|
+
type: string;
|
|
24
|
+
plain: boolean;
|
|
25
|
+
round: boolean;
|
|
26
|
+
mark: boolean;
|
|
27
|
+
closeable: boolean;
|
|
28
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
+
click: (...args: any[]) => void;
|
|
30
|
+
close: (...args: any[]) => void;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
32
|
+
color: string;
|
|
33
|
+
textColor: string;
|
|
34
|
+
type: TagType;
|
|
35
|
+
plain: boolean;
|
|
36
|
+
round: boolean;
|
|
37
|
+
mark: boolean;
|
|
38
|
+
closeable: boolean;
|
|
39
|
+
}>>, {
|
|
40
|
+
color: string;
|
|
41
|
+
textColor: string;
|
|
42
|
+
type: string;
|
|
43
|
+
plain: boolean;
|
|
44
|
+
round: boolean;
|
|
45
|
+
mark: boolean;
|
|
46
|
+
closeable: boolean;
|
|
47
|
+
}>>> & {
|
|
48
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
round: boolean;
|
|
52
|
+
color: string;
|
|
53
|
+
plain: boolean;
|
|
54
|
+
type: TagType;
|
|
55
|
+
mark: boolean;
|
|
56
|
+
closeable: boolean;
|
|
57
|
+
textColor: string;
|
|
58
|
+
}, {}>, {
|
|
59
|
+
default?(_: {}): any;
|
|
60
|
+
}>;
|
|
61
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
62
|
+
export default _nut_default;
|
|
63
|
+
|
|
64
|
+
declare module 'vue' {
|
|
65
|
+
interface GlobalComponents {
|
|
66
|
+
NutTag: typeof _default;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
70
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
71
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
72
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
73
|
+
} : {
|
|
74
|
+
type: import('vue').PropType<T[K]>;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
type __VLS_WithDefaults<P, D> = {
|
|
79
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
80
|
+
default: D[K];
|
|
81
|
+
}> : P[K];
|
|
82
|
+
};
|
|
83
|
+
type __VLS_Prettify<T> = {
|
|
84
|
+
[K in keyof T]: T[K];
|
|
85
|
+
} & {};
|
|
86
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
87
|
+
new (): {
|
|
88
|
+
$slots: S;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type TagType = 'primary' | 'success' | 'danger' | 'warning';
|
|
1
|
+
export type TagType = 'primary' | 'success' | 'danger' | 'warning' | 'default';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -20,7 +20,8 @@ export * from './__VUE/divider/index';
|
|
|
20
20
|
import Grid from './__VUE/grid/index.vue';
|
|
21
21
|
import GridItem from './__VUE/griditem/index.vue';
|
|
22
22
|
import Space from './__VUE/space/index.vue';
|
|
23
|
-
import Navbar from './__VUE/navbar/index
|
|
23
|
+
import Navbar from './__VUE/navbar/index';
|
|
24
|
+
export * from './__VUE/navbar/index';
|
|
24
25
|
import FixedNav from './__VUE/fixednav/index.vue';
|
|
25
26
|
import Menu from './__VUE/menu/index.vue';
|
|
26
27
|
import MenuItem from './__VUE/menuitem/index.vue';
|
|
@@ -43,12 +44,13 @@ export * from './__VUE/calendarcard/index';
|
|
|
43
44
|
import Checkbox from './__VUE/checkbox/index.vue';
|
|
44
45
|
import CheckboxGroup from './__VUE/checkboxgroup/index.vue';
|
|
45
46
|
import DatePicker from './__VUE/datepicker/index.vue';
|
|
46
|
-
import InputNumber from './__VUE/inputnumber/index
|
|
47
|
+
import InputNumber from './__VUE/inputnumber/index';
|
|
48
|
+
export * from './__VUE/inputnumber/index';
|
|
47
49
|
import Input from './__VUE/input/index.vue';
|
|
48
50
|
import Radio from './__VUE/radio/index.vue';
|
|
49
51
|
import RadioGroup from './__VUE/radiogroup/index.vue';
|
|
50
|
-
import Rate from './__VUE/rate/index
|
|
51
|
-
|
|
52
|
+
import Rate from './__VUE/rate/index';
|
|
53
|
+
export * from './__VUE/rate/index';
|
|
52
54
|
import Picker from './__VUE/picker/index.vue';
|
|
53
55
|
import ShortPassword from './__VUE/shortpassword/index.vue';
|
|
54
56
|
import Textarea from './__VUE/textarea/index.vue';
|
|
@@ -58,10 +60,13 @@ import Form from './__VUE/form/index';
|
|
|
58
60
|
export * from './__VUE/form/index';
|
|
59
61
|
import FormItem from './__VUE/formitem/index';
|
|
60
62
|
export * from './__VUE/formitem/index';
|
|
61
|
-
import Swipe from './__VUE/swipe/index
|
|
62
|
-
|
|
63
|
+
import Swipe from './__VUE/swipe/index';
|
|
64
|
+
export * from './__VUE/swipe/index';
|
|
65
|
+
import SwipeGroup from './__VUE/swipegroup/index';
|
|
66
|
+
export * from './__VUE/swipegroup/index';
|
|
63
67
|
import ActionSheet from './__VUE/actionsheet/index.vue';
|
|
64
|
-
import Backtop from './__VUE/backtop/index
|
|
68
|
+
import Backtop from './__VUE/backtop/index';
|
|
69
|
+
export * from './__VUE/backtop/index';
|
|
65
70
|
import Drag from './__VUE/drag/index.vue';
|
|
66
71
|
import Dialog from './__VUE/dialog/index.vue';
|
|
67
72
|
import { showDialog } from './__VUE/dialog/index';
|
|
@@ -77,8 +82,10 @@ import AudioOperate from './__VUE/audiooperate/index.vue';
|
|
|
77
82
|
import Avatar from './__VUE/avatar/index.vue';
|
|
78
83
|
import AvatarGroup from './__VUE/avatargroup/index.vue';
|
|
79
84
|
import List from './__VUE/list/index.vue';
|
|
80
|
-
import Progress from './__VUE/progress/index
|
|
81
|
-
|
|
85
|
+
import Progress from './__VUE/progress/index';
|
|
86
|
+
export * from './__VUE/progress/index';
|
|
87
|
+
import CircleProgress from './__VUE/circleprogress/index';
|
|
88
|
+
export * from './__VUE/circleprogress/index';
|
|
82
89
|
import Noticebar from './__VUE/noticebar/index.vue';
|
|
83
90
|
import Empty from './__VUE/empty/index.vue';
|
|
84
91
|
import Video from './__VUE/video/index.vue';
|
|
@@ -93,7 +100,8 @@ import { showImagePreview } from './__VUE/imagepreview/index';
|
|
|
93
100
|
import Countup from './__VUE/countup/index.vue';
|
|
94
101
|
import Countdown from './__VUE/countdown/index.vue';
|
|
95
102
|
import Badge from './__VUE/badge/index.vue';
|
|
96
|
-
import Tag from './__VUE/tag/index
|
|
103
|
+
import Tag from './__VUE/tag/index';
|
|
104
|
+
export * from './__VUE/tag/index';
|
|
97
105
|
import Popover from './__VUE/popover/index.vue';
|
|
98
106
|
import Skeleton from './__VUE/skeleton/index.vue';
|
|
99
107
|
import Collapse from './__VUE/collapse/index';
|
|
@@ -120,11 +128,12 @@ import AddressList from './__VUE/addresslist/index.vue';
|
|
|
120
128
|
import Category from './__VUE/category/index.vue';
|
|
121
129
|
import CategoryPane from './__VUE/categorypane/index.vue';
|
|
122
130
|
import Comment from './__VUE/comment/index.vue';
|
|
123
|
-
import Invoice from './__VUE/invoice/index
|
|
131
|
+
import Invoice from './__VUE/invoice/index';
|
|
132
|
+
export * from './__VUE/invoice/index';
|
|
124
133
|
import AvatarCropper from './__VUE/avatarcropper/index.vue';
|
|
125
134
|
declare function install(app: App): void;
|
|
126
|
-
declare const version = "4.3.
|
|
127
|
-
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,
|
|
135
|
+
declare const version = "4.3.3";
|
|
136
|
+
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 };
|
|
128
137
|
declare const _default: {
|
|
129
138
|
install: typeof install;
|
|
130
139
|
version: string;
|