@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,358 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, CSSProperties, ShallowRef, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { VueTypeDef, VueTypeValidableDef } from 'vue-types';
|
|
3
|
+
import { AlignType } from './interface';
|
|
4
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
5
|
+
action: VueTypeDef<string | string[]> & {
|
|
6
|
+
default: string | (() => string[]);
|
|
7
|
+
};
|
|
8
|
+
showAction: VueTypeValidableDef<any> & {
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
11
|
+
hideAction: VueTypeValidableDef<any> & {
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
getPopupClassNameFromAlign: VueTypeValidableDef<any> & {
|
|
15
|
+
default: any;
|
|
16
|
+
};
|
|
17
|
+
onPopupVisibleChange: PropType<(open: boolean) => void>;
|
|
18
|
+
afterPopupVisibleChange: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
19
|
+
default: (...args: any[]) => any;
|
|
20
|
+
} & {
|
|
21
|
+
default: (...args: any[]) => any;
|
|
22
|
+
};
|
|
23
|
+
popup: VueTypeValidableDef<any>;
|
|
24
|
+
arrow: VueTypeValidableDef<boolean> & {
|
|
25
|
+
default: boolean;
|
|
26
|
+
} & {
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
popupStyle: {
|
|
30
|
+
type: PropType<CSSProperties>;
|
|
31
|
+
default: CSSProperties;
|
|
32
|
+
};
|
|
33
|
+
prefixCls: VueTypeValidableDef<string> & {
|
|
34
|
+
default: string;
|
|
35
|
+
} & {
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
popupClassName: VueTypeValidableDef<string> & {
|
|
39
|
+
default: string;
|
|
40
|
+
} & {
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
popupPlacement: StringConstructor;
|
|
44
|
+
builtinPlacements: VueTypeValidableDef<{
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}> & {
|
|
47
|
+
default: () => {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
popupTransitionName: StringConstructor;
|
|
52
|
+
popupAnimation: VueTypeValidableDef<any>;
|
|
53
|
+
mouseEnterDelay: VueTypeValidableDef<number> & {
|
|
54
|
+
default: number;
|
|
55
|
+
} & {
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
mouseLeaveDelay: VueTypeValidableDef<number> & {
|
|
59
|
+
default: number;
|
|
60
|
+
} & {
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
zIndex: NumberConstructor;
|
|
64
|
+
focusDelay: VueTypeValidableDef<number> & {
|
|
65
|
+
default: number;
|
|
66
|
+
} & {
|
|
67
|
+
default: number;
|
|
68
|
+
};
|
|
69
|
+
blurDelay: VueTypeValidableDef<number> & {
|
|
70
|
+
default: number;
|
|
71
|
+
} & {
|
|
72
|
+
default: number;
|
|
73
|
+
};
|
|
74
|
+
getPopupContainer: FunctionConstructor;
|
|
75
|
+
getDocument: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
76
|
+
default: (...args: any[]) => any;
|
|
77
|
+
} & {
|
|
78
|
+
default: (...args: any[]) => any;
|
|
79
|
+
};
|
|
80
|
+
forceRender: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: undefined;
|
|
83
|
+
};
|
|
84
|
+
destroyPopupOnHide: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
mask: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
maskClosable: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
popupAlign: VueTypeValidableDef<{
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
}> & {
|
|
99
|
+
default: () => {
|
|
100
|
+
[key: string]: any;
|
|
101
|
+
};
|
|
102
|
+
} & {
|
|
103
|
+
default: () => {
|
|
104
|
+
[key: string]: any;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
popupVisible: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: undefined;
|
|
110
|
+
};
|
|
111
|
+
defaultPopupVisible: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
maskTransitionName: StringConstructor;
|
|
116
|
+
maskAnimation: StringConstructor;
|
|
117
|
+
stretch: StringConstructor;
|
|
118
|
+
alignPoint: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: undefined;
|
|
121
|
+
};
|
|
122
|
+
autoDestroy: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
mobile: ObjectConstructor;
|
|
127
|
+
getTriggerDOMNode: PropType<(d?: HTMLElement) => HTMLElement>;
|
|
128
|
+
}>, {
|
|
129
|
+
vcTriggerContext: {
|
|
130
|
+
onPopupMouseDown?: (...args: any[]) => void;
|
|
131
|
+
onPopupMouseenter?: (...args: any[]) => void;
|
|
132
|
+
onPopupMouseleave?: (...args: any[]) => void;
|
|
133
|
+
};
|
|
134
|
+
popupRef: ShallowRef<null, null>;
|
|
135
|
+
setPopupRef: (val: any) => void;
|
|
136
|
+
triggerRef: ShallowRef<null, null>;
|
|
137
|
+
align: ComputedRef< AlignType | {
|
|
138
|
+
[key: string]: any;
|
|
139
|
+
}>;
|
|
140
|
+
focusTime: null;
|
|
141
|
+
clickOutsideHandler: null;
|
|
142
|
+
contextmenuOutsideHandler1: null;
|
|
143
|
+
contextmenuOutsideHandler2: null;
|
|
144
|
+
touchOutsideHandler: null;
|
|
145
|
+
attachId: null;
|
|
146
|
+
delayTimer: null;
|
|
147
|
+
hasPopupMouseDown: boolean;
|
|
148
|
+
preClickTime: null;
|
|
149
|
+
preTouchTime: null;
|
|
150
|
+
mouseDownTimeout: null;
|
|
151
|
+
childOriginEvents: {};
|
|
152
|
+
}, {
|
|
153
|
+
prevPopupVisible: boolean;
|
|
154
|
+
sPopupVisible: boolean;
|
|
155
|
+
point: null;
|
|
156
|
+
}, {}, {
|
|
157
|
+
updatedCal(): void;
|
|
158
|
+
onMouseenter(e: any): void;
|
|
159
|
+
onMouseMove(e: any): void;
|
|
160
|
+
onMouseleave(e: any): void;
|
|
161
|
+
onPopupMouseenter(): void;
|
|
162
|
+
onPopupMouseleave(e: any): void;
|
|
163
|
+
onFocus(e: any): void;
|
|
164
|
+
onMousedown(e: any): void;
|
|
165
|
+
onTouchstart(e: any): void;
|
|
166
|
+
onBlur(e: any): void;
|
|
167
|
+
onContextmenu(e: any): void;
|
|
168
|
+
onContextmenuClose(): void;
|
|
169
|
+
onClick(event: any): void;
|
|
170
|
+
onPopupMouseDown(...args: any[]): void;
|
|
171
|
+
onDocumentClick(event: any): void;
|
|
172
|
+
getPopupDomNode(): any;
|
|
173
|
+
getRootDomNode(): any;
|
|
174
|
+
handleGetPopupClassFromAlign(align: any): string;
|
|
175
|
+
getPopupAlign(): AlignType | {
|
|
176
|
+
[key: string]: any;
|
|
177
|
+
};
|
|
178
|
+
getComponent(): import("vue/jsx-runtime").JSX.Element;
|
|
179
|
+
attachParent(popupContainer: any): void;
|
|
180
|
+
getContainer(): any;
|
|
181
|
+
setPopupVisible(sPopupVisible: boolean, event?: any): void;
|
|
182
|
+
setPoint(point: any): void;
|
|
183
|
+
handlePortalUpdate(): void;
|
|
184
|
+
delaySetPopupVisible(visible: boolean, delayS: number, event?: any): void;
|
|
185
|
+
clearDelayTimer(): void;
|
|
186
|
+
clearOutsideHandler(): void;
|
|
187
|
+
createTwoChains(event: string): any;
|
|
188
|
+
isClickToShow(): any;
|
|
189
|
+
isContextMenuOnly(): boolean;
|
|
190
|
+
isContextmenuToShow(): any;
|
|
191
|
+
isClickToHide(): any;
|
|
192
|
+
isMouseEnterToShow(): any;
|
|
193
|
+
isMouseLeaveToHide(): any;
|
|
194
|
+
isFocusToShow(): any;
|
|
195
|
+
isBlurToHide(): any;
|
|
196
|
+
forcePopupAlign(): void;
|
|
197
|
+
fireEvents(type: string, e: Event): void;
|
|
198
|
+
close(): void;
|
|
199
|
+
}, {
|
|
200
|
+
methods: {
|
|
201
|
+
setState(state: {} | undefined, callback: () => any): void;
|
|
202
|
+
__emit(): void;
|
|
203
|
+
};
|
|
204
|
+
}, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
205
|
+
action: VueTypeDef<string | string[]> & {
|
|
206
|
+
default: string | (() => string[]);
|
|
207
|
+
};
|
|
208
|
+
showAction: VueTypeValidableDef<any> & {
|
|
209
|
+
default: any;
|
|
210
|
+
};
|
|
211
|
+
hideAction: VueTypeValidableDef<any> & {
|
|
212
|
+
default: any;
|
|
213
|
+
};
|
|
214
|
+
getPopupClassNameFromAlign: VueTypeValidableDef<any> & {
|
|
215
|
+
default: any;
|
|
216
|
+
};
|
|
217
|
+
onPopupVisibleChange: PropType<(open: boolean) => void>;
|
|
218
|
+
afterPopupVisibleChange: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
219
|
+
default: (...args: any[]) => any;
|
|
220
|
+
} & {
|
|
221
|
+
default: (...args: any[]) => any;
|
|
222
|
+
};
|
|
223
|
+
popup: VueTypeValidableDef<any>;
|
|
224
|
+
arrow: VueTypeValidableDef<boolean> & {
|
|
225
|
+
default: boolean;
|
|
226
|
+
} & {
|
|
227
|
+
default: boolean;
|
|
228
|
+
};
|
|
229
|
+
popupStyle: {
|
|
230
|
+
type: PropType<CSSProperties>;
|
|
231
|
+
default: CSSProperties;
|
|
232
|
+
};
|
|
233
|
+
prefixCls: VueTypeValidableDef<string> & {
|
|
234
|
+
default: string;
|
|
235
|
+
} & {
|
|
236
|
+
default: string;
|
|
237
|
+
};
|
|
238
|
+
popupClassName: VueTypeValidableDef<string> & {
|
|
239
|
+
default: string;
|
|
240
|
+
} & {
|
|
241
|
+
default: string;
|
|
242
|
+
};
|
|
243
|
+
popupPlacement: StringConstructor;
|
|
244
|
+
builtinPlacements: VueTypeValidableDef<{
|
|
245
|
+
[key: string]: any;
|
|
246
|
+
}> & {
|
|
247
|
+
default: () => {
|
|
248
|
+
[key: string]: any;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
popupTransitionName: StringConstructor;
|
|
252
|
+
popupAnimation: VueTypeValidableDef<any>;
|
|
253
|
+
mouseEnterDelay: VueTypeValidableDef<number> & {
|
|
254
|
+
default: number;
|
|
255
|
+
} & {
|
|
256
|
+
default: number;
|
|
257
|
+
};
|
|
258
|
+
mouseLeaveDelay: VueTypeValidableDef<number> & {
|
|
259
|
+
default: number;
|
|
260
|
+
} & {
|
|
261
|
+
default: number;
|
|
262
|
+
};
|
|
263
|
+
zIndex: NumberConstructor;
|
|
264
|
+
focusDelay: VueTypeValidableDef<number> & {
|
|
265
|
+
default: number;
|
|
266
|
+
} & {
|
|
267
|
+
default: number;
|
|
268
|
+
};
|
|
269
|
+
blurDelay: VueTypeValidableDef<number> & {
|
|
270
|
+
default: number;
|
|
271
|
+
} & {
|
|
272
|
+
default: number;
|
|
273
|
+
};
|
|
274
|
+
getPopupContainer: FunctionConstructor;
|
|
275
|
+
getDocument: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
276
|
+
default: (...args: any[]) => any;
|
|
277
|
+
} & {
|
|
278
|
+
default: (...args: any[]) => any;
|
|
279
|
+
};
|
|
280
|
+
forceRender: {
|
|
281
|
+
type: BooleanConstructor;
|
|
282
|
+
default: undefined;
|
|
283
|
+
};
|
|
284
|
+
destroyPopupOnHide: {
|
|
285
|
+
type: BooleanConstructor;
|
|
286
|
+
default: boolean;
|
|
287
|
+
};
|
|
288
|
+
mask: {
|
|
289
|
+
type: BooleanConstructor;
|
|
290
|
+
default: boolean;
|
|
291
|
+
};
|
|
292
|
+
maskClosable: {
|
|
293
|
+
type: BooleanConstructor;
|
|
294
|
+
default: boolean;
|
|
295
|
+
};
|
|
296
|
+
popupAlign: VueTypeValidableDef<{
|
|
297
|
+
[key: string]: any;
|
|
298
|
+
}> & {
|
|
299
|
+
default: () => {
|
|
300
|
+
[key: string]: any;
|
|
301
|
+
};
|
|
302
|
+
} & {
|
|
303
|
+
default: () => {
|
|
304
|
+
[key: string]: any;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
popupVisible: {
|
|
308
|
+
type: BooleanConstructor;
|
|
309
|
+
default: undefined;
|
|
310
|
+
};
|
|
311
|
+
defaultPopupVisible: {
|
|
312
|
+
type: BooleanConstructor;
|
|
313
|
+
default: boolean;
|
|
314
|
+
};
|
|
315
|
+
maskTransitionName: StringConstructor;
|
|
316
|
+
maskAnimation: StringConstructor;
|
|
317
|
+
stretch: StringConstructor;
|
|
318
|
+
alignPoint: {
|
|
319
|
+
type: BooleanConstructor;
|
|
320
|
+
default: undefined;
|
|
321
|
+
};
|
|
322
|
+
autoDestroy: {
|
|
323
|
+
type: BooleanConstructor;
|
|
324
|
+
default: boolean;
|
|
325
|
+
};
|
|
326
|
+
mobile: ObjectConstructor;
|
|
327
|
+
getTriggerDOMNode: PropType<(d?: HTMLElement) => HTMLElement>;
|
|
328
|
+
}>> & Readonly<{}>, {
|
|
329
|
+
mask: boolean;
|
|
330
|
+
prefixCls: string;
|
|
331
|
+
forceRender: boolean;
|
|
332
|
+
autoDestroy: boolean;
|
|
333
|
+
action: string | string[];
|
|
334
|
+
showAction: any;
|
|
335
|
+
hideAction: any;
|
|
336
|
+
getPopupClassNameFromAlign: any;
|
|
337
|
+
afterPopupVisibleChange: (...args: any[]) => any;
|
|
338
|
+
arrow: boolean;
|
|
339
|
+
popupStyle: CSSProperties;
|
|
340
|
+
popupClassName: string;
|
|
341
|
+
builtinPlacements: {
|
|
342
|
+
[key: string]: any;
|
|
343
|
+
};
|
|
344
|
+
mouseEnterDelay: number;
|
|
345
|
+
mouseLeaveDelay: number;
|
|
346
|
+
focusDelay: number;
|
|
347
|
+
blurDelay: number;
|
|
348
|
+
getDocument: (...args: any[]) => any;
|
|
349
|
+
destroyPopupOnHide: boolean;
|
|
350
|
+
maskClosable: boolean;
|
|
351
|
+
popupAlign: {
|
|
352
|
+
[key: string]: any;
|
|
353
|
+
};
|
|
354
|
+
popupVisible: boolean;
|
|
355
|
+
defaultPopupVisible: boolean;
|
|
356
|
+
alignPoint: boolean;
|
|
357
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
358
|
+
export default _default;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { CSSProperties, ExtractPropTypes, PropType, TransitionProps } from 'vue';
|
|
2
|
+
import { VueNode } from '../_util/type';
|
|
3
|
+
import { VueTypeDef, VueTypeValidableDef } from 'vue-types';
|
|
4
|
+
/** Two char of 't' 'b' 'c' 'l' 'r'. Example: 'lt' */
|
|
5
|
+
export type AlignPoint = string;
|
|
6
|
+
export type OffsetType = number | `${number}%`;
|
|
7
|
+
export interface AlignType {
|
|
8
|
+
/**
|
|
9
|
+
* move point of source node to align with point of target node.
|
|
10
|
+
* Such as ['tr','cc'], align top right point of source node with center point of target node.
|
|
11
|
+
* Point can be 't'(top), 'b'(bottom), 'c'(center), 'l'(left), 'r'(right) */
|
|
12
|
+
points?: (string | AlignPoint)[];
|
|
13
|
+
/**
|
|
14
|
+
* offset source node by offset[0] in x and offset[1] in y.
|
|
15
|
+
* If offset contains percentage string value, it is relative to sourceNode region.
|
|
16
|
+
*/
|
|
17
|
+
offset?: OffsetType[];
|
|
18
|
+
/**
|
|
19
|
+
* offset target node by offset[0] in x and offset[1] in y.
|
|
20
|
+
* If targetOffset contains percentage string value, it is relative to targetNode region.
|
|
21
|
+
*/
|
|
22
|
+
targetOffset?: OffsetType[];
|
|
23
|
+
/**
|
|
24
|
+
* If adjustX field is true, will adjust source node in x direction if source node is invisible.
|
|
25
|
+
* If adjustY field is true, will adjust source node in y direction if source node is invisible.
|
|
26
|
+
*/
|
|
27
|
+
overflow?: {
|
|
28
|
+
adjustX?: boolean | number;
|
|
29
|
+
adjustY?: boolean | number;
|
|
30
|
+
shiftX?: boolean | number;
|
|
31
|
+
shiftY?: boolean | number;
|
|
32
|
+
};
|
|
33
|
+
/** Auto adjust arrow position */
|
|
34
|
+
autoArrow?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Config visible region check of html node. Default `visible`:
|
|
37
|
+
* - `visible`:
|
|
38
|
+
* The visible region of user browser window.
|
|
39
|
+
* Use `clientHeight` for check.
|
|
40
|
+
* If `visible` region not satisfy, fallback to `scroll`.
|
|
41
|
+
* - `scroll`:
|
|
42
|
+
* The whole region of the html scroll area.
|
|
43
|
+
* Use `scrollHeight` for check.
|
|
44
|
+
* - `visibleFirst`:
|
|
45
|
+
* Similar to `visible`, but if `visible` region not satisfy, fallback to `scroll`.
|
|
46
|
+
*/
|
|
47
|
+
htmlRegion?: 'visible' | 'scroll' | 'visibleFirst';
|
|
48
|
+
/**
|
|
49
|
+
* Whether use css right instead of left to position
|
|
50
|
+
*/
|
|
51
|
+
useCssRight?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Whether use css bottom instead of top to position
|
|
54
|
+
*/
|
|
55
|
+
useCssBottom?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether use css transform instead of left/top/right/bottom to position if browser supports.
|
|
58
|
+
* Defaults to false.
|
|
59
|
+
*/
|
|
60
|
+
useCssTransform?: boolean;
|
|
61
|
+
ignoreShake?: boolean;
|
|
62
|
+
}
|
|
63
|
+
export type BuildInPlacements = Record<string, AlignType>;
|
|
64
|
+
export type StretchType = string;
|
|
65
|
+
export type ActionType = string;
|
|
66
|
+
export type AnimationType = string;
|
|
67
|
+
export type TransitionNameType = string;
|
|
68
|
+
export interface Point {
|
|
69
|
+
pageX: number;
|
|
70
|
+
pageY: number;
|
|
71
|
+
}
|
|
72
|
+
export interface CommonEventHandler {
|
|
73
|
+
remove: () => void;
|
|
74
|
+
}
|
|
75
|
+
export interface MobileConfig {
|
|
76
|
+
/** Set popup motion. You can ref `rc-motion` for more info. */
|
|
77
|
+
popupMotion?: TransitionProps;
|
|
78
|
+
popupClassName?: string;
|
|
79
|
+
popupStyle?: CSSProperties;
|
|
80
|
+
popupRender?: (originNode: VueNode) => VueNode;
|
|
81
|
+
}
|
|
82
|
+
export declare function noop(): void;
|
|
83
|
+
export declare const triggerProps: () => {
|
|
84
|
+
action: VueTypeDef<string | string[]> & {
|
|
85
|
+
default: string | (() => string[]);
|
|
86
|
+
};
|
|
87
|
+
showAction: VueTypeValidableDef<any> & {
|
|
88
|
+
default: any;
|
|
89
|
+
};
|
|
90
|
+
hideAction: VueTypeValidableDef<any> & {
|
|
91
|
+
default: any;
|
|
92
|
+
};
|
|
93
|
+
getPopupClassNameFromAlign: VueTypeValidableDef<any> & {
|
|
94
|
+
default: any;
|
|
95
|
+
};
|
|
96
|
+
onPopupVisibleChange: PropType<(open: boolean) => void>;
|
|
97
|
+
afterPopupVisibleChange: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
98
|
+
default: (...args: any[]) => any;
|
|
99
|
+
} & {
|
|
100
|
+
default: (...args: any[]) => any;
|
|
101
|
+
};
|
|
102
|
+
popup: VueTypeValidableDef<any>;
|
|
103
|
+
arrow: VueTypeValidableDef<boolean> & {
|
|
104
|
+
default: boolean;
|
|
105
|
+
} & {
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
popupStyle: {
|
|
109
|
+
type: PropType<CSSProperties>;
|
|
110
|
+
default: CSSProperties;
|
|
111
|
+
};
|
|
112
|
+
prefixCls: VueTypeValidableDef<string> & {
|
|
113
|
+
default: string;
|
|
114
|
+
} & {
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
popupClassName: VueTypeValidableDef<string> & {
|
|
118
|
+
default: string;
|
|
119
|
+
} & {
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
popupPlacement: StringConstructor;
|
|
123
|
+
builtinPlacements: VueTypeValidableDef<{
|
|
124
|
+
[key: string]: any;
|
|
125
|
+
}> & {
|
|
126
|
+
default: () => {
|
|
127
|
+
[key: string]: any;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
popupTransitionName: StringConstructor;
|
|
131
|
+
popupAnimation: VueTypeValidableDef<any>;
|
|
132
|
+
mouseEnterDelay: VueTypeValidableDef<number> & {
|
|
133
|
+
default: number;
|
|
134
|
+
} & {
|
|
135
|
+
default: number;
|
|
136
|
+
};
|
|
137
|
+
mouseLeaveDelay: VueTypeValidableDef<number> & {
|
|
138
|
+
default: number;
|
|
139
|
+
} & {
|
|
140
|
+
default: number;
|
|
141
|
+
};
|
|
142
|
+
zIndex: NumberConstructor;
|
|
143
|
+
focusDelay: VueTypeValidableDef<number> & {
|
|
144
|
+
default: number;
|
|
145
|
+
} & {
|
|
146
|
+
default: number;
|
|
147
|
+
};
|
|
148
|
+
blurDelay: VueTypeValidableDef<number> & {
|
|
149
|
+
default: number;
|
|
150
|
+
} & {
|
|
151
|
+
default: number;
|
|
152
|
+
};
|
|
153
|
+
getPopupContainer: FunctionConstructor;
|
|
154
|
+
getDocument: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
155
|
+
default: (...args: any[]) => any;
|
|
156
|
+
} & {
|
|
157
|
+
default: (...args: any[]) => any;
|
|
158
|
+
};
|
|
159
|
+
forceRender: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
default: undefined;
|
|
162
|
+
};
|
|
163
|
+
destroyPopupOnHide: {
|
|
164
|
+
type: BooleanConstructor;
|
|
165
|
+
default: boolean;
|
|
166
|
+
};
|
|
167
|
+
mask: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
default: boolean;
|
|
170
|
+
};
|
|
171
|
+
maskClosable: {
|
|
172
|
+
type: BooleanConstructor;
|
|
173
|
+
default: boolean;
|
|
174
|
+
};
|
|
175
|
+
popupAlign: VueTypeValidableDef<{
|
|
176
|
+
[key: string]: any;
|
|
177
|
+
}> & {
|
|
178
|
+
default: () => {
|
|
179
|
+
[key: string]: any;
|
|
180
|
+
};
|
|
181
|
+
} & {
|
|
182
|
+
default: () => {
|
|
183
|
+
[key: string]: any;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
popupVisible: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: undefined;
|
|
189
|
+
};
|
|
190
|
+
defaultPopupVisible: {
|
|
191
|
+
type: BooleanConstructor;
|
|
192
|
+
default: boolean;
|
|
193
|
+
};
|
|
194
|
+
maskTransitionName: StringConstructor;
|
|
195
|
+
maskAnimation: StringConstructor;
|
|
196
|
+
stretch: StringConstructor;
|
|
197
|
+
alignPoint: {
|
|
198
|
+
type: BooleanConstructor;
|
|
199
|
+
default: undefined;
|
|
200
|
+
};
|
|
201
|
+
autoDestroy: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
mobile: ObjectConstructor;
|
|
206
|
+
getTriggerDOMNode: PropType<(d?: HTMLElement) => HTMLElement>;
|
|
207
|
+
};
|
|
208
|
+
export type TriggerProps = Partial<ExtractPropTypes<ReturnType<typeof triggerProps>>>;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { CSSProperties, Component, PropType, DefineComponent, ExtractPropTypes, ShallowRef, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { Key } from '../_util/type';
|
|
3
|
+
import { VueTypeValidableDef } from 'vue-types';
|
|
4
|
+
export type ScrollAlign = 'top' | 'bottom' | 'auto';
|
|
5
|
+
export type ScrollConfig = {
|
|
6
|
+
index: number;
|
|
7
|
+
align?: ScrollAlign;
|
|
8
|
+
offset?: number;
|
|
9
|
+
} | {
|
|
10
|
+
key: Key;
|
|
11
|
+
align?: ScrollAlign;
|
|
12
|
+
offset?: number;
|
|
13
|
+
};
|
|
14
|
+
export type ScrollTo = (arg: number | ScrollConfig) => void;
|
|
15
|
+
export interface ListState {
|
|
16
|
+
scrollTop: number;
|
|
17
|
+
scrollMoving: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const List: DefineComponent<ExtractPropTypes<{
|
|
20
|
+
prefixCls: StringConstructor;
|
|
21
|
+
data: VueTypeValidableDef<unknown[]> & {
|
|
22
|
+
default: () => unknown[];
|
|
23
|
+
};
|
|
24
|
+
height: NumberConstructor;
|
|
25
|
+
itemHeight: NumberConstructor;
|
|
26
|
+
/** If not match virtual scroll condition, Set List still use height of container. */
|
|
27
|
+
fullHeight: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: undefined;
|
|
30
|
+
};
|
|
31
|
+
itemKey: {
|
|
32
|
+
type: PropType<Key | ((item: Record<string, any>) => Key)>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
component: {
|
|
36
|
+
type: PropType<string | Component>;
|
|
37
|
+
};
|
|
38
|
+
/** Set `false` will always use real scroll instead of virtual one */
|
|
39
|
+
virtual: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
43
|
+
children: FunctionConstructor;
|
|
44
|
+
onScroll: FunctionConstructor;
|
|
45
|
+
onMousedown: FunctionConstructor;
|
|
46
|
+
onMouseenter: FunctionConstructor;
|
|
47
|
+
onVisibleChange: PropType<(visibleList: any[], fullList: any[]) => void>;
|
|
48
|
+
}>, {
|
|
49
|
+
state: {
|
|
50
|
+
scrollTop: number;
|
|
51
|
+
scrollMoving: boolean;
|
|
52
|
+
};
|
|
53
|
+
mergedData: ShallowRef<never[], never[]>;
|
|
54
|
+
componentStyle: ComputedRef<CSSProperties | null>;
|
|
55
|
+
onFallbackScroll: (e: UIEvent) => void;
|
|
56
|
+
onScrollBar: (newScrollTop: number) => void;
|
|
57
|
+
componentRef: ShallowRef<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
58
|
+
useVirtual: ComputedRef<boolean>;
|
|
59
|
+
calRes: {
|
|
60
|
+
scrollHeight?: number | undefined;
|
|
61
|
+
start?: number | undefined;
|
|
62
|
+
end?: number | undefined;
|
|
63
|
+
offset?: number | undefined;
|
|
64
|
+
};
|
|
65
|
+
collectHeight: () => void;
|
|
66
|
+
setInstance: (item: Record<string, any>, instance: HTMLElement) => void;
|
|
67
|
+
sharedConfig: {
|
|
68
|
+
getKey: (item: Record<string, any>) => undefined;
|
|
69
|
+
};
|
|
70
|
+
scrollBarRef: ShallowRef<any, any>;
|
|
71
|
+
fillerInnerRef: ShallowRef<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
72
|
+
delayHideScrollBar: () => void;
|
|
73
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
74
|
+
prefixCls: StringConstructor;
|
|
75
|
+
data: VueTypeValidableDef<unknown[]> & {
|
|
76
|
+
default: () => unknown[];
|
|
77
|
+
};
|
|
78
|
+
height: NumberConstructor;
|
|
79
|
+
itemHeight: NumberConstructor;
|
|
80
|
+
/** If not match virtual scroll condition, Set List still use height of container. */
|
|
81
|
+
fullHeight: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: undefined;
|
|
84
|
+
};
|
|
85
|
+
itemKey: {
|
|
86
|
+
type: PropType<Key | ((item: Record<string, any>) => Key)>;
|
|
87
|
+
required: true;
|
|
88
|
+
};
|
|
89
|
+
component: {
|
|
90
|
+
type: PropType<string | Component>;
|
|
91
|
+
};
|
|
92
|
+
/** Set `false` will always use real scroll instead of virtual one */
|
|
93
|
+
virtual: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: undefined;
|
|
96
|
+
};
|
|
97
|
+
children: FunctionConstructor;
|
|
98
|
+
onScroll: FunctionConstructor;
|
|
99
|
+
onMousedown: FunctionConstructor;
|
|
100
|
+
onMouseenter: FunctionConstructor;
|
|
101
|
+
onVisibleChange: PropType<(visibleList: any[], fullList: any[]) => void>;
|
|
102
|
+
}>> & Readonly<{}>, {
|
|
103
|
+
data: unknown[];
|
|
104
|
+
virtual: boolean;
|
|
105
|
+
fullHeight: boolean;
|
|
106
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
107
|
+
export default List;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antsoo-lib/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -27,7 +27,10 @@
|
|
|
27
27
|
"src"
|
|
28
28
|
],
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"vue": "^3.5.0"
|
|
30
|
+
"vue": "^3.5.0",
|
|
31
|
+
"lodash-es": "^4.17.15",
|
|
32
|
+
"dayjs": "^1.11.15",
|
|
33
|
+
"@antsoo-lib/utils": "0.1.1"
|
|
31
34
|
},
|
|
32
35
|
"dependencies": {
|
|
33
36
|
"@ant-design/colors": "^7.2.1",
|
|
@@ -41,19 +44,16 @@
|
|
|
41
44
|
"async-validator": "^4.2.5",
|
|
42
45
|
"classnames": "^2.5.1",
|
|
43
46
|
"csstype": "^3.1.1",
|
|
44
|
-
"dayjs": "^1.11.15",
|
|
45
47
|
"dom-align": "^1.12.4",
|
|
46
48
|
"dom-scroll-into-view": "^2.0.0",
|
|
47
49
|
"lodash": "^4.17.21",
|
|
48
|
-
"lodash-es": "^4.17.15",
|
|
49
50
|
"resize-observer-polyfill": "^1.5.1",
|
|
50
51
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
51
52
|
"shallow-equal": "^1.0.0",
|
|
52
53
|
"stylis": "^4.3.6",
|
|
53
54
|
"throttle-debounce": "^5.0.2",
|
|
54
|
-
"vue-types": "^
|
|
55
|
-
"warning": "^4.0.0"
|
|
56
|
-
"@antsoo-lib/utils": "0.1.0"
|
|
55
|
+
"vue-types": "^3.0.0",
|
|
56
|
+
"warning": "^4.0.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@testing-library/jest-dom": "^6.9.1",
|