@nutui/nutui 4.3.1 → 4.3.3
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 +44 -0
- package/dist/nutui.es.js +2 -4
- package/dist/nutui.js +6035 -6408
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/actionsheet/ActionSheet.js +1 -1
- package/dist/packages/address/Address.js +1 -1
- package/dist/packages/addresslist/AddressList.js +2 -2
- package/dist/packages/animate/Animate.js +51 -44
- package/dist/packages/backtop/Backtop.js +79 -89
- package/dist/packages/calendar/Calendar.js +814 -3
- package/dist/packages/calendar/index.scss +0 -1
- package/dist/packages/calendarcard/CalendarCard.js +1 -1
- package/dist/packages/card/Card.js +4 -4
- package/dist/packages/cascader/Cascader.js +1 -1
- package/dist/packages/checkbox/Checkbox.js +1 -1
- package/dist/packages/circleprogress/CircleProgress.js +90 -97
- package/dist/packages/col/Col.js +41 -30
- package/dist/packages/comment/Comment.js +2 -2
- package/dist/packages/{common-LvGbU-A3.js → common-FZL3qC99.js} +5 -2
- package/dist/packages/dialog/Dialog.js +1 -1
- package/dist/packages/ecard/Ecard.js +2 -2
- package/dist/packages/form/Form.js +3 -1
- package/dist/packages/formitem/FormItem.js +1 -1
- package/dist/packages/imagepreview/ImagePreview.js +1 -1
- package/dist/packages/{index-wY4t0zYt.js → index-BqB5dTeo.js} +29 -17
- package/dist/packages/{index.vue_vue_type_script_lang-w2sgcysj.js → index.vue_vue_type_script_lang-n0HbjvfF.js} +1 -1
- package/dist/packages/input/Input.js +8 -8
- package/dist/packages/inputnumber/InputNumber.js +84 -103
- package/dist/packages/invoice/Invoice.js +87 -138
- package/dist/packages/layout/Layout.js +3 -0
- package/dist/packages/menuitem/MenuItem.js +1 -1
- package/dist/packages/navbar/Navbar.js +103 -115
- package/dist/packages/notify/Notify.js +1 -1
- package/dist/packages/numberkeyboard/NumberKeyboard.js +1 -1
- package/dist/packages/popover/Popover.js +1 -1
- package/dist/packages/popup/Popup.js +1 -1
- package/dist/packages/price/Price.js +69 -77
- package/dist/packages/progress/Progress.js +96 -115
- package/dist/packages/radio/Radio.js +1 -1
- package/dist/packages/range/Range.js +1 -1
- package/dist/packages/rate/Rate.js +99 -141
- package/dist/packages/row/Row.js +43 -39
- package/dist/packages/searchbar/Searchbar.js +1 -1
- package/dist/packages/shortpassword/ShortPassword.js +1 -1
- package/dist/packages/sku/Sku.js +5 -5
- package/dist/packages/swipe/Swipe.js +96 -110
- package/dist/packages/swipegroup/SwipeGroup.js +41 -23
- package/dist/packages/switch/Switch.js +12 -4
- package/dist/packages/switch/index.css +1 -1
- package/dist/packages/switch/index.scss +1 -1
- package/dist/packages/tag/Tag.js +57 -66
- package/dist/packages/textarea/Textarea.js +1 -1
- package/dist/packages/timeselect/TimeSelect.js +1 -1
- package/dist/packages/uploader/Uploader.js +5 -5
- package/dist/smartips/web-types.json +12 -3
- package/dist/style.css +1 -1
- package/dist/styles/base-jdb.css +1 -1
- package/dist/styles/base-jddkh.css +1 -1
- package/dist/styles/base-jdt.css +1 -1
- package/dist/styles/themes/default.scss +0 -1
- package/dist/styles/themes/jdb.scss +0 -1
- package/dist/styles/themes/jddkh.scss +0 -1
- package/dist/styles/themes/jdt.scss +0 -1
- package/dist/styles/variables-jdb.scss +0 -1
- package/dist/styles/variables-jddkh.scss +0 -1
- package/dist/styles/variables-jdt.scss +0 -1
- package/dist/styles/variables.scss +0 -1
- package/dist/types/__VUE/animate/animate.vue.d.ts +75 -0
- package/dist/types/__VUE/animate/index.d.ts +6 -0
- package/dist/types/__VUE/backtop/backtop.vue.d.ts +87 -0
- package/dist/types/__VUE/backtop/index.d.ts +5 -0
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -12
- package/dist/types/__VUE/circleprogress/circle-progress.vue.d.ts +88 -0
- package/dist/types/__VUE/circleprogress/index.d.ts +6 -0
- package/dist/types/__VUE/col/col.vue.d.ts +53 -0
- package/dist/types/__VUE/col/index.d.ts +5 -0
- package/dist/types/__VUE/form/common.d.ts +2 -0
- package/dist/types/__VUE/form/types.d.ts +0 -1
- package/dist/types/__VUE/input/index.vue.d.ts +1 -1
- package/dist/types/__VUE/inputnumber/index.d.ts +5 -0
- package/dist/types/__VUE/inputnumber/input-number.vue.d.ts +112 -0
- package/dist/types/__VUE/invoice/index.d.ts +6 -0
- package/dist/types/__VUE/invoice/invoice.vue.d.ts +59 -0
- package/dist/types/__VUE/invoice/types.d.ts +12 -0
- package/dist/types/__VUE/layout/index.d.ts +4 -0
- package/dist/types/__VUE/layout/layout.vue.d.ts +10 -0
- package/dist/types/__VUE/navbar/index.d.ts +5 -0
- package/dist/types/__VUE/navbar/navbar.vue.d.ts +125 -0
- package/dist/types/__VUE/price/index.d.ts +6 -0
- package/dist/types/__VUE/price/price.vue.d.ts +83 -0
- package/dist/types/__VUE/progress/index.d.ts +6 -0
- package/dist/types/__VUE/progress/progress.vue.d.ts +91 -0
- package/dist/types/__VUE/rate/index.d.ts +5 -0
- package/dist/types/__VUE/rate/rate.vue.d.ts +208 -0
- package/dist/types/__VUE/row/index.d.ts +5 -0
- package/dist/types/__VUE/row/row.vue.d.ts +71 -0
- package/dist/types/__VUE/swipe/index.d.ts +6 -0
- package/dist/types/__VUE/swipe/swipe.vue.d.ts +79 -0
- package/dist/types/__VUE/swipe/types.d.ts +1 -0
- package/dist/types/__VUE/swipegroup/index.d.ts +5 -0
- package/dist/types/__VUE/swipegroup/swipe-group.vue.d.ts +47 -0
- package/dist/types/__VUE/switch/index.vue.d.ts +9 -0
- package/dist/types/__VUE/tag/index.d.ts +6 -0
- package/dist/types/__VUE/tag/tag.vue.d.ts +90 -0
- package/dist/types/__VUE/tag/types.d.ts +1 -1
- package/dist/types/index.d.ts +32 -18
- package/package.json +1 -1
- package/dist/packages/calendaritem/CalendarItem.js +0 -819
- package/dist/packages/calendaritem/index.css +0 -0
- package/dist/packages/calendaritem/index.mjs +0 -2
- package/dist/packages/calendaritem/index.scss +0 -0
- package/dist/packages/calendaritem/style/css.mjs +0 -2
- package/dist/packages/calendaritem/style/index.mjs +0 -2
- package/dist/packages/types-Ynmct7na.js +0 -4
- package/dist/types/__VUE/animate/index.vue.d.ts +0 -71
- package/dist/types/__VUE/backtop/index.vue.d.ts +0 -98
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +0 -95
- package/dist/types/__VUE/col/index.vue.d.ts +0 -42
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +0 -117
- package/dist/types/__VUE/invoice/index.vue.d.ts +0 -53
- package/dist/types/__VUE/layout/index.vue.d.ts +0 -12
- package/dist/types/__VUE/navbar/index.vue.d.ts +0 -129
- package/dist/types/__VUE/price/index.vue.d.ts +0 -97
- package/dist/types/__VUE/progress/index.vue.d.ts +0 -120
- package/dist/types/__VUE/rate/index.vue.d.ts +0 -240
- package/dist/types/__VUE/row/index.vue.d.ts +0 -62
- package/dist/types/__VUE/swipe/index.vue.d.ts +0 -70
- package/dist/types/__VUE/swipegroup/index.vue.d.ts +0 -26
- package/dist/types/__VUE/tag/index.vue.d.ts +0 -94
- /package/dist/types/__VUE/animate/{type.d.ts → types.d.ts} +0 -0
|
@@ -849,7 +849,6 @@ $table-tr-odd-bg-color: $white !default;
|
|
|
849
849
|
|
|
850
850
|
// navbar
|
|
851
851
|
$navbar-height: 44px !default;
|
|
852
|
-
$navbar-margin-bottom: 20px !default;
|
|
853
852
|
$navbar-padding: 0 16px !default;
|
|
854
853
|
$navbar-background: $white !default;
|
|
855
854
|
$navbar-box-shadow: 0px 1px 7px 0px rgba(237, 238, 241, 1) !default;
|
|
@@ -781,7 +781,6 @@ $table-tr-odd-bg-color: $white !default;
|
|
|
781
781
|
|
|
782
782
|
// navbar
|
|
783
783
|
$navbar-height: 44px !default;
|
|
784
|
-
$navbar-margin-bottom: 20px !default;
|
|
785
784
|
$navbar-padding: 0 16px !default;
|
|
786
785
|
$navbar-background: $white !default;
|
|
787
786
|
$navbar-box-shadow: 0px 1px 7px 0px rgba(237, 238, 241, 1) !default;
|
|
@@ -796,7 +796,6 @@ $table-tr-odd-bg-color: var(--nut-table-tr-odd-bg-color, $white) !default;
|
|
|
796
796
|
|
|
797
797
|
// navbar
|
|
798
798
|
$navbar-height: var(--nut-navbar-height, 46px) !default;
|
|
799
|
-
$navbar-margin-bottom: var(--nut-navbar-margin-bottom, 20px) !default;
|
|
800
799
|
$navbar-padding: var(--nut-navbar-padding, 0 16px) !default;
|
|
801
800
|
$navbar-background: var(--nut-navbar-background, $white) !default;
|
|
802
801
|
$navbar-box-shadow: var(--nut-navbar-box-shadow, 0px 1px 7px 0px rgba(237, 238, 241, 1)) !default;
|
|
@@ -843,7 +843,6 @@ $table-tr-odd-bg-color: var(--nut-table-tr-odd-bg-color, $white) !default;
|
|
|
843
843
|
|
|
844
844
|
// navbar
|
|
845
845
|
$navbar-height: var(--nut-navbar-height, 44px) !default;
|
|
846
|
-
$navbar-margin-bottom: var(--nut-navbar-margin-bottom, 20px) !default;
|
|
847
846
|
$navbar-padding: var(--nut-navbar-padding, 0 16px) !default;
|
|
848
847
|
$navbar-background: var(--nut-navbar-background, $white) !default;
|
|
849
848
|
$navbar-box-shadow: var(--nut-navbar-box-shadow, 0px 1px 7px 0px rgba(237, 238, 241, 1)) !default;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import type { AnimateType, AnimateAction } from './types';
|
|
3
|
+
export type AnimateProps = Partial<{
|
|
4
|
+
type: AnimateType;
|
|
5
|
+
show: boolean;
|
|
6
|
+
action: AnimateAction;
|
|
7
|
+
loop: boolean;
|
|
8
|
+
duration: string | number;
|
|
9
|
+
}>;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
11
|
+
type: AnimateType;
|
|
12
|
+
show: boolean;
|
|
13
|
+
action: AnimateAction;
|
|
14
|
+
loop: boolean;
|
|
15
|
+
duration: string | number;
|
|
16
|
+
}>>, {
|
|
17
|
+
show: boolean;
|
|
18
|
+
action: string;
|
|
19
|
+
loop: boolean;
|
|
20
|
+
duration: number;
|
|
21
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
click: (...args: any[]) => void;
|
|
23
|
+
animate: (...args: any[]) => void;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
25
|
+
type: AnimateType;
|
|
26
|
+
show: boolean;
|
|
27
|
+
action: AnimateAction;
|
|
28
|
+
loop: boolean;
|
|
29
|
+
duration: string | number;
|
|
30
|
+
}>>, {
|
|
31
|
+
show: boolean;
|
|
32
|
+
action: string;
|
|
33
|
+
loop: boolean;
|
|
34
|
+
duration: number;
|
|
35
|
+
}>>> & {
|
|
36
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
onAnimate?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
duration: string | number;
|
|
40
|
+
show: boolean;
|
|
41
|
+
action: AnimateAction;
|
|
42
|
+
loop: boolean;
|
|
43
|
+
}, {}>, {
|
|
44
|
+
default?(_: {}): any;
|
|
45
|
+
}>;
|
|
46
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
47
|
+
export default _nut_default;
|
|
48
|
+
|
|
49
|
+
declare module 'vue' {
|
|
50
|
+
interface GlobalComponents {
|
|
51
|
+
NutAnimate: typeof _default;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
55
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
56
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
57
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
58
|
+
} : {
|
|
59
|
+
type: import('vue').PropType<T[K]>;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
type __VLS_WithDefaults<P, D> = {
|
|
64
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
65
|
+
default: D[K];
|
|
66
|
+
}> : P[K];
|
|
67
|
+
};
|
|
68
|
+
type __VLS_Prettify<T> = {
|
|
69
|
+
[K in keyof T]: T[K];
|
|
70
|
+
} & {};
|
|
71
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
72
|
+
new (): {
|
|
73
|
+
$slots: S;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Animate from './animate.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { AnimateProps } from './animate.vue';
|
|
4
|
+
export type { AnimateType, AnimateAction } from './types';
|
|
5
|
+
export type AnimateInstance = ComponentPublicInstance & InstanceType<typeof Animate>;
|
|
6
|
+
export { Animate, Animate as default };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type BacktopProps = Partial<{
|
|
3
|
+
bottom: number;
|
|
4
|
+
right: number;
|
|
5
|
+
elId: string;
|
|
6
|
+
distance: number;
|
|
7
|
+
zIndex: number;
|
|
8
|
+
isAnimation: boolean;
|
|
9
|
+
duration: number;
|
|
10
|
+
}>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
12
|
+
bottom: number;
|
|
13
|
+
right: number;
|
|
14
|
+
elId: string;
|
|
15
|
+
distance: number;
|
|
16
|
+
zIndex: number;
|
|
17
|
+
isAnimation: boolean;
|
|
18
|
+
duration: number;
|
|
19
|
+
}>>, {
|
|
20
|
+
bottom: number;
|
|
21
|
+
right: number;
|
|
22
|
+
elId: string;
|
|
23
|
+
distance: number;
|
|
24
|
+
zIndex: number;
|
|
25
|
+
isAnimation: boolean;
|
|
26
|
+
duration: number;
|
|
27
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
click: (...args: any[]) => void;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
30
|
+
bottom: number;
|
|
31
|
+
right: number;
|
|
32
|
+
elId: string;
|
|
33
|
+
distance: number;
|
|
34
|
+
zIndex: number;
|
|
35
|
+
isAnimation: boolean;
|
|
36
|
+
duration: number;
|
|
37
|
+
}>>, {
|
|
38
|
+
bottom: number;
|
|
39
|
+
right: number;
|
|
40
|
+
elId: string;
|
|
41
|
+
distance: number;
|
|
42
|
+
zIndex: number;
|
|
43
|
+
isAnimation: boolean;
|
|
44
|
+
duration: number;
|
|
45
|
+
}>>> & {
|
|
46
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
bottom: number;
|
|
49
|
+
right: number;
|
|
50
|
+
zIndex: number;
|
|
51
|
+
duration: number;
|
|
52
|
+
elId: string;
|
|
53
|
+
distance: number;
|
|
54
|
+
isAnimation: 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
|
+
NutBacktop: 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,5 @@
|
|
|
1
|
+
import Backtop from './backtop.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { BacktopProps } from './backtop.vue';
|
|
4
|
+
export type BacktopInstance = ComponentPublicInstance & InstanceType<typeof Backtop>;
|
|
5
|
+
export { Backtop, Backtop as default };
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { MonthInfo, Day } from './type';
|
|
2
|
-
|
|
3
|
-
declare type Install<T> = T & {
|
|
4
|
-
install(app: import('vue').App): void;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: Install< import("vue").DefineComponent<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
7
3
|
type: {
|
|
8
4
|
type: StringConstructor;
|
|
9
5
|
default: string;
|
|
@@ -208,11 +204,5 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
208
204
|
startDate: string;
|
|
209
205
|
endDate: string;
|
|
210
206
|
firstDayOfWeek: number;
|
|
211
|
-
}, {}
|
|
207
|
+
}, {}>;
|
|
212
208
|
export default _default;
|
|
213
|
-
|
|
214
|
-
declare module 'vue' {
|
|
215
|
-
interface GlobalComponents {
|
|
216
|
-
NutCalendarItem: typeof _default;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import type { CircleProgressStrokeLinecap } from './types';
|
|
3
|
+
export interface stopArr {
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export type CircleProgressProps = Partial<{
|
|
8
|
+
progress: string | number;
|
|
9
|
+
strokeWidth: string | number;
|
|
10
|
+
radius: string | number;
|
|
11
|
+
strokeLinecap: CircleProgressStrokeLinecap;
|
|
12
|
+
color: any;
|
|
13
|
+
pathColor: string;
|
|
14
|
+
clockwise: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
17
|
+
progress: string | number;
|
|
18
|
+
strokeWidth: string | number;
|
|
19
|
+
radius: string | number;
|
|
20
|
+
strokeLinecap: CircleProgressStrokeLinecap;
|
|
21
|
+
color: any;
|
|
22
|
+
pathColor: string;
|
|
23
|
+
clockwise: boolean;
|
|
24
|
+
}>>, {
|
|
25
|
+
progress: number;
|
|
26
|
+
strokeWidth: number;
|
|
27
|
+
radius: number;
|
|
28
|
+
strokeLinecap: string;
|
|
29
|
+
color: string;
|
|
30
|
+
pathColor: string;
|
|
31
|
+
clockwise: boolean;
|
|
32
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
33
|
+
progress: string | number;
|
|
34
|
+
strokeWidth: string | number;
|
|
35
|
+
radius: string | number;
|
|
36
|
+
strokeLinecap: CircleProgressStrokeLinecap;
|
|
37
|
+
color: any;
|
|
38
|
+
pathColor: string;
|
|
39
|
+
clockwise: boolean;
|
|
40
|
+
}>>, {
|
|
41
|
+
progress: number;
|
|
42
|
+
strokeWidth: number;
|
|
43
|
+
radius: number;
|
|
44
|
+
strokeLinecap: string;
|
|
45
|
+
color: string;
|
|
46
|
+
pathColor: string;
|
|
47
|
+
clockwise: boolean;
|
|
48
|
+
}>>>, {
|
|
49
|
+
color: any;
|
|
50
|
+
progress: string | number;
|
|
51
|
+
radius: string | number;
|
|
52
|
+
strokeWidth: string | number;
|
|
53
|
+
strokeLinecap: CircleProgressStrokeLinecap;
|
|
54
|
+
pathColor: string;
|
|
55
|
+
clockwise: boolean;
|
|
56
|
+
}, {}>, {
|
|
57
|
+
default?(_: {}): any;
|
|
58
|
+
}>;
|
|
59
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
60
|
+
export default _nut_default;
|
|
61
|
+
|
|
62
|
+
declare module 'vue' {
|
|
63
|
+
interface GlobalComponents {
|
|
64
|
+
NutCircleProgress: typeof _default;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
68
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
69
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
70
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
71
|
+
} : {
|
|
72
|
+
type: import('vue').PropType<T[K]>;
|
|
73
|
+
required: true;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
type __VLS_WithDefaults<P, D> = {
|
|
77
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
78
|
+
default: D[K];
|
|
79
|
+
}> : P[K];
|
|
80
|
+
};
|
|
81
|
+
type __VLS_Prettify<T> = {
|
|
82
|
+
[K in keyof T]: T[K];
|
|
83
|
+
} & {};
|
|
84
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
85
|
+
new (): {
|
|
86
|
+
$slots: S;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import CircleProgress from './circle-progress.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { CircleProgressProps } from './circle-progress.vue';
|
|
4
|
+
export type { CircleProgressStrokeLinecap } from './types';
|
|
5
|
+
export type CircleProgressInstance = ComponentPublicInstance & InstanceType<typeof CircleProgress>;
|
|
6
|
+
export { CircleProgress, CircleProgress as default };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type ColProps = Partial<{
|
|
3
|
+
span: string | number;
|
|
4
|
+
offset: string | number;
|
|
5
|
+
}>;
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
7
|
+
span: string | number;
|
|
8
|
+
offset: string | number;
|
|
9
|
+
}>>, {
|
|
10
|
+
span: number;
|
|
11
|
+
offset: number;
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
13
|
+
span: string | number;
|
|
14
|
+
offset: string | number;
|
|
15
|
+
}>>, {
|
|
16
|
+
span: number;
|
|
17
|
+
offset: number;
|
|
18
|
+
}>>>, {
|
|
19
|
+
span: string | number;
|
|
20
|
+
offset: string | number;
|
|
21
|
+
}, {}>, {
|
|
22
|
+
default?(_: {}): any;
|
|
23
|
+
}>;
|
|
24
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
25
|
+
export default _nut_default;
|
|
26
|
+
|
|
27
|
+
declare module 'vue' {
|
|
28
|
+
interface GlobalComponents {
|
|
29
|
+
NutCol: typeof _default;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
+
} : {
|
|
37
|
+
type: import('vue').PropType<T[K]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_WithDefaults<P, D> = {
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
43
|
+
default: D[K];
|
|
44
|
+
}> : P[K];
|
|
45
|
+
};
|
|
46
|
+
type __VLS_Prettify<T> = {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} & {};
|
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -199,13 +199,13 @@ declare const _default: Install< import("vue").DefineComponent<{
|
|
|
199
199
|
border: boolean;
|
|
200
200
|
placeholder: string;
|
|
201
201
|
modelValue: string | number;
|
|
202
|
-
required: boolean;
|
|
203
202
|
maxLength: string | number;
|
|
204
203
|
clearable: boolean;
|
|
205
204
|
autofocus: boolean;
|
|
206
205
|
readonly: boolean;
|
|
207
206
|
inputAlign: InputAlignType;
|
|
208
207
|
formatter: (value: string) => string;
|
|
208
|
+
required: boolean;
|
|
209
209
|
clearSize: string | number;
|
|
210
210
|
formatTrigger: InputFormatTrigger;
|
|
211
211
|
showWordLimit: boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import InputNumber from './input-number.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { InputNumberProps } from './input-number.vue';
|
|
4
|
+
export type InputNumberInstance = ComponentPublicInstance & InstanceType<typeof InputNumber>;
|
|
5
|
+
export { InputNumber, InputNumber as default };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type InputNumberProps = Partial<{
|
|
3
|
+
modelValue: string | number;
|
|
4
|
+
inputWidth: string | number;
|
|
5
|
+
buttonSize: string | number;
|
|
6
|
+
min: string | number;
|
|
7
|
+
max: string | number;
|
|
8
|
+
step: string | number;
|
|
9
|
+
decimalPlaces: string | number;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
readonly: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
14
|
+
modelValue: string | number;
|
|
15
|
+
inputWidth: string | number;
|
|
16
|
+
buttonSize: string | number;
|
|
17
|
+
min: string | number;
|
|
18
|
+
max: string | number;
|
|
19
|
+
step: string | number;
|
|
20
|
+
decimalPlaces: string | number;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
readonly: boolean;
|
|
23
|
+
}>>, {
|
|
24
|
+
modelValue: number;
|
|
25
|
+
inputWidth: string;
|
|
26
|
+
buttonSize: string;
|
|
27
|
+
min: number;
|
|
28
|
+
max: number;
|
|
29
|
+
step: number;
|
|
30
|
+
decimalPlaces: number;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
readonly: boolean;
|
|
33
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
reduce: (...args: any[]) => void;
|
|
35
|
+
add: (...args: any[]) => void;
|
|
36
|
+
blur: (...args: any[]) => void;
|
|
37
|
+
change: (...args: any[]) => void;
|
|
38
|
+
focus: (...args: any[]) => void;
|
|
39
|
+
"update:modelValue": (...args: any[]) => void;
|
|
40
|
+
overlimit: (...args: any[]) => void;
|
|
41
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
42
|
+
modelValue: string | number;
|
|
43
|
+
inputWidth: string | number;
|
|
44
|
+
buttonSize: string | number;
|
|
45
|
+
min: string | number;
|
|
46
|
+
max: string | number;
|
|
47
|
+
step: string | number;
|
|
48
|
+
decimalPlaces: string | number;
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
readonly: boolean;
|
|
51
|
+
}>>, {
|
|
52
|
+
modelValue: number;
|
|
53
|
+
inputWidth: string;
|
|
54
|
+
buttonSize: string;
|
|
55
|
+
min: number;
|
|
56
|
+
max: number;
|
|
57
|
+
step: number;
|
|
58
|
+
decimalPlaces: number;
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
readonly: boolean;
|
|
61
|
+
}>>> & {
|
|
62
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
onReduce?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onAdd?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
onOverlimit?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
disabled: boolean;
|
|
71
|
+
modelValue: string | number;
|
|
72
|
+
max: string | number;
|
|
73
|
+
min: string | number;
|
|
74
|
+
step: string | number;
|
|
75
|
+
readonly: boolean;
|
|
76
|
+
inputWidth: string | number;
|
|
77
|
+
buttonSize: string | number;
|
|
78
|
+
decimalPlaces: string | number;
|
|
79
|
+
}, {}>, {
|
|
80
|
+
"left-icon"?(_: {}): any;
|
|
81
|
+
"right-icon"?(_: {}): any;
|
|
82
|
+
}>;
|
|
83
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
84
|
+
export default _nut_default;
|
|
85
|
+
|
|
86
|
+
declare module 'vue' {
|
|
87
|
+
interface GlobalComponents {
|
|
88
|
+
NutInputNumber: typeof _default;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
92
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
93
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
94
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
95
|
+
} : {
|
|
96
|
+
type: import('vue').PropType<T[K]>;
|
|
97
|
+
required: true;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
type __VLS_WithDefaults<P, D> = {
|
|
101
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
102
|
+
default: D[K];
|
|
103
|
+
}> : P[K];
|
|
104
|
+
};
|
|
105
|
+
type __VLS_Prettify<T> = {
|
|
106
|
+
[K in keyof T]: T[K];
|
|
107
|
+
} & {};
|
|
108
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
109
|
+
new (): {
|
|
110
|
+
$slots: S;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Invoice from './invoice.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { InvoiceProps } from './invoice.vue';
|
|
4
|
+
export type { InvoiceDataItem } from './types';
|
|
5
|
+
export type InvoiceInstance = ComponentPublicInstance & InstanceType<typeof Invoice>;
|
|
6
|
+
export { Invoice, Invoice as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
import type { InvoiceDataItem } from './types';
|
|
3
|
+
export type InvoiceProps = Partial<{
|
|
4
|
+
data: InvoiceDataItem[];
|
|
5
|
+
formValue: any;
|
|
6
|
+
submit: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
9
|
+
data: InvoiceDataItem[];
|
|
10
|
+
formValue: any;
|
|
11
|
+
submit: boolean;
|
|
12
|
+
}>>, {
|
|
13
|
+
data: () => never[];
|
|
14
|
+
formValue: () => void;
|
|
15
|
+
submit: boolean;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
submit: (...args: any[]) => void;
|
|
18
|
+
scrollBottom: (...args: any[]) => void;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
20
|
+
data: InvoiceDataItem[];
|
|
21
|
+
formValue: any;
|
|
22
|
+
submit: boolean;
|
|
23
|
+
}>>, {
|
|
24
|
+
data: () => never[];
|
|
25
|
+
formValue: () => void;
|
|
26
|
+
submit: boolean;
|
|
27
|
+
}>>> & {
|
|
28
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
onScrollBottom?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
submit: boolean;
|
|
32
|
+
data: InvoiceDataItem[];
|
|
33
|
+
formValue: any;
|
|
34
|
+
}, {}>;
|
|
35
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
36
|
+
export default _nut_default;
|
|
37
|
+
|
|
38
|
+
declare module 'vue' {
|
|
39
|
+
interface GlobalComponents {
|
|
40
|
+
NutInvoice: 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
|
+
} & {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FormItemRule } from '../form/types';
|
|
2
|
+
export interface InvoiceDataItem {
|
|
3
|
+
type?: 'radio';
|
|
4
|
+
label?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
radioLabel?: {
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
formItemProp: string;
|
|
10
|
+
rules?: FormItemRule[];
|
|
11
|
+
required?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
3
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
4
|
+
export default _nut_default;
|
|
5
|
+
|
|
6
|
+
declare module 'vue' {
|
|
7
|
+
interface GlobalComponents {
|
|
8
|
+
NutLayout: typeof _default;
|
|
9
|
+
}
|
|
10
|
+
}
|