kui-vue 5.0.0 → 5.0.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/README.md +1 -1
- package/dist/index.js +1 -1
- package/es/index.js +2 -2
- package/es/locale/de.js +1 -1
- package/es/locale/el.js +1 -1
- package/es/locale/en.js +1 -1
- package/es/locale/fr.js +1 -1
- package/es/locale/it.js +1 -1
- package/es/locale/ja.js +1 -1
- package/es/locale/ko.js +1 -1
- package/es/locale/ru.js +1 -1
- package/es/locale/th.js +1 -1
- package/es/locale/uk.js +1 -1
- package/es/locale/vi.js +1 -1
- package/es/locale/zh-CN.js +1 -1
- package/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/de.js +1 -1
- package/lib/locale/el.js +1 -1
- package/lib/locale/en.js +1 -1
- package/lib/locale/fr.js +1 -1
- package/lib/locale/it.js +1 -1
- package/lib/locale/ja.js +1 -1
- package/lib/locale/ko.js +1 -1
- package/lib/locale/ru.js +1 -1
- package/lib/locale/th.js +1 -1
- package/lib/locale/uk.js +1 -1
- package/lib/locale/vi.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/package.json +4 -3
- package/style/index.css +9 -0
- package/types/affix/Affix.d.ts +15 -0
- package/types/affix/index.d.ts +49 -0
- package/types/alert/Alert.d.ts +19 -0
- package/types/alert/index.d.ts +61 -0
- package/types/anchor/Anchor.d.ts +58 -0
- package/types/anchor/AnchorLink.d.ts +12 -0
- package/types/anchor/anchor-link.d.ts +23 -0
- package/types/anchor/index.d.ts +5 -0
- package/types/avatar/Avatar.d.ts +43 -0
- package/types/avatar/AvatarGroup.d.ts +13 -0
- package/types/avatar/avatar-group.d.ts +39 -0
- package/types/avatar/index.d.ts +5 -0
- package/types/back-top/index.d.ts +46 -0
- package/types/backtop/BackTop.d.ts +16 -0
- package/types/badge/Badge.d.ts +18 -0
- package/types/badge/index.d.ts +49 -0
- package/types/base/transition.d.ts +3 -0
- package/types/breadcrumb/Breadcrumb.d.ts +22 -0
- package/types/breadcrumb/BreadcrumbItem.d.ts +12 -0
- package/types/breadcrumb/breadcrumb-item.d.ts +15 -0
- package/types/breadcrumb/index.d.ts +5 -0
- package/types/button/Button.d.ts +38 -0
- package/types/button/ButtonGroup.d.ts +12 -0
- package/types/button/button-group.d.ts +21 -0
- package/types/button/index.d.ts +5 -0
- package/types/card/Card.d.ts +14 -0
- package/types/card/index.d.ts +30 -0
- package/types/carousel/Carousel.d.ts +97 -0
- package/types/carousel/CarouselItem.d.ts +9 -0
- package/types/carousel/carousel-item.d.ts +2 -0
- package/types/carousel/index.d.ts +4 -0
- package/types/checkbox/Checkbox.d.ts +96 -0
- package/types/checkbox/CheckboxGroup.d.ts +19 -0
- package/types/checkbox/checkbox-group.d.ts +77 -0
- package/types/checkbox/index.d.ts +6 -0
- package/types/collapse/Collapse.d.ts +29 -0
- package/types/collapse/CollapsePanel.d.ts +12 -0
- package/types/collapse/collapse-panel.d.ts +15 -0
- package/types/collapse/index.d.ts +6 -0
- package/types/color-picker/ColorPicker.d.ts +28 -0
- package/types/color-picker/alpha.d.ts +15 -0
- package/types/color-picker/hue.d.ts +17 -0
- package/types/color-picker/index.d.ts +108 -0
- package/types/color-picker/mode.d.ts +25 -0
- package/types/color-picker/paint.d.ts +26 -0
- package/types/color-picker/presets.d.ts +20 -0
- package/types/components.d.ts +111 -0
- package/types/config/context.d.ts +10 -0
- package/types/config/index.d.ts +16 -0
- package/types/const/types.d.ts +17 -0
- package/types/const/var.d.ts +6 -0
- package/types/date-picker/DatePicker.d.ts +46 -0
- package/types/date-picker/index.d.ts +249 -0
- package/types/descriptions/Descriptions.d.ts +58 -0
- package/types/descriptions/DescriptionsItem.d.ts +16 -0
- package/types/descriptions/descriptions-item.d.ts +35 -0
- package/types/descriptions/index.d.ts +4 -0
- package/types/directives/outsiteclick.d.ts +2 -0
- package/types/directives/resize.d.ts +3 -0
- package/types/directives/scroll.d.ts +2 -0
- package/types/directives/transfer.d.ts +2 -0
- package/types/divider/Divider.d.ts +16 -0
- package/types/divider/index.d.ts +42 -0
- package/types/drawer/Drawer.d.ts +35 -0
- package/types/drawer/index.d.ts +174 -0
- package/types/dropdown/Dropdown.d.ts +63 -0
- package/types/dropdown/DropdownButton.d.ts +19 -0
- package/types/dropdown/dropdown-button.d.ts +45 -0
- package/types/dropdown/index.d.ts +4 -0
- package/types/dropdown/trigger.d.ts +11 -0
- package/types/empty/Empty.d.ts +13 -0
- package/types/empty/index.d.ts +9 -0
- package/types/flex/Flex.d.ts +15 -0
- package/types/flex/index.d.ts +45 -0
- package/types/form/Form.d.ts +87 -0
- package/types/form/FormItem.d.ts +15 -0
- package/types/form/form-item.d.ts +24 -0
- package/types/form/index.d.ts +6 -0
- package/types/form/types.d.ts +15 -0
- package/types/global.d.ts +177 -0
- package/types/grid/Grid.d.ts +39 -0
- package/types/grid/GridItem.d.ts +18 -0
- package/types/grid/grid-item.d.ts +22 -0
- package/types/grid/index.d.ts +5 -0
- package/types/grid/useBreakpoint.d.ts +3 -0
- package/types/icon/Icon.d.ts +15 -0
- package/types/icon/demo/search.d.ts +2 -0
- package/types/icon/demo/tags.d.ts +4 -0
- package/types/icon/index.d.ts +45 -0
- package/types/image/ImageGroup.d.ts +11 -0
- package/types/image/KImage.d.ts +20 -0
- package/types/image/group.d.ts +11 -0
- package/types/image/image.d.ts +45 -0
- package/types/image/index.d.ts +5 -0
- package/types/image/instance.d.ts +2 -0
- package/types/image/preview.d.ts +36 -0
- package/types/image/utils.d.ts +6 -0
- package/types/index.d.ts +11 -0
- package/types/input/Input.d.ts +55 -0
- package/types/input/InputGroup.d.ts +16 -0
- package/types/input/TextArea.d.ts +24 -0
- package/types/input/index.d.ts +8 -0
- package/types/input/input-box.d.ts +39 -0
- package/types/input/input-group.d.ts +58 -0
- package/types/input-number/InputNumber.d.ts +32 -0
- package/types/input-number/index.d.ts +130 -0
- package/types/layout/index.d.ts +136 -0
- package/types/layout/sider.d.ts +11 -0
- package/types/loading/index.d.ts +16 -0
- package/types/loading/loading.d.ts +9 -0
- package/types/locale/de.d.ts +59 -0
- package/types/locale/el.d.ts +59 -0
- package/types/locale/en.d.ts +59 -0
- package/types/locale/fr.d.ts +59 -0
- package/types/locale/it.d.ts +59 -0
- package/types/locale/ja.d.ts +59 -0
- package/types/locale/ko.d.ts +59 -0
- package/types/locale/ru.d.ts +59 -0
- package/types/locale/th.d.ts +59 -0
- package/types/locale/uk.d.ts +59 -0
- package/types/locale/vi.d.ts +59 -0
- package/types/locale/zh-CN.d.ts +59 -0
- package/types/locale/zh-TW.d.ts +59 -0
- package/types/menu/Menu.d.ts +92 -0
- package/types/menu/MenuDivider.d.ts +9 -0
- package/types/menu/MenuGroup.d.ts +11 -0
- package/types/menu/MenuItem.d.ts +15 -0
- package/types/menu/SubMenu.d.ts +14 -0
- package/types/menu/index.d.ts +7 -0
- package/types/menu/menu-divider.d.ts +2 -0
- package/types/menu/menu-group.d.ts +20 -0
- package/types/menu/menu-item.d.ts +22 -0
- package/types/menu/recursive-menu.d.ts +17 -0
- package/types/menu/sub-menu.d.ts +24 -0
- package/types/message/index.d.ts +22 -0
- package/types/modal/Modal.d.ts +134 -0
- package/types/modal/index.d.ts +26 -0
- package/types/modal/toast.d.ts +32 -0
- package/types/notice/container.d.ts +6 -0
- package/types/notice/content.d.ts +54 -0
- package/types/notice/index.d.ts +23 -0
- package/types/notice/instance.d.ts +2 -0
- package/types/page/Page.d.ts +27 -0
- package/types/page/index.d.ts +119 -0
- package/types/popconfirm/Popconfirm.d.ts +19 -0
- package/types/popconfirm/index.d.ts +75 -0
- package/types/poptip/Poptip.d.ts +19 -0
- package/types/poptip/index.d.ts +66 -0
- package/types/progress/Progress.d.ts +31 -0
- package/types/progress/index.d.ts +129 -0
- package/types/radio/Radio.d.ts +77 -0
- package/types/radio/RadioButton.d.ts +19 -0
- package/types/radio/RadioGroup.d.ts +20 -0
- package/types/radio/index.d.ts +7 -0
- package/types/radio/radio-button.d.ts +76 -0
- package/types/radio/radio-group.d.ts +76 -0
- package/types/radio/types.d.ts +5 -0
- package/types/rate/Rate.d.ts +24 -0
- package/types/rate/index.d.ts +99 -0
- package/types/rate/star.d.ts +65 -0
- package/types/row-col/Col.d.ts +17 -0
- package/types/row-col/Row.d.ts +43 -0
- package/types/row-col/index.d.ts +5 -0
- package/types/select/Option.d.ts +23 -0
- package/types/select/Select.d.ts +154 -0
- package/types/select/index.d.ts +5 -0
- package/types/skeleton/Skeleton.d.ts +61 -0
- package/types/skeleton/SkeletonAvatar.d.ts +17 -0
- package/types/skeleton/SkeletonButton.d.ts +18 -0
- package/types/skeleton/SkeletonImage.d.ts +16 -0
- package/types/skeleton/SkeletonText.d.ts +16 -0
- package/types/skeleton/index.d.ts +7 -0
- package/types/skeleton/skeleton-avatar.d.ts +58 -0
- package/types/skeleton/skeleton-button.d.ts +58 -0
- package/types/skeleton/skeleton-image.d.ts +58 -0
- package/types/skeleton/skeleton-text.d.ts +58 -0
- package/types/skeleton/types.d.ts +29 -0
- package/types/slider/Slider.d.ts +29 -0
- package/types/slider/index.d.ts +112 -0
- package/types/slider/thumb.d.ts +58 -0
- package/types/space/Space.d.ts +17 -0
- package/types/space/index.d.ts +50 -0
- package/types/spin/Spin.d.ts +18 -0
- package/types/spin/index.d.ts +62 -0
- package/types/stat-card/StatCard.d.ts +20 -0
- package/types/stat-card/StatNumber.d.ts +20 -0
- package/types/stat-card/countup.d.ts +56 -0
- package/types/stat-card/index.d.ts +5 -0
- package/types/stat-card/rollup.d.ts +32 -0
- package/types/stat-card/stat-card.d.ts +72 -0
- package/types/stat-card/stat-number.d.ts +100 -0
- package/types/stat-card/utils/countup.d.ts +127 -0
- package/types/stat-card/utils/odometer.d.ts +13 -0
- package/types/switch/Switch.d.ts +19 -0
- package/types/switch/index.d.ts +47 -0
- package/types/table/Table.d.ts +29 -0
- package/types/table/index.d.ts +189 -0
- package/types/tabs/TabPanel.d.ts +15 -0
- package/types/tabs/Tabs.d.ts +47 -0
- package/types/tabs/index.d.ts +5 -0
- package/types/tabs/tab-panel.d.ts +22 -0
- package/types/tabs/types.d.ts +16 -0
- package/types/tag/Tag.d.ts +18 -0
- package/types/tag/index.d.ts +57 -0
- package/types/time-line/index.d.ts +5 -0
- package/types/time-line/timeline-item.d.ts +20 -0
- package/types/time-line/timeline.d.ts +26 -0
- package/types/timeline/TimeLine.d.ts +12 -0
- package/types/timeline/TimeLineItem.d.ts +14 -0
- package/types/tooltip/Tooltip.d.ts +20 -0
- package/types/tooltip/index.d.ts +42 -0
- package/types/tree/Tree.d.ts +28 -0
- package/types/tree/index.d.ts +179 -0
- package/types/tree/utils.d.ts +32 -0
- package/types/tree-select/TreeSelect.d.ts +46 -0
- package/types/tree-select/index.d.ts +222 -0
- package/types/upload/Upload.d.ts +37 -0
- package/types/upload/file-list.d.ts +59 -0
- package/types/upload/index.d.ts +187 -0
- package/types/upload/selector.d.ts +73 -0
- package/types/utils/color.d.ts +1 -0
- package/types/utils/element.d.ts +4 -0
- package/types/utils/mouse.d.ts +1 -0
- package/types/utils/number.d.ts +6 -0
- package/types/utils/placement.d.ts +16 -0
- package/types/utils/theme.d.ts +5 -0
- package/types/utils/vnode.d.ts +5 -0
- package/types/utils/vue.d.ts +5 -0
- package/vetur/web-types.json +1 -1
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { DrawerPlacementsType } from '../const/types';
|
|
3
|
+
export declare const drawerProps: {
|
|
4
|
+
modelValue: BooleanConstructor;
|
|
5
|
+
title: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
width: {
|
|
10
|
+
type: PropType<number | string>;
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
13
|
+
height: {
|
|
14
|
+
type: PropType<number | string>;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
okText: StringConstructor;
|
|
18
|
+
cancelText: StringConstructor;
|
|
19
|
+
placement: {
|
|
20
|
+
type: PropType<DrawerPlacementsType>;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
closable: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
footer: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
maskClosable: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
target: {
|
|
36
|
+
type: PropType<() => HTMLElement>;
|
|
37
|
+
default: () => HTMLElement;
|
|
38
|
+
};
|
|
39
|
+
mask: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
loading: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
escKey: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
onOk: PropType<() => void>;
|
|
52
|
+
onCancel: PropType<() => void>;
|
|
53
|
+
onClose: PropType<() => void>;
|
|
54
|
+
};
|
|
55
|
+
export type DrawerProps = ExtractPropTypes<typeof drawerProps>;
|
|
56
|
+
declare const Drawer: import('vue').DefineComponent<ExtractPropTypes<{
|
|
57
|
+
modelValue: BooleanConstructor;
|
|
58
|
+
title: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
width: {
|
|
63
|
+
type: PropType<number | string>;
|
|
64
|
+
default: number;
|
|
65
|
+
};
|
|
66
|
+
height: {
|
|
67
|
+
type: PropType<number | string>;
|
|
68
|
+
default: number;
|
|
69
|
+
};
|
|
70
|
+
okText: StringConstructor;
|
|
71
|
+
cancelText: StringConstructor;
|
|
72
|
+
placement: {
|
|
73
|
+
type: PropType<DrawerPlacementsType>;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
closable: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
footer: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
maskClosable: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
target: {
|
|
89
|
+
type: PropType<() => HTMLElement>;
|
|
90
|
+
default: () => HTMLElement;
|
|
91
|
+
};
|
|
92
|
+
mask: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
loading: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
escKey: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
onOk: PropType<() => void>;
|
|
105
|
+
onCancel: PropType<() => void>;
|
|
106
|
+
onClose: PropType<() => void>;
|
|
107
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
108
|
+
modelValue: BooleanConstructor;
|
|
109
|
+
title: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
width: {
|
|
114
|
+
type: PropType<number | string>;
|
|
115
|
+
default: number;
|
|
116
|
+
};
|
|
117
|
+
height: {
|
|
118
|
+
type: PropType<number | string>;
|
|
119
|
+
default: number;
|
|
120
|
+
};
|
|
121
|
+
okText: StringConstructor;
|
|
122
|
+
cancelText: StringConstructor;
|
|
123
|
+
placement: {
|
|
124
|
+
type: PropType<DrawerPlacementsType>;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
closable: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
footer: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
maskClosable: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
target: {
|
|
140
|
+
type: PropType<() => HTMLElement>;
|
|
141
|
+
default: () => HTMLElement;
|
|
142
|
+
};
|
|
143
|
+
mask: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
147
|
+
loading: {
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
default: boolean;
|
|
150
|
+
};
|
|
151
|
+
escKey: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
onOk: PropType<() => void>;
|
|
156
|
+
onCancel: PropType<() => void>;
|
|
157
|
+
onClose: PropType<() => void>;
|
|
158
|
+
}>> & Readonly<{}>, {
|
|
159
|
+
target: () => HTMLElement;
|
|
160
|
+
height: string | number;
|
|
161
|
+
width: string | number;
|
|
162
|
+
mask: boolean;
|
|
163
|
+
footer: boolean;
|
|
164
|
+
title: string;
|
|
165
|
+
closable: boolean;
|
|
166
|
+
loading: boolean;
|
|
167
|
+
modelValue: boolean;
|
|
168
|
+
placement: DrawerPlacementsType;
|
|
169
|
+
maskClosable: boolean;
|
|
170
|
+
escKey: boolean;
|
|
171
|
+
}, {}, {}, {
|
|
172
|
+
transfer: import('vue').ObjectDirective<any, any, string, any>;
|
|
173
|
+
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
174
|
+
export default Drawer;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BooleanType, DropPlacementsType, TriggerType } from '../const/types';
|
|
3
|
+
export declare const dropdownProps: {
|
|
4
|
+
trigger: {
|
|
5
|
+
type: PropType<TriggerType>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
disabled: BooleanType;
|
|
9
|
+
arrow: {
|
|
10
|
+
type: BooleanType;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
show: BooleanType;
|
|
14
|
+
placement: {
|
|
15
|
+
type: PropType<DropPlacementsType>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
target: ObjectConstructor;
|
|
19
|
+
};
|
|
20
|
+
export type DropdownProps = ExtractPropTypes<typeof dropdownProps>;
|
|
21
|
+
declare const Dropdown: import('vue').DefineComponent<ExtractPropTypes<{
|
|
22
|
+
trigger: {
|
|
23
|
+
type: PropType<TriggerType>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
disabled: BooleanType;
|
|
27
|
+
arrow: {
|
|
28
|
+
type: BooleanType;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
show: BooleanType;
|
|
32
|
+
placement: {
|
|
33
|
+
type: PropType<DropPlacementsType>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
target: ObjectConstructor;
|
|
37
|
+
}>, () => (import('vue').VNode<unknown, unknown, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}> | null)[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
40
|
+
trigger: {
|
|
41
|
+
type: PropType<TriggerType>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
disabled: BooleanType;
|
|
45
|
+
arrow: {
|
|
46
|
+
type: BooleanType;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
show: BooleanType;
|
|
50
|
+
placement: {
|
|
51
|
+
type: PropType<DropPlacementsType>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
target: ObjectConstructor;
|
|
55
|
+
}>> & Readonly<{}>, {
|
|
56
|
+
placement: DropPlacementsType;
|
|
57
|
+
trigger: TriggerType;
|
|
58
|
+
arrow: boolean | undefined;
|
|
59
|
+
}, {}, {}, {
|
|
60
|
+
transfer: import('vue').ObjectDirective<any, any, string, any>;
|
|
61
|
+
resize: import('vue').ObjectDirective<any, any, string, any>;
|
|
62
|
+
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
export default Dropdown;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DefineComponent } from "vue";
|
|
2
|
+
|
|
3
|
+
/** DropdownButton component props */
|
|
4
|
+
export interface DropdownButtonProps {
|
|
5
|
+
size?: string;
|
|
6
|
+
shape?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
icon?: string | any[] | Record<string, any>;
|
|
9
|
+
theme?: string;
|
|
10
|
+
dark?: boolean;
|
|
11
|
+
arrow?: boolean;
|
|
12
|
+
/** default: bottom-right */
|
|
13
|
+
placement?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** DropdownButton Vue 3 component */
|
|
17
|
+
declare const DropdownButton: DefineComponent<DropdownButtonProps, {}, any>;
|
|
18
|
+
|
|
19
|
+
export default DropdownButton;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BooleanType, DropPlacementsType, ShapeType, SizeType } from '../const/types';
|
|
3
|
+
import { IconType } from '../icon';
|
|
4
|
+
export declare const dropdownButtonProps: {
|
|
5
|
+
size: PropType<SizeType>;
|
|
6
|
+
shape: PropType<ShapeType>;
|
|
7
|
+
disabled: BooleanType;
|
|
8
|
+
icon: PropType<IconType[]>;
|
|
9
|
+
theme: StringConstructor;
|
|
10
|
+
arrow: BooleanType;
|
|
11
|
+
placement: {
|
|
12
|
+
type: PropType<DropPlacementsType>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
16
|
+
};
|
|
17
|
+
export type DropdownButtonProps = ExtractPropTypes<typeof dropdownButtonProps>;
|
|
18
|
+
declare const DropdownButton: import('vue').DefineComponent<ExtractPropTypes<{
|
|
19
|
+
size: PropType<SizeType>;
|
|
20
|
+
shape: PropType<ShapeType>;
|
|
21
|
+
disabled: BooleanType;
|
|
22
|
+
icon: PropType<IconType[]>;
|
|
23
|
+
theme: StringConstructor;
|
|
24
|
+
arrow: BooleanType;
|
|
25
|
+
placement: {
|
|
26
|
+
type: PropType<DropPlacementsType>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
30
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
31
|
+
size: PropType<SizeType>;
|
|
32
|
+
shape: PropType<ShapeType>;
|
|
33
|
+
disabled: BooleanType;
|
|
34
|
+
icon: PropType<IconType[]>;
|
|
35
|
+
theme: StringConstructor;
|
|
36
|
+
arrow: BooleanType;
|
|
37
|
+
placement: {
|
|
38
|
+
type: PropType<DropPlacementsType>;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
42
|
+
}>> & Readonly<{}>, {
|
|
43
|
+
placement: DropPlacementsType;
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
export default DropdownButton;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BooleanType } from '../const/types';
|
|
3
|
+
import { IconType } from '../icon';
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
icon: PropType<IconType[]>;
|
|
6
|
+
disabled: BooleanType;
|
|
7
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
icon: PropType<IconType[]>;
|
|
9
|
+
disabled: BooleanType;
|
|
10
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DefineComponent } from "vue";
|
|
2
|
+
|
|
3
|
+
/** Empty component props */
|
|
4
|
+
export interface EmptyProps {
|
|
5
|
+
description?: string;
|
|
6
|
+
image?: string;
|
|
7
|
+
imageStyle?: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/** Empty Vue 3 component */
|
|
11
|
+
declare const Empty: DefineComponent<EmptyProps, {}, any>;
|
|
12
|
+
|
|
13
|
+
export default Empty;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CSSProperties, DefineComponent, ExtractPropTypes, HTMLAttributes, PropType } from 'vue';
|
|
2
|
+
export declare const emptyProps: {
|
|
3
|
+
description: (BooleanConstructor | StringConstructor)[];
|
|
4
|
+
image: StringConstructor;
|
|
5
|
+
imageStyle: PropType<CSSProperties>;
|
|
6
|
+
};
|
|
7
|
+
export type EmptyProps = Partial<ExtractPropTypes<typeof emptyProps>> & HTMLAttributes;
|
|
8
|
+
declare const _default: DefineComponent<EmptyProps>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DefineComponent } from "vue";
|
|
2
|
+
|
|
3
|
+
/** Flex component props */
|
|
4
|
+
export interface FlexProps {
|
|
5
|
+
align?: string;
|
|
6
|
+
justify?: string;
|
|
7
|
+
vertical?: boolean;
|
|
8
|
+
wrap?: boolean;
|
|
9
|
+
size?: string | number | any[];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Flex Vue 3 component */
|
|
13
|
+
declare const Flex: DefineComponent<FlexProps, {}, any>;
|
|
14
|
+
|
|
15
|
+
export default Flex;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BooleanType, SizeType } from '../const/types';
|
|
3
|
+
export type FlexSizeType = SizeType | number | (string | number)[];
|
|
4
|
+
export type FlexAlignType = "start" | "flex-start" | "end" | "flex-end" | "center" | "baseline";
|
|
5
|
+
export type FlexJustifyType = "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
|
|
6
|
+
export declare const flexProps: {
|
|
7
|
+
align: {
|
|
8
|
+
type: PropType<FlexAlignType>;
|
|
9
|
+
};
|
|
10
|
+
justify: {
|
|
11
|
+
type: PropType<FlexJustifyType>;
|
|
12
|
+
};
|
|
13
|
+
vertical: BooleanType;
|
|
14
|
+
wrap: BooleanType;
|
|
15
|
+
size: {
|
|
16
|
+
type: PropType<FlexSizeType>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type FlexProps = ExtractPropTypes<typeof flexProps>;
|
|
20
|
+
declare const Flex: import('vue').DefineComponent<ExtractPropTypes<{
|
|
21
|
+
align: {
|
|
22
|
+
type: PropType<FlexAlignType>;
|
|
23
|
+
};
|
|
24
|
+
justify: {
|
|
25
|
+
type: PropType<FlexJustifyType>;
|
|
26
|
+
};
|
|
27
|
+
vertical: BooleanType;
|
|
28
|
+
wrap: BooleanType;
|
|
29
|
+
size: {
|
|
30
|
+
type: PropType<FlexSizeType>;
|
|
31
|
+
};
|
|
32
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
33
|
+
align: {
|
|
34
|
+
type: PropType<FlexAlignType>;
|
|
35
|
+
};
|
|
36
|
+
justify: {
|
|
37
|
+
type: PropType<FlexJustifyType>;
|
|
38
|
+
};
|
|
39
|
+
vertical: BooleanType;
|
|
40
|
+
wrap: BooleanType;
|
|
41
|
+
size: {
|
|
42
|
+
type: PropType<FlexSizeType>;
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
export default Flex;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { BooleanType, DirectionType, ShapeType, SizeType, ThemeType } from '../const/types';
|
|
3
|
+
import { ColProps, FormRule } from './types';
|
|
4
|
+
export interface FormSubmitEvent {
|
|
5
|
+
valid: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const formProps: {
|
|
8
|
+
layout: {
|
|
9
|
+
type: PropType<DirectionType>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
model: PropType<Record<string, any>>;
|
|
13
|
+
name: StringConstructor;
|
|
14
|
+
labelCol: PropType<ColProps>;
|
|
15
|
+
wrapperCol: PropType<ColProps>;
|
|
16
|
+
rules: {
|
|
17
|
+
type: PropType<Record<string, FormRule[]>>;
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
type: PropType<SizeType>;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
theme: PropType<ThemeType>;
|
|
24
|
+
shape: PropType<ShapeType>;
|
|
25
|
+
disabled: BooleanType;
|
|
26
|
+
onSubmit: {
|
|
27
|
+
type: PropType<(e: FormSubmitEvent) => void>;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export interface FormExpose {
|
|
31
|
+
validate: (callback?: (result: {
|
|
32
|
+
valid: boolean;
|
|
33
|
+
}) => void) => void;
|
|
34
|
+
reset: () => void;
|
|
35
|
+
test: (key: string) => void;
|
|
36
|
+
submit: (e: FormSubmitEvent) => void;
|
|
37
|
+
}
|
|
38
|
+
export type FormProps = ExtractPropTypes<typeof formProps>;
|
|
39
|
+
declare const Form: import('vue').DefineComponent<ExtractPropTypes<{
|
|
40
|
+
layout: {
|
|
41
|
+
type: PropType<DirectionType>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
model: PropType<Record<string, any>>;
|
|
45
|
+
name: StringConstructor;
|
|
46
|
+
labelCol: PropType<ColProps>;
|
|
47
|
+
wrapperCol: PropType<ColProps>;
|
|
48
|
+
rules: {
|
|
49
|
+
type: PropType<Record<string, FormRule[]>>;
|
|
50
|
+
};
|
|
51
|
+
size: {
|
|
52
|
+
type: PropType<SizeType>;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
theme: PropType<ThemeType>;
|
|
56
|
+
shape: PropType<ShapeType>;
|
|
57
|
+
disabled: BooleanType;
|
|
58
|
+
onSubmit: {
|
|
59
|
+
type: PropType<(e: FormSubmitEvent) => void>;
|
|
60
|
+
};
|
|
61
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
62
|
+
layout: {
|
|
63
|
+
type: PropType<DirectionType>;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
model: PropType<Record<string, any>>;
|
|
67
|
+
name: StringConstructor;
|
|
68
|
+
labelCol: PropType<ColProps>;
|
|
69
|
+
wrapperCol: PropType<ColProps>;
|
|
70
|
+
rules: {
|
|
71
|
+
type: PropType<Record<string, FormRule[]>>;
|
|
72
|
+
};
|
|
73
|
+
size: {
|
|
74
|
+
type: PropType<SizeType>;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
theme: PropType<ThemeType>;
|
|
78
|
+
shape: PropType<ShapeType>;
|
|
79
|
+
disabled: BooleanType;
|
|
80
|
+
onSubmit: {
|
|
81
|
+
type: PropType<(e: FormSubmitEvent) => void>;
|
|
82
|
+
};
|
|
83
|
+
}>> & Readonly<{}>, {
|
|
84
|
+
layout: DirectionType;
|
|
85
|
+
size: SizeType;
|
|
86
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
87
|
+
export default Form;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DefineComponent } from "vue";
|
|
2
|
+
|
|
3
|
+
/** FormItem component props */
|
|
4
|
+
export interface FormItemProps {
|
|
5
|
+
label?: string;
|
|
6
|
+
prop?: string;
|
|
7
|
+
labelCol?: Record<string, any>;
|
|
8
|
+
wrapperCol?: Record<string, any>;
|
|
9
|
+
rules?: any[] | Record<string, any>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** FormItem Vue 3 component */
|
|
13
|
+
declare const FormItem: DefineComponent<FormItemProps, {}, any>;
|
|
14
|
+
|
|
15
|
+
export default FormItem;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { ColProps, FormRule } from './types';
|
|
3
|
+
declare const formItemProps: {
|
|
4
|
+
label: StringConstructor;
|
|
5
|
+
prop: StringConstructor;
|
|
6
|
+
labelCol: PropType<ColProps>;
|
|
7
|
+
wrapperCol: PropType<ColProps>;
|
|
8
|
+
rules: PropType<FormRule | FormRule[]>;
|
|
9
|
+
};
|
|
10
|
+
export type FormItemProps = ExtractPropTypes<typeof formItemProps>;
|
|
11
|
+
declare const FormItem: import('vue').DefineComponent<ExtractPropTypes<{
|
|
12
|
+
label: StringConstructor;
|
|
13
|
+
prop: StringConstructor;
|
|
14
|
+
labelCol: PropType<ColProps>;
|
|
15
|
+
wrapperCol: PropType<ColProps>;
|
|
16
|
+
rules: PropType<FormRule | FormRule[]>;
|
|
17
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
18
|
+
label: StringConstructor;
|
|
19
|
+
prop: StringConstructor;
|
|
20
|
+
labelCol: PropType<ColProps>;
|
|
21
|
+
wrapperCol: PropType<ColProps>;
|
|
22
|
+
rules: PropType<FormRule | FormRule[]>;
|
|
23
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export default FormItem;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as Form, FormExpose } from './form';
|
|
2
|
+
import { default as FormItem } from './form-item';
|
|
3
|
+
export type { FormProps, FormSubmitEvent } from './form';
|
|
4
|
+
export type { FormItemProps } from './form-item';
|
|
5
|
+
export { Form, FormItem };
|
|
6
|
+
export type FormContext = InstanceType<typeof Form> & FormExpose;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ColProps {
|
|
2
|
+
span?: number;
|
|
3
|
+
offset?: number;
|
|
4
|
+
}
|
|
5
|
+
export interface FormRule {
|
|
6
|
+
required?: boolean;
|
|
7
|
+
trigger?: "blur" | "change";
|
|
8
|
+
message?: string;
|
|
9
|
+
validator?: (rule: FormRule, value: any, callback: (error?: Error) => void) => void;
|
|
10
|
+
pattern?: RegExp;
|
|
11
|
+
type?: "mobile" | "mail" | "number";
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|