@nutui/nutui 4.3.5 → 4.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +5822 -6138
- 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/image/Image.js +79 -111
- package/dist/packages/input/Input.js +112 -182
- package/dist/packages/inputnumber/InputNumber.js +1 -1
- package/dist/packages/invoice/Invoice.js +8 -8
- package/dist/packages/menuitem/MenuItem.js +1 -1
- package/dist/packages/numberkeyboard/NumberKeyboard.js +6 -2
- 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 +3 -2
- 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/image/image.vue.d.ts +111 -0
- package/dist/types/__VUE/image/index.d.ts +6 -0
- package/dist/types/__VUE/input/index.d.ts +6 -0
- package/dist/types/__VUE/input/input.vue.d.ts +171 -0
- package/dist/types/__VUE/input/{type.d.ts → types.d.ts} +2 -2
- package/dist/types/__VUE/input/util.d.ts +1 -1
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +3 -1
- package/dist/types/__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 +19 -10
- 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/image/index.vue.d.ts +0 -126
- package/dist/types/__VUE/input/index.vue.d.ts +0 -221
- 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
- /package/dist/types/__VUE/image/{type.d.ts → types.d.ts} +0 -0
|
@@ -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[];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,7 +9,8 @@ export * from './__VUE/cellgroup/index';
|
|
|
9
9
|
import Overlay from './__VUE/overlay/index.vue';
|
|
10
10
|
import Popup from './__VUE/popup/index.vue';
|
|
11
11
|
import ConfigProvider from './__VUE/configprovider/index.vue';
|
|
12
|
-
import Image from './__VUE/image/index
|
|
12
|
+
import Image from './__VUE/image/index';
|
|
13
|
+
export * from './__VUE/image/index';
|
|
13
14
|
import Layout from './__VUE/layout/index';
|
|
14
15
|
export * from './__VUE/layout/index';
|
|
15
16
|
import Col from './__VUE/col/index';
|
|
@@ -19,8 +20,10 @@ export * from './__VUE/row/index';
|
|
|
19
20
|
import Sticky from './__VUE/sticky/index.vue';
|
|
20
21
|
import Divider from './__VUE/divider/index';
|
|
21
22
|
export * from './__VUE/divider/index';
|
|
22
|
-
import Grid from './__VUE/grid/index
|
|
23
|
-
|
|
23
|
+
import Grid from './__VUE/grid/index';
|
|
24
|
+
export * from './__VUE/grid/index';
|
|
25
|
+
import GridItem from './__VUE/griditem/index';
|
|
26
|
+
export * from './__VUE/griditem/index';
|
|
24
27
|
import Space from './__VUE/space/index.vue';
|
|
25
28
|
import Navbar from './__VUE/navbar/index';
|
|
26
29
|
export * from './__VUE/navbar/index';
|
|
@@ -51,9 +54,12 @@ import CheckboxGroup from './__VUE/checkboxgroup/index.vue';
|
|
|
51
54
|
import DatePicker from './__VUE/datepicker/index.vue';
|
|
52
55
|
import InputNumber from './__VUE/inputnumber/index';
|
|
53
56
|
export * from './__VUE/inputnumber/index';
|
|
54
|
-
import Input from './__VUE/input/index
|
|
55
|
-
|
|
56
|
-
import
|
|
57
|
+
import Input from './__VUE/input/index';
|
|
58
|
+
export * from './__VUE/input/index';
|
|
59
|
+
import Radio from './__VUE/radio/index';
|
|
60
|
+
export * from './__VUE/radio/index';
|
|
61
|
+
import RadioGroup from './__VUE/radiogroup/index';
|
|
62
|
+
export * from './__VUE/radiogroup/index';
|
|
57
63
|
import Rate from './__VUE/rate/index';
|
|
58
64
|
export * from './__VUE/rate/index';
|
|
59
65
|
import Picker from './__VUE/picker/index.vue';
|
|
@@ -97,8 +103,10 @@ import Noticebar from './__VUE/noticebar/index.vue';
|
|
|
97
103
|
import Empty from './__VUE/empty/index';
|
|
98
104
|
export * from './__VUE/empty/index';
|
|
99
105
|
import Video from './__VUE/video/index.vue';
|
|
100
|
-
import Steps from './__VUE/steps/index
|
|
101
|
-
|
|
106
|
+
import Steps from './__VUE/steps/index';
|
|
107
|
+
export * from './__VUE/steps/index';
|
|
108
|
+
import Step from './__VUE/step/index';
|
|
109
|
+
export * from './__VUE/step/index';
|
|
102
110
|
import Swiper from './__VUE/swiper/index.vue';
|
|
103
111
|
import SwiperItem from './__VUE/swiperitem/index.vue';
|
|
104
112
|
import Price from './__VUE/price/index';
|
|
@@ -106,7 +114,8 @@ export * from './__VUE/price/index';
|
|
|
106
114
|
import ImagePreview from './__VUE/imagepreview/index.vue';
|
|
107
115
|
import { showImagePreview } from './__VUE/imagepreview/index';
|
|
108
116
|
import Countup from './__VUE/countup/index.vue';
|
|
109
|
-
import Countdown from './__VUE/countdown/index
|
|
117
|
+
import Countdown from './__VUE/countdown/index';
|
|
118
|
+
export * from './__VUE/countdown/index';
|
|
110
119
|
import Badge from './__VUE/badge/index.vue';
|
|
111
120
|
import Tag from './__VUE/tag/index';
|
|
112
121
|
export * from './__VUE/tag/index';
|
|
@@ -142,7 +151,7 @@ import Invoice from './__VUE/invoice/index';
|
|
|
142
151
|
export * from './__VUE/invoice/index';
|
|
143
152
|
import AvatarCropper from './__VUE/avatarcropper/index.vue';
|
|
144
153
|
declare function install(app: App): void;
|
|
145
|
-
declare const version = "4.3.
|
|
154
|
+
declare const version = "4.3.7";
|
|
146
155
|
export { install, version, Locale, Button, Cell, CellGroup, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Space, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavbar, SideNavbarItem, SubSideNavbar, Range, Searchbar, Cascader, Calendar, CalendarCard, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, Picker, ShortPassword, Textarea, Uploader, NumberKeyboard, Form, FormItem, Swipe, SwipeGroup, ActionSheet, Backtop, Drag, Dialog, InfiniteLoading, PullRefresh, Notify, Switch, Toast, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, Noticebar, Empty, Video, Steps, Step, Swiper, SwiperItem, Price, ImagePreview, Countup, Countdown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Animate, Ellipsis, Watermark, TrendArrow, Tour, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment, Invoice, AvatarCropper, showDialog, showNotify, showToast, showImagePreview };
|
|
147
156
|
declare const _default: {
|
|
148
157
|
install: typeof install;
|
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
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { toRef, toRefs, inject, computed, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-DQf3CENX.js";
|
|
3
|
-
import { CheckNormal, CheckChecked } from "@nutui/icons-vue";
|
|
4
|
-
import { p as pxCheck } from "./pxCheck-DN6FYV6q.js";
|
|
5
|
-
import { R as RADIO_KEY } from "./types-BODurTjN.js";
|
|
6
|
-
import { u as useFormDisabled } from "./common-DRG0ue26.js";
|
|
7
|
-
const { componentName, create } = createComponent("radio");
|
|
8
|
-
const _sfc_main = create({
|
|
9
|
-
components: {
|
|
10
|
-
CheckNormal,
|
|
11
|
-
CheckChecked
|
|
12
|
-
},
|
|
13
|
-
props: {
|
|
14
|
-
disabled: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: false
|
|
17
|
-
},
|
|
18
|
-
shape: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "round"
|
|
21
|
-
},
|
|
22
|
-
label: {
|
|
23
|
-
type: [String, Number, Boolean],
|
|
24
|
-
default: ""
|
|
25
|
-
},
|
|
26
|
-
iconSize: {
|
|
27
|
-
type: [String, Number],
|
|
28
|
-
default: ""
|
|
29
|
-
},
|
|
30
|
-
size: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "normal"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
setup(props, { slots }) {
|
|
36
|
-
const disabled = useFormDisabled(toRef(props, "disabled"));
|
|
37
|
-
const { size } = toRefs(props);
|
|
38
|
-
let parent = inject(RADIO_KEY, null);
|
|
39
|
-
const isCurValue = computed(() => {
|
|
40
|
-
return parent.label.value === props.label;
|
|
41
|
-
});
|
|
42
|
-
const color = computed(() => {
|
|
43
|
-
return !disabled.value ? isCurValue.value ? "nut-radio__icon" : "nut-radio__icon--unchecked" : "nut-radio__icon--disable";
|
|
44
|
-
});
|
|
45
|
-
const renderIcon = () => {
|
|
46
|
-
const { iconSize } = props;
|
|
47
|
-
const iconNodeMap = {
|
|
48
|
-
CheckNormal: slots.icon ? slots.icon : CheckNormal,
|
|
49
|
-
Checked: slots.checkedIcon ? slots.checkedIcon : CheckChecked
|
|
50
|
-
};
|
|
51
|
-
const iconNode = !isCurValue.value ? iconNodeMap.CheckNormal : iconNodeMap.Checked;
|
|
52
|
-
const size2 = pxCheck(iconSize);
|
|
53
|
-
return h(iconNode, {
|
|
54
|
-
width: size2,
|
|
55
|
-
height: size2,
|
|
56
|
-
class: color.value
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
const renderLabel = () => {
|
|
60
|
-
var _a;
|
|
61
|
-
return h(
|
|
62
|
-
"view",
|
|
63
|
-
{
|
|
64
|
-
class: `${componentName}__label ${disabled.value ? `${componentName}__label--disabled` : ""}`
|
|
65
|
-
},
|
|
66
|
-
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
67
|
-
);
|
|
68
|
-
};
|
|
69
|
-
const renderButton = () => {
|
|
70
|
-
var _a;
|
|
71
|
-
return h(
|
|
72
|
-
"view",
|
|
73
|
-
{
|
|
74
|
-
class: `${componentName}__button ${isCurValue.value && `${componentName}__button--active`} ${componentName}__button--${size.value} ${props.disabled ? `${componentName}__button--disabled` : ""}`
|
|
75
|
-
},
|
|
76
|
-
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
77
|
-
);
|
|
78
|
-
};
|
|
79
|
-
const handleClick = () => {
|
|
80
|
-
if (isCurValue.value || disabled.value)
|
|
81
|
-
return;
|
|
82
|
-
parent.updateValue(props.label);
|
|
83
|
-
};
|
|
84
|
-
const reverseState = computed(() => parent.position.value === "left");
|
|
85
|
-
return () => {
|
|
86
|
-
return h(
|
|
87
|
-
"view",
|
|
88
|
-
{
|
|
89
|
-
class: `${componentName} ${componentName}--${props.shape} ${reverseState.value ? `${componentName}--reverse` : ""}`,
|
|
90
|
-
onClick: handleClick
|
|
91
|
-
},
|
|
92
|
-
[props.shape === "button" ? renderButton() : [renderIcon(), renderLabel()]]
|
|
93
|
-
);
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
export {
|
|
98
|
-
_sfc_main as _
|
|
99
|
-
};
|