@antsoo-lib/components 0.1.4 → 0.1.6
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/dist/index.mjs +6360 -6412
- package/dist/index.umd.js +83 -83
- package/dist/src/_util/ActionButton.d.ts +385 -0
- package/dist/src/_util/BaseInput.d.ts +80 -0
- package/dist/src/_util/BaseInputInner.d.ts +76 -0
- package/dist/src/_util/Portal.d.ts +22 -0
- package/dist/src/_util/PortalWrapper.d.ts +42 -0
- package/dist/src/alert/index.d.ts +158 -0
- package/dist/src/auto-complete/index.d.ts +773 -0
- package/dist/src/avatar/Avatar.d.ts +88 -0
- package/dist/src/badge/Badge.d.ts +128 -0
- package/dist/src/badge/Ribbon.d.ts +43 -0
- package/dist/src/badge/ScrollNumber.d.ts +28 -0
- package/dist/src/breadcrumb/Breadcrumb.d.ts +66 -0
- package/dist/src/breadcrumb/BreadcrumbItem.d.ts +1489 -0
- package/dist/src/button/button.d.ts +115 -0
- package/dist/src/button/buttonTypes.d.ts +59 -0
- package/dist/src/card/Card.d.ts +155 -0
- package/dist/src/carousel/index.d.ts +576 -0
- package/dist/src/cascader/index.d.ts +735 -0
- package/dist/src/checkbox/Checkbox.d.ts +117 -0
- package/dist/src/checkbox/interface.d.ts +168 -0
- package/dist/src/collapse/Collapse.d.ts +133 -0
- package/dist/src/collapse/CollapsePanel.d.ts +133 -0
- package/dist/src/collapse/PanelContent.d.ts +126 -0
- package/dist/src/collapse/commonProps.d.ts +125 -0
- package/dist/src/comment/index.d.ts +81 -0
- package/dist/src/date-picker/generatePicker/index.d.ts +7404 -0
- package/dist/src/descriptions/index.d.ts +173 -0
- package/dist/src/drawer/index.d.ts +501 -0
- package/dist/src/dropdown/dropdown-button.d.ts +556 -0
- package/dist/src/dropdown/dropdown.d.ts +503 -0
- package/dist/src/dropdown/props.d.ts +465 -0
- package/dist/src/float-button/BackTop.d.ts +67 -0
- package/dist/src/float-button/FloatButton.d.ts +57 -0
- package/dist/src/float-button/FloatButtonGroup.d.ts +92 -0
- package/dist/src/float-button/interface.d.ts +108 -0
- package/dist/src/form/Form.d.ts +796 -0
- package/dist/src/form/FormItem.d.ts +192 -0
- package/dist/src/image/index.d.ts +75 -0
- package/dist/src/input/Input.d.ts +198 -0
- package/dist/src/input/Password.d.ts +222 -0
- package/dist/src/input/ResizableTextArea.d.ts +222 -0
- package/dist/src/input/Search.d.ts +199 -0
- package/dist/src/input/TextArea.d.ts +223 -0
- package/dist/src/input/inputProps.d.ts +211 -0
- package/dist/src/input-number/index.d.ts +611 -0
- package/dist/src/layout/Sider.d.ts +115 -0
- package/dist/src/layout/index.d.ts +298 -0
- package/dist/src/list/Item.d.ts +48 -0
- package/dist/src/list/ItemMeta.d.ts +27 -0
- package/dist/src/list/index.d.ts +962 -0
- package/dist/src/mentions/index.d.ts +351 -0
- package/dist/src/menu/src/ItemGroup.d.ts +31 -0
- package/dist/src/menu/src/MenuItem.d.ts +75 -0
- package/dist/src/menu/src/SubMenu.d.ts +87 -0
- package/dist/src/modal/Modal.d.ts +1026 -0
- package/dist/src/page-header/index.d.ts +456 -0
- package/dist/src/pagination/Select.d.ts +723 -0
- package/dist/src/popconfirm/index.d.ts +1105 -0
- package/dist/src/radio/Group.d.ts +123 -0
- package/dist/src/radio/Radio.d.ts +155 -0
- package/dist/src/radio/RadioButton.d.ts +107 -0
- package/dist/src/rate/Star.d.ts +76 -0
- package/dist/src/rate/index.d.ts +160 -0
- package/dist/src/result/index.d.ts +70 -0
- package/dist/src/select/index.d.ts +567 -0
- package/dist/src/slider/SliderTooltip.d.ts +144 -0
- package/dist/src/spin/Spin.d.ts +44 -0
- package/dist/src/switch/index.d.ts +220 -0
- package/dist/src/table/Table.d.ts +1162 -0
- package/dist/src/table/index.d.ts +1494 -0
- package/dist/src/tabs/src/TabNavList/OperationNode.d.ts +150 -0
- package/dist/src/tabs/src/TabNavList/index.d.ts +171 -0
- package/dist/src/tabs/src/TabPanelList/TabPane.d.ts +105 -0
- package/dist/src/tabs/src/Tabs.d.ts +305 -0
- package/dist/src/tag/index.d.ts +102 -0
- package/dist/src/timeline/Timeline.d.ts +43 -0
- package/dist/src/timeline/TimelineItem.d.ts +50 -0
- package/dist/src/tooltip/Tooltip.d.ts +233 -0
- package/dist/src/tooltip/index.d.ts +251 -0
- package/dist/src/tour/index.d.ts +1024 -0
- package/dist/src/tour/interface.d.ts +208 -0
- package/dist/src/transfer/ListBody.d.ts +81 -0
- package/dist/src/transfer/ListItem.d.ts +70 -0
- package/dist/src/transfer/index.d.ts +712 -0
- package/dist/src/transfer/list.d.ts +166 -0
- package/dist/src/tree/DirectoryTree.d.ts +799 -0
- package/dist/src/tree/Tree.d.ts +895 -0
- package/dist/src/tree/index.d.ts +1636 -0
- package/dist/src/tree-select/index.d.ts +1078 -0
- package/dist/src/vc-cascader/Cascader.d.ts +973 -0
- package/dist/src/vc-checkbox/Checkbox.d.ts +78 -0
- package/dist/src/vc-dialog/Content.d.ts +182 -0
- package/dist/src/vc-dialog/Dialog.d.ts +170 -0
- package/dist/src/vc-dialog/DialogWrap.d.ts +167 -0
- package/dist/src/vc-dialog/IDialogPropTypes.d.ts +80 -0
- package/dist/src/vc-drawer/src/DrawerChild.d.ts +165 -0
- package/dist/src/vc-drawer/src/IDrawerPropTypes.d.ts +148 -0
- package/dist/src/vc-dropdown/Dropdown.d.ts +167 -0
- package/dist/src/vc-image/src/Image.d.ts +115 -0
- package/dist/src/vc-image/src/Preview.d.ts +293 -0
- package/dist/src/vc-input/BaseInput.d.ts +99 -0
- package/dist/src/vc-input/Input.d.ts +197 -0
- package/dist/src/vc-input/inputProps.d.ts +170 -0
- package/dist/src/vc-mentions/src/Mentions.d.ts +94 -0
- package/dist/src/vc-mentions/src/mentionsProps.d.ts +127 -0
- package/dist/src/vc-overflow/Item.d.ts +35 -0
- package/dist/src/vc-overflow/Overflow.d.ts +90 -0
- package/dist/src/vc-overflow/RawItem.d.ts +46 -0
- package/dist/src/vc-pagination/Options.d.ts +62 -0
- package/dist/src/vc-pagination/Pager.d.ts +76 -0
- package/dist/src/vc-pagination/Pagination.d.ts +246 -0
- package/dist/src/vc-select/BaseSelect.d.ts +579 -0
- package/dist/src/vc-select/Select.d.ts +510 -0
- package/dist/src/vc-select/Selector/Input.d.ts +187 -0
- package/dist/src/vc-slider/src/Range.d.ts +238 -0
- package/dist/src/vc-slider/src/Slider.d.ts +238 -0
- package/dist/src/vc-slider/src/common/createSlider.d.ts +237 -0
- package/dist/src/vc-steps/Step.d.ts +164 -0
- package/dist/src/vc-steps/Steps.d.ts +154 -0
- package/dist/src/vc-tooltip/src/Content.d.ts +18 -0
- package/dist/src/vc-tooltip/src/Tooltip.d.ts +195 -0
- package/dist/src/vc-tour/Tour.d.ts +654 -0
- package/dist/src/vc-tree/MotionTreeNode.d.ts +123 -0
- package/dist/src/vc-tree/Tree.d.ts +439 -0
- package/dist/src/vc-tree/TreeNode.d.ts +115 -0
- package/dist/src/vc-tree/props.d.ts +354 -0
- package/dist/src/vc-tree-select/TreeSelect.d.ts +708 -0
- package/dist/src/vc-trigger/Trigger.d.ts +358 -0
- package/dist/src/vc-trigger/interface.d.ts +208 -0
- package/dist/src/vc-virtual-list/List.d.ts +107 -0
- package/package.json +7 -7
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
import { CSSProperties, PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { MouseEventHandler, FocusEventHandler } from '../_util/EventInterface';
|
|
3
|
+
import { ItemType, MenuTheme, MenuMode } from '../menu';
|
|
4
|
+
import { Key } from '../_util/type';
|
|
5
|
+
import { CSSMotionProps } from '../_util/transition';
|
|
6
|
+
import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler } from '../menu/src/interface';
|
|
7
|
+
import { VueTypeValidableDef } from 'vue-types';
|
|
8
|
+
import { ButtonType } from '../button';
|
|
9
|
+
import { ButtonHTMLType } from '../button/buttonTypes';
|
|
10
|
+
export interface Align {
|
|
11
|
+
points?: [string, string];
|
|
12
|
+
offset?: [number, number];
|
|
13
|
+
targetOffset?: [number, number];
|
|
14
|
+
overflow?: {
|
|
15
|
+
adjustX?: boolean;
|
|
16
|
+
adjustY?: boolean;
|
|
17
|
+
};
|
|
18
|
+
useCssRight?: boolean;
|
|
19
|
+
useCssBottom?: boolean;
|
|
20
|
+
useCssTransform?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export type Trigger = 'click' | 'hover' | 'contextmenu';
|
|
23
|
+
export interface DropdownArrowOptions {
|
|
24
|
+
pointAtCenter?: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const dropdownProps: () => {
|
|
27
|
+
arrow: {
|
|
28
|
+
type: PropType<boolean | DropdownArrowOptions>;
|
|
29
|
+
default: boolean | DropdownArrowOptions;
|
|
30
|
+
};
|
|
31
|
+
trigger: {
|
|
32
|
+
type: PropType<Trigger[] | Trigger>;
|
|
33
|
+
};
|
|
34
|
+
menu: {
|
|
35
|
+
type: PropType<Partial< ExtractPropTypes<{
|
|
36
|
+
id: StringConstructor;
|
|
37
|
+
prefixCls: StringConstructor;
|
|
38
|
+
items: PropType< ItemType[]>;
|
|
39
|
+
disabled: BooleanConstructor;
|
|
40
|
+
inlineCollapsed: BooleanConstructor;
|
|
41
|
+
disabledOverflow: BooleanConstructor;
|
|
42
|
+
forceSubMenuRender: BooleanConstructor;
|
|
43
|
+
openKeys: PropType< Key[]>;
|
|
44
|
+
selectedKeys: PropType< Key[]>;
|
|
45
|
+
activeKey: StringConstructor;
|
|
46
|
+
selectable: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
multiple: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
tabindex: {
|
|
55
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
56
|
+
};
|
|
57
|
+
motion: PropType< CSSMotionProps>;
|
|
58
|
+
role: StringConstructor;
|
|
59
|
+
theme: {
|
|
60
|
+
type: PropType< MenuTheme>;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
mode: {
|
|
64
|
+
type: PropType< MenuMode>;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
inlineIndent: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
subMenuOpenDelay: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
default: number;
|
|
74
|
+
};
|
|
75
|
+
subMenuCloseDelay: {
|
|
76
|
+
type: NumberConstructor;
|
|
77
|
+
default: number;
|
|
78
|
+
};
|
|
79
|
+
builtinPlacements: {
|
|
80
|
+
type: PropType< BuiltinPlacements>;
|
|
81
|
+
};
|
|
82
|
+
triggerSubMenuAction: {
|
|
83
|
+
type: PropType< TriggerSubMenuAction>;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
getPopupContainer: PropType<(node: HTMLElement) => HTMLElement>;
|
|
87
|
+
expandIcon: PropType<(p?: {
|
|
88
|
+
isOpen: boolean;
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
}) => any>;
|
|
91
|
+
onOpenChange: PropType<(keys: Key[]) => void>;
|
|
92
|
+
onSelect: PropType< SelectEventHandler>;
|
|
93
|
+
onDeselect: PropType< SelectEventHandler>;
|
|
94
|
+
onClick: PropType< MenuClickEventHandler>;
|
|
95
|
+
onFocus: PropType< FocusEventHandler>;
|
|
96
|
+
onBlur: PropType< FocusEventHandler>;
|
|
97
|
+
onMousedown: PropType<MouseEventHandler>;
|
|
98
|
+
'onUpdate:openKeys': PropType<(keys: Key[]) => void>;
|
|
99
|
+
'onUpdate:selectedKeys': PropType<(keys: Key[]) => void>;
|
|
100
|
+
'onUpdate:activeKey': PropType<(key: Key) => void>;
|
|
101
|
+
}>>>;
|
|
102
|
+
default: Partial< ExtractPropTypes<{
|
|
103
|
+
id: StringConstructor;
|
|
104
|
+
prefixCls: StringConstructor;
|
|
105
|
+
items: PropType< ItemType[]>;
|
|
106
|
+
disabled: BooleanConstructor;
|
|
107
|
+
inlineCollapsed: BooleanConstructor;
|
|
108
|
+
disabledOverflow: BooleanConstructor;
|
|
109
|
+
forceSubMenuRender: BooleanConstructor;
|
|
110
|
+
openKeys: PropType< Key[]>;
|
|
111
|
+
selectedKeys: PropType< Key[]>;
|
|
112
|
+
activeKey: StringConstructor;
|
|
113
|
+
selectable: {
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
multiple: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
tabindex: {
|
|
122
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
123
|
+
};
|
|
124
|
+
motion: PropType< CSSMotionProps>;
|
|
125
|
+
role: StringConstructor;
|
|
126
|
+
theme: {
|
|
127
|
+
type: PropType< MenuTheme>;
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
130
|
+
mode: {
|
|
131
|
+
type: PropType< MenuMode>;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
inlineIndent: {
|
|
135
|
+
type: NumberConstructor;
|
|
136
|
+
default: number;
|
|
137
|
+
};
|
|
138
|
+
subMenuOpenDelay: {
|
|
139
|
+
type: NumberConstructor;
|
|
140
|
+
default: number;
|
|
141
|
+
};
|
|
142
|
+
subMenuCloseDelay: {
|
|
143
|
+
type: NumberConstructor;
|
|
144
|
+
default: number;
|
|
145
|
+
};
|
|
146
|
+
builtinPlacements: {
|
|
147
|
+
type: PropType< BuiltinPlacements>;
|
|
148
|
+
};
|
|
149
|
+
triggerSubMenuAction: {
|
|
150
|
+
type: PropType< TriggerSubMenuAction>;
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
153
|
+
getPopupContainer: PropType<(node: HTMLElement) => HTMLElement>;
|
|
154
|
+
expandIcon: PropType<(p?: {
|
|
155
|
+
isOpen: boolean;
|
|
156
|
+
[key: string]: any;
|
|
157
|
+
}) => any>;
|
|
158
|
+
onOpenChange: PropType<(keys: Key[]) => void>;
|
|
159
|
+
onSelect: PropType< SelectEventHandler>;
|
|
160
|
+
onDeselect: PropType< SelectEventHandler>;
|
|
161
|
+
onClick: PropType< MenuClickEventHandler>;
|
|
162
|
+
onFocus: PropType< FocusEventHandler>;
|
|
163
|
+
onBlur: PropType< FocusEventHandler>;
|
|
164
|
+
onMousedown: PropType<MouseEventHandler>;
|
|
165
|
+
'onUpdate:openKeys': PropType<(keys: Key[]) => void>;
|
|
166
|
+
'onUpdate:selectedKeys': PropType<(keys: Key[]) => void>;
|
|
167
|
+
'onUpdate:activeKey': PropType<(key: Key) => void>;
|
|
168
|
+
}>>;
|
|
169
|
+
};
|
|
170
|
+
overlay: VueTypeValidableDef<any>;
|
|
171
|
+
/** @deprecated Please use `open` instead */
|
|
172
|
+
visible: {
|
|
173
|
+
type: BooleanConstructor;
|
|
174
|
+
default: boolean;
|
|
175
|
+
};
|
|
176
|
+
open: {
|
|
177
|
+
type: BooleanConstructor;
|
|
178
|
+
default: boolean;
|
|
179
|
+
};
|
|
180
|
+
disabled: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
184
|
+
danger: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
autofocus: {
|
|
189
|
+
type: BooleanConstructor;
|
|
190
|
+
default: boolean;
|
|
191
|
+
};
|
|
192
|
+
align: {
|
|
193
|
+
type: PropType<Align>;
|
|
194
|
+
default: Align;
|
|
195
|
+
};
|
|
196
|
+
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
197
|
+
prefixCls: StringConstructor;
|
|
198
|
+
transitionName: StringConstructor;
|
|
199
|
+
placement: PropType<"topLeft" | "topCenter" | "top" | "topRight" | "bottomLeft" | "bottomCenter" | "bottom" | "bottomRight">;
|
|
200
|
+
overlayClassName: StringConstructor;
|
|
201
|
+
overlayStyle: {
|
|
202
|
+
type: PropType<CSSProperties>;
|
|
203
|
+
default: CSSProperties;
|
|
204
|
+
};
|
|
205
|
+
forceRender: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
209
|
+
mouseEnterDelay: NumberConstructor;
|
|
210
|
+
mouseLeaveDelay: NumberConstructor;
|
|
211
|
+
openClassName: StringConstructor;
|
|
212
|
+
minOverlayWidthMatchTrigger: {
|
|
213
|
+
type: BooleanConstructor;
|
|
214
|
+
default: boolean;
|
|
215
|
+
};
|
|
216
|
+
destroyPopupOnHide: {
|
|
217
|
+
type: BooleanConstructor;
|
|
218
|
+
default: boolean;
|
|
219
|
+
};
|
|
220
|
+
/** @deprecated Please use `onOpenChange` instead */
|
|
221
|
+
onVisibleChange: {
|
|
222
|
+
type: PropType<(val: boolean) => void>;
|
|
223
|
+
};
|
|
224
|
+
/** @deprecated Please use `onUpdate:open` instead */
|
|
225
|
+
'onUpdate:visible': {
|
|
226
|
+
type: PropType<(val: boolean) => void>;
|
|
227
|
+
};
|
|
228
|
+
onOpenChange: {
|
|
229
|
+
type: PropType<(val: boolean) => void>;
|
|
230
|
+
};
|
|
231
|
+
'onUpdate:open': {
|
|
232
|
+
type: PropType<(val: boolean) => void>;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
declare const dropdownButtonProps: () => {
|
|
236
|
+
type: PropType< ButtonType>;
|
|
237
|
+
size: PropType<"small" | "large">;
|
|
238
|
+
htmlType: {
|
|
239
|
+
type: PropType< ButtonHTMLType>;
|
|
240
|
+
default: string;
|
|
241
|
+
};
|
|
242
|
+
href: StringConstructor;
|
|
243
|
+
disabled: {
|
|
244
|
+
type: BooleanConstructor;
|
|
245
|
+
default: boolean;
|
|
246
|
+
};
|
|
247
|
+
prefixCls: StringConstructor;
|
|
248
|
+
icon: VueTypeValidableDef<any>;
|
|
249
|
+
title: StringConstructor;
|
|
250
|
+
loading: {
|
|
251
|
+
type: PropType<boolean | {
|
|
252
|
+
delay?: number;
|
|
253
|
+
}>;
|
|
254
|
+
default: () => boolean | {
|
|
255
|
+
delay?: number;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
onClick: {
|
|
259
|
+
type: PropType<MouseEventHandler | MouseEventHandler[]>;
|
|
260
|
+
};
|
|
261
|
+
arrow: {
|
|
262
|
+
type: PropType<boolean | DropdownArrowOptions>;
|
|
263
|
+
default: boolean | DropdownArrowOptions;
|
|
264
|
+
};
|
|
265
|
+
trigger: {
|
|
266
|
+
type: PropType<Trigger[] | Trigger>;
|
|
267
|
+
};
|
|
268
|
+
menu: {
|
|
269
|
+
type: PropType<Partial< ExtractPropTypes<{
|
|
270
|
+
id: StringConstructor;
|
|
271
|
+
prefixCls: StringConstructor;
|
|
272
|
+
items: PropType< ItemType[]>;
|
|
273
|
+
disabled: BooleanConstructor;
|
|
274
|
+
inlineCollapsed: BooleanConstructor;
|
|
275
|
+
disabledOverflow: BooleanConstructor;
|
|
276
|
+
forceSubMenuRender: BooleanConstructor;
|
|
277
|
+
openKeys: PropType< Key[]>;
|
|
278
|
+
selectedKeys: PropType< Key[]>;
|
|
279
|
+
activeKey: StringConstructor;
|
|
280
|
+
selectable: {
|
|
281
|
+
type: BooleanConstructor;
|
|
282
|
+
default: boolean;
|
|
283
|
+
};
|
|
284
|
+
multiple: {
|
|
285
|
+
type: BooleanConstructor;
|
|
286
|
+
default: boolean;
|
|
287
|
+
};
|
|
288
|
+
tabindex: {
|
|
289
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
290
|
+
};
|
|
291
|
+
motion: PropType< CSSMotionProps>;
|
|
292
|
+
role: StringConstructor;
|
|
293
|
+
theme: {
|
|
294
|
+
type: PropType< MenuTheme>;
|
|
295
|
+
default: string;
|
|
296
|
+
};
|
|
297
|
+
mode: {
|
|
298
|
+
type: PropType< MenuMode>;
|
|
299
|
+
default: string;
|
|
300
|
+
};
|
|
301
|
+
inlineIndent: {
|
|
302
|
+
type: NumberConstructor;
|
|
303
|
+
default: number;
|
|
304
|
+
};
|
|
305
|
+
subMenuOpenDelay: {
|
|
306
|
+
type: NumberConstructor;
|
|
307
|
+
default: number;
|
|
308
|
+
};
|
|
309
|
+
subMenuCloseDelay: {
|
|
310
|
+
type: NumberConstructor;
|
|
311
|
+
default: number;
|
|
312
|
+
};
|
|
313
|
+
builtinPlacements: {
|
|
314
|
+
type: PropType< BuiltinPlacements>;
|
|
315
|
+
};
|
|
316
|
+
triggerSubMenuAction: {
|
|
317
|
+
type: PropType< TriggerSubMenuAction>;
|
|
318
|
+
default: string;
|
|
319
|
+
};
|
|
320
|
+
getPopupContainer: PropType<(node: HTMLElement) => HTMLElement>;
|
|
321
|
+
expandIcon: PropType<(p?: {
|
|
322
|
+
isOpen: boolean;
|
|
323
|
+
[key: string]: any;
|
|
324
|
+
}) => any>;
|
|
325
|
+
onOpenChange: PropType<(keys: Key[]) => void>;
|
|
326
|
+
onSelect: PropType< SelectEventHandler>;
|
|
327
|
+
onDeselect: PropType< SelectEventHandler>;
|
|
328
|
+
onClick: PropType< MenuClickEventHandler>;
|
|
329
|
+
onFocus: PropType< FocusEventHandler>;
|
|
330
|
+
onBlur: PropType< FocusEventHandler>;
|
|
331
|
+
onMousedown: PropType<MouseEventHandler>;
|
|
332
|
+
'onUpdate:openKeys': PropType<(keys: Key[]) => void>;
|
|
333
|
+
'onUpdate:selectedKeys': PropType<(keys: Key[]) => void>;
|
|
334
|
+
'onUpdate:activeKey': PropType<(key: Key) => void>;
|
|
335
|
+
}>>>;
|
|
336
|
+
default: Partial< ExtractPropTypes<{
|
|
337
|
+
id: StringConstructor;
|
|
338
|
+
prefixCls: StringConstructor;
|
|
339
|
+
items: PropType< ItemType[]>;
|
|
340
|
+
disabled: BooleanConstructor;
|
|
341
|
+
inlineCollapsed: BooleanConstructor;
|
|
342
|
+
disabledOverflow: BooleanConstructor;
|
|
343
|
+
forceSubMenuRender: BooleanConstructor;
|
|
344
|
+
openKeys: PropType< Key[]>;
|
|
345
|
+
selectedKeys: PropType< Key[]>;
|
|
346
|
+
activeKey: StringConstructor;
|
|
347
|
+
selectable: {
|
|
348
|
+
type: BooleanConstructor;
|
|
349
|
+
default: boolean;
|
|
350
|
+
};
|
|
351
|
+
multiple: {
|
|
352
|
+
type: BooleanConstructor;
|
|
353
|
+
default: boolean;
|
|
354
|
+
};
|
|
355
|
+
tabindex: {
|
|
356
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
357
|
+
};
|
|
358
|
+
motion: PropType< CSSMotionProps>;
|
|
359
|
+
role: StringConstructor;
|
|
360
|
+
theme: {
|
|
361
|
+
type: PropType< MenuTheme>;
|
|
362
|
+
default: string;
|
|
363
|
+
};
|
|
364
|
+
mode: {
|
|
365
|
+
type: PropType< MenuMode>;
|
|
366
|
+
default: string;
|
|
367
|
+
};
|
|
368
|
+
inlineIndent: {
|
|
369
|
+
type: NumberConstructor;
|
|
370
|
+
default: number;
|
|
371
|
+
};
|
|
372
|
+
subMenuOpenDelay: {
|
|
373
|
+
type: NumberConstructor;
|
|
374
|
+
default: number;
|
|
375
|
+
};
|
|
376
|
+
subMenuCloseDelay: {
|
|
377
|
+
type: NumberConstructor;
|
|
378
|
+
default: number;
|
|
379
|
+
};
|
|
380
|
+
builtinPlacements: {
|
|
381
|
+
type: PropType< BuiltinPlacements>;
|
|
382
|
+
};
|
|
383
|
+
triggerSubMenuAction: {
|
|
384
|
+
type: PropType< TriggerSubMenuAction>;
|
|
385
|
+
default: string;
|
|
386
|
+
};
|
|
387
|
+
getPopupContainer: PropType<(node: HTMLElement) => HTMLElement>;
|
|
388
|
+
expandIcon: PropType<(p?: {
|
|
389
|
+
isOpen: boolean;
|
|
390
|
+
[key: string]: any;
|
|
391
|
+
}) => any>;
|
|
392
|
+
onOpenChange: PropType<(keys: Key[]) => void>;
|
|
393
|
+
onSelect: PropType< SelectEventHandler>;
|
|
394
|
+
onDeselect: PropType< SelectEventHandler>;
|
|
395
|
+
onClick: PropType< MenuClickEventHandler>;
|
|
396
|
+
onFocus: PropType< FocusEventHandler>;
|
|
397
|
+
onBlur: PropType< FocusEventHandler>;
|
|
398
|
+
onMousedown: PropType<MouseEventHandler>;
|
|
399
|
+
'onUpdate:openKeys': PropType<(keys: Key[]) => void>;
|
|
400
|
+
'onUpdate:selectedKeys': PropType<(keys: Key[]) => void>;
|
|
401
|
+
'onUpdate:activeKey': PropType<(key: Key) => void>;
|
|
402
|
+
}>>;
|
|
403
|
+
};
|
|
404
|
+
overlay: VueTypeValidableDef<any>;
|
|
405
|
+
/** @deprecated Please use `open` instead */
|
|
406
|
+
visible: {
|
|
407
|
+
type: BooleanConstructor;
|
|
408
|
+
default: boolean;
|
|
409
|
+
};
|
|
410
|
+
open: {
|
|
411
|
+
type: BooleanConstructor;
|
|
412
|
+
default: boolean;
|
|
413
|
+
};
|
|
414
|
+
danger: {
|
|
415
|
+
type: BooleanConstructor;
|
|
416
|
+
default: boolean;
|
|
417
|
+
};
|
|
418
|
+
autofocus: {
|
|
419
|
+
type: BooleanConstructor;
|
|
420
|
+
default: boolean;
|
|
421
|
+
};
|
|
422
|
+
align: {
|
|
423
|
+
type: PropType<Align>;
|
|
424
|
+
default: Align;
|
|
425
|
+
};
|
|
426
|
+
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
427
|
+
transitionName: StringConstructor;
|
|
428
|
+
placement: PropType<"topLeft" | "topCenter" | "top" | "topRight" | "bottomLeft" | "bottomCenter" | "bottom" | "bottomRight">;
|
|
429
|
+
overlayClassName: StringConstructor;
|
|
430
|
+
overlayStyle: {
|
|
431
|
+
type: PropType<CSSProperties>;
|
|
432
|
+
default: CSSProperties;
|
|
433
|
+
};
|
|
434
|
+
forceRender: {
|
|
435
|
+
type: BooleanConstructor;
|
|
436
|
+
default: boolean;
|
|
437
|
+
};
|
|
438
|
+
mouseEnterDelay: NumberConstructor;
|
|
439
|
+
mouseLeaveDelay: NumberConstructor;
|
|
440
|
+
openClassName: StringConstructor;
|
|
441
|
+
minOverlayWidthMatchTrigger: {
|
|
442
|
+
type: BooleanConstructor;
|
|
443
|
+
default: boolean;
|
|
444
|
+
};
|
|
445
|
+
destroyPopupOnHide: {
|
|
446
|
+
type: BooleanConstructor;
|
|
447
|
+
default: boolean;
|
|
448
|
+
};
|
|
449
|
+
/** @deprecated Please use `onOpenChange` instead */
|
|
450
|
+
onVisibleChange: {
|
|
451
|
+
type: PropType<(val: boolean) => void>;
|
|
452
|
+
};
|
|
453
|
+
/** @deprecated Please use `onUpdate:open` instead */
|
|
454
|
+
'onUpdate:visible': {
|
|
455
|
+
type: PropType<(val: boolean) => void>;
|
|
456
|
+
};
|
|
457
|
+
onOpenChange: {
|
|
458
|
+
type: PropType<(val: boolean) => void>;
|
|
459
|
+
};
|
|
460
|
+
'onUpdate:open': {
|
|
461
|
+
type: PropType<(val: boolean) => void>;
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
export { dropdownButtonProps, dropdownProps };
|
|
465
|
+
export default dropdownProps;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { MouseEventHandler } from '../_util/EventInterface';
|
|
3
|
+
import { VueTypeValidableDef } from 'vue-types';
|
|
4
|
+
import { FloatButtonType, FloatButtonShape, FloatButtonBadgeProps } from './interface';
|
|
5
|
+
import { VueNode } from '../_util/type';
|
|
6
|
+
declare const BackTop: DefineComponent<ExtractPropTypes<{
|
|
7
|
+
prefixCls: StringConstructor;
|
|
8
|
+
duration: NumberConstructor;
|
|
9
|
+
target: {
|
|
10
|
+
type: PropType<() => HTMLElement | Window | Document>;
|
|
11
|
+
default: () => HTMLElement | Window | Document;
|
|
12
|
+
};
|
|
13
|
+
visibilityHeight: NumberConstructor;
|
|
14
|
+
onClick: {
|
|
15
|
+
type: PropType<MouseEventHandler>;
|
|
16
|
+
default: MouseEventHandler;
|
|
17
|
+
};
|
|
18
|
+
description: VueTypeValidableDef<any>;
|
|
19
|
+
type: {
|
|
20
|
+
type: PropType<FloatButtonType>;
|
|
21
|
+
default: FloatButtonType;
|
|
22
|
+
};
|
|
23
|
+
shape: {
|
|
24
|
+
type: PropType<FloatButtonShape>;
|
|
25
|
+
default: FloatButtonShape;
|
|
26
|
+
};
|
|
27
|
+
tooltip: VueTypeValidableDef<any>;
|
|
28
|
+
href: StringConstructor;
|
|
29
|
+
badge: {
|
|
30
|
+
type: PropType<FloatButtonBadgeProps>;
|
|
31
|
+
default: FloatButtonBadgeProps;
|
|
32
|
+
};
|
|
33
|
+
}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
34
|
+
prefixCls: StringConstructor;
|
|
35
|
+
duration: NumberConstructor;
|
|
36
|
+
target: {
|
|
37
|
+
type: PropType<() => HTMLElement | Window | Document>;
|
|
38
|
+
default: () => HTMLElement | Window | Document;
|
|
39
|
+
};
|
|
40
|
+
visibilityHeight: NumberConstructor;
|
|
41
|
+
onClick: {
|
|
42
|
+
type: PropType<MouseEventHandler>;
|
|
43
|
+
default: MouseEventHandler;
|
|
44
|
+
};
|
|
45
|
+
description: VueTypeValidableDef<any>;
|
|
46
|
+
type: {
|
|
47
|
+
type: PropType<FloatButtonType>;
|
|
48
|
+
default: FloatButtonType;
|
|
49
|
+
};
|
|
50
|
+
shape: {
|
|
51
|
+
type: PropType<FloatButtonShape>;
|
|
52
|
+
default: FloatButtonShape;
|
|
53
|
+
};
|
|
54
|
+
tooltip: VueTypeValidableDef<any>;
|
|
55
|
+
href: StringConstructor;
|
|
56
|
+
badge: {
|
|
57
|
+
type: PropType<FloatButtonBadgeProps>;
|
|
58
|
+
default: FloatButtonBadgeProps;
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{}>, {
|
|
61
|
+
type: FloatButtonType;
|
|
62
|
+
onClick: MouseEventHandler;
|
|
63
|
+
target: () => HTMLElement | Window | Document;
|
|
64
|
+
shape: FloatButtonShape;
|
|
65
|
+
badge: FloatButtonBadgeProps;
|
|
66
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
67
|
+
export default BackTop;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { VueTypeValidableDef } from 'vue-types';
|
|
3
|
+
import { FloatButtonType, FloatButtonShape, FloatButtonBadgeProps } from './interface';
|
|
4
|
+
import { MouseEventHandler } from '../_util/EventInterface';
|
|
5
|
+
import { VueNode } from '../_util/type';
|
|
6
|
+
export declare const floatButtonPrefixCls = "float-btn";
|
|
7
|
+
declare const FloatButton: DefineComponent<ExtractPropTypes<{
|
|
8
|
+
prefixCls: StringConstructor;
|
|
9
|
+
description: VueTypeValidableDef<any>;
|
|
10
|
+
type: {
|
|
11
|
+
type: PropType<FloatButtonType>;
|
|
12
|
+
default: FloatButtonType;
|
|
13
|
+
};
|
|
14
|
+
shape: {
|
|
15
|
+
type: PropType<FloatButtonShape>;
|
|
16
|
+
default: FloatButtonShape;
|
|
17
|
+
};
|
|
18
|
+
tooltip: VueTypeValidableDef<any>;
|
|
19
|
+
href: StringConstructor;
|
|
20
|
+
target: StringConstructor;
|
|
21
|
+
badge: {
|
|
22
|
+
type: PropType<FloatButtonBadgeProps>;
|
|
23
|
+
default: FloatButtonBadgeProps;
|
|
24
|
+
};
|
|
25
|
+
onClick: {
|
|
26
|
+
type: PropType<MouseEventHandler>;
|
|
27
|
+
default: MouseEventHandler;
|
|
28
|
+
};
|
|
29
|
+
}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
30
|
+
prefixCls: StringConstructor;
|
|
31
|
+
description: VueTypeValidableDef<any>;
|
|
32
|
+
type: {
|
|
33
|
+
type: PropType<FloatButtonType>;
|
|
34
|
+
default: FloatButtonType;
|
|
35
|
+
};
|
|
36
|
+
shape: {
|
|
37
|
+
type: PropType<FloatButtonShape>;
|
|
38
|
+
default: FloatButtonShape;
|
|
39
|
+
};
|
|
40
|
+
tooltip: VueTypeValidableDef<any>;
|
|
41
|
+
href: StringConstructor;
|
|
42
|
+
target: StringConstructor;
|
|
43
|
+
badge: {
|
|
44
|
+
type: PropType<FloatButtonBadgeProps>;
|
|
45
|
+
default: FloatButtonBadgeProps;
|
|
46
|
+
};
|
|
47
|
+
onClick: {
|
|
48
|
+
type: PropType<MouseEventHandler>;
|
|
49
|
+
default: MouseEventHandler;
|
|
50
|
+
};
|
|
51
|
+
}>> & Readonly<{}>, {
|
|
52
|
+
type: FloatButtonType;
|
|
53
|
+
onClick: MouseEventHandler;
|
|
54
|
+
shape: FloatButtonShape;
|
|
55
|
+
badge: FloatButtonBadgeProps;
|
|
56
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
57
|
+
export default FloatButton;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { FloatButtonGroupTrigger, FloatButtonType, FloatButtonShape, FloatButtonBadgeProps } from './interface';
|
|
3
|
+
import { VueTypeValidableDef } from 'vue-types';
|
|
4
|
+
import { MouseEventHandler } from '../_util/EventInterface';
|
|
5
|
+
import { VueNode } from '../_util/type';
|
|
6
|
+
declare const FloatButtonGroup: DefineComponent<ExtractPropTypes<{
|
|
7
|
+
trigger: {
|
|
8
|
+
type: PropType<FloatButtonGroupTrigger>;
|
|
9
|
+
default: FloatButtonGroupTrigger;
|
|
10
|
+
};
|
|
11
|
+
open: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
onOpenChange: {
|
|
16
|
+
type: PropType<(open: boolean) => void>;
|
|
17
|
+
default: (open: boolean) => void;
|
|
18
|
+
};
|
|
19
|
+
'onUpdate:open': {
|
|
20
|
+
type: PropType<(open: boolean) => void>;
|
|
21
|
+
default: (open: boolean) => void;
|
|
22
|
+
};
|
|
23
|
+
prefixCls: StringConstructor;
|
|
24
|
+
description: VueTypeValidableDef<any>;
|
|
25
|
+
type: {
|
|
26
|
+
type: PropType<FloatButtonType>;
|
|
27
|
+
default: FloatButtonType;
|
|
28
|
+
};
|
|
29
|
+
shape: {
|
|
30
|
+
type: PropType<FloatButtonShape>;
|
|
31
|
+
default: FloatButtonShape;
|
|
32
|
+
};
|
|
33
|
+
tooltip: VueTypeValidableDef<any>;
|
|
34
|
+
href: StringConstructor;
|
|
35
|
+
target: StringConstructor;
|
|
36
|
+
badge: {
|
|
37
|
+
type: PropType<FloatButtonBadgeProps>;
|
|
38
|
+
default: FloatButtonBadgeProps;
|
|
39
|
+
};
|
|
40
|
+
onClick: {
|
|
41
|
+
type: PropType<MouseEventHandler>;
|
|
42
|
+
default: MouseEventHandler;
|
|
43
|
+
};
|
|
44
|
+
}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
45
|
+
trigger: {
|
|
46
|
+
type: PropType<FloatButtonGroupTrigger>;
|
|
47
|
+
default: FloatButtonGroupTrigger;
|
|
48
|
+
};
|
|
49
|
+
open: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
onOpenChange: {
|
|
54
|
+
type: PropType<(open: boolean) => void>;
|
|
55
|
+
default: (open: boolean) => void;
|
|
56
|
+
};
|
|
57
|
+
'onUpdate:open': {
|
|
58
|
+
type: PropType<(open: boolean) => void>;
|
|
59
|
+
default: (open: boolean) => void;
|
|
60
|
+
};
|
|
61
|
+
prefixCls: StringConstructor;
|
|
62
|
+
description: VueTypeValidableDef<any>;
|
|
63
|
+
type: {
|
|
64
|
+
type: PropType<FloatButtonType>;
|
|
65
|
+
default: FloatButtonType;
|
|
66
|
+
};
|
|
67
|
+
shape: {
|
|
68
|
+
type: PropType<FloatButtonShape>;
|
|
69
|
+
default: FloatButtonShape;
|
|
70
|
+
};
|
|
71
|
+
tooltip: VueTypeValidableDef<any>;
|
|
72
|
+
href: StringConstructor;
|
|
73
|
+
target: StringConstructor;
|
|
74
|
+
badge: {
|
|
75
|
+
type: PropType<FloatButtonBadgeProps>;
|
|
76
|
+
default: FloatButtonBadgeProps;
|
|
77
|
+
};
|
|
78
|
+
onClick: {
|
|
79
|
+
type: PropType<MouseEventHandler>;
|
|
80
|
+
default: MouseEventHandler;
|
|
81
|
+
};
|
|
82
|
+
}>> & Readonly<{}>, {
|
|
83
|
+
open: boolean;
|
|
84
|
+
type: FloatButtonType;
|
|
85
|
+
trigger: FloatButtonGroupTrigger;
|
|
86
|
+
onClick: MouseEventHandler;
|
|
87
|
+
shape: FloatButtonShape;
|
|
88
|
+
onOpenChange: (open: boolean) => void;
|
|
89
|
+
'onUpdate:open': (open: boolean) => void;
|
|
90
|
+
badge: FloatButtonBadgeProps;
|
|
91
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
92
|
+
export default FloatButtonGroup;
|