@nutui/nutui 4.3.0-beta.6 → 4.3.1
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 +47 -0
- package/README.md +1 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +5939 -6035
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/actionsheet/ActionSheet.js +0 -2
- package/dist/packages/address/Address.js +0 -3
- package/dist/packages/addresslist/AddressList.js +0 -4
- package/dist/packages/audio/Audio.js +0 -3
- package/dist/packages/audiooperate/AudioOperate.js +0 -4
- package/dist/packages/avatar/Avatar.js +0 -1
- package/dist/packages/avatarcropper/AvatarCropper.js +1 -2
- package/dist/packages/button/Button.js +17 -18
- package/dist/packages/calendar/Calendar.js +0 -6
- package/dist/packages/calendarcard/CalendarCard.js +6 -26
- package/dist/packages/calendaritem/CalendarItem.js +0 -2
- package/dist/packages/card/Card.js +0 -1
- package/dist/packages/cascader/Cascader.js +0 -9
- package/dist/packages/checkbox/Checkbox.js +4 -2
- package/dist/packages/collapse/Collapse.js +40 -28
- package/dist/packages/collapseitem/CollapseItem.js +112 -125
- package/dist/packages/comment/Comment.js +0 -5
- package/dist/packages/common-LvGbU-A3.js +13 -0
- package/dist/packages/countdown/Countdown.js +3 -4
- package/dist/packages/datepicker/DatePicker.js +0 -4
- package/dist/packages/dialog/Dialog.js +0 -4
- package/dist/packages/ecard/Ecard.js +0 -4
- package/dist/packages/empty/Empty.js +0 -2
- package/dist/packages/fixednav/FixedNav.js +0 -2
- package/dist/packages/form/Form.js +161 -157
- package/dist/packages/formitem/FormItem.js +76 -107
- package/dist/packages/grid/Grid.js +0 -1
- package/dist/packages/imagepreview/ImagePreview.js +1 -5
- package/dist/packages/{index-rf29bejW.js → index-cp6Ms_Qe.js} +1 -1
- package/dist/packages/{index.vue_vue_type_script_lang-MJYVRFbp.js → index.vue_vue_type_script_lang-w2sgcysj.js} +6 -4
- package/dist/packages/infiniteloading/InfiniteLoading.js +0 -1
- package/dist/packages/input/Input.js +10 -7
- package/dist/packages/inputnumber/InputNumber.js +12 -8
- package/dist/packages/invoice/Invoice.js +10 -21
- package/dist/packages/list/List.js +1 -1
- package/dist/packages/locale/lang/index.js +0 -1
- package/dist/packages/menu/Menu.js +1 -1
- package/dist/packages/menuitem/MenuItem.js +0 -2
- package/dist/packages/noticebar/Noticebar.js +9 -10
- package/dist/packages/notify/Notify.js +0 -3
- package/dist/packages/numberkeyboard/NumberKeyboard.js +0 -4
- package/dist/packages/pagination/Pagination.js +0 -2
- package/dist/packages/picker/Picker.js +10 -5
- package/dist/packages/popover/Popover.js +88 -89
- package/dist/packages/popover/index.css +1 -1
- package/dist/packages/popover/index.scss +3 -12
- package/dist/packages/popup/Popup.js +0 -4
- package/dist/packages/pullrefresh/PullRefresh.js +0 -1
- package/dist/packages/radio/Radio.js +1 -6
- package/dist/packages/radiogroup/RadioGroup.js +0 -3
- package/dist/packages/range/Range.js +11 -8
- package/dist/packages/rate/Rate.js +6 -3
- package/dist/packages/searchbar/Searchbar.js +5 -4
- package/dist/packages/shortpassword/ShortPassword.js +0 -3
- package/dist/packages/signature/Signature.js +0 -4
- package/dist/packages/sku/Sku.js +5 -9
- package/dist/packages/sticky/Sticky.js +1 -1
- package/dist/packages/switch/Switch.js +5 -3
- package/dist/packages/table/Table.js +0 -2
- package/dist/packages/tabs/Tabs.js +1 -2
- package/dist/packages/textarea/Textarea.js +7 -6
- package/dist/packages/timepannel/TimePannel.js +2 -2
- package/dist/packages/timeselect/TimeSelect.js +0 -4
- package/dist/packages/toast/Toast.js +3 -3
- package/dist/packages/tour/Tour.js +1 -5
- package/dist/packages/tour/index.css +1 -1
- package/dist/packages/uploader/Uploader.js +7 -5
- package/dist/packages/video/Video.js +0 -2
- package/dist/smartips/web-types.json +12 -3
- package/dist/style.css +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +43 -3
- package/dist/types/__VUE/calendarcard/calendar-card.vue.d.ts +59 -57
- package/dist/types/__VUE/calendarcard/index.d.ts +1 -0
- package/dist/types/__VUE/collapse/collapse.vue.d.ts +60 -0
- package/dist/types/__VUE/collapse/index.d.ts +6 -0
- package/dist/types/__VUE/collapse/types.d.ts +3 -2
- package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +201 -0
- package/dist/types/__VUE/collapseitem/index.d.ts +5 -0
- package/dist/types/__VUE/countdown/index.vue.d.ts +23 -1
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/form/common.d.ts +2 -30
- package/dist/types/__VUE/form/form.vue.d.ts +80 -0
- package/dist/types/__VUE/form/index.d.ts +6 -0
- package/dist/types/__VUE/form/types.d.ts +12 -4
- package/dist/types/__VUE/formitem/form-item.vue.d.ts +97 -0
- package/dist/types/__VUE/formitem/index.d.ts +5 -0
- package/dist/types/__VUE/input/index.vue.d.ts +2 -1
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -0
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -3
- package/dist/types/__VUE/noticebar/types.d.ts +1 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +1 -0
- package/dist/types/__VUE/picker/types.d.ts +1 -0
- package/dist/types/__VUE/picker/usePicker.d.ts +1 -0
- package/dist/types/__VUE/popover/index.vue.d.ts +0 -1
- package/dist/types/__VUE/popover/type.d.ts +7 -0
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +1 -0
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -0
- package/dist/types/__VUE/skeleton/index.vue.d.ts +3 -3
- 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/table/index.vue.d.ts +4 -4
- package/dist/types/__VUE/tabs/index.vue.d.ts +4 -4
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -0
- package/dist/types/__VUE/toast/index.vue.d.ts +21 -1
- package/dist/types/index.d.ts +9 -5
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +0 -39
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +0 -212
- package/dist/types/__VUE/form/index.vue.d.ts +0 -58
- package/dist/types/__VUE/formitem/index.vue.d.ts +0 -134
- package/dist/types/__VUE/formitem/types.d.ts +0 -11
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import { FormItemRule, FormItemLabelPosition, FormItemStarPosition } from '../formitem/types';
|
|
2
1
|
export declare const FORM_KEY: unique symbol;
|
|
2
|
+
export interface FormItemRuleWithoutValidator {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
regex?: RegExp;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
message?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FormItemRule extends FormItemRuleWithoutValidator {
|
|
9
|
+
validator?: (value: any, ruleCfg: FormItemRuleWithoutValidator) => boolean | Promise<string> | Promise<boolean> | Promise<void> | Promise<unknown>;
|
|
10
|
+
}
|
|
3
11
|
export type FormRules = {
|
|
4
12
|
[key: string]: FormItemRule[];
|
|
5
13
|
};
|
|
@@ -7,9 +15,9 @@ export type FormRule = {
|
|
|
7
15
|
prop: string;
|
|
8
16
|
rules: FormItemRule[];
|
|
9
17
|
};
|
|
10
|
-
export type
|
|
18
|
+
export type FormErrorMessage = {
|
|
11
19
|
prop: string;
|
|
12
20
|
message: string;
|
|
13
21
|
};
|
|
14
|
-
export type FormLabelPosition =
|
|
15
|
-
export type FormStarPosition =
|
|
22
|
+
export type FormLabelPosition = 'left' | 'right' | 'top';
|
|
23
|
+
export type FormStarPosition = 'left' | 'right';
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import type { FormItemRule, FormLabelPosition, FormStarPosition } from '../form/types';
|
|
3
|
+
export type FormItemProps = Partial<{
|
|
4
|
+
prop: string;
|
|
5
|
+
label: string;
|
|
6
|
+
rules: FormItemRule[];
|
|
7
|
+
required: boolean;
|
|
8
|
+
showErrorMessage: boolean;
|
|
9
|
+
showErrorLine: boolean;
|
|
10
|
+
labelWidth: string | number;
|
|
11
|
+
labelAlign: string;
|
|
12
|
+
errorMessageAlign: string;
|
|
13
|
+
bodyAlign: string;
|
|
14
|
+
labelPosition: FormLabelPosition;
|
|
15
|
+
starPosition: FormStarPosition;
|
|
16
|
+
}>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
18
|
+
prop: string;
|
|
19
|
+
label: string;
|
|
20
|
+
rules: FormItemRule[];
|
|
21
|
+
required: boolean;
|
|
22
|
+
showErrorMessage: boolean;
|
|
23
|
+
showErrorLine: boolean;
|
|
24
|
+
labelWidth: string | number;
|
|
25
|
+
labelAlign: string;
|
|
26
|
+
errorMessageAlign: string;
|
|
27
|
+
bodyAlign: string;
|
|
28
|
+
labelPosition: FormLabelPosition;
|
|
29
|
+
starPosition: FormStarPosition;
|
|
30
|
+
}>>, {
|
|
31
|
+
prop: string;
|
|
32
|
+
label: string;
|
|
33
|
+
rules: () => never[];
|
|
34
|
+
required: boolean;
|
|
35
|
+
showErrorMessage: boolean;
|
|
36
|
+
showErrorLine: boolean;
|
|
37
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
38
|
+
prop: string;
|
|
39
|
+
label: string;
|
|
40
|
+
rules: FormItemRule[];
|
|
41
|
+
required: boolean;
|
|
42
|
+
showErrorMessage: boolean;
|
|
43
|
+
showErrorLine: boolean;
|
|
44
|
+
labelWidth: string | number;
|
|
45
|
+
labelAlign: string;
|
|
46
|
+
errorMessageAlign: string;
|
|
47
|
+
bodyAlign: string;
|
|
48
|
+
labelPosition: FormLabelPosition;
|
|
49
|
+
starPosition: FormStarPosition;
|
|
50
|
+
}>>, {
|
|
51
|
+
prop: string;
|
|
52
|
+
label: string;
|
|
53
|
+
rules: () => never[];
|
|
54
|
+
required: boolean;
|
|
55
|
+
showErrorMessage: boolean;
|
|
56
|
+
showErrorLine: boolean;
|
|
57
|
+
}>>>, {
|
|
58
|
+
label: string;
|
|
59
|
+
required: boolean;
|
|
60
|
+
rules: FormItemRule[];
|
|
61
|
+
prop: string;
|
|
62
|
+
showErrorMessage: boolean;
|
|
63
|
+
showErrorLine: boolean;
|
|
64
|
+
}, {}>, {
|
|
65
|
+
label?(_: {}): any;
|
|
66
|
+
default?(_: {}): any;
|
|
67
|
+
}>;
|
|
68
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
69
|
+
export default _nut_default;
|
|
70
|
+
|
|
71
|
+
declare module 'vue' {
|
|
72
|
+
interface GlobalComponents {
|
|
73
|
+
NutFormItem: typeof _default;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
77
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
78
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
79
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
80
|
+
} : {
|
|
81
|
+
type: import('vue').PropType<T[K]>;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
type __VLS_WithDefaults<P, D> = {
|
|
86
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
87
|
+
default: D[K];
|
|
88
|
+
}> : P[K];
|
|
89
|
+
};
|
|
90
|
+
type __VLS_Prettify<T> = {
|
|
91
|
+
[K in keyof T]: T[K];
|
|
92
|
+
} & {};
|
|
93
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
94
|
+
new (): {
|
|
95
|
+
$slots: S;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import FormItem from './form-item.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { FormItemProps } from './form-item.vue';
|
|
4
|
+
export type FormItemInstance = ComponentPublicInstance & InstanceType<typeof FormItem>;
|
|
5
|
+
export { FormItem, FormItem as default };
|
|
@@ -91,6 +91,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
91
91
|
[x: string]: boolean;
|
|
92
92
|
}>;
|
|
93
93
|
styles: ComputedRef<any>;
|
|
94
|
+
disabled: ComputedRef<boolean>;
|
|
94
95
|
onInput: (event: Event) => void;
|
|
95
96
|
onFocus: (event: Event) => void;
|
|
96
97
|
onBlur: (event: Event) => void;
|
|
@@ -198,13 +199,13 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
198
199
|
border: boolean;
|
|
199
200
|
placeholder: string;
|
|
200
201
|
modelValue: string | number;
|
|
202
|
+
required: boolean;
|
|
201
203
|
maxLength: string | number;
|
|
202
204
|
clearable: boolean;
|
|
203
205
|
autofocus: boolean;
|
|
204
206
|
readonly: boolean;
|
|
205
207
|
inputAlign: InputAlignType;
|
|
206
208
|
formatter: (value: string) => string;
|
|
207
|
-
required: boolean;
|
|
208
209
|
clearSize: string | number;
|
|
209
210
|
formatTrigger: InputFormatTrigger;
|
|
210
211
|
showWordLimit: boolean;
|
|
@@ -43,6 +43,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
43
43
|
classes: import("vue").ComputedRef<{
|
|
44
44
|
[x: string]: boolean;
|
|
45
45
|
}>;
|
|
46
|
+
disabled: import("vue").ComputedRef<boolean>;
|
|
46
47
|
change: (event: Event) => void;
|
|
47
48
|
blur: (event: Event) => void;
|
|
48
49
|
focus: (event: Event) => void;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { NoticebarDirection } from './types';
|
|
2
3
|
|
|
3
4
|
declare type Install<T> = T & {
|
|
4
5
|
install(app: import('vue').App): void;
|
|
5
6
|
};
|
|
6
7
|
declare const _default: Install< import("vue").DefineComponent<{
|
|
7
8
|
direction: {
|
|
8
|
-
type:
|
|
9
|
+
type: PropType<NoticebarDirection>;
|
|
9
10
|
default: string;
|
|
10
11
|
};
|
|
11
12
|
list: {
|
|
@@ -104,7 +105,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
104
105
|
showNotica: import("vue").Ref<boolean>;
|
|
105
106
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "close" | "acrossEnd")[], "click" | "close" | "acrossEnd", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
106
107
|
direction: {
|
|
107
|
-
type:
|
|
108
|
+
type: PropType<NoticebarDirection>;
|
|
108
109
|
default: string;
|
|
109
110
|
};
|
|
110
111
|
list: {
|
|
@@ -168,7 +169,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
168
169
|
height: number;
|
|
169
170
|
text: string;
|
|
170
171
|
background: string;
|
|
171
|
-
direction:
|
|
172
|
+
direction: NoticebarDirection;
|
|
172
173
|
list: any[];
|
|
173
174
|
standTime: number;
|
|
174
175
|
complexAm: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type NoticebarDirection = 'across' | 'vertical';
|
|
@@ -81,7 +81,6 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
81
81
|
popoverRef: import("vue").Ref<any>;
|
|
82
82
|
popoverContentRef: import("vue").Ref<any>;
|
|
83
83
|
getRootPosition: import("vue").ComputedRef<CSSProperties>;
|
|
84
|
-
customStyle: import("vue").ComputedRef<CSSProperties>;
|
|
85
84
|
popoverArrowStyle: import("vue").ComputedRef<CSSProperties>;
|
|
86
85
|
renderIcon: (icon: import("vue").Component, props?: any) => "" | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
87
86
|
[key: string]: any;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
+
export interface PopoverRootPosition {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
left: number;
|
|
6
|
+
top: number;
|
|
7
|
+
right: number;
|
|
8
|
+
}
|
|
2
9
|
export type PopoverTheme = 'light' | 'dark';
|
|
3
10
|
export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
4
11
|
export type PopoverList = {
|
|
@@ -60,7 +60,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
60
60
|
marksStyle: (mark: number) => CSSProperties;
|
|
61
61
|
marksList: import("vue").ComputedRef<number[]>;
|
|
62
62
|
tickStyle: (mark: number) => CSSProperties;
|
|
63
|
-
disabled: import("vue").
|
|
63
|
+
disabled: import("vue").ComputedRef<boolean>;
|
|
64
64
|
vertical: import("vue").Ref<boolean>;
|
|
65
65
|
range: import("vue").Ref<boolean>;
|
|
66
66
|
modelValue: import("vue").Ref<SliderValue>;
|
|
@@ -113,6 +113,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
113
113
|
slots: Readonly<{
|
|
114
114
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
115
115
|
}>;
|
|
116
|
+
disabled: import("vue").ComputedRef<boolean>;
|
|
116
117
|
onTouchStart(event: TouchEvent): void;
|
|
117
118
|
onTouchMove(event: TouchEvent): void;
|
|
118
119
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -141,6 +141,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
141
141
|
leftIconClick: (event: Event) => void;
|
|
142
142
|
rightIconClick: (event: Event) => void;
|
|
143
143
|
styleSearchbar: import("vue").ComputedRef<CSSProperties>;
|
|
144
|
+
disabled: import("vue").ComputedRef<boolean>;
|
|
144
145
|
active: Ref<boolean>;
|
|
145
146
|
renderIcon: (icon: import("vue").Component, props?: any) => "" | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
146
147
|
[key: string]: any;
|
|
@@ -46,13 +46,13 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
48
|
}, {
|
|
49
|
-
avatarShape: import("vue").Ref<
|
|
49
|
+
avatarShape: import("vue").Ref<AvatarShape>;
|
|
50
50
|
avatarClass: import("vue").ComputedRef<{
|
|
51
|
-
[x: string]:
|
|
51
|
+
[x: string]: boolean | AvatarShape;
|
|
52
52
|
avatarClass: boolean;
|
|
53
53
|
}>;
|
|
54
54
|
getBlockClass: (prefixCls: string) => {
|
|
55
|
-
[x: string]:
|
|
55
|
+
[x: string]: boolean;
|
|
56
56
|
};
|
|
57
57
|
getStyle: () => CSSProperties;
|
|
58
58
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
18
|
}, {
|
|
19
|
-
goodsCount: import("vue").Ref<
|
|
19
|
+
goodsCount: import("vue").Ref<string | number>;
|
|
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: import("vue").Ref<
|
|
60
|
+
showPopup: import("vue").Ref<boolean>;
|
|
61
61
|
closePopup: (type: string) => void;
|
|
62
62
|
selectSku: (skus: any) => void;
|
|
63
63
|
changeStepper: (value: number) => void;
|
|
@@ -27,13 +27,13 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
27
27
|
};
|
|
28
28
|
}, {
|
|
29
29
|
cellClasses: (item: TableColumns) => {
|
|
30
|
-
[x: string]:
|
|
31
|
-
'nut-table__main__head__tr--border':
|
|
30
|
+
[x: string]: boolean;
|
|
31
|
+
'nut-table__main__head__tr--border': boolean;
|
|
32
32
|
};
|
|
33
33
|
getColumnItem: (value: string) => TableColumns;
|
|
34
|
-
getColumnItemStyle: (value: string) =>
|
|
34
|
+
getColumnItemStyle: (value: string) => string;
|
|
35
35
|
handleSorterClick: (item: TableColumns) => void;
|
|
36
|
-
sortDataItem: () => any;
|
|
36
|
+
sortDataItem: () => [string, any][];
|
|
37
37
|
translate: (keyPath: string, ...args: unknown[]) => any;
|
|
38
38
|
stylehead: (item: TableColumns) => string;
|
|
39
39
|
stylecolumn: (item: TableColumns) => string;
|
|
@@ -88,7 +88,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
88
88
|
titles: Ref<Title[]>;
|
|
89
89
|
contentStyle: import("vue").ComputedRef<CSSProperties>;
|
|
90
90
|
tabsNavStyle: import("vue").ComputedRef<{
|
|
91
|
-
background:
|
|
91
|
+
background: string;
|
|
92
92
|
}>;
|
|
93
93
|
titleStyle: import("vue").ComputedRef<{
|
|
94
94
|
marginTop?: undefined;
|
|
@@ -107,11 +107,11 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
107
107
|
marginBottom?: undefined;
|
|
108
108
|
}>;
|
|
109
109
|
tabsActiveStyle: import("vue").ComputedRef<{
|
|
110
|
-
color:
|
|
111
|
-
background:
|
|
110
|
+
color: string;
|
|
111
|
+
background: string;
|
|
112
112
|
}>;
|
|
113
113
|
container: Ref<any>;
|
|
114
|
-
getScrollY: import("vue").ComputedRef<
|
|
114
|
+
getScrollY: import("vue").ComputedRef<boolean>;
|
|
115
115
|
onStickyScroll: (params: {
|
|
116
116
|
top: number;
|
|
117
117
|
fixed: boolean;
|
|
@@ -53,6 +53,7 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
53
53
|
"nut-textarea--disabled": boolean;
|
|
54
54
|
}>;
|
|
55
55
|
styles: any;
|
|
56
|
+
disabled: import("vue").ComputedRef<boolean>;
|
|
56
57
|
change: (event: Event) => void;
|
|
57
58
|
focus: (event: Event) => void;
|
|
58
59
|
blur: (event: Event) => void;
|
|
@@ -68,7 +68,27 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
68
68
|
hide: () => void;
|
|
69
69
|
clickCover: () => void;
|
|
70
70
|
hasIcon: import("vue").ComputedRef<boolean>;
|
|
71
|
-
toastBodyClass: import("vue").ComputedRef<
|
|
71
|
+
toastBodyClass: import("vue").ComputedRef<(string | {
|
|
72
|
+
'nut-toast-center': boolean;
|
|
73
|
+
'nut-toast-has-icon'?: undefined;
|
|
74
|
+
'nut-toast-cover'?: undefined;
|
|
75
|
+
'nut-toast-loading'?: undefined;
|
|
76
|
+
} | {
|
|
77
|
+
'nut-toast-has-icon': boolean;
|
|
78
|
+
'nut-toast-center'?: undefined;
|
|
79
|
+
'nut-toast-cover'?: undefined;
|
|
80
|
+
'nut-toast-loading'?: undefined;
|
|
81
|
+
} | {
|
|
82
|
+
'nut-toast-cover': boolean;
|
|
83
|
+
'nut-toast-center'?: undefined;
|
|
84
|
+
'nut-toast-has-icon'?: undefined;
|
|
85
|
+
'nut-toast-loading'?: undefined;
|
|
86
|
+
} | {
|
|
87
|
+
'nut-toast-loading': boolean;
|
|
88
|
+
'nut-toast-center'?: undefined;
|
|
89
|
+
'nut-toast-has-icon'?: undefined;
|
|
90
|
+
'nut-toast-cover'?: undefined;
|
|
91
|
+
} | undefined)[]>;
|
|
72
92
|
toastIconWrapperClass: import("vue").ComputedRef<(string | {
|
|
73
93
|
'nut-toast-icon-no-animation': boolean;
|
|
74
94
|
})[]>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -51,8 +51,10 @@ import ShortPassword from './__VUE/shortpassword/index.vue';
|
|
|
51
51
|
import Textarea from './__VUE/textarea/index.vue';
|
|
52
52
|
import Uploader from './__VUE/uploader/index.vue';
|
|
53
53
|
import NumberKeyboard from './__VUE/numberkeyboard/index.vue';
|
|
54
|
-
import Form from './__VUE/form/index
|
|
55
|
-
|
|
54
|
+
import Form from './__VUE/form/index';
|
|
55
|
+
export * from './__VUE/form/index';
|
|
56
|
+
import FormItem from './__VUE/formitem/index';
|
|
57
|
+
export * from './__VUE/formitem/index';
|
|
56
58
|
import Swipe from './__VUE/swipe/index.vue';
|
|
57
59
|
import SwipeGroup from './__VUE/swipegroup/index.vue';
|
|
58
60
|
import ActionSheet from './__VUE/actionsheet/index.vue';
|
|
@@ -90,8 +92,10 @@ import Badge from './__VUE/badge/index.vue';
|
|
|
90
92
|
import Tag from './__VUE/tag/index.vue';
|
|
91
93
|
import Popover from './__VUE/popover/index.vue';
|
|
92
94
|
import Skeleton from './__VUE/skeleton/index.vue';
|
|
93
|
-
import Collapse from './__VUE/collapse/index
|
|
94
|
-
|
|
95
|
+
import Collapse from './__VUE/collapse/index';
|
|
96
|
+
export * from './__VUE/collapse/index';
|
|
97
|
+
import CollapseItem from './__VUE/collapseitem/index';
|
|
98
|
+
export * from './__VUE/collapseitem/index';
|
|
95
99
|
import Table from './__VUE/table/index.vue';
|
|
96
100
|
import Animate from './__VUE/animate/index.vue';
|
|
97
101
|
import Ellipsis from './__VUE/ellipsis/index.vue';
|
|
@@ -114,7 +118,7 @@ import Comment from './__VUE/comment/index.vue';
|
|
|
114
118
|
import Invoice from './__VUE/invoice/index.vue';
|
|
115
119
|
import AvatarCropper from './__VUE/avatarcropper/index.vue';
|
|
116
120
|
declare function install(app: App): void;
|
|
117
|
-
declare const version = "4.3.
|
|
121
|
+
declare const version = "4.3.1";
|
|
118
122
|
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, CalendarItem, 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 };
|
|
119
123
|
declare const _default: {
|
|
120
124
|
install: typeof install;
|
package/package.json
CHANGED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
|
|
3
|
-
declare type Install<T> = T & {
|
|
4
|
-
install(app: import('vue').App): void;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: Install< import("vue").DefineComponent<{
|
|
7
|
-
modelValue: {
|
|
8
|
-
type: PropType<string | number | (string | number)[]>;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
accordion: {
|
|
12
|
-
type: BooleanConstructor;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
}, {
|
|
16
|
-
nutCollapseRef: import("vue").Ref<null>;
|
|
17
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
-
modelValue: {
|
|
19
|
-
type: PropType<string | number | (string | number)[]>;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
accordion: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
|
-
}>> & {
|
|
27
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
28
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
29
|
-
}, {
|
|
30
|
-
modelValue: string | number | (string | number)[];
|
|
31
|
-
accordion: boolean;
|
|
32
|
-
}, {}>>;
|
|
33
|
-
export default _default;
|
|
34
|
-
|
|
35
|
-
declare module 'vue' {
|
|
36
|
-
interface GlobalComponents {
|
|
37
|
-
NutCollapse: typeof _default;
|
|
38
|
-
}
|
|
39
|
-
}
|