@nutui/nutui 4.3.5 → 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 +20 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +5014 -5222
- 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/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 +2 -2
- package/dist/packages/formitem/FormItem.js +2 -2
- 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 +1 -1
- 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/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/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/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/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/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabs/types.d.ts +1 -0
- package/dist/types/index.d.ts +15 -8
- 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/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/step/index.vue.d.ts +0 -42
- package/dist/types/__VUE/steps/index.vue.d.ts +0 -48
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type CountdownProps = Partial<{
|
|
3
|
+
modelValue: Record<string, string>;
|
|
4
|
+
paused: boolean;
|
|
5
|
+
startTime: number | string;
|
|
6
|
+
endTime: number | string;
|
|
7
|
+
millisecond: boolean;
|
|
8
|
+
format: string;
|
|
9
|
+
autoStart: boolean;
|
|
10
|
+
time: number | string;
|
|
11
|
+
}>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
13
|
+
modelValue: Record<string, string>;
|
|
14
|
+
paused: boolean;
|
|
15
|
+
startTime: string | number;
|
|
16
|
+
endTime: string | number;
|
|
17
|
+
millisecond: boolean;
|
|
18
|
+
format: string;
|
|
19
|
+
autoStart: boolean;
|
|
20
|
+
time: string | number;
|
|
21
|
+
}>>, {
|
|
22
|
+
paused: boolean;
|
|
23
|
+
startTime: string;
|
|
24
|
+
endTime: string;
|
|
25
|
+
millisecond: boolean;
|
|
26
|
+
format: string;
|
|
27
|
+
autoStart: boolean;
|
|
28
|
+
time: number;
|
|
29
|
+
}>, {
|
|
30
|
+
start: () => void;
|
|
31
|
+
pause: () => void;
|
|
32
|
+
reset: () => void;
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
input: (...args: any[]) => void;
|
|
35
|
+
end: (...args: any[]) => void;
|
|
36
|
+
paused: (...args: any[]) => void;
|
|
37
|
+
"update:modelValue": (...args: any[]) => void;
|
|
38
|
+
restart: (...args: any[]) => void;
|
|
39
|
+
onEnd: (...args: any[]) => void;
|
|
40
|
+
onRestart: (...args: any[]) => void;
|
|
41
|
+
onPaused: (...args: any[]) => void;
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
43
|
+
modelValue: Record<string, string>;
|
|
44
|
+
paused: boolean;
|
|
45
|
+
startTime: string | number;
|
|
46
|
+
endTime: string | number;
|
|
47
|
+
millisecond: boolean;
|
|
48
|
+
format: string;
|
|
49
|
+
autoStart: boolean;
|
|
50
|
+
time: string | number;
|
|
51
|
+
}>>, {
|
|
52
|
+
paused: boolean;
|
|
53
|
+
startTime: string;
|
|
54
|
+
endTime: string;
|
|
55
|
+
millisecond: boolean;
|
|
56
|
+
format: string;
|
|
57
|
+
autoStart: boolean;
|
|
58
|
+
time: number;
|
|
59
|
+
}>>> & {
|
|
60
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
62
|
+
onEnd?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
onRestart?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
onPaused?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
onOnEnd?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
onOnRestart?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onOnPaused?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
time: string | number;
|
|
70
|
+
paused: boolean;
|
|
71
|
+
startTime: string | number;
|
|
72
|
+
endTime: string | number;
|
|
73
|
+
millisecond: boolean;
|
|
74
|
+
format: string;
|
|
75
|
+
autoStart: boolean;
|
|
76
|
+
}, {}>, {
|
|
77
|
+
default?(_: {}): any;
|
|
78
|
+
}>;
|
|
79
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
80
|
+
export default _nut_default;
|
|
81
|
+
|
|
82
|
+
declare module 'vue' {
|
|
83
|
+
interface GlobalComponents {
|
|
84
|
+
NutCountdown: typeof _default;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
88
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
89
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
90
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
91
|
+
} : {
|
|
92
|
+
type: import('vue').PropType<T[K]>;
|
|
93
|
+
required: true;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
type __VLS_WithDefaults<P, D> = {
|
|
97
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
98
|
+
default: D[K];
|
|
99
|
+
}> : P[K];
|
|
100
|
+
};
|
|
101
|
+
type __VLS_Prettify<T> = {
|
|
102
|
+
[K in keyof T]: T[K];
|
|
103
|
+
} & {};
|
|
104
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
105
|
+
new (): {
|
|
106
|
+
$slots: S;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Countdown from './countdown.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { CountdownProps } from './countdown.vue';
|
|
4
|
+
export type CountdownInstance = ComponentPublicInstance & InstanceType<typeof Countdown>;
|
|
5
|
+
export { Countdown, Countdown as default };
|
|
@@ -1 +1,15 @@
|
|
|
1
1
|
export declare const getTimeStamp: (timeStr?: string | number) => number;
|
|
2
|
+
export declare const parseFormat: (time: {
|
|
3
|
+
d: number;
|
|
4
|
+
h: number;
|
|
5
|
+
m: number;
|
|
6
|
+
s: number;
|
|
7
|
+
ms: number;
|
|
8
|
+
}, format: string) => string;
|
|
9
|
+
export declare const formatRemainTime: (t: number, format: string, type?: string) => string | {
|
|
10
|
+
d: number;
|
|
11
|
+
h: number;
|
|
12
|
+
m: number;
|
|
13
|
+
s: number;
|
|
14
|
+
ms: number;
|
|
15
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
2
|
export declare const FORM_KEY: unique symbol;
|
|
3
3
|
export declare const FORM_DISABLED_KEY: unique symbol;
|
|
4
|
+
export declare const FORM_TIP_KEY: unique symbol;
|
|
4
5
|
export declare const useFormDisabled: (disabled: Ref<boolean>) => ComputedRef<boolean>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import { type GridDirection } from './types';
|
|
3
|
+
export type GridProps = Partial<{
|
|
4
|
+
columnNum: string | number;
|
|
5
|
+
border: boolean;
|
|
6
|
+
gutter: string | number;
|
|
7
|
+
center: boolean;
|
|
8
|
+
square: boolean;
|
|
9
|
+
reverse: boolean;
|
|
10
|
+
direction: GridDirection;
|
|
11
|
+
clickable: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
14
|
+
columnNum: string | number;
|
|
15
|
+
border: boolean;
|
|
16
|
+
gutter: string | number;
|
|
17
|
+
center: boolean;
|
|
18
|
+
square: boolean;
|
|
19
|
+
reverse: boolean;
|
|
20
|
+
direction: GridDirection;
|
|
21
|
+
clickable: boolean;
|
|
22
|
+
}>>, {
|
|
23
|
+
columnNum: number;
|
|
24
|
+
border: boolean;
|
|
25
|
+
gutter: number;
|
|
26
|
+
center: boolean;
|
|
27
|
+
square: boolean;
|
|
28
|
+
reverse: boolean;
|
|
29
|
+
clickable: boolean;
|
|
30
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
31
|
+
columnNum: string | number;
|
|
32
|
+
border: boolean;
|
|
33
|
+
gutter: string | number;
|
|
34
|
+
center: boolean;
|
|
35
|
+
square: boolean;
|
|
36
|
+
reverse: boolean;
|
|
37
|
+
direction: GridDirection;
|
|
38
|
+
clickable: boolean;
|
|
39
|
+
}>>, {
|
|
40
|
+
columnNum: number;
|
|
41
|
+
border: boolean;
|
|
42
|
+
gutter: number;
|
|
43
|
+
center: boolean;
|
|
44
|
+
square: boolean;
|
|
45
|
+
reverse: boolean;
|
|
46
|
+
clickable: boolean;
|
|
47
|
+
}>>>, {
|
|
48
|
+
square: boolean;
|
|
49
|
+
reverse: boolean;
|
|
50
|
+
center: boolean;
|
|
51
|
+
border: boolean;
|
|
52
|
+
gutter: string | number;
|
|
53
|
+
columnNum: string | number;
|
|
54
|
+
clickable: boolean;
|
|
55
|
+
}, {}>, {
|
|
56
|
+
default?(_: {}): any;
|
|
57
|
+
}>;
|
|
58
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
59
|
+
export default _nut_default;
|
|
60
|
+
|
|
61
|
+
declare module 'vue' {
|
|
62
|
+
interface GlobalComponents {
|
|
63
|
+
NutGrid: typeof _default;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
67
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
68
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
69
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
70
|
+
} : {
|
|
71
|
+
type: import('vue').PropType<T[K]>;
|
|
72
|
+
required: true;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
type __VLS_WithDefaults<P, D> = {
|
|
76
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
77
|
+
default: D[K];
|
|
78
|
+
}> : P[K];
|
|
79
|
+
};
|
|
80
|
+
type __VLS_Prettify<T> = {
|
|
81
|
+
[K in keyof T]: T[K];
|
|
82
|
+
} & {};
|
|
83
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
84
|
+
new (): {
|
|
85
|
+
$slots: S;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Grid from './grid.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { GridProps } from './grid.vue';
|
|
4
|
+
export type { GridDirection } from './types';
|
|
5
|
+
export type GridInstance = ComponentPublicInstance & InstanceType<typeof Grid>;
|
|
6
|
+
export { Grid, Grid as default };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type GridItemProps = Partial<{
|
|
3
|
+
text: string;
|
|
4
|
+
to: string | object;
|
|
5
|
+
url: string;
|
|
6
|
+
replace: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
9
|
+
text: string;
|
|
10
|
+
to: string | object;
|
|
11
|
+
url: string;
|
|
12
|
+
replace: boolean;
|
|
13
|
+
}>>, {
|
|
14
|
+
url: string;
|
|
15
|
+
replace: boolean;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
click: (...args: any[]) => void;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
19
|
+
text: string;
|
|
20
|
+
to: string | object;
|
|
21
|
+
url: string;
|
|
22
|
+
replace: boolean;
|
|
23
|
+
}>>, {
|
|
24
|
+
url: string;
|
|
25
|
+
replace: boolean;
|
|
26
|
+
}>>> & {
|
|
27
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
replace: boolean;
|
|
30
|
+
url: string;
|
|
31
|
+
}, {}>, {
|
|
32
|
+
default?(_: {}): any;
|
|
33
|
+
text?(_: {}): any;
|
|
34
|
+
}>;
|
|
35
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
36
|
+
export default _nut_default;
|
|
37
|
+
|
|
38
|
+
declare module 'vue' {
|
|
39
|
+
interface GlobalComponents {
|
|
40
|
+
NutGridItem: 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
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import GridItem from './grid-item.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { GridItemProps } from './grid-item.vue';
|
|
4
|
+
export type GridItemInstance = ComponentPublicInstance & InstanceType<typeof GridItem>;
|
|
5
|
+
export { GridItem, GridItem as default };
|
|
@@ -33,7 +33,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
33
33
|
};
|
|
34
34
|
taro: {
|
|
35
35
|
type: BooleanConstructor;
|
|
36
|
-
|
|
36
|
+
default: boolean;
|
|
37
37
|
};
|
|
38
38
|
}, {
|
|
39
39
|
setRollerStyle: (index: number) => string;
|
|
@@ -111,7 +111,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
111
111
|
};
|
|
112
112
|
taro: {
|
|
113
113
|
type: BooleanConstructor;
|
|
114
|
-
|
|
114
|
+
default: boolean;
|
|
115
115
|
};
|
|
116
116
|
}>> & {
|
|
117
117
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Radio from './radio.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { RadioProps } from './radio.vue';
|
|
4
|
+
export type { RadioShape, RadioButtonSize, RadioGroupDirection, RadioGroupTextPosition } from './types';
|
|
5
|
+
export type RadioInstance = ComponentPublicInstance & InstanceType<typeof Radio>;
|
|
6
|
+
export { Radio, Radio as default };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import { type RadioShape, type RadioButtonSize } from './types';
|
|
3
|
+
export type RadioProps = Partial<{
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
shape: RadioShape;
|
|
6
|
+
label: string | number | boolean;
|
|
7
|
+
iconSize: string | number;
|
|
8
|
+
size: RadioButtonSize;
|
|
9
|
+
}>;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
shape: RadioShape;
|
|
13
|
+
label: string | number | boolean;
|
|
14
|
+
iconSize: string | number;
|
|
15
|
+
size: RadioButtonSize;
|
|
16
|
+
}>>, {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
shape: string;
|
|
19
|
+
label: string;
|
|
20
|
+
iconSize: string;
|
|
21
|
+
size: string;
|
|
22
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
shape: RadioShape;
|
|
25
|
+
label: string | number | boolean;
|
|
26
|
+
iconSize: string | number;
|
|
27
|
+
size: RadioButtonSize;
|
|
28
|
+
}>>, {
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
shape: string;
|
|
31
|
+
label: string;
|
|
32
|
+
iconSize: string;
|
|
33
|
+
size: string;
|
|
34
|
+
}>>>, {
|
|
35
|
+
shape: RadioShape;
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
size: RadioButtonSize;
|
|
38
|
+
label: string | number | boolean;
|
|
39
|
+
iconSize: string | number;
|
|
40
|
+
}, {}>, {
|
|
41
|
+
default?(_: {}): any;
|
|
42
|
+
checkedIcon?(_: {}): any;
|
|
43
|
+
icon?(_: {}): any;
|
|
44
|
+
}>;
|
|
45
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
46
|
+
export default _nut_default;
|
|
47
|
+
|
|
48
|
+
declare module 'vue' {
|
|
49
|
+
interface GlobalComponents {
|
|
50
|
+
NutRadio: typeof _default;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
54
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
55
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
56
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
57
|
+
} : {
|
|
58
|
+
type: import('vue').PropType<T[K]>;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
type __VLS_WithDefaults<P, D> = {
|
|
63
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
64
|
+
default: D[K];
|
|
65
|
+
}> : P[K];
|
|
66
|
+
};
|
|
67
|
+
type __VLS_Prettify<T> = {
|
|
68
|
+
[K in keyof T]: T[K];
|
|
69
|
+
} & {};
|
|
70
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$slots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import RadioGroup from './radio-group.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { RadioGroupProps } from './radio-group.vue';
|
|
4
|
+
export type RadioGroupInstance = ComponentPublicInstance & InstanceType<typeof RadioGroup>;
|
|
5
|
+
export { RadioGroup, RadioGroup as default };
|
|
@@ -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,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
|
+
};
|
|
@@ -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[];
|