@nutui/nutui 4.2.3 → 4.2.5
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 +5566 -5532
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/address/Address.js +0 -1
- package/dist/packages/calendar/Calendar.js +3 -4
- package/dist/packages/calendaritem/CalendarItem.js +1 -2
- package/dist/packages/cascader/Cascader.js +3 -3
- package/dist/packages/cascader/index.css +1 -1
- package/dist/packages/checkbox/Checkbox.js +148 -152
- package/dist/packages/checkboxgroup/CheckboxGroup.js +2 -3
- package/dist/packages/divider/Divider.js +2 -2
- package/dist/packages/elevator/Elevator.js +5 -6
- package/dist/packages/form/Form.js +9 -2
- package/dist/packages/formitem/FormItem.js +30 -3
- package/dist/packages/formitem/index.css +1 -1
- package/dist/packages/formitem/index.scss +25 -0
- package/dist/packages/imagepreview/ImagePreview.js +0 -1
- package/dist/packages/{index-cDNmNOtI.js → index-NLe0VBkN.js} +2 -3
- package/dist/packages/{index.vue_vue_type_script_lang-Lc2BXA17.js → index.vue_vue_type_script_lang-54PRh3YM.js} +0 -1
- package/dist/packages/{index.vue_vue_type_script_lang-KuoPcQZs.js → index.vue_vue_type_script_lang-MJYVRFbp.js} +10 -6
- package/dist/packages/inputnumber/InputNumber.js +1 -1
- package/dist/packages/invoice/Invoice.js +2 -2
- package/dist/packages/invoice/index.css +1 -1
- package/dist/packages/navbar/index.css +1 -1
- package/dist/packages/navbar/index.scss +5 -16
- package/dist/packages/popover/Popover.js +3 -2
- package/dist/packages/radio/Radio.js +1 -1
- package/dist/packages/radio/index.css +1 -1
- package/dist/packages/radio/index.scss +21 -0
- package/dist/packages/radiogroup/RadioGroup.js +1 -1
- package/dist/packages/radiogroup/index.scss +0 -5
- package/dist/packages/range/Range.js +0 -2
- package/dist/packages/swiper/Swiper.js +2 -3
- package/dist/packages/swiperitem/SwiperItem.js +7 -2
- package/dist/packages/tabs/Tabs.js +4 -6
- package/dist/packages/tabs/index.css +1 -1
- package/dist/packages/tabs/index.scss +116 -115
- package/dist/packages/textarea/index.css +1 -1
- package/dist/packages/textarea/index.scss +1 -0
- package/dist/packages/watermark/Watermark.js +8 -2
- package/dist/smartips/web-types.json +32 -5
- package/dist/style.css +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +3 -3
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
- package/dist/types/__VUE/checkbox/index.vue.d.ts +72 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +3 -28
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +15 -1
- package/dist/types/__VUE/drag/index.vue.d.ts +5 -3
- package/dist/types/__VUE/drag/types.d.ts +1 -0
- package/dist/types/__VUE/form/common.d.ts +9 -1
- package/dist/types/__VUE/form/index.vue.d.ts +18 -0
- package/dist/types/__VUE/form/types.d.ts +3 -1
- package/dist/types/__VUE/formitem/index.vue.d.ts +21 -1
- package/dist/types/__VUE/formitem/types.d.ts +2 -0
- package/dist/types/__VUE/image/index.vue.d.ts +1 -1
- package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/pagination/index.vue.d.ts +6 -4
- package/dist/types/__VUE/pagination/types.d.ts +1 -0
- package/dist/types/__VUE/radio/index.vue.d.ts +14 -3
- package/dist/types/__VUE/radio/types.d.ts +4 -0
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +8 -6
- package/dist/types/__VUE/searchbar/index.vue.d.ts +8 -7
- package/dist/types/__VUE/searchbar/types.d.ts +3 -0
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +1 -1
- package/dist/types/__VUE/steps/index.vue.d.ts +5 -3
- package/dist/types/__VUE/steps/types.d.ts +1 -0
- package/dist/types/__VUE/table/types.d.ts +2 -2
- package/dist/types/__VUE/tabs/index.vue.d.ts +11 -11
- package/dist/types/__VUE/tabs/types.d.ts +3 -0
- package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -28
- package/dist/types/__VUE/watermark/index.vue.d.ts +29 -3
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/packages/index-nRNEaTqA.js +0 -10
- package/dist/types/__VUE/checkbox/common.d.ts +0 -2
- package/dist/types/__VUE/picker/common.d.ts +0 -406
- package/dist/types/__VUE/searchbar/type.d.ts +0 -1
- package/dist/types/__VUE/table/common.d.ts +0 -125
|
@@ -145,8 +145,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
145
145
|
regionList: import("vue").ComputedRef<any>;
|
|
146
146
|
transformData: (data: AddressData[]) => CustomRegionData[];
|
|
147
147
|
scrollDom: Ref<HTMLElement | null>;
|
|
148
|
-
showPopup: any
|
|
149
|
-
privateType: any
|
|
148
|
+
showPopup: Ref<any>;
|
|
149
|
+
privateType: Ref<any>;
|
|
150
150
|
tabIndex: Ref<number>;
|
|
151
151
|
tabName: Ref<string[]>;
|
|
152
152
|
selectedRegion: Ref<{
|
|
@@ -325,8 +325,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
325
325
|
closeOnClickOverlay: boolean;
|
|
326
326
|
type: string;
|
|
327
327
|
round: boolean;
|
|
328
|
-
height: string | number;
|
|
329
328
|
position: string;
|
|
329
|
+
height: string | number;
|
|
330
330
|
transition: string;
|
|
331
331
|
popClass: string;
|
|
332
332
|
closeable: boolean;
|
|
@@ -42,7 +42,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
42
42
|
marginLeft: string;
|
|
43
43
|
}>;
|
|
44
44
|
foldCount: import("vue").Ref<number>;
|
|
45
|
-
avatarGroupRef: any
|
|
45
|
+
avatarGroupRef: import("vue").Ref<any>;
|
|
46
46
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
47
|
maxContent: {
|
|
48
48
|
type: StringConstructor;
|
|
@@ -99,10 +99,10 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
99
99
|
}>> & {
|
|
100
100
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
101
101
|
}, {
|
|
102
|
-
replace: boolean;
|
|
103
102
|
title: string;
|
|
104
103
|
center: boolean;
|
|
105
104
|
desc: string;
|
|
105
|
+
replace: boolean;
|
|
106
106
|
size: string;
|
|
107
107
|
url: string;
|
|
108
108
|
subTitle: string;
|
|
@@ -2,7 +2,78 @@
|
|
|
2
2
|
declare type Install<T> = T & {
|
|
3
3
|
install(app: import('vue').App): void;
|
|
4
4
|
};
|
|
5
|
-
declare const _default: Install< (
|
|
5
|
+
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
disabled: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
textPosition: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
iconSize: {
|
|
19
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
label: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
indeterminate: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
shape: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
modelValue: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
disabled: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
textPosition: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
iconSize: {
|
|
50
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
label: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
indeterminate: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
shape: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
}>> & {
|
|
66
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
label: string;
|
|
70
|
+
disabled: boolean;
|
|
71
|
+
modelValue: boolean;
|
|
72
|
+
shape: string;
|
|
73
|
+
textPosition: string;
|
|
74
|
+
iconSize: string | number;
|
|
75
|
+
indeterminate: boolean;
|
|
76
|
+
}, {}>>;
|
|
6
77
|
export default _default;
|
|
7
78
|
|
|
8
79
|
declare module 'vue' {
|
|
@@ -1,23 +1,11 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
|
|
2
3
|
declare type Install<T> = T & {
|
|
3
4
|
install(app: import('vue').App): void;
|
|
4
5
|
};
|
|
5
6
|
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
7
|
modelValue: {
|
|
7
|
-
type:
|
|
8
|
-
(arrayLength: number): (string | number)[];
|
|
9
|
-
(...items: (string | number)[]): (string | number)[];
|
|
10
|
-
new (arrayLength: number): (string | number)[];
|
|
11
|
-
new (...items: (string | number)[]): (string | number)[];
|
|
12
|
-
isArray(arg: any): arg is any[];
|
|
13
|
-
readonly prototype: any[];
|
|
14
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
15
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
16
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
17
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
18
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
19
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
20
|
-
})[];
|
|
8
|
+
type: PropType<string | number | (string | number)[]>;
|
|
21
9
|
default: string;
|
|
22
10
|
};
|
|
23
11
|
accordion: {
|
|
@@ -28,20 +16,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
28
16
|
nutCollapseRef: import("vue").Ref<null>;
|
|
29
17
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
18
|
modelValue: {
|
|
31
|
-
type:
|
|
32
|
-
(arrayLength: number): (string | number)[];
|
|
33
|
-
(...items: (string | number)[]): (string | number)[];
|
|
34
|
-
new (arrayLength: number): (string | number)[];
|
|
35
|
-
new (...items: (string | number)[]): (string | number)[];
|
|
36
|
-
isArray(arg: any): arg is any[];
|
|
37
|
-
readonly prototype: any[];
|
|
38
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
39
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
40
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
41
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
42
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
43
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
44
|
-
})[];
|
|
19
|
+
type: PropType<string | number | (string | number)[]>;
|
|
45
20
|
default: string;
|
|
46
21
|
};
|
|
47
22
|
accordion: {
|
|
@@ -201,12 +201,12 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
201
201
|
};
|
|
202
202
|
}>>, {
|
|
203
203
|
name: string | number;
|
|
204
|
-
value: string;
|
|
205
204
|
label: string;
|
|
206
205
|
title: string;
|
|
207
206
|
icon: Record<string, any>;
|
|
208
207
|
border: boolean;
|
|
209
208
|
disabled: boolean;
|
|
209
|
+
value: string;
|
|
210
210
|
rotate: string | number;
|
|
211
211
|
}, {}>>;
|
|
212
212
|
export default _default;
|
|
@@ -76,8 +76,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
76
76
|
setRef: (el: any) => void;
|
|
77
77
|
topNumber: (index: number) => string | number;
|
|
78
78
|
turnNumber: (index: number) => string | number;
|
|
79
|
-
toFixed: import("vue").Ref<number>;
|
|
80
79
|
type: import("vue").Ref<string>;
|
|
80
|
+
toFixed: import("vue").Ref<number>;
|
|
81
81
|
initNum: import("vue").Ref<number>;
|
|
82
82
|
endNum: import("vue").Ref<number>;
|
|
83
83
|
speed: import("vue").Ref<number>;
|
|
@@ -188,8 +188,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
188
188
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
189
189
|
onScrollEnd?: ((...args: any[]) => any) | undefined;
|
|
190
190
|
}, {
|
|
191
|
-
toFixed: number;
|
|
192
191
|
type: string;
|
|
192
|
+
toFixed: number;
|
|
193
193
|
initNum: number;
|
|
194
194
|
endNum: number;
|
|
195
195
|
speed: number;
|
|
@@ -23,7 +23,21 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
23
23
|
};
|
|
24
24
|
}, {
|
|
25
25
|
classes: import("vue").ComputedRef<{
|
|
26
|
-
|
|
26
|
+
"nut-divider": boolean;
|
|
27
|
+
"nut-divider-center": import("vue").Slot<any> | undefined;
|
|
28
|
+
"nut-divider-left": boolean;
|
|
29
|
+
"nut-divider-right": boolean;
|
|
30
|
+
"nut-divider-dashed": boolean;
|
|
31
|
+
"nut-divider-hairline": boolean;
|
|
32
|
+
"nut-divider-vertical"?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
"nut-divider": boolean;
|
|
35
|
+
"nut-divider-vertical": boolean;
|
|
36
|
+
"nut-divider-center"?: undefined;
|
|
37
|
+
"nut-divider-left"?: undefined;
|
|
38
|
+
"nut-divider-right"?: undefined;
|
|
39
|
+
"nut-divider-dashed"?: undefined;
|
|
40
|
+
"nut-divider-hairline"?: undefined;
|
|
27
41
|
}>;
|
|
28
42
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
43
|
contentPosition: {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { DragDirection } from './types';
|
|
1
3
|
|
|
2
4
|
declare type Install<T> = T & {
|
|
3
5
|
install(app: import('vue').App): void;
|
|
@@ -8,7 +10,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
8
10
|
default: boolean;
|
|
9
11
|
};
|
|
10
12
|
direction: {
|
|
11
|
-
type:
|
|
13
|
+
type: PropType<DragDirection>;
|
|
12
14
|
default: string;
|
|
13
15
|
};
|
|
14
16
|
boundary: {
|
|
@@ -31,7 +33,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
31
33
|
default: boolean;
|
|
32
34
|
};
|
|
33
35
|
direction: {
|
|
34
|
-
type:
|
|
36
|
+
type: PropType<DragDirection>;
|
|
35
37
|
default: string;
|
|
36
38
|
};
|
|
37
39
|
boundary: {
|
|
@@ -44,7 +46,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
44
46
|
};
|
|
45
47
|
};
|
|
46
48
|
}>>, {
|
|
47
|
-
direction:
|
|
49
|
+
direction: DragDirection;
|
|
48
50
|
attract: boolean;
|
|
49
51
|
boundary: Record<string, any>;
|
|
50
52
|
}, {}>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DragDirection = 'all' | 'x' | 'y';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { FormRules } from './types';
|
|
2
|
+
import type { FormRules } from './types';
|
|
3
3
|
export declare const component: (components: any) => {
|
|
4
4
|
props: {
|
|
5
5
|
modelValue: {
|
|
@@ -10,6 +10,14 @@ export declare const component: (components: any) => {
|
|
|
10
10
|
type: PropType<FormRules>;
|
|
11
11
|
default: () => {};
|
|
12
12
|
};
|
|
13
|
+
labelPosition: {
|
|
14
|
+
type: PropType<import("../formitem/types").FormItemLabelPosition>;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
starPosition: {
|
|
18
|
+
type: PropType<import("../formitem/types").FormItemStarPosition>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
13
21
|
};
|
|
14
22
|
components: any;
|
|
15
23
|
emits: string[];
|
|
@@ -11,6 +11,14 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
11
11
|
type: import("vue").PropType<import("./types").FormRules>;
|
|
12
12
|
default: () => {};
|
|
13
13
|
};
|
|
14
|
+
labelPosition: {
|
|
15
|
+
type: import("vue").PropType<import("../formitem/types").FormItemLabelPosition>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
starPosition: {
|
|
19
|
+
type: import("vue").PropType<import("../formitem/types").FormItemStarPosition>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
14
22
|
}, {
|
|
15
23
|
validate: (customProp?: string) => Promise<unknown>;
|
|
16
24
|
reset: () => void;
|
|
@@ -25,11 +33,21 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
25
33
|
type: import("vue").PropType<import("./types").FormRules>;
|
|
26
34
|
default: () => {};
|
|
27
35
|
};
|
|
36
|
+
labelPosition: {
|
|
37
|
+
type: import("vue").PropType<import("../formitem/types").FormItemLabelPosition>;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
starPosition: {
|
|
41
|
+
type: import("vue").PropType<import("../formitem/types").FormItemStarPosition>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
28
44
|
}>> & {
|
|
29
45
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
30
46
|
}, {
|
|
31
47
|
modelValue: Record<string, any>;
|
|
32
48
|
rules: import("./types").FormRules;
|
|
49
|
+
labelPosition: import("../formitem/types").FormItemLabelPosition;
|
|
50
|
+
starPosition: import("../formitem/types").FormItemStarPosition;
|
|
33
51
|
}, {}>>;
|
|
34
52
|
export default _default;
|
|
35
53
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormItemRule } from '../formitem/types';
|
|
1
|
+
import { FormItemRule, FormItemLabelPosition, FormItemStarPosition } from '../formitem/types';
|
|
2
2
|
export declare const FORM_KEY: unique symbol;
|
|
3
3
|
export type FormRules = {
|
|
4
4
|
[key: string]: FormItemRule[];
|
|
@@ -11,3 +11,5 @@ export type ErrorMessage = {
|
|
|
11
11
|
prop: string;
|
|
12
12
|
message: string;
|
|
13
13
|
};
|
|
14
|
+
export type FormLabelPosition = FormItemLabelPosition;
|
|
15
|
+
export type FormStarPosition = FormItemStarPosition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { FormItemRule, FormItemLabelPosition, FormItemStarPosition } from './types';
|
|
1
2
|
import { PropType, CSSProperties } from 'vue';
|
|
2
|
-
import type { FormItemRule } from './types';
|
|
3
3
|
|
|
4
4
|
declare type Install<T> = T & {
|
|
5
5
|
install(app: import('vue').App): void;
|
|
@@ -45,6 +45,14 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
45
45
|
type: StringConstructor;
|
|
46
46
|
default: string;
|
|
47
47
|
};
|
|
48
|
+
labelPosition: {
|
|
49
|
+
type: PropType<FormItemLabelPosition>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
starPosition: {
|
|
53
|
+
type: PropType<FormItemStarPosition>;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
48
56
|
}, {
|
|
49
57
|
parent: any;
|
|
50
58
|
labelStyle: import("vue").ComputedRef<CSSProperties>;
|
|
@@ -52,6 +60,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
52
60
|
errorMessageStyle: import("vue").ComputedRef<CSSProperties>;
|
|
53
61
|
getSlots: (name: string) => import("vue").Slot<any> | undefined;
|
|
54
62
|
isRequired: import("vue").ComputedRef<boolean>;
|
|
63
|
+
labelPositionClass: import("vue").ComputedRef<string>;
|
|
64
|
+
starPositionClass: import("vue").ComputedRef<string>;
|
|
55
65
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
66
|
prop: {
|
|
57
67
|
type: StringConstructor;
|
|
@@ -93,11 +103,21 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
93
103
|
type: StringConstructor;
|
|
94
104
|
default: string;
|
|
95
105
|
};
|
|
106
|
+
labelPosition: {
|
|
107
|
+
type: PropType<FormItemLabelPosition>;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
starPosition: {
|
|
111
|
+
type: PropType<FormItemStarPosition>;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
96
114
|
}>>, {
|
|
97
115
|
label: string;
|
|
98
116
|
required: boolean;
|
|
99
117
|
rules: FormItemRule[];
|
|
100
118
|
prop: string;
|
|
119
|
+
labelPosition: FormItemLabelPosition;
|
|
120
|
+
starPosition: FormItemStarPosition;
|
|
101
121
|
showErrorMessage: boolean;
|
|
102
122
|
showErrorLine: boolean;
|
|
103
123
|
labelWidth: string | number;
|
|
@@ -7,3 +7,5 @@ export interface FormItemRuleWithoutValidator {
|
|
|
7
7
|
export interface FormItemRule extends FormItemRuleWithoutValidator {
|
|
8
8
|
validator?: (value: any, ruleCfg: FormItemRuleWithoutValidator) => boolean | Promise<string> | Promise<boolean> | Promise<void> | Promise<unknown>;
|
|
9
9
|
}
|
|
10
|
+
export type FormItemLabelPosition = 'left' | 'right' | 'top';
|
|
11
|
+
export type FormItemStarPosition = 'left' | 'right';
|
|
@@ -108,9 +108,9 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
108
108
|
onError?: ((...args: any[]) => any) | undefined;
|
|
109
109
|
}, {
|
|
110
110
|
round: boolean;
|
|
111
|
+
position: string;
|
|
111
112
|
width: string;
|
|
112
113
|
height: string;
|
|
113
|
-
position: string;
|
|
114
114
|
alt: string;
|
|
115
115
|
lazyLoad: boolean;
|
|
116
116
|
fit: ImageFit;
|
|
@@ -109,10 +109,10 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
109
109
|
onOnClickIcon?: ((...args: any[]) => any) | undefined;
|
|
110
110
|
onOnClickRight?: ((...args: any[]) => any) | undefined;
|
|
111
111
|
}, {
|
|
112
|
-
fixed: boolean;
|
|
113
112
|
title: string;
|
|
114
113
|
desc: string;
|
|
115
114
|
zIndex: string | number;
|
|
115
|
+
fixed: boolean;
|
|
116
116
|
border: boolean;
|
|
117
117
|
placeholder: boolean;
|
|
118
118
|
leftShow: boolean;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { PaginationMode } from './types';
|
|
1
3
|
|
|
2
4
|
declare type Install<T> = T & {
|
|
3
5
|
install(app: import('vue').App): void;
|
|
@@ -8,7 +10,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
8
10
|
default: number;
|
|
9
11
|
};
|
|
10
12
|
mode: {
|
|
11
|
-
type:
|
|
13
|
+
type: PropType<PaginationMode>;
|
|
12
14
|
default: string;
|
|
13
15
|
};
|
|
14
16
|
prevText: {
|
|
@@ -43,7 +45,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
43
45
|
modelValue: import("vue").Ref<number>;
|
|
44
46
|
select: (curPage: number, isSelect: boolean) => void;
|
|
45
47
|
countRef: import("vue").ComputedRef<number>;
|
|
46
|
-
mode: import("vue").Ref<
|
|
48
|
+
mode: import("vue").Ref<PaginationMode>;
|
|
47
49
|
pages: import("vue").ComputedRef<{
|
|
48
50
|
number: number;
|
|
49
51
|
text: string | number;
|
|
@@ -57,7 +59,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
57
59
|
default: number;
|
|
58
60
|
};
|
|
59
61
|
mode: {
|
|
60
|
-
type:
|
|
62
|
+
type: PropType<PaginationMode>;
|
|
61
63
|
default: string;
|
|
62
64
|
};
|
|
63
65
|
prevText: {
|
|
@@ -93,7 +95,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
93
95
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
94
96
|
}, {
|
|
95
97
|
modelValue: number;
|
|
96
|
-
mode:
|
|
98
|
+
mode: PaginationMode;
|
|
97
99
|
prevText: string;
|
|
98
100
|
nextText: string;
|
|
99
101
|
pageCount: string | number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PaginationMode = 'multi' | 'simple';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { RadioShape, RadioButtonSize } from './types';
|
|
1
3
|
|
|
2
4
|
declare type Install<T> = T & {
|
|
3
5
|
install(app: import('vue').App): void;
|
|
@@ -8,7 +10,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
8
10
|
default: boolean;
|
|
9
11
|
};
|
|
10
12
|
shape: {
|
|
11
|
-
type:
|
|
13
|
+
type: PropType<RadioShape>;
|
|
12
14
|
default: string;
|
|
13
15
|
};
|
|
14
16
|
label: {
|
|
@@ -19,6 +21,10 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
19
21
|
type: (NumberConstructor | StringConstructor)[];
|
|
20
22
|
default: string;
|
|
21
23
|
};
|
|
24
|
+
size: {
|
|
25
|
+
type: PropType<RadioButtonSize>;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
22
28
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
23
29
|
[key: string]: any;
|
|
24
30
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -27,7 +33,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
27
33
|
default: boolean;
|
|
28
34
|
};
|
|
29
35
|
shape: {
|
|
30
|
-
type:
|
|
36
|
+
type: PropType<RadioShape>;
|
|
31
37
|
default: string;
|
|
32
38
|
};
|
|
33
39
|
label: {
|
|
@@ -38,10 +44,15 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
38
44
|
type: (NumberConstructor | StringConstructor)[];
|
|
39
45
|
default: string;
|
|
40
46
|
};
|
|
47
|
+
size: {
|
|
48
|
+
type: PropType<RadioButtonSize>;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
41
51
|
}>>, {
|
|
42
52
|
label: string | number | boolean;
|
|
53
|
+
size: RadioButtonSize;
|
|
43
54
|
disabled: boolean;
|
|
44
|
-
shape:
|
|
55
|
+
shape: RadioShape;
|
|
45
56
|
iconSize: string | number;
|
|
46
57
|
}, {}>>;
|
|
47
58
|
export default _default;
|
|
@@ -1 +1,5 @@
|
|
|
1
1
|
export declare const RADIO_KEY: unique symbol;
|
|
2
|
+
export type RadioShape = 'round' | 'button';
|
|
3
|
+
export type RadioButtonSize = 'normal' | 'small' | 'mini';
|
|
4
|
+
export type RadioGroupTextPosition = 'right' | 'left';
|
|
5
|
+
export type RadioGroupDirection = 'vertical' | 'horizontal';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { RadioGroupTextPosition, RadioGroupDirection } from '../radio/types';
|
|
1
3
|
|
|
2
4
|
declare type Install<T> = T & {
|
|
3
5
|
install(app: import('vue').App): void;
|
|
@@ -8,11 +10,11 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
8
10
|
default: string;
|
|
9
11
|
};
|
|
10
12
|
direction: {
|
|
11
|
-
type:
|
|
13
|
+
type: PropType<RadioGroupDirection>;
|
|
12
14
|
default: string;
|
|
13
15
|
};
|
|
14
16
|
textPosition: {
|
|
15
|
-
type:
|
|
17
|
+
type: PropType<RadioGroupTextPosition>;
|
|
16
18
|
default: string;
|
|
17
19
|
};
|
|
18
20
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -23,11 +25,11 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
23
25
|
default: string;
|
|
24
26
|
};
|
|
25
27
|
direction: {
|
|
26
|
-
type:
|
|
28
|
+
type: PropType<RadioGroupDirection>;
|
|
27
29
|
default: string;
|
|
28
30
|
};
|
|
29
31
|
textPosition: {
|
|
30
|
-
type:
|
|
32
|
+
type: PropType<RadioGroupTextPosition>;
|
|
31
33
|
default: string;
|
|
32
34
|
};
|
|
33
35
|
}>> & {
|
|
@@ -35,8 +37,8 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
35
37
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
36
38
|
}, {
|
|
37
39
|
modelValue: string | number | boolean;
|
|
38
|
-
direction:
|
|
39
|
-
textPosition:
|
|
40
|
+
direction: RadioGroupDirection;
|
|
41
|
+
textPosition: RadioGroupTextPosition;
|
|
40
42
|
}, {}>>;
|
|
41
43
|
export default _default;
|
|
42
44
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Ref, CSSProperties } from 'vue';
|
|
1
|
+
import { Ref, CSSProperties, PropType } from 'vue';
|
|
2
|
+
import { SearchbarInputAlign, SearchbarShape } from './types';
|
|
2
3
|
|
|
3
4
|
declare type Install<T> = T & {
|
|
4
5
|
install(app: import('vue').App): void;
|
|
@@ -17,7 +18,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
17
18
|
default: string;
|
|
18
19
|
};
|
|
19
20
|
shape: {
|
|
20
|
-
type:
|
|
21
|
+
type: PropType<SearchbarShape>;
|
|
21
22
|
default: string;
|
|
22
23
|
};
|
|
23
24
|
maxLength: {
|
|
@@ -115,7 +116,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
115
116
|
default: boolean;
|
|
116
117
|
};
|
|
117
118
|
inputAlign: {
|
|
118
|
-
type:
|
|
119
|
+
type: PropType<SearchbarInputAlign>;
|
|
119
120
|
default: string;
|
|
120
121
|
};
|
|
121
122
|
safeAreaInsetBottom: {
|
|
@@ -159,7 +160,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
159
160
|
default: string;
|
|
160
161
|
};
|
|
161
162
|
shape: {
|
|
162
|
-
type:
|
|
163
|
+
type: PropType<SearchbarShape>;
|
|
163
164
|
default: string;
|
|
164
165
|
};
|
|
165
166
|
maxLength: {
|
|
@@ -257,7 +258,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
257
258
|
default: boolean;
|
|
258
259
|
};
|
|
259
260
|
inputAlign: {
|
|
260
|
-
type:
|
|
261
|
+
type: PropType<SearchbarInputAlign>;
|
|
261
262
|
default: string;
|
|
262
263
|
};
|
|
263
264
|
safeAreaInsetBottom: {
|
|
@@ -279,11 +280,11 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
279
280
|
disabled: boolean;
|
|
280
281
|
safeAreaInsetBottom: boolean;
|
|
281
282
|
modelValue: string | number;
|
|
282
|
-
shape:
|
|
283
|
+
shape: SearchbarShape;
|
|
283
284
|
background: string;
|
|
284
285
|
readonly: boolean;
|
|
285
286
|
placeholder: string;
|
|
286
|
-
inputAlign:
|
|
287
|
+
inputAlign: SearchbarInputAlign;
|
|
287
288
|
maxLength: string | number;
|
|
288
289
|
clearable: boolean;
|
|
289
290
|
autofocus: boolean;
|
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
18
|
}, {
|
|
19
|
-
goodsCount: any
|
|
19
|
+
goodsCount: import("vue").Ref<any>;
|
|
20
20
|
add: (value: number) => void;
|
|
21
21
|
reduce: (value: number) => void;
|
|
22
22
|
overlimit: (e: Event, action: string) => void;
|
|
@@ -57,7 +57,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
57
57
|
default: boolean;
|
|
58
58
|
};
|
|
59
59
|
}, {
|
|
60
|
-
showPopup: any
|
|
60
|
+
showPopup: import("vue").Ref<any>;
|
|
61
61
|
closePopup: (type: string) => void;
|
|
62
62
|
selectSku: (skus: any) => void;
|
|
63
63
|
changeStepper: (value: number) => void;
|