@nutui/nutui 3.1.19-beta.1 → 3.1.19-beta.4
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/README.md +9 -8
- package/dist/nutui.es.js +3044 -3533
- package/dist/nutui.umd.js +3135 -3536
- package/dist/packages/_es/ActionSheet.js +64 -42
- package/dist/packages/_es/Address.js +69 -78
- package/dist/packages/_es/Audio.js +12 -12
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +3 -3
- package/dist/packages/_es/BackTop.js +110 -68
- package/dist/packages/_es/Badge.js +3 -3
- package/dist/packages/_es/Barrage.js +55 -62
- package/dist/packages/_es/Button.js +2 -2
- package/dist/packages/_es/Calendar.js +27 -32
- package/dist/packages/_es/CalendarItem.js +3 -3
- package/dist/packages/_es/Card.js +5 -6
- package/dist/packages/_es/Cascader.js +9 -9
- package/dist/packages/_es/Cell.js +11 -4
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +13 -3
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +40 -149
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +8 -34
- package/dist/packages/_es/CollapseItem.js +59 -90
- package/dist/packages/_es/CountDown.js +11 -10
- package/dist/packages/_es/CountUp.js +51 -43
- package/dist/packages/_es/DatePicker.js +22 -23
- package/dist/packages/_es/Dialog.js +91 -12
- package/dist/packages/_es/Divider.js +4 -4
- package/dist/packages/_es/Drag.js +54 -92
- package/dist/packages/_es/Ecard.js +153 -0
- package/dist/packages/_es/Elevator.js +50 -75
- package/dist/packages/_es/Empty.js +8 -7
- package/dist/packages/_es/FixedNav.js +10 -11
- package/dist/packages/_es/Form.js +5 -9
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +26 -8
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +83 -14
- package/dist/packages/_es/Indicator.js +3 -3
- package/dist/packages/_es/InfiniteLoading.js +107 -93
- package/dist/packages/_es/Input.js +21 -20
- package/dist/packages/_es/InputNumber.js +16 -23
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +34 -41
- package/dist/packages/_es/Menu.js +12 -15
- package/dist/packages/_es/MenuItem.js +7 -7
- package/dist/packages/_es/Navbar.js +5 -4
- package/dist/packages/_es/NoticeBar.js +40 -47
- package/dist/packages/_es/Notify.js +166 -27
- package/dist/packages/_es/NumberKeyboard.js +22 -11
- package/dist/packages/_es/OldPicker.js +120 -122
- package/dist/packages/_es/OverLay.js +25 -5
- package/dist/packages/_es/Pagination.js +14 -13
- package/dist/packages/_es/Picker.js +23 -45
- package/dist/packages/_es/Popover.js +29 -154
- package/dist/packages/_es/Popup.js +69 -6
- package/dist/packages/_es/Price.js +5 -17
- package/dist/packages/_es/Progress.js +23 -19
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +14 -4
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +33 -46
- package/dist/packages/_es/Rate.js +19 -16
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +11 -12
- package/dist/packages/_es/ShortPassword.js +75 -96
- package/dist/packages/_es/SideNavBar.js +16 -5
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +88 -69
- package/dist/packages/_es/Skeleton.js +11 -8
- package/dist/packages/_es/Sku.js +57 -49
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +23 -28
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +26 -39
- package/dist/packages/_es/Swiper.js +14 -32
- package/dist/packages/_es/SwiperItem.js +2 -2
- package/dist/packages/_es/Switch.js +3 -3
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +3 -3
- package/dist/packages/_es/TabbarItem.js +21 -11
- package/dist/packages/_es/Table.js +18 -17
- package/dist/packages/_es/Tabs.js +20 -21
- package/dist/packages/_es/Tag.js +4 -4
- package/dist/packages/_es/TextArea.js +47 -48
- package/dist/packages/_es/TimeDetail.js +3 -4
- package/dist/packages/_es/TimePannel.js +3 -3
- package/dist/packages/_es/TimeSelect.js +7 -8
- package/dist/packages/_es/Toast.js +170 -41
- package/dist/packages/_es/Uploader.js +145 -116
- package/dist/packages/_es/Video.js +9 -8
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +165 -3
- package/dist/packages/_es/index.js +6 -44
- package/dist/packages/_es/index2.js +31 -8
- package/dist/packages/_es/index3.js +7 -58
- package/dist/packages/_es/index4.js +56 -413
- package/dist/packages/_es/{index.taro.js → index5.js} +113 -140
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +19 -0
- package/dist/packages/actionsheet/index.scss +8 -0
- package/dist/packages/ecard/index.scss +83 -0
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +48 -47
- package/dist/styles/themes/jdt.scss +48 -47
- package/dist/styles/variables-jdt.scss +3 -0
- package/dist/styles/variables.scss +3 -0
- package/dist/types/__VUE/actionsheet/index.d.ts +280 -0
- package/dist/types/__VUE/address/index.d.ts +386 -0
- package/dist/types/__VUE/audio/index.d.ts +92 -0
- package/dist/types/__VUE/audiooperate/index.d.ts +68 -0
- package/dist/types/__VUE/avatar/index.d.ts +66 -0
- package/dist/types/__VUE/backtop/index.d.ts +105 -0
- package/dist/types/__VUE/badge/index.d.ts +94 -0
- package/dist/types/__VUE/barrage/index.d.ts +80 -0
- package/dist/types/__VUE/button/index.d.ts +116 -0
- package/dist/types/__VUE/calendar/index.d.ts +155 -0
- package/dist/types/__VUE/calendaritem/index.d.ts +195 -0
- package/dist/types/__VUE/card/index.d.ts +81 -0
- package/dist/types/__VUE/cascader/cascader-item.d.ts +76 -0
- package/dist/types/__VUE/cascader/helper.d.ts +8 -0
- package/dist/types/__VUE/cascader/index.d.ts +76 -0
- package/dist/types/__VUE/cascader/tree.d.ts +17 -0
- package/dist/types/__VUE/cascader/types.d.ts +30 -0
- package/dist/types/__VUE/cell/index.d.ts +109 -0
- package/dist/types/__VUE/cellgroup/index.d.ts +38 -0
- package/dist/types/__VUE/checkbox/index.d.ts +102 -0
- package/dist/types/__VUE/checkboxgroup/index.d.ts +39 -0
- package/dist/types/__VUE/circleprogress/index.d.ts +66 -0
- package/dist/types/__VUE/col/index.d.ts +42 -0
- package/dist/types/__VUE/collapse/index.d.ts +104 -0
- package/dist/types/__VUE/collapseitem/index.d.ts +83 -0
- package/dist/types/__VUE/countdown/index.d.ts +91 -0
- package/dist/types/__VUE/countup/index.d.ts +216 -0
- package/dist/types/__VUE/datepicker/index.d.ts +347 -0
- package/dist/types/__VUE/datepicker/utils.d.ts +5 -0
- package/dist/types/__VUE/dialog/index.d.ts +306 -0
- package/dist/types/__VUE/divider/index.d.ts +47 -0
- package/dist/types/__VUE/drag/index.d.ts +61 -0
- package/dist/types/__VUE/ecard/index.d.ts +123 -0
- package/dist/types/__VUE/elevator/index.d.ts +71 -0
- package/dist/types/__VUE/empty/index.d.ts +47 -0
- package/dist/types/__VUE/fixednav/index.d.ts +96 -0
- package/dist/types/__VUE/form/common.d.ts +20 -0
- package/dist/types/__VUE/form/index.d.ts +32 -0
- package/dist/types/__VUE/form/types.d.ts +13 -0
- package/dist/types/__VUE/formitem/index.d.ts +120 -0
- package/dist/types/__VUE/formitem/types.d.ts +10 -0
- package/dist/types/__VUE/grid/common.d.ts +91 -0
- package/dist/types/__VUE/grid/index.d.ts +100 -0
- package/dist/types/__VUE/griditem/index.d.ts +80 -0
- package/dist/types/__VUE/icon/index.d.ts +74 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +125 -0
- package/dist/types/__VUE/indicator/index.d.ts +70 -0
- package/dist/types/__VUE/infiniteloading/index.d.ts +140 -0
- package/dist/types/__VUE/input/index.d.ts +337 -0
- package/dist/types/__VUE/input/util.d.ts +5 -0
- package/dist/types/__VUE/inputnumber/index.d.ts +117 -0
- package/dist/types/__VUE/layout/index.d.ts +13 -0
- package/dist/types/__VUE/list/index.d.ts +48 -0
- package/dist/types/__VUE/menu/index.d.ts +51 -0
- package/dist/types/__VUE/menuitem/index.d.ts +77 -0
- package/dist/types/__VUE/navbar/index.d.ts +83 -0
- package/dist/types/__VUE/noticebar/index.d.ts +209 -0
- package/dist/types/__VUE/notify/index.d.ts +103 -0
- package/dist/types/__VUE/numberkeyboard/index.d.ts +124 -0
- package/dist/types/__VUE/oldpicker/Column.d.ts +96 -0
- package/dist/types/__VUE/oldpicker/commonProps.d.ts +22 -0
- package/dist/types/__VUE/oldpicker/index.d.ts +360 -0
- package/dist/types/__VUE/oldpicker/types.d.ts +24 -0
- package/dist/types/__VUE/overlay/index.d.ts +1614 -0
- package/dist/types/__VUE/pagination/index.d.ts +112 -0
- package/dist/types/__VUE/picker/Column.d.ts +90 -0
- package/dist/types/__VUE/picker/index.d.ts +343 -0
- package/dist/types/__VUE/picker/types.d.ts +26 -0
- package/dist/types/__VUE/popover/index.d.ts +233 -0
- package/dist/types/__VUE/popup/index.d.ts +1734 -0
- package/dist/types/__VUE/popup/use-lock-scroll.d.ts +5 -0
- package/dist/types/__VUE/price/index.d.ts +87 -0
- package/dist/types/__VUE/progress/index.d.ts +138 -0
- package/dist/types/__VUE/pullrefresh/index.d.ts +128 -0
- package/dist/types/__VUE/pullrefresh/use-touch.d.ts +20 -0
- package/dist/types/__VUE/pullrefresh/util.d.ts +6 -0
- package/dist/types/__VUE/radio/index.d.ts +90 -0
- package/dist/types/__VUE/radiogroup/index.d.ts +48 -0
- package/dist/types/__VUE/range/index.d.ts +156 -0
- package/dist/types/__VUE/rate/index.d.ts +142 -0
- package/dist/types/__VUE/row/index.d.ts +63 -0
- package/dist/types/__VUE/searchbar/index.d.ts +100 -0
- package/dist/types/__VUE/shortpassword/index.d.ts +137 -0
- package/dist/types/__VUE/sidenavbar/index.d.ts +36 -0
- package/dist/types/__VUE/sidenavbaritem/index.d.ts +41 -0
- package/dist/types/__VUE/signature/index.d.ts +73 -0
- package/dist/types/__VUE/skeleton/common.d.ts +63 -0
- package/dist/types/__VUE/skeleton/index.d.ts +117 -0
- package/dist/types/__VUE/sku/components/SkuHeader.d.ts +27 -0
- package/dist/types/__VUE/sku/components/SkuOperate.d.ts +70 -0
- package/dist/types/__VUE/sku/components/SkuSelect.d.ts +30 -0
- package/dist/types/__VUE/sku/components/SkuStepper.d.ts +67 -0
- package/dist/types/__VUE/sku/index.d.ts +300 -0
- package/dist/types/__VUE/step/index.d.ts +70 -0
- package/dist/types/__VUE/steps/index.d.ts +47 -0
- package/dist/types/__VUE/sticky/index.d.ts +63 -0
- package/dist/types/__VUE/subsidenavbar/index.d.ts +54 -0
- package/dist/types/__VUE/swipe/index.d.ts +69 -0
- package/dist/types/__VUE/swiper/index.d.ts +163 -0
- package/dist/types/__VUE/swiper/use-touch.d.ts +20 -0
- package/dist/types/__VUE/swiperitem/index.d.ts +24 -0
- package/dist/types/__VUE/switch/index.d.ts +136 -0
- package/dist/types/__VUE/tabbar/index.d.ts +84 -0
- package/dist/types/__VUE/tabbaritem/index.d.ts +108 -0
- package/dist/types/__VUE/table/common.d.ts +55 -0
- package/dist/types/__VUE/table/index.d.ts +76 -0
- package/dist/types/__VUE/table/renderColumn.d.ts +20 -0
- package/dist/types/__VUE/table/types.d.ts +19 -0
- package/dist/types/__VUE/tabpane/index.d.ts +47 -0
- package/dist/types/__VUE/tabs/index.d.ts +128 -0
- package/dist/types/__VUE/tag/index.d.ts +89 -0
- package/dist/types/__VUE/textarea/index.d.ts +121 -0
- package/dist/types/__VUE/timedetail/index.d.ts +48 -0
- package/dist/types/__VUE/timepannel/index.d.ts +43 -0
- package/dist/types/__VUE/timeselect/index.d.ts +82 -0
- package/dist/types/__VUE/toast/index.d.ts +149 -0
- package/dist/types/__VUE/uploader/index.d.ts +258 -0
- package/dist/types/__VUE/uploader/uploader.d.ts +25 -0
- package/dist/types/__VUE/video/index.d.ts +123 -0
- package/dist/{index.d.ts → types/index.d.ts} +0 -0
- package/dist/types/nutui.d.ts +93 -0
- package/package.json +14 -5
- package/dist/nutui.d.ts +0 -104
- package/dist/packages/_es/use-lock-scroll.js +0 -23
- package/dist/packages/_es/util.js +0 -47
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
|
+
visible: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
overlay: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
navList: {
|
|
15
|
+
default: () => never[];
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
};
|
|
18
|
+
activeText: {
|
|
19
|
+
default: string;
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
};
|
|
22
|
+
unActiveText: {
|
|
23
|
+
default: string;
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
position: {
|
|
27
|
+
default: () => {
|
|
28
|
+
top: string;
|
|
29
|
+
bottom: string;
|
|
30
|
+
};
|
|
31
|
+
type: ObjectConstructor;
|
|
32
|
+
};
|
|
33
|
+
type: {
|
|
34
|
+
default: string;
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
classes: import("vue").ComputedRef<{
|
|
39
|
+
[x: string]: boolean;
|
|
40
|
+
active: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
updateValue: (value?: boolean) => void;
|
|
43
|
+
selected: (item: any, event: Event) => void;
|
|
44
|
+
translate: (keyPath: string, ...args: unknown[]) => any;
|
|
45
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "selected")[], "update:visible" | "selected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
+
visible: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
overlay: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
navList: {
|
|
55
|
+
default: () => never[];
|
|
56
|
+
type: ArrayConstructor;
|
|
57
|
+
};
|
|
58
|
+
activeText: {
|
|
59
|
+
default: string;
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
};
|
|
62
|
+
unActiveText: {
|
|
63
|
+
default: string;
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
};
|
|
66
|
+
position: {
|
|
67
|
+
default: () => {
|
|
68
|
+
top: string;
|
|
69
|
+
bottom: string;
|
|
70
|
+
};
|
|
71
|
+
type: ObjectConstructor;
|
|
72
|
+
};
|
|
73
|
+
type: {
|
|
74
|
+
default: string;
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
};
|
|
77
|
+
}>> & {
|
|
78
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
79
|
+
onSelected?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
type: string;
|
|
82
|
+
overlay: boolean;
|
|
83
|
+
visible: boolean;
|
|
84
|
+
position: Record<string, any>;
|
|
85
|
+
navList: unknown[];
|
|
86
|
+
activeText: string;
|
|
87
|
+
unActiveText: string;
|
|
88
|
+
}>>;
|
|
89
|
+
export default _default;
|
|
90
|
+
|
|
91
|
+
declare module 'vue' {
|
|
92
|
+
interface GlobalComponents {
|
|
93
|
+
NutFixedNav: typeof _default;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
export declare const component: {
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
components: {};
|
|
13
|
+
emits: string[];
|
|
14
|
+
setup(props: any, { emit, slots }: any): {
|
|
15
|
+
validate: (customProp?: string) => Promise<unknown>;
|
|
16
|
+
reset: () => void;
|
|
17
|
+
onSubmit: () => boolean;
|
|
18
|
+
formErrorTip: import("vue").ComputedRef<any>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: {};
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
validate: (customProp?: string) => Promise<unknown>;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
onSubmit: () => boolean;
|
|
14
|
+
formErrorTip: import("vue").ComputedRef<any>;
|
|
15
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
modelValue: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
default: {};
|
|
19
|
+
};
|
|
20
|
+
}>> & {
|
|
21
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
modelValue: Record<string, any>;
|
|
24
|
+
}>>;
|
|
25
|
+
export default _default;
|
|
26
|
+
|
|
27
|
+
declare module 'vue' {
|
|
28
|
+
interface GlobalComponents {
|
|
29
|
+
NutForm: typeof _default;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
import { FormItemRule } from '../formitem/types';
|
|
6
|
+
export declare type FormRule = {
|
|
7
|
+
prop: string;
|
|
8
|
+
rules: FormItemRule[];
|
|
9
|
+
};
|
|
10
|
+
export declare type ErrorMessage = {
|
|
11
|
+
prop: string;
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
|
+
prop: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
label: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
rules: {
|
|
15
|
+
type: PropType<FormItemRule[]>;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
required: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
showErrorMessage: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
showErrorLine: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
labelWidth: {
|
|
31
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
labelAlign: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
errorMessageAlign: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
bodyAlign: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
parent: any;
|
|
48
|
+
labelStyle: import("vue").ComputedRef<{
|
|
49
|
+
width: string;
|
|
50
|
+
textAlign: string;
|
|
51
|
+
}>;
|
|
52
|
+
bodyStyle: import("vue").ComputedRef<{
|
|
53
|
+
textAlign: string;
|
|
54
|
+
}>;
|
|
55
|
+
errorMessageStyle: import("vue").ComputedRef<{
|
|
56
|
+
textAlign: string;
|
|
57
|
+
}>;
|
|
58
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ""[], "", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
prop: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
label: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
rules: {
|
|
68
|
+
type: PropType<FormItemRule[]>;
|
|
69
|
+
default: () => never[];
|
|
70
|
+
};
|
|
71
|
+
required: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
showErrorMessage: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
showErrorLine: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
labelWidth: {
|
|
84
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
labelAlign: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
errorMessageAlign: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
bodyAlign: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
}>> & {
|
|
100
|
+
on?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
required: boolean;
|
|
103
|
+
label: string;
|
|
104
|
+
labelWidth: string | number;
|
|
105
|
+
labelAlign: string;
|
|
106
|
+
rules: FormItemRule[];
|
|
107
|
+
errorMessageAlign: string;
|
|
108
|
+
prop: string;
|
|
109
|
+
showErrorMessage: boolean;
|
|
110
|
+
showErrorLine: boolean;
|
|
111
|
+
bodyAlign: string;
|
|
112
|
+
}>>;
|
|
113
|
+
export default _default;
|
|
114
|
+
|
|
115
|
+
declare module 'vue' {
|
|
116
|
+
interface GlobalComponents {
|
|
117
|
+
NutFormItem: typeof _default;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
export declare class FormItemRule {
|
|
6
|
+
regex?: RegExp;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
message: string;
|
|
9
|
+
validator?: (value: any) => boolean | string | Promise<boolean | string>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
import type { PropType, ExtractPropTypes, SetupContext, RenderFunction } from 'vue';
|
|
6
|
+
export declare const GRID_KEY: unique symbol;
|
|
7
|
+
export declare type GridDirection = 'horizontal' | 'vertical';
|
|
8
|
+
export declare const gridProps: {
|
|
9
|
+
columnNum: {
|
|
10
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
13
|
+
iconSize: {
|
|
14
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
iconColor: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
20
|
+
border: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
gutter: {
|
|
25
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
center: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
square: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
reverse: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
direction: {
|
|
41
|
+
type: PropType<GridDirection>;
|
|
42
|
+
};
|
|
43
|
+
clickable: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare type GridProps = ExtractPropTypes<typeof gridProps>;
|
|
49
|
+
export declare const component: {
|
|
50
|
+
props: {
|
|
51
|
+
columnNum: {
|
|
52
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
iconSize: {
|
|
56
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
iconColor: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
};
|
|
62
|
+
border: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
gutter: {
|
|
67
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
68
|
+
default: number;
|
|
69
|
+
};
|
|
70
|
+
center: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
square: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
reverse: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
direction: {
|
|
83
|
+
type: PropType<GridDirection>;
|
|
84
|
+
};
|
|
85
|
+
clickable: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
setup(props: GridProps, { slots }: SetupContext): RenderFunction;
|
|
91
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
|
+
columnNum: {
|
|
7
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
iconSize: {
|
|
11
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
iconColor: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
};
|
|
17
|
+
border: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
gutter: {
|
|
22
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
center: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
square: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
reverse: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
direction: {
|
|
38
|
+
type: import("vue").PropType<import("./common").GridDirection>;
|
|
39
|
+
};
|
|
40
|
+
clickable: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
}, import("vue").RenderFunction, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
+
columnNum: {
|
|
46
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
47
|
+
default: number;
|
|
48
|
+
};
|
|
49
|
+
iconSize: {
|
|
50
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
51
|
+
default: number;
|
|
52
|
+
};
|
|
53
|
+
iconColor: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
};
|
|
56
|
+
border: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
gutter: {
|
|
61
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
62
|
+
default: number;
|
|
63
|
+
};
|
|
64
|
+
center: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
square: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
reverse: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
direction: {
|
|
77
|
+
type: import("vue").PropType<import("./common").GridDirection>;
|
|
78
|
+
};
|
|
79
|
+
clickable: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
}>>, {
|
|
84
|
+
reverse: boolean;
|
|
85
|
+
square: boolean;
|
|
86
|
+
center: boolean;
|
|
87
|
+
border: boolean;
|
|
88
|
+
gutter: string | number;
|
|
89
|
+
iconSize: string | number;
|
|
90
|
+
columnNum: string | number;
|
|
91
|
+
clickable: boolean;
|
|
92
|
+
}>>;
|
|
93
|
+
export default _default;
|
|
94
|
+
|
|
95
|
+
declare module 'vue' {
|
|
96
|
+
interface GlobalComponents {
|
|
97
|
+
NutGrid: typeof _default;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
|
+
text: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
};
|
|
9
|
+
icon: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
};
|
|
12
|
+
iconSize: {
|
|
13
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
14
|
+
};
|
|
15
|
+
iconColor: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
};
|
|
18
|
+
to: {
|
|
19
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
20
|
+
};
|
|
21
|
+
url: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
replace: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
rootClass: import("vue").ComputedRef<{
|
|
31
|
+
[x: string]: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
rootStyle: import("vue").ComputedRef<CSSProperties>;
|
|
34
|
+
contentClass: import("vue").ComputedRef<{
|
|
35
|
+
[x: string]: string | number | boolean | Record<string, any>;
|
|
36
|
+
}>;
|
|
37
|
+
iconProps: import("vue").ComputedRef<{
|
|
38
|
+
name: string | undefined;
|
|
39
|
+
size: string | number;
|
|
40
|
+
color: string;
|
|
41
|
+
}>;
|
|
42
|
+
handleClick: (event: Event) => void;
|
|
43
|
+
} | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
|
+
text: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
};
|
|
47
|
+
icon: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
};
|
|
50
|
+
iconSize: {
|
|
51
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
52
|
+
};
|
|
53
|
+
iconColor: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
};
|
|
56
|
+
to: {
|
|
57
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
58
|
+
};
|
|
59
|
+
url: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
replace: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
}>> & {
|
|
68
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
replace: boolean;
|
|
71
|
+
url: string;
|
|
72
|
+
}>>;
|
|
73
|
+
export default _default;
|
|
74
|
+
|
|
75
|
+
declare module 'vue' {
|
|
76
|
+
interface GlobalComponents {
|
|
77
|
+
NutGridItem: typeof _default;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
|
+
name: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
classPrefix: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
fontClassName: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
color: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
tag: {
|
|
27
|
+
type: PropType<keyof HTMLElementTagNameMap>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
name: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
size: {
|
|
38
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
classPrefix: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
fontClassName: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
color: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
tag: {
|
|
54
|
+
type: PropType<keyof HTMLElementTagNameMap>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
}>> & {
|
|
58
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
name: string;
|
|
61
|
+
size: string | number;
|
|
62
|
+
classPrefix: string;
|
|
63
|
+
fontClassName: string;
|
|
64
|
+
color: string;
|
|
65
|
+
tag: keyof HTMLElementTagNameMap;
|
|
66
|
+
}>>;
|
|
67
|
+
export default _default;
|
|
68
|
+
|
|
69
|
+
declare module 'vue' {
|
|
70
|
+
interface GlobalComponents {
|
|
71
|
+
NutIcon: typeof _default;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|