@nutui/nutui 4.3.4 → 4.3.6
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 +40 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +5358 -5629
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/audio/Audio.js +2 -1
- package/dist/packages/audiooperate/AudioOperate.js +2 -1
- package/dist/packages/cell/Cell.js +89 -80
- package/dist/packages/cellgroup/CellGroup.js +44 -21
- package/dist/packages/checkbox/Checkbox.js +1 -1
- package/dist/packages/{common-DRG0ue26.js → common-BH7uB7Cn.js} +4 -2
- package/dist/packages/countdown/Countdown.js +130 -173
- package/dist/packages/form/Form.js +5 -5
- package/dist/packages/formitem/FormItem.js +5 -5
- package/dist/packages/grid/Grid.js +68 -5
- package/dist/packages/griditem/GridItem.js +61 -81
- package/dist/packages/input/Input.js +1 -1
- package/dist/packages/inputnumber/InputNumber.js +7 -7
- package/dist/packages/invoice/Invoice.js +4 -4
- package/dist/packages/picker/Picker.js +1 -1
- package/dist/packages/radio/Radio.js +112 -1
- package/dist/packages/radiogroup/RadioGroup.js +60 -1
- package/dist/packages/range/Range.js +1 -1
- package/dist/packages/rate/Rate.js +1 -1
- package/dist/packages/searchbar/Searchbar.js +1 -1
- package/dist/packages/skeleton/Skeleton.js +88 -123
- package/dist/packages/step/Step.js +64 -83
- package/dist/packages/steps/Steps.js +44 -40
- package/dist/packages/switch/Switch.js +1 -1
- package/dist/packages/tabpane/TabPane.js +2 -1
- package/dist/packages/tabs/Tabs.js +2 -1
- package/dist/packages/textarea/Textarea.js +1 -1
- package/dist/packages/types-BMA1Y94E.js +4 -0
- package/dist/packages/types-BXlnzugj.js +4 -0
- package/dist/packages/types-CJeZIBld.js +4 -0
- package/dist/packages/uploader/Uploader.js +1 -1
- package/dist/smartips/web-types.json +446 -26
- package/dist/types/__VUE/audio/index.vue.d.ts +2 -2
- package/dist/types/__VUE/audio/types.d.ts +2 -0
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/cell.vue.d.ts +113 -0
- package/dist/types/__VUE/cell/index.d.ts +6 -0
- package/dist/types/__VUE/cellgroup/cell-group.vue.d.ts +55 -0
- package/dist/types/__VUE/cellgroup/index.d.ts +5 -0
- package/dist/types/__VUE/countdown/countdown.vue.d.ts +108 -0
- package/dist/types/__VUE/countdown/index.d.ts +5 -0
- package/dist/types/__VUE/countdown/util.d.ts +14 -0
- package/dist/types/__VUE/form/common.d.ts +1 -0
- package/dist/types/__VUE/grid/grid.vue.d.ts +87 -0
- package/dist/types/__VUE/grid/index.d.ts +6 -0
- package/dist/types/__VUE/grid/types.d.ts +2 -0
- package/dist/types/__VUE/griditem/grid-item.vue.d.ts +64 -0
- package/dist/types/__VUE/griditem/index.d.ts +5 -0
- package/dist/types/__VUE/navbar/navbar.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/Column.vue.d.ts +2 -2
- package/dist/types/__VUE/radio/index.d.ts +6 -0
- package/dist/types/__VUE/radio/radio.vue.d.ts +74 -0
- package/dist/types/__VUE/radiogroup/index.d.ts +5 -0
- package/dist/types/__VUE/radiogroup/radio-group.vue.d.ts +66 -0
- package/dist/types/__VUE/skeleton/index.d.ts +5 -0
- package/dist/types/__VUE/skeleton/skeleton.vue.d.ts +102 -0
- package/dist/types/__VUE/step/index.d.ts +5 -0
- package/dist/types/__VUE/step/step.vue.d.ts +55 -0
- package/dist/types/__VUE/steps/index.d.ts +6 -0
- package/dist/types/__VUE/steps/steps.vue.d.ts +64 -0
- package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabs/types.d.ts +1 -0
- package/dist/types/__VUE/uploader/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +21 -11
- package/dist/types/utils/Interceptor.d.ts +2 -2
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/useRelation/useParent.d.ts +1 -1
- package/package.json +1 -1
- package/dist/packages/common-Chr7cC9o.js +0 -145
- package/dist/packages/index.vue_vue_type_script_lang-CTQUvlgN.js +0 -99
- package/dist/packages/index.vue_vue_type_script_lang-CaSiRl9x.js +0 -46
- package/dist/types/__VUE/audiooperate/types.d.ts +0 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +0 -120
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +0 -33
- package/dist/types/__VUE/countdown/index.vue.d.ts +0 -125
- package/dist/types/__VUE/grid/common.d.ts +0 -73
- package/dist/types/__VUE/grid/index.vue.d.ts +0 -84
- package/dist/types/__VUE/griditem/index.vue.d.ts +0 -47
- package/dist/types/__VUE/radio/index.vue.d.ts +0 -64
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +0 -49
- package/dist/types/__VUE/skeleton/index.vue.d.ts +0 -117
- package/dist/types/__VUE/step/index.vue.d.ts +0 -42
- package/dist/types/__VUE/steps/index.vue.d.ts +0 -48
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import { type RadioGroupTextPosition, type RadioGroupDirection } from '../radio/types';
|
|
3
|
+
export type RadioGroupProps = Partial<{
|
|
4
|
+
modelValue: string | number | boolean;
|
|
5
|
+
direction: RadioGroupDirection;
|
|
6
|
+
textPosition: RadioGroupTextPosition;
|
|
7
|
+
}>;
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
9
|
+
modelValue: string | number | boolean;
|
|
10
|
+
direction: RadioGroupDirection;
|
|
11
|
+
textPosition: RadioGroupTextPosition;
|
|
12
|
+
}>>, {
|
|
13
|
+
modelValue: string;
|
|
14
|
+
direction: string;
|
|
15
|
+
textPosition: string;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
change: (...args: any[]) => void;
|
|
18
|
+
"update:modelValue": (...args: any[]) => void;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
20
|
+
modelValue: string | number | boolean;
|
|
21
|
+
direction: RadioGroupDirection;
|
|
22
|
+
textPosition: RadioGroupTextPosition;
|
|
23
|
+
}>>, {
|
|
24
|
+
modelValue: string;
|
|
25
|
+
direction: string;
|
|
26
|
+
textPosition: string;
|
|
27
|
+
}>>> & {
|
|
28
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
direction: RadioGroupDirection;
|
|
32
|
+
modelValue: string | number | boolean;
|
|
33
|
+
textPosition: RadioGroupTextPosition;
|
|
34
|
+
}, {}>, {
|
|
35
|
+
default?(_: {}): any;
|
|
36
|
+
}>;
|
|
37
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
38
|
+
export default _nut_default;
|
|
39
|
+
|
|
40
|
+
declare module 'vue' {
|
|
41
|
+
interface GlobalComponents {
|
|
42
|
+
NutRadioGroup: typeof _default;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
46
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
47
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
48
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
49
|
+
} : {
|
|
50
|
+
type: import('vue').PropType<T[K]>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
type __VLS_WithDefaults<P, D> = {
|
|
55
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
56
|
+
default: D[K];
|
|
57
|
+
}> : P[K];
|
|
58
|
+
};
|
|
59
|
+
type __VLS_Prettify<T> = {
|
|
60
|
+
[K in keyof T]: T[K];
|
|
61
|
+
} & {};
|
|
62
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
63
|
+
new (): {
|
|
64
|
+
$slots: S;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Skeleton from './skeleton.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { SkeletonProps } from './skeleton.vue';
|
|
4
|
+
export type SkeletonInstance = ComponentPublicInstance & InstanceType<typeof Skeleton>;
|
|
5
|
+
export { Skeleton, Skeleton as default };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import type { AvatarShape } from '../avatar/types';
|
|
3
|
+
export type SkeletonProps = Partial<{
|
|
4
|
+
width: string;
|
|
5
|
+
height: string;
|
|
6
|
+
animated: boolean;
|
|
7
|
+
avatar: boolean;
|
|
8
|
+
avatarShape: AvatarShape;
|
|
9
|
+
avatarSize: string;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
round: boolean;
|
|
12
|
+
row: string | number;
|
|
13
|
+
title: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
16
|
+
width: string;
|
|
17
|
+
height: string;
|
|
18
|
+
animated: boolean;
|
|
19
|
+
avatar: boolean;
|
|
20
|
+
avatarShape: AvatarShape;
|
|
21
|
+
avatarSize: string;
|
|
22
|
+
loading: boolean;
|
|
23
|
+
round: boolean;
|
|
24
|
+
row: string | number;
|
|
25
|
+
title: boolean;
|
|
26
|
+
}>>, {
|
|
27
|
+
width: string;
|
|
28
|
+
height: string;
|
|
29
|
+
animated: boolean;
|
|
30
|
+
avatar: boolean;
|
|
31
|
+
avatarShape: string;
|
|
32
|
+
avatarSize: string;
|
|
33
|
+
loading: boolean;
|
|
34
|
+
round: boolean;
|
|
35
|
+
row: string;
|
|
36
|
+
title: boolean;
|
|
37
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
38
|
+
width: string;
|
|
39
|
+
height: string;
|
|
40
|
+
animated: boolean;
|
|
41
|
+
avatar: boolean;
|
|
42
|
+
avatarShape: AvatarShape;
|
|
43
|
+
avatarSize: string;
|
|
44
|
+
loading: boolean;
|
|
45
|
+
round: boolean;
|
|
46
|
+
row: string | number;
|
|
47
|
+
title: boolean;
|
|
48
|
+
}>>, {
|
|
49
|
+
width: string;
|
|
50
|
+
height: string;
|
|
51
|
+
animated: boolean;
|
|
52
|
+
avatar: boolean;
|
|
53
|
+
avatarShape: string;
|
|
54
|
+
avatarSize: string;
|
|
55
|
+
loading: boolean;
|
|
56
|
+
round: boolean;
|
|
57
|
+
row: string;
|
|
58
|
+
title: boolean;
|
|
59
|
+
}>>>, {
|
|
60
|
+
round: boolean;
|
|
61
|
+
loading: boolean;
|
|
62
|
+
width: string;
|
|
63
|
+
height: string;
|
|
64
|
+
title: boolean;
|
|
65
|
+
row: string | number;
|
|
66
|
+
avatar: boolean;
|
|
67
|
+
animated: boolean;
|
|
68
|
+
avatarShape: AvatarShape;
|
|
69
|
+
avatarSize: string;
|
|
70
|
+
}, {}>, {
|
|
71
|
+
default?(_: {}): any;
|
|
72
|
+
}>;
|
|
73
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
74
|
+
export default _nut_default;
|
|
75
|
+
|
|
76
|
+
declare module 'vue' {
|
|
77
|
+
interface GlobalComponents {
|
|
78
|
+
NutSkeleton: typeof _default;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
82
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
83
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
84
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
85
|
+
} : {
|
|
86
|
+
type: import('vue').PropType<T[K]>;
|
|
87
|
+
required: true;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
type __VLS_WithDefaults<P, D> = {
|
|
91
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
92
|
+
default: D[K];
|
|
93
|
+
}> : P[K];
|
|
94
|
+
};
|
|
95
|
+
type __VLS_Prettify<T> = {
|
|
96
|
+
[K in keyof T]: T[K];
|
|
97
|
+
} & {};
|
|
98
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
99
|
+
new (): {
|
|
100
|
+
$slots: S;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type StepProps = Partial<{
|
|
3
|
+
title: string;
|
|
4
|
+
content: string;
|
|
5
|
+
}>;
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
7
|
+
title: string;
|
|
8
|
+
content: string;
|
|
9
|
+
}>>, {
|
|
10
|
+
title: string;
|
|
11
|
+
content: string;
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
13
|
+
title: string;
|
|
14
|
+
content: string;
|
|
15
|
+
}>>, {
|
|
16
|
+
title: string;
|
|
17
|
+
content: string;
|
|
18
|
+
}>>>, {
|
|
19
|
+
title: string;
|
|
20
|
+
content: string;
|
|
21
|
+
}, {}>, {
|
|
22
|
+
icon?(_: {}): any;
|
|
23
|
+
title?(_: {}): any;
|
|
24
|
+
content?(_: {}): any;
|
|
25
|
+
}>;
|
|
26
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
27
|
+
export default _nut_default;
|
|
28
|
+
|
|
29
|
+
declare module 'vue' {
|
|
30
|
+
interface GlobalComponents {
|
|
31
|
+
NutStep: typeof _default;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
36
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
37
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
38
|
+
} : {
|
|
39
|
+
type: import('vue').PropType<T[K]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type __VLS_WithDefaults<P, D> = {
|
|
44
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
45
|
+
default: D[K];
|
|
46
|
+
}> : P[K];
|
|
47
|
+
};
|
|
48
|
+
type __VLS_Prettify<T> = {
|
|
49
|
+
[K in keyof T]: T[K];
|
|
50
|
+
} & {};
|
|
51
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
52
|
+
new (): {
|
|
53
|
+
$slots: S;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Steps from './steps.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { StepsProps } from './steps.vue';
|
|
4
|
+
export type { StepsDirection } from './types';
|
|
5
|
+
export type StepsInstance = ComponentPublicInstance & InstanceType<typeof Steps>;
|
|
6
|
+
export { Steps, Steps as default };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import { type StepsDirection } from './types';
|
|
3
|
+
export type StepsProps = Partial<{
|
|
4
|
+
direction: StepsDirection;
|
|
5
|
+
current: string | number;
|
|
6
|
+
progressDot: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
9
|
+
direction: StepsDirection;
|
|
10
|
+
current: string | number;
|
|
11
|
+
progressDot: boolean;
|
|
12
|
+
}>>, {
|
|
13
|
+
direction: string;
|
|
14
|
+
current: string;
|
|
15
|
+
progressDot: boolean;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
clickStep: (...args: any[]) => void;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
19
|
+
direction: StepsDirection;
|
|
20
|
+
current: string | number;
|
|
21
|
+
progressDot: boolean;
|
|
22
|
+
}>>, {
|
|
23
|
+
direction: string;
|
|
24
|
+
current: string;
|
|
25
|
+
progressDot: boolean;
|
|
26
|
+
}>>> & {
|
|
27
|
+
onClickStep?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
direction: StepsDirection;
|
|
30
|
+
current: string | number;
|
|
31
|
+
progressDot: boolean;
|
|
32
|
+
}, {}>, {
|
|
33
|
+
default?(_: {}): any;
|
|
34
|
+
}>;
|
|
35
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
36
|
+
export default _nut_default;
|
|
37
|
+
|
|
38
|
+
declare module 'vue' {
|
|
39
|
+
interface GlobalComponents {
|
|
40
|
+
NutSteps: typeof _default;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
45
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
46
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
47
|
+
} : {
|
|
48
|
+
type: import('vue').PropType<T[K]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
type __VLS_WithDefaults<P, D> = {
|
|
53
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
54
|
+
default: D[K];
|
|
55
|
+
}> : P[K];
|
|
56
|
+
};
|
|
57
|
+
type __VLS_Prettify<T> = {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} & {};
|
|
60
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -76,12 +76,12 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
76
76
|
offset: number;
|
|
77
77
|
touchTime: number;
|
|
78
78
|
autoplayTimer: {
|
|
79
|
+
ref: () => NodeJS.Timeout;
|
|
80
|
+
unref: () => NodeJS.Timeout;
|
|
79
81
|
hasRef: () => boolean;
|
|
80
82
|
refresh: () => NodeJS.Timeout;
|
|
81
83
|
[Symbol.toPrimitive]: () => number;
|
|
82
84
|
[Symbol.dispose]: () => void;
|
|
83
|
-
ref: () => NodeJS.Timeout;
|
|
84
|
-
unref: () => NodeJS.Timeout;
|
|
85
85
|
} | null | undefined;
|
|
86
86
|
children: ComponentPublicInstance[];
|
|
87
87
|
childrenVNode: VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VNode, Ref, CSSProperties, PropType } from 'vue';
|
|
2
|
-
import type
|
|
2
|
+
import { type TabsDirection, type TabsSize, type TabsType, type TabsAlign } from './types';
|
|
3
3
|
export declare class Title {
|
|
4
4
|
title: string;
|
|
5
5
|
titleSlot?: VNode[];
|
|
@@ -121,7 +121,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
121
121
|
renderInput: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
122
122
|
[key: string]: any;
|
|
123
123
|
}>;
|
|
124
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "progress" | "delete" | "
|
|
124
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "progress" | "delete" | "start" | "change" | "oversize" | "failure" | "update:fileList" | "fileItemClick")[], "success" | "progress" | "delete" | "start" | "change" | "oversize" | "failure" | "update:fileList" | "fileItemClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
125
125
|
name: {
|
|
126
126
|
type: StringConstructor;
|
|
127
127
|
default: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,8 +2,10 @@ import { App } from 'vue';
|
|
|
2
2
|
import Locale from './locale';
|
|
3
3
|
import Button from './__VUE/button/index';
|
|
4
4
|
export * from './__VUE/button/index';
|
|
5
|
-
import Cell from './__VUE/cell/index
|
|
6
|
-
|
|
5
|
+
import Cell from './__VUE/cell/index';
|
|
6
|
+
export * from './__VUE/cell/index';
|
|
7
|
+
import CellGroup from './__VUE/cellgroup/index';
|
|
8
|
+
export * from './__VUE/cellgroup/index';
|
|
7
9
|
import Overlay from './__VUE/overlay/index.vue';
|
|
8
10
|
import Popup from './__VUE/popup/index.vue';
|
|
9
11
|
import ConfigProvider from './__VUE/configprovider/index.vue';
|
|
@@ -17,8 +19,10 @@ export * from './__VUE/row/index';
|
|
|
17
19
|
import Sticky from './__VUE/sticky/index.vue';
|
|
18
20
|
import Divider from './__VUE/divider/index';
|
|
19
21
|
export * from './__VUE/divider/index';
|
|
20
|
-
import Grid from './__VUE/grid/index
|
|
21
|
-
|
|
22
|
+
import Grid from './__VUE/grid/index';
|
|
23
|
+
export * from './__VUE/grid/index';
|
|
24
|
+
import GridItem from './__VUE/griditem/index';
|
|
25
|
+
export * from './__VUE/griditem/index';
|
|
22
26
|
import Space from './__VUE/space/index.vue';
|
|
23
27
|
import Navbar from './__VUE/navbar/index';
|
|
24
28
|
export * from './__VUE/navbar/index';
|
|
@@ -50,8 +54,10 @@ import DatePicker from './__VUE/datepicker/index.vue';
|
|
|
50
54
|
import InputNumber from './__VUE/inputnumber/index';
|
|
51
55
|
export * from './__VUE/inputnumber/index';
|
|
52
56
|
import Input from './__VUE/input/index.vue';
|
|
53
|
-
import Radio from './__VUE/radio/index
|
|
54
|
-
|
|
57
|
+
import Radio from './__VUE/radio/index';
|
|
58
|
+
export * from './__VUE/radio/index';
|
|
59
|
+
import RadioGroup from './__VUE/radiogroup/index';
|
|
60
|
+
export * from './__VUE/radiogroup/index';
|
|
55
61
|
import Rate from './__VUE/rate/index';
|
|
56
62
|
export * from './__VUE/rate/index';
|
|
57
63
|
import Picker from './__VUE/picker/index.vue';
|
|
@@ -95,8 +101,10 @@ import Noticebar from './__VUE/noticebar/index.vue';
|
|
|
95
101
|
import Empty from './__VUE/empty/index';
|
|
96
102
|
export * from './__VUE/empty/index';
|
|
97
103
|
import Video from './__VUE/video/index.vue';
|
|
98
|
-
import Steps from './__VUE/steps/index
|
|
99
|
-
|
|
104
|
+
import Steps from './__VUE/steps/index';
|
|
105
|
+
export * from './__VUE/steps/index';
|
|
106
|
+
import Step from './__VUE/step/index';
|
|
107
|
+
export * from './__VUE/step/index';
|
|
100
108
|
import Swiper from './__VUE/swiper/index.vue';
|
|
101
109
|
import SwiperItem from './__VUE/swiperitem/index.vue';
|
|
102
110
|
import Price from './__VUE/price/index';
|
|
@@ -104,12 +112,14 @@ export * from './__VUE/price/index';
|
|
|
104
112
|
import ImagePreview from './__VUE/imagepreview/index.vue';
|
|
105
113
|
import { showImagePreview } from './__VUE/imagepreview/index';
|
|
106
114
|
import Countup from './__VUE/countup/index.vue';
|
|
107
|
-
import Countdown from './__VUE/countdown/index
|
|
115
|
+
import Countdown from './__VUE/countdown/index';
|
|
116
|
+
export * from './__VUE/countdown/index';
|
|
108
117
|
import Badge from './__VUE/badge/index.vue';
|
|
109
118
|
import Tag from './__VUE/tag/index';
|
|
110
119
|
export * from './__VUE/tag/index';
|
|
111
120
|
import Popover from './__VUE/popover/index.vue';
|
|
112
|
-
import Skeleton from './__VUE/skeleton/index
|
|
121
|
+
import Skeleton from './__VUE/skeleton/index';
|
|
122
|
+
export * from './__VUE/skeleton/index';
|
|
113
123
|
import Collapse from './__VUE/collapse/index';
|
|
114
124
|
export * from './__VUE/collapse/index';
|
|
115
125
|
import CollapseItem from './__VUE/collapseitem/index';
|
|
@@ -139,7 +149,7 @@ import Invoice from './__VUE/invoice/index';
|
|
|
139
149
|
export * from './__VUE/invoice/index';
|
|
140
150
|
import AvatarCropper from './__VUE/avatarcropper/index.vue';
|
|
141
151
|
declare function install(app: App): void;
|
|
142
|
-
declare const version = "4.3.
|
|
152
|
+
declare const version = "4.3.6";
|
|
143
153
|
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 };
|
|
144
154
|
declare const _default: {
|
|
145
155
|
install: typeof install;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
|
|
2
2
|
export declare const funInterceptor: (interceptor: Interceptor | undefined, { args, done, canceled }: {
|
|
3
|
-
args?: unknown[]
|
|
3
|
+
args?: unknown[];
|
|
4
4
|
done: (val?: any) => void;
|
|
5
|
-
canceled?: (
|
|
5
|
+
canceled?: () => void;
|
|
6
6
|
}) => void;
|
package/package.json
CHANGED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { shallowReactive, getCurrentInstance, provide, markRaw, isVNode, computed, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-DQf3CENX.js";
|
|
3
|
-
import { p as pxCheck } from "./pxCheck-DN6FYV6q.js";
|
|
4
|
-
function flattenVNodes(children, childName) {
|
|
5
|
-
const result = [];
|
|
6
|
-
const traverse = (children2) => {
|
|
7
|
-
if (!Array.isArray(children2))
|
|
8
|
-
return;
|
|
9
|
-
children2.forEach((child) => {
|
|
10
|
-
var _a;
|
|
11
|
-
if (!isVNode(child))
|
|
12
|
-
return;
|
|
13
|
-
if (childName) {
|
|
14
|
-
if (child.type && child.type.name === childName) {
|
|
15
|
-
result.push(child);
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
} else {
|
|
19
|
-
result.push(child);
|
|
20
|
-
}
|
|
21
|
-
if ((_a = child.component) == null ? void 0 : _a.subTree) {
|
|
22
|
-
traverse(child.component.subTree.children);
|
|
23
|
-
}
|
|
24
|
-
if (child.children) {
|
|
25
|
-
traverse(child.children);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
traverse(children);
|
|
30
|
-
return result;
|
|
31
|
-
}
|
|
32
|
-
function sortChildren(parent, internalChildren, childName) {
|
|
33
|
-
const vnodes = flattenVNodes(parent.subTree.children, childName);
|
|
34
|
-
internalChildren.sort((a, b) => {
|
|
35
|
-
return vnodes.indexOf(a.vnode) - vnodes.indexOf(b.vnode);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function useProvide(key, childName) {
|
|
39
|
-
const internalChildren = shallowReactive([]);
|
|
40
|
-
const parent = getCurrentInstance();
|
|
41
|
-
const add = (child) => {
|
|
42
|
-
if (!child.proxy)
|
|
43
|
-
return;
|
|
44
|
-
internalChildren.push(markRaw(child));
|
|
45
|
-
sortChildren(parent, internalChildren, childName);
|
|
46
|
-
};
|
|
47
|
-
const remove = (child) => {
|
|
48
|
-
internalChildren.splice(internalChildren.indexOf(markRaw(child)), 1);
|
|
49
|
-
};
|
|
50
|
-
const extend = Object.assign;
|
|
51
|
-
return (value) => {
|
|
52
|
-
provide(
|
|
53
|
-
key,
|
|
54
|
-
extend(
|
|
55
|
-
{
|
|
56
|
-
add,
|
|
57
|
-
remove,
|
|
58
|
-
internalChildren
|
|
59
|
-
},
|
|
60
|
-
value
|
|
61
|
-
)
|
|
62
|
-
);
|
|
63
|
-
return {
|
|
64
|
-
internalChildren
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
const { componentName } = createComponent("grid");
|
|
69
|
-
const GRID_KEY = Symbol("grid");
|
|
70
|
-
const gridProps = {
|
|
71
|
-
// 列数
|
|
72
|
-
columnNum: {
|
|
73
|
-
type: [Number, String],
|
|
74
|
-
default: 4
|
|
75
|
-
},
|
|
76
|
-
// 是否显示边框
|
|
77
|
-
border: {
|
|
78
|
-
type: Boolean,
|
|
79
|
-
default: true
|
|
80
|
-
},
|
|
81
|
-
// 格子之间间隔距离
|
|
82
|
-
gutter: {
|
|
83
|
-
type: [Number, String],
|
|
84
|
-
default: 0
|
|
85
|
-
},
|
|
86
|
-
// 是否内容居中
|
|
87
|
-
center: {
|
|
88
|
-
type: Boolean,
|
|
89
|
-
default: true
|
|
90
|
-
},
|
|
91
|
-
// 是否固定正方形
|
|
92
|
-
square: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
default: false
|
|
95
|
-
},
|
|
96
|
-
// 内容与文字翻转
|
|
97
|
-
reverse: {
|
|
98
|
-
type: Boolean,
|
|
99
|
-
default: false
|
|
100
|
-
},
|
|
101
|
-
// 内容排列方向
|
|
102
|
-
direction: {
|
|
103
|
-
type: String
|
|
104
|
-
},
|
|
105
|
-
// 是否开启点击反馈
|
|
106
|
-
clickable: {
|
|
107
|
-
type: Boolean,
|
|
108
|
-
default: false
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
const component = {
|
|
112
|
-
props: gridProps,
|
|
113
|
-
setup(props, { slots }) {
|
|
114
|
-
useProvide(GRID_KEY, `NutGridItem`)({ props });
|
|
115
|
-
const rootClass = computed(() => {
|
|
116
|
-
const prefixCls = componentName;
|
|
117
|
-
return {
|
|
118
|
-
[prefixCls]: true,
|
|
119
|
-
[`${prefixCls}--border`]: props.border && !props.gutter
|
|
120
|
-
};
|
|
121
|
-
});
|
|
122
|
-
const rootStyle = computed(() => {
|
|
123
|
-
const style = {};
|
|
124
|
-
if (props.gutter) {
|
|
125
|
-
style.paddingLeft = pxCheck(props.gutter);
|
|
126
|
-
}
|
|
127
|
-
return style;
|
|
128
|
-
});
|
|
129
|
-
return () => {
|
|
130
|
-
var _a;
|
|
131
|
-
return h(
|
|
132
|
-
"view",
|
|
133
|
-
{
|
|
134
|
-
class: rootClass.value,
|
|
135
|
-
style: rootStyle.value
|
|
136
|
-
},
|
|
137
|
-
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
138
|
-
);
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
export {
|
|
143
|
-
GRID_KEY as G,
|
|
144
|
-
component as c
|
|
145
|
-
};
|