@fox-js/foxui-pad 3.0.0 → 4.0.1-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/dist/index.cjs.js +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +9322 -0
- package/dist/index.umd.js +5 -0
- package/dist/locale/index.cjs.js +3 -0
- package/dist/locale/index.d.ts +398 -0
- package/dist/locale/index.esm.js +407 -0
- package/dist/style.css +1 -0
- package/dist/style.esm.js +7 -0
- package/dist/types/index.d.ts +1529 -0
- package/package.json +43 -75
- package/README.md +0 -73
- package/dist/index.js +0 -2
- package/dist/index.js.LICENSE.txt +0 -3
- package/dist/static/font/2a312d2206af9eefb8dc.ttf +0 -0
- package/dist/static/font/4fd20882d9cbe2fdc5b8.ttf +0 -0
- package/dist/static/font/ae35aa9db555b3ae3a3f.eot +0 -0
- package/dist/static/font/c24f1758a02e70b97156.ttf +0 -0
- package/dist/static/images/01d45f13261de4613f85.png +0 -0
- package/dist/static/images/a5ab33ceb93164621a39.jpg +0 -0
- package/dist/static/images/cdce1942bcfc4eb0a3c3.svg +0 -456
- package/dist/static/images/da9a0fcaeaf512172340.jpg +0 -0
- package/dist/static/images/fc9f389cb35094b3acc4.png +0 -0
|
@@ -0,0 +1,1529 @@
|
|
|
1
|
+
import type { AllowedComponentProps } from 'vue';
|
|
2
|
+
import { App } from 'vue';
|
|
3
|
+
import { clone } from '@fox-js/fox';
|
|
4
|
+
import { compareTo } from '@fox-js/big-decimal';
|
|
5
|
+
import type { ComponentCustomProps } from 'vue';
|
|
6
|
+
import { ComponentInternalInstance } from 'vue';
|
|
7
|
+
import type { ComponentOptionsMixin } from 'vue';
|
|
8
|
+
import { ComponentPublicInstance } from 'vue';
|
|
9
|
+
import type { ComputedOptions } from 'vue';
|
|
10
|
+
import type { DefineComponent } from 'vue';
|
|
11
|
+
import { divide } from '@fox-js/big-decimal';
|
|
12
|
+
import { ExecuteValidator } from '@fox-js/validator';
|
|
13
|
+
import { extend } from '@fox-js/fox';
|
|
14
|
+
import { ElAffix as FoxAffix } from 'element-plus';
|
|
15
|
+
import { ElAlert as FoxAlert } from 'element-plus';
|
|
16
|
+
import { ElAside as FoxAside } from 'element-plus';
|
|
17
|
+
import { ElAutocomplete as FoxAutocomplete } from 'element-plus';
|
|
18
|
+
import { ElAutoResizer as FoxAutoResizer } from 'element-plus';
|
|
19
|
+
import { ElAvatar as FoxAvatar } from 'element-plus';
|
|
20
|
+
import { ElBacktop as FoxBacktop } from 'element-plus';
|
|
21
|
+
import { ElBadge as FoxBadge } from 'element-plus';
|
|
22
|
+
import { ElBreadcrumb as FoxBreadcrumb } from 'element-plus';
|
|
23
|
+
import { ElBreadcrumbItem as FoxBreadcrumbItem } from 'element-plus';
|
|
24
|
+
import { ElButton as FoxButton } from 'element-plus';
|
|
25
|
+
import { ElButtonGroup as FoxButtonGroup } from 'element-plus';
|
|
26
|
+
import { ElCalendar as FoxCalendar } from 'element-plus';
|
|
27
|
+
import { ElCard as FoxCard } from 'element-plus';
|
|
28
|
+
import { ElCarousel as FoxCarousel } from 'element-plus';
|
|
29
|
+
import { ElCarouselItem as FoxCarouselItem } from 'element-plus';
|
|
30
|
+
import { ElCascader as FoxCascader } from 'element-plus';
|
|
31
|
+
import { ElCascaderPanel as FoxCascaderPanel } from 'element-plus';
|
|
32
|
+
import { ElCheckbox as FoxCheckbox } from 'element-plus';
|
|
33
|
+
import { ElCheckboxButton as FoxCheckboxButton } from 'element-plus';
|
|
34
|
+
import { ElCheckboxGroup as FoxCheckboxGroup } from 'element-plus';
|
|
35
|
+
import { ElCheckTag as FoxCheckTag } from 'element-plus';
|
|
36
|
+
import { ElCol as FoxCol } from 'element-plus';
|
|
37
|
+
import { ElCollapse as FoxCollapse } from 'element-plus';
|
|
38
|
+
import { ElCollapseItem as FoxCollapseItem } from 'element-plus';
|
|
39
|
+
import { ElCollapseTransition as FoxCollapseTransition } from 'element-plus';
|
|
40
|
+
import { ElColorPicker as FoxColorPicker } from 'element-plus';
|
|
41
|
+
import { ElConfigProvider as FoxConfigProvider } from 'element-plus';
|
|
42
|
+
import { ElContainer as FoxContainer } from 'element-plus';
|
|
43
|
+
import { ElDatePicker as FoxDatePicker } from 'element-plus';
|
|
44
|
+
import { ElDescriptions as FoxDescriptions } from 'element-plus';
|
|
45
|
+
import { ElDescriptionsItem as FoxDescriptionsItem } from 'element-plus';
|
|
46
|
+
import { ElDialog as FoxDialog } from 'element-plus';
|
|
47
|
+
import { ElDivider as FoxDivider } from 'element-plus';
|
|
48
|
+
import { ElDrawer as FoxDrawer } from 'element-plus';
|
|
49
|
+
import { ElDropdown as FoxDropdown } from 'element-plus';
|
|
50
|
+
import { ElDropdownItem as FoxDropdownItem } from 'element-plus';
|
|
51
|
+
import { ElDropdownMenu as FoxDropdownMenu } from 'element-plus';
|
|
52
|
+
import { ElEmpty as FoxEmpty } from 'element-plus';
|
|
53
|
+
import { ElFooter as FoxFooter } from 'element-plus';
|
|
54
|
+
import { ElForm as FoxForm } from 'element-plus';
|
|
55
|
+
import { ElFormItem as FoxFormItem } from 'element-plus';
|
|
56
|
+
import { ElHeader as FoxHeader } from 'element-plus';
|
|
57
|
+
import { ElIcon as FoxIcon } from 'element-plus';
|
|
58
|
+
import { ElImage as FoxImage } from 'element-plus';
|
|
59
|
+
import { ElImageViewer as FoxImageViewer } from 'element-plus';
|
|
60
|
+
import { ElInput as FoxInput } from 'element-plus';
|
|
61
|
+
import { ElInputNumber as FoxInputNumber } from 'element-plus';
|
|
62
|
+
import { ElLink as FoxLink } from 'element-plus';
|
|
63
|
+
import { ElMain as FoxMain } from 'element-plus';
|
|
64
|
+
import { ElMenu as FoxMenu } from 'element-plus';
|
|
65
|
+
import { ElMenuItem as FoxMenuItem } from 'element-plus';
|
|
66
|
+
import { ElMenuItemGroup as FoxMenuItemGroup } from 'element-plus';
|
|
67
|
+
import { ElOption as FoxOption } from 'element-plus';
|
|
68
|
+
import { ElOptionGroup as FoxOptionGroup } from 'element-plus';
|
|
69
|
+
import { ElPageHeader as FoxPageHeader } from 'element-plus';
|
|
70
|
+
import { ElPagination as FoxPagination } from 'element-plus';
|
|
71
|
+
import { ElPopconfirm as FoxPopconfirm } from 'element-plus';
|
|
72
|
+
import { ElPopover as FoxPopover } from 'element-plus';
|
|
73
|
+
import { ElPopper as FoxPopper } from 'element-plus';
|
|
74
|
+
import { ElProgress as FoxProgress } from 'element-plus';
|
|
75
|
+
import { ElRadio as FoxRadio } from 'element-plus';
|
|
76
|
+
import { ElRadioButton as FoxRadioButton } from 'element-plus';
|
|
77
|
+
import { ElRadioGroup as FoxRadioGroup } from 'element-plus';
|
|
78
|
+
import { ElRate as FoxRate } from 'element-plus';
|
|
79
|
+
import { ElResult as FoxResult } from 'element-plus';
|
|
80
|
+
import { ElRow as FoxRow } from 'element-plus';
|
|
81
|
+
import { ElScrollbar as FoxScrollbar } from 'element-plus';
|
|
82
|
+
import { ElSelect as FoxSelect } from 'element-plus';
|
|
83
|
+
import { ElSelectV2 as FoxSelectV2 } from 'element-plus';
|
|
84
|
+
import { ElSkeleton as FoxSkeleton } from 'element-plus';
|
|
85
|
+
import { ElSkeletonItem as FoxSkeletonItem } from 'element-plus';
|
|
86
|
+
import { ElSlider as FoxSlider } from 'element-plus';
|
|
87
|
+
import { ElSpace as FoxSpace } from 'element-plus';
|
|
88
|
+
import { ElStep as FoxStep } from 'element-plus';
|
|
89
|
+
import { ElSteps as FoxSteps } from 'element-plus';
|
|
90
|
+
import { ElSubMenu as FoxSubMenu } from 'element-plus';
|
|
91
|
+
import { ElSwitch as FoxSwitch } from 'element-plus';
|
|
92
|
+
import { ElTable as FoxTable } from 'element-plus';
|
|
93
|
+
import { ElTableColumn as FoxTableColumn } from 'element-plus';
|
|
94
|
+
import { ElTableV2 as FoxTableV2 } from 'element-plus';
|
|
95
|
+
import { ElTabPane as FoxTabPane } from 'element-plus';
|
|
96
|
+
import { ElTabs as FoxTabs } from 'element-plus';
|
|
97
|
+
import { ElTag as FoxTag } from 'element-plus';
|
|
98
|
+
import { ElTimeline as FoxTimeline } from 'element-plus';
|
|
99
|
+
import { ElTimelineItem as FoxTimelineItem } from 'element-plus';
|
|
100
|
+
import { ElTimePicker as FoxTimePicker } from 'element-plus';
|
|
101
|
+
import { ElTimeSelect as FoxTimeSelect } from 'element-plus';
|
|
102
|
+
import { ElTooltip as FoxTooltip } from 'element-plus';
|
|
103
|
+
import { ElTransfer as FoxTransfer } from 'element-plus';
|
|
104
|
+
import { ElTree as FoxTree } from 'element-plus';
|
|
105
|
+
import { ElTreeSelect as FoxTreeSelect } from 'element-plus';
|
|
106
|
+
import { ElTreeV2 as FoxTreeV2 } from 'element-plus';
|
|
107
|
+
import { ElUpload as FoxUpload } from 'element-plus';
|
|
108
|
+
import { isArray } from '@fox-js/fox';
|
|
109
|
+
import { isDate } from '@fox-js/fox';
|
|
110
|
+
import { isEqual } from '@fox-js/fox';
|
|
111
|
+
import { isESModule } from '@fox-js/fox';
|
|
112
|
+
import { isFunction } from '@fox-js/fox';
|
|
113
|
+
import { isMap } from '@fox-js/fox';
|
|
114
|
+
import { isObject } from '@fox-js/fox';
|
|
115
|
+
import { isPlainObject } from '@fox-js/fox';
|
|
116
|
+
import { isPromise } from '@fox-js/fox';
|
|
117
|
+
import { isSet } from '@fox-js/fox';
|
|
118
|
+
import { isString } from '@fox-js/fox';
|
|
119
|
+
import { isSymbol } from '@fox-js/fox';
|
|
120
|
+
import type { MethodOptions } from 'vue';
|
|
121
|
+
import { multiply } from '@fox-js/big-decimal';
|
|
122
|
+
import { negate } from '@fox-js/big-decimal';
|
|
123
|
+
import { numberFormat } from '@fox-js/big-decimal';
|
|
124
|
+
import { Ref } from 'vue';
|
|
125
|
+
import { Rule } from '@fox-js/validator';
|
|
126
|
+
import { toBoolean } from '@fox-js/fox';
|
|
127
|
+
import { toNumber } from '@fox-js/fox';
|
|
128
|
+
import { toTypeString } from '@fox-js/fox';
|
|
129
|
+
import { unNumberFormat } from '@fox-js/big-decimal';
|
|
130
|
+
import { UnwrapNestedRefs } from 'vue';
|
|
131
|
+
import { UnwrapRef } from 'vue';
|
|
132
|
+
import { ValidateMessages } from '@fox-js/validator';
|
|
133
|
+
import { ValidateResult } from '@fox-js/validator';
|
|
134
|
+
import type { VNodeProps } from 'vue';
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* 是否接受value过滤器
|
|
138
|
+
*/
|
|
139
|
+
export declare interface AcceptFilter {
|
|
140
|
+
(value: any): boolean;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export declare const AutocompleteItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* 广播类
|
|
147
|
+
*/
|
|
148
|
+
export declare class Broadcast {
|
|
149
|
+
/**
|
|
150
|
+
* parent
|
|
151
|
+
*/
|
|
152
|
+
private parent;
|
|
153
|
+
/**
|
|
154
|
+
* children
|
|
155
|
+
*/
|
|
156
|
+
private children;
|
|
157
|
+
/**
|
|
158
|
+
* 回调函数注册表
|
|
159
|
+
*/
|
|
160
|
+
private callbacks;
|
|
161
|
+
/**
|
|
162
|
+
* vue proxy
|
|
163
|
+
*/
|
|
164
|
+
private proxy;
|
|
165
|
+
/**
|
|
166
|
+
* 名称
|
|
167
|
+
*/
|
|
168
|
+
private name?;
|
|
169
|
+
/**
|
|
170
|
+
* 构造函数
|
|
171
|
+
* @param parent
|
|
172
|
+
* @param proxy
|
|
173
|
+
* @param name
|
|
174
|
+
*/
|
|
175
|
+
constructor(parent: Broadcast | null, proxy: FoxComponentPublicInstance, name?: string);
|
|
176
|
+
/**
|
|
177
|
+
* 加入孩子节点
|
|
178
|
+
* @param child
|
|
179
|
+
*/
|
|
180
|
+
private addChild;
|
|
181
|
+
/**
|
|
182
|
+
* 移除孩子节点
|
|
183
|
+
* @param child
|
|
184
|
+
*/
|
|
185
|
+
private removeChild;
|
|
186
|
+
/**
|
|
187
|
+
* 销毁
|
|
188
|
+
*/
|
|
189
|
+
destroy(): void;
|
|
190
|
+
/**
|
|
191
|
+
* 发生消息
|
|
192
|
+
* @param matched
|
|
193
|
+
* @param action
|
|
194
|
+
* @param args
|
|
195
|
+
*/
|
|
196
|
+
emit(matched: Matched, action: string, ...args: any[]): Results;
|
|
197
|
+
/**
|
|
198
|
+
* 发生消息(只发给孩子节点)
|
|
199
|
+
* @param matched
|
|
200
|
+
* @param action
|
|
201
|
+
* @param args
|
|
202
|
+
*/
|
|
203
|
+
emitToChildren(matched: Matched, action: string, ...args: any[]): Results;
|
|
204
|
+
/**
|
|
205
|
+
* 注册回调函数
|
|
206
|
+
* @param action
|
|
207
|
+
* @param callback
|
|
208
|
+
* @returns
|
|
209
|
+
*/
|
|
210
|
+
on(action: string, callback: BroadcastCallback): void;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* broadcast callback
|
|
215
|
+
*/
|
|
216
|
+
export declare interface BroadcastCallback {
|
|
217
|
+
(...args: any[]): Result;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export declare const BroadcastKey: unique symbol;
|
|
221
|
+
|
|
222
|
+
export declare const CalendarItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
223
|
+
|
|
224
|
+
export declare const CalendarPicker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
225
|
+
|
|
226
|
+
export declare const CascaderItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
227
|
+
|
|
228
|
+
export declare const CascaderPicker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
229
|
+
|
|
230
|
+
export declare const CheckboxItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* 清理非数字
|
|
234
|
+
*/
|
|
235
|
+
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
236
|
+
|
|
237
|
+
export { clone }
|
|
238
|
+
|
|
239
|
+
export { compareTo }
|
|
240
|
+
|
|
241
|
+
export declare const Content: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* 创建broadcast
|
|
245
|
+
*
|
|
246
|
+
* @param proxy
|
|
247
|
+
* @param parent
|
|
248
|
+
* @param name
|
|
249
|
+
* @param callbacks
|
|
250
|
+
* @returns
|
|
251
|
+
*/
|
|
252
|
+
export declare function createBroadcast(proxy: FoxComponentPublicInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* 创建校验schema
|
|
256
|
+
* @param proxy
|
|
257
|
+
* @param parent
|
|
258
|
+
* @param descriptor
|
|
259
|
+
* @returns
|
|
260
|
+
*/
|
|
261
|
+
export declare function createValidateSchema(proxy: FoxComponentPublicInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* data items key
|
|
265
|
+
*/
|
|
266
|
+
export declare const DataItemsKey: unique symbol;
|
|
267
|
+
|
|
268
|
+
export declare const DateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
269
|
+
|
|
270
|
+
export declare const DatePicker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* 防抖函数
|
|
274
|
+
* @param func 函数
|
|
275
|
+
* @param time 防止抖动毫秒数
|
|
276
|
+
* @returns
|
|
277
|
+
*/
|
|
278
|
+
export declare function debounce(func: GenericFunction, time: number): GenericFunction;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* 获取小数长度
|
|
282
|
+
* @param value
|
|
283
|
+
*/
|
|
284
|
+
export declare function decimalLength(value: string | number): number;
|
|
285
|
+
|
|
286
|
+
declare const _default: FoxUIVue;
|
|
287
|
+
export default _default;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* anyNode
|
|
291
|
+
* @param name
|
|
292
|
+
* @param callbacks
|
|
293
|
+
* @returns
|
|
294
|
+
*/
|
|
295
|
+
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* 定义domain data item
|
|
299
|
+
* @returns
|
|
300
|
+
*/
|
|
301
|
+
export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
|
|
302
|
+
broadcast: Broadcast;
|
|
303
|
+
validateSchema: ValidateSchema;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* 安装domain
|
|
308
|
+
* @param name 名称
|
|
309
|
+
* @param props 属性
|
|
310
|
+
* @param ignores 忽略的属性
|
|
311
|
+
* @param exposes 暴露的方法
|
|
312
|
+
* @returns
|
|
313
|
+
*/
|
|
314
|
+
export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* 定义domain item
|
|
318
|
+
* @returns
|
|
319
|
+
*/
|
|
320
|
+
export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* 创建page state
|
|
324
|
+
*
|
|
325
|
+
* @param domain
|
|
326
|
+
* @param overrideProps
|
|
327
|
+
*/
|
|
328
|
+
export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* 删除公共校验器
|
|
332
|
+
* @param type
|
|
333
|
+
*/
|
|
334
|
+
export declare function deleteGlobalValidator(type: string): void;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* 组件描述
|
|
338
|
+
*/
|
|
339
|
+
export declare interface Descriptor {
|
|
340
|
+
componentName: string;
|
|
341
|
+
fieldName?: string;
|
|
342
|
+
valueName?: string;
|
|
343
|
+
valueType?: ValueType;
|
|
344
|
+
validate?: boolean;
|
|
345
|
+
pureDataValidate?: boolean;
|
|
346
|
+
validateHandler?: ValidateHandler;
|
|
347
|
+
validateCheckEvents?: string[];
|
|
348
|
+
validateResetEvents?: string[];
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export declare const DialogItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
352
|
+
|
|
353
|
+
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* 禁用属性
|
|
357
|
+
* @param source
|
|
358
|
+
*/
|
|
359
|
+
export declare function disabledProperty(source: Ref): Ref;
|
|
360
|
+
|
|
361
|
+
export { divide }
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Domain
|
|
365
|
+
*/
|
|
366
|
+
export declare class Domain {
|
|
367
|
+
/**
|
|
368
|
+
* 父亲domain
|
|
369
|
+
*/
|
|
370
|
+
private _parent;
|
|
371
|
+
get parent(): Domain | null;
|
|
372
|
+
set parent(val: Domain | null);
|
|
373
|
+
/**
|
|
374
|
+
* 名称
|
|
375
|
+
*/
|
|
376
|
+
private _name;
|
|
377
|
+
get name(): string | null;
|
|
378
|
+
/**
|
|
379
|
+
* 广播器
|
|
380
|
+
*/
|
|
381
|
+
private _broadcast;
|
|
382
|
+
get broadcast(): Broadcast | null;
|
|
383
|
+
set broadcast(val: Broadcast | null);
|
|
384
|
+
/**
|
|
385
|
+
* 校验器
|
|
386
|
+
*/
|
|
387
|
+
private _validateSchema;
|
|
388
|
+
get validateSchema(): ValidateSchema | null;
|
|
389
|
+
set validateSchema(val: ValidateSchema | null);
|
|
390
|
+
/**
|
|
391
|
+
* 属性集合
|
|
392
|
+
*/
|
|
393
|
+
private _props;
|
|
394
|
+
/**
|
|
395
|
+
* 构造函数
|
|
396
|
+
* @param name
|
|
397
|
+
*/
|
|
398
|
+
constructor(name?: string | null);
|
|
399
|
+
/**
|
|
400
|
+
* 销毁
|
|
401
|
+
*/
|
|
402
|
+
destroy(): void;
|
|
403
|
+
/**
|
|
404
|
+
* 合并属性
|
|
405
|
+
* @param props
|
|
406
|
+
*/
|
|
407
|
+
merge(props: Record<string | number, any>, ignores?: any[]): void;
|
|
408
|
+
/**
|
|
409
|
+
* 判断是否有属性
|
|
410
|
+
*/
|
|
411
|
+
has(key: string | number): boolean;
|
|
412
|
+
/**
|
|
413
|
+
* 删除属性
|
|
414
|
+
* @param key
|
|
415
|
+
*/
|
|
416
|
+
delete(key: string | number): void;
|
|
417
|
+
/**
|
|
418
|
+
* 设置属性
|
|
419
|
+
* @param key
|
|
420
|
+
* @param value
|
|
421
|
+
*/
|
|
422
|
+
set(key: string | number, value: any): void;
|
|
423
|
+
/**
|
|
424
|
+
* 获取属性
|
|
425
|
+
*
|
|
426
|
+
* @param key
|
|
427
|
+
* @param defaultValue
|
|
428
|
+
*/
|
|
429
|
+
get(key: string | number, defaultValue?: any): any;
|
|
430
|
+
/**
|
|
431
|
+
* 获取属性
|
|
432
|
+
*
|
|
433
|
+
* @param key
|
|
434
|
+
* @param defaultValue
|
|
435
|
+
*/
|
|
436
|
+
getForParent(key: string | number, defaultValue?: any): any;
|
|
437
|
+
/**
|
|
438
|
+
* 获取self属性
|
|
439
|
+
* @param key
|
|
440
|
+
* @returns
|
|
441
|
+
*/
|
|
442
|
+
getForSelf(key: string | number): any;
|
|
443
|
+
/**
|
|
444
|
+
* 从继承关系中获取属性集合
|
|
445
|
+
* @param key
|
|
446
|
+
*/
|
|
447
|
+
getAll(key: string | number): any[];
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* domain item
|
|
452
|
+
*/
|
|
453
|
+
export declare interface DomainItem {
|
|
454
|
+
broadcast: Broadcast;
|
|
455
|
+
validateSchema: ValidateSchema;
|
|
456
|
+
emitEvent: {
|
|
457
|
+
(type: string, ...args: any[]): void;
|
|
458
|
+
};
|
|
459
|
+
onEvent: {
|
|
460
|
+
(type: string, listener: EventListener_2): void;
|
|
461
|
+
};
|
|
462
|
+
offEvent: {
|
|
463
|
+
(type: string, listener: EventListener_2): void;
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* domain key
|
|
469
|
+
*/
|
|
470
|
+
export declare const DomainKey: unique symbol;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* event listener
|
|
474
|
+
*/
|
|
475
|
+
declare interface EventListener_2 {
|
|
476
|
+
(...args: any[]): void;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* 根据排除模版,抽取属性
|
|
481
|
+
* @param src
|
|
482
|
+
* @param excludeTemplates
|
|
483
|
+
* @returns
|
|
484
|
+
*/
|
|
485
|
+
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
486
|
+
|
|
487
|
+
export { extend }
|
|
488
|
+
|
|
489
|
+
export declare const ExtIcon: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
490
|
+
|
|
491
|
+
export declare const ExtTabPane: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
492
|
+
|
|
493
|
+
export declare const ExtTabs: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
494
|
+
|
|
495
|
+
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
496
|
+
|
|
497
|
+
export declare const FooterBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
498
|
+
|
|
499
|
+
export { FoxAffix }
|
|
500
|
+
|
|
501
|
+
export { FoxAlert }
|
|
502
|
+
|
|
503
|
+
export { FoxAside }
|
|
504
|
+
|
|
505
|
+
export { FoxAutocomplete }
|
|
506
|
+
|
|
507
|
+
export { FoxAutoResizer }
|
|
508
|
+
|
|
509
|
+
export { FoxAvatar }
|
|
510
|
+
|
|
511
|
+
export { FoxBacktop }
|
|
512
|
+
|
|
513
|
+
export { FoxBadge }
|
|
514
|
+
|
|
515
|
+
export { FoxBreadcrumb }
|
|
516
|
+
|
|
517
|
+
export { FoxBreadcrumbItem }
|
|
518
|
+
|
|
519
|
+
export { FoxButton }
|
|
520
|
+
|
|
521
|
+
export { FoxButtonGroup }
|
|
522
|
+
|
|
523
|
+
export { FoxCalendar }
|
|
524
|
+
|
|
525
|
+
export { FoxCard }
|
|
526
|
+
|
|
527
|
+
export { FoxCarousel }
|
|
528
|
+
|
|
529
|
+
export { FoxCarouselItem }
|
|
530
|
+
|
|
531
|
+
export { FoxCascader }
|
|
532
|
+
|
|
533
|
+
export { FoxCascaderPanel }
|
|
534
|
+
|
|
535
|
+
export { FoxCheckbox }
|
|
536
|
+
|
|
537
|
+
export { FoxCheckboxButton }
|
|
538
|
+
|
|
539
|
+
export { FoxCheckboxGroup }
|
|
540
|
+
|
|
541
|
+
export { FoxCheckTag }
|
|
542
|
+
|
|
543
|
+
export { FoxCol }
|
|
544
|
+
|
|
545
|
+
export { FoxCollapse }
|
|
546
|
+
|
|
547
|
+
export { FoxCollapseItem }
|
|
548
|
+
|
|
549
|
+
export { FoxCollapseTransition }
|
|
550
|
+
|
|
551
|
+
export { FoxColorPicker }
|
|
552
|
+
|
|
553
|
+
declare type FoxComponentPublicInstance = any;
|
|
554
|
+
|
|
555
|
+
export { FoxConfigProvider }
|
|
556
|
+
|
|
557
|
+
export { FoxContainer }
|
|
558
|
+
|
|
559
|
+
export { FoxDatePicker }
|
|
560
|
+
|
|
561
|
+
export { FoxDescriptions }
|
|
562
|
+
|
|
563
|
+
export { FoxDescriptionsItem }
|
|
564
|
+
|
|
565
|
+
export { FoxDialog }
|
|
566
|
+
|
|
567
|
+
export { FoxDivider }
|
|
568
|
+
|
|
569
|
+
export { FoxDrawer }
|
|
570
|
+
|
|
571
|
+
export { FoxDropdown }
|
|
572
|
+
|
|
573
|
+
export { FoxDropdownItem }
|
|
574
|
+
|
|
575
|
+
export { FoxDropdownMenu }
|
|
576
|
+
|
|
577
|
+
export { FoxEmpty }
|
|
578
|
+
|
|
579
|
+
export { FoxFooter }
|
|
580
|
+
|
|
581
|
+
export { FoxForm }
|
|
582
|
+
|
|
583
|
+
export { FoxFormItem }
|
|
584
|
+
|
|
585
|
+
export { FoxHeader }
|
|
586
|
+
|
|
587
|
+
export { FoxIcon }
|
|
588
|
+
|
|
589
|
+
export { FoxImage }
|
|
590
|
+
|
|
591
|
+
export { FoxImageViewer }
|
|
592
|
+
|
|
593
|
+
export { FoxInput }
|
|
594
|
+
|
|
595
|
+
export { FoxInputNumber }
|
|
596
|
+
|
|
597
|
+
export { FoxLink }
|
|
598
|
+
|
|
599
|
+
export { FoxMain }
|
|
600
|
+
|
|
601
|
+
export { FoxMenu }
|
|
602
|
+
|
|
603
|
+
export { FoxMenuItem }
|
|
604
|
+
|
|
605
|
+
export { FoxMenuItemGroup }
|
|
606
|
+
|
|
607
|
+
export { FoxOption }
|
|
608
|
+
|
|
609
|
+
export { FoxOptionGroup }
|
|
610
|
+
|
|
611
|
+
export { FoxPageHeader }
|
|
612
|
+
|
|
613
|
+
export { FoxPagination }
|
|
614
|
+
|
|
615
|
+
export { FoxPopconfirm }
|
|
616
|
+
|
|
617
|
+
export { FoxPopover }
|
|
618
|
+
|
|
619
|
+
export { FoxPopper }
|
|
620
|
+
|
|
621
|
+
export { FoxProgress }
|
|
622
|
+
|
|
623
|
+
export { FoxRadio }
|
|
624
|
+
|
|
625
|
+
export { FoxRadioButton }
|
|
626
|
+
|
|
627
|
+
export { FoxRadioGroup }
|
|
628
|
+
|
|
629
|
+
export { FoxRate }
|
|
630
|
+
|
|
631
|
+
export { FoxResult }
|
|
632
|
+
|
|
633
|
+
export { FoxRow }
|
|
634
|
+
|
|
635
|
+
export { FoxScrollbar }
|
|
636
|
+
|
|
637
|
+
export { FoxSelect }
|
|
638
|
+
|
|
639
|
+
export { FoxSelectV2 }
|
|
640
|
+
|
|
641
|
+
export { FoxSkeleton }
|
|
642
|
+
|
|
643
|
+
export { FoxSkeletonItem }
|
|
644
|
+
|
|
645
|
+
export { FoxSlider }
|
|
646
|
+
|
|
647
|
+
export { FoxSpace }
|
|
648
|
+
|
|
649
|
+
export { FoxStep }
|
|
650
|
+
|
|
651
|
+
export { FoxSteps }
|
|
652
|
+
|
|
653
|
+
export { FoxSubMenu }
|
|
654
|
+
|
|
655
|
+
export { FoxSwitch }
|
|
656
|
+
|
|
657
|
+
export { FoxTable }
|
|
658
|
+
|
|
659
|
+
export { FoxTableColumn }
|
|
660
|
+
|
|
661
|
+
export { FoxTableV2 }
|
|
662
|
+
|
|
663
|
+
export { FoxTabPane }
|
|
664
|
+
|
|
665
|
+
export { FoxTabs }
|
|
666
|
+
|
|
667
|
+
export { FoxTag }
|
|
668
|
+
|
|
669
|
+
export { FoxTimeline }
|
|
670
|
+
|
|
671
|
+
export { FoxTimelineItem }
|
|
672
|
+
|
|
673
|
+
export { FoxTimePicker }
|
|
674
|
+
|
|
675
|
+
export { FoxTimeSelect }
|
|
676
|
+
|
|
677
|
+
export { FoxTooltip }
|
|
678
|
+
|
|
679
|
+
export { FoxTransfer }
|
|
680
|
+
|
|
681
|
+
export { FoxTree }
|
|
682
|
+
|
|
683
|
+
export { FoxTreeSelect }
|
|
684
|
+
|
|
685
|
+
export { FoxTreeV2 }
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Fox UI
|
|
689
|
+
*/
|
|
690
|
+
declare interface FoxUI {
|
|
691
|
+
/**
|
|
692
|
+
* 版本号
|
|
693
|
+
*/
|
|
694
|
+
version: string;
|
|
695
|
+
/**
|
|
696
|
+
* 安装
|
|
697
|
+
* @param app
|
|
698
|
+
* @param options
|
|
699
|
+
*/
|
|
700
|
+
install(app: App, options: FoxUIOptions): any;
|
|
701
|
+
/**
|
|
702
|
+
* 初始化page Layout
|
|
703
|
+
*
|
|
704
|
+
* @param options
|
|
705
|
+
* @param rootDomain
|
|
706
|
+
*/
|
|
707
|
+
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
708
|
+
/**
|
|
709
|
+
* 设置scope getter
|
|
710
|
+
* @param getter
|
|
711
|
+
*/
|
|
712
|
+
setScopeGetter(getter: ScopeGetter): void;
|
|
713
|
+
/**
|
|
714
|
+
* 设置API
|
|
715
|
+
* @param name
|
|
716
|
+
* @param func
|
|
717
|
+
* @param scope
|
|
718
|
+
*/
|
|
719
|
+
setAPI(name: string, func: any, scope?: string): void;
|
|
720
|
+
/**
|
|
721
|
+
* 获取API
|
|
722
|
+
* @param proxy
|
|
723
|
+
* @param name
|
|
724
|
+
* @param scope
|
|
725
|
+
*/
|
|
726
|
+
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
727
|
+
/**
|
|
728
|
+
* 批量增加api
|
|
729
|
+
* @param apis
|
|
730
|
+
* @param scope
|
|
731
|
+
*/
|
|
732
|
+
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
733
|
+
/**
|
|
734
|
+
* 清空scope apis
|
|
735
|
+
* @param scope
|
|
736
|
+
*/
|
|
737
|
+
clearScopeAPI(scope: string): void;
|
|
738
|
+
/**
|
|
739
|
+
* 获取root domain
|
|
740
|
+
*/
|
|
741
|
+
getRootDomain(): Domain;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* UI Options
|
|
746
|
+
*/
|
|
747
|
+
declare interface FoxUIOptions {
|
|
748
|
+
headerBarHeight?: number;
|
|
749
|
+
footerBarHeight?: number;
|
|
750
|
+
safeAreaInset?: SafeAreaInset;
|
|
751
|
+
pageLayout?: PageLayout;
|
|
752
|
+
headerPadding?: Rect;
|
|
753
|
+
contentPadding?: Rect;
|
|
754
|
+
groupLayout?: GroupLayout;
|
|
755
|
+
labelWidth?: number | string;
|
|
756
|
+
[propName: string]: any;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* Fox UI vue实例
|
|
761
|
+
*/
|
|
762
|
+
declare class FoxUIVue implements FoxUI {
|
|
763
|
+
/**
|
|
764
|
+
* packages
|
|
765
|
+
*/
|
|
766
|
+
private packages;
|
|
767
|
+
/**
|
|
768
|
+
* 安装器
|
|
769
|
+
*/
|
|
770
|
+
private installers;
|
|
771
|
+
/**
|
|
772
|
+
* version
|
|
773
|
+
*/
|
|
774
|
+
private _version;
|
|
775
|
+
get version(): string;
|
|
776
|
+
/**
|
|
777
|
+
* 构造函数
|
|
778
|
+
* @param packages
|
|
779
|
+
* @param version
|
|
780
|
+
*/
|
|
781
|
+
constructor(packages: any[], installers: Installer[], version: string);
|
|
782
|
+
/**
|
|
783
|
+
* 安装
|
|
784
|
+
* @param app
|
|
785
|
+
* @param options
|
|
786
|
+
*/
|
|
787
|
+
install(app: App, options?: FoxUIOptions): any;
|
|
788
|
+
/**
|
|
789
|
+
* 初始化page Layout
|
|
790
|
+
*
|
|
791
|
+
* @param options
|
|
792
|
+
* @param rootDomain
|
|
793
|
+
*/
|
|
794
|
+
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
795
|
+
/**
|
|
796
|
+
* 设置scope getter
|
|
797
|
+
* @param getter
|
|
798
|
+
*/
|
|
799
|
+
setScopeGetter(getter: ScopeGetter): void;
|
|
800
|
+
/**
|
|
801
|
+
* 设置API
|
|
802
|
+
* @param name
|
|
803
|
+
* @param api
|
|
804
|
+
* @param scope
|
|
805
|
+
*/
|
|
806
|
+
setAPI(name: string, api: any, scope?: string): void;
|
|
807
|
+
/**
|
|
808
|
+
* 获取API
|
|
809
|
+
* @param proxy
|
|
810
|
+
* @param name
|
|
811
|
+
* @param scope
|
|
812
|
+
*/
|
|
813
|
+
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
814
|
+
/**
|
|
815
|
+
* 批量增加api
|
|
816
|
+
* @param apis
|
|
817
|
+
* @param scope
|
|
818
|
+
*/
|
|
819
|
+
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
820
|
+
/**
|
|
821
|
+
* 清空scope apis
|
|
822
|
+
* @param scope
|
|
823
|
+
*/
|
|
824
|
+
clearScopeAPI(scope: string): void;
|
|
825
|
+
/**
|
|
826
|
+
* 获取root domain
|
|
827
|
+
*/
|
|
828
|
+
getRootDomain(): Domain;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
export { FoxUpload }
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* 通用函数接口
|
|
835
|
+
*/
|
|
836
|
+
export declare interface GenericFunction {
|
|
837
|
+
(...args: any[]): any;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* 获取公共校验检查事件
|
|
842
|
+
*/
|
|
843
|
+
export declare function getGlobalValidateCheckEvents(): string[];
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* 获取公共校验重置事件
|
|
847
|
+
*/
|
|
848
|
+
export declare function getGlobalValidateResetEvents(): string[];
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* 获取page content区域高度(pageHeight - headerHeight - footerHeight - padding )
|
|
852
|
+
* @param domain
|
|
853
|
+
* @param state
|
|
854
|
+
* @returns
|
|
855
|
+
*/
|
|
856
|
+
export declare function getPageContentAreaHeight(domain: Domain, state?: PageState): number;
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* 获取page content区域宽度(pageWidth - padding )
|
|
860
|
+
* @param domain
|
|
861
|
+
* @param state
|
|
862
|
+
* @returns
|
|
863
|
+
*/
|
|
864
|
+
export declare function getPageContentAreaWidth(domain: Domain, state?: PageState): number;
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* 获取page footer区域高度(footerHeight + SafeAreaBottom )
|
|
868
|
+
* @param domain
|
|
869
|
+
* @param state
|
|
870
|
+
* @returns
|
|
871
|
+
*/
|
|
872
|
+
export declare function getPageFooterAreaHeight(domain: Domain, state?: PageState): number;
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* 获取page header区域高度(headerHeight + SafeAreaTop )
|
|
876
|
+
* @param domain
|
|
877
|
+
* @param state
|
|
878
|
+
* @returns
|
|
879
|
+
*/
|
|
880
|
+
export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageState): number;
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* 获取root domain
|
|
884
|
+
* @returns
|
|
885
|
+
*/
|
|
886
|
+
export declare function getRootDomain(): Domain;
|
|
887
|
+
|
|
888
|
+
export declare const Group: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Layout信息接口
|
|
892
|
+
*/
|
|
893
|
+
declare interface GroupLayout {
|
|
894
|
+
type: string;
|
|
895
|
+
width: number;
|
|
896
|
+
column: number;
|
|
897
|
+
gutter: number;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export declare const HeaderBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
901
|
+
|
|
902
|
+
export declare const HintText: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* 根据包含模版,抽取属性
|
|
906
|
+
* @param src
|
|
907
|
+
* @param includeTemplates
|
|
908
|
+
* @returns
|
|
909
|
+
*/
|
|
910
|
+
export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* 获取对应元素的在数组中第一个匹配的索引
|
|
914
|
+
* @param x
|
|
915
|
+
* @param arr
|
|
916
|
+
* @returns
|
|
917
|
+
*/
|
|
918
|
+
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
919
|
+
|
|
920
|
+
export declare const Indicator: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
921
|
+
|
|
922
|
+
export declare const InputItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
923
|
+
|
|
924
|
+
export declare const InputNumberItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* 安装函数
|
|
928
|
+
*/
|
|
929
|
+
declare interface Installer {
|
|
930
|
+
(app: App, options?: any): void;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* 获取整数长度
|
|
935
|
+
* @param value
|
|
936
|
+
*/
|
|
937
|
+
export declare function integerLength(value: string | number): number;
|
|
938
|
+
|
|
939
|
+
export { isArray }
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* 是否为浏览器环境
|
|
943
|
+
*/
|
|
944
|
+
export declare const isBrowser: boolean;
|
|
945
|
+
|
|
946
|
+
export { isDate }
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* 是否空字符串
|
|
950
|
+
* @param v
|
|
951
|
+
* @returns
|
|
952
|
+
*/
|
|
953
|
+
export declare const isEmptyString: (v: unknown) => boolean;
|
|
954
|
+
|
|
955
|
+
export { isEqual }
|
|
956
|
+
|
|
957
|
+
export { isESModule }
|
|
958
|
+
|
|
959
|
+
export { isFunction }
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* 是否为内嵌页面
|
|
963
|
+
* 内嵌页面为内嵌在容器内,如dialog,不需要设置content的高度
|
|
964
|
+
* @param domain
|
|
965
|
+
* @param proxy
|
|
966
|
+
* @returns
|
|
967
|
+
*/
|
|
968
|
+
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
969
|
+
|
|
970
|
+
export { isMap }
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* 是否为数字字符串
|
|
974
|
+
* @param value
|
|
975
|
+
* @returns
|
|
976
|
+
*/
|
|
977
|
+
export declare function isNumberString(value: string): boolean;
|
|
978
|
+
|
|
979
|
+
export { isObject }
|
|
980
|
+
|
|
981
|
+
export { isPlainObject }
|
|
982
|
+
|
|
983
|
+
export { isPromise }
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* 判断是否为正则表达式
|
|
987
|
+
* @param v
|
|
988
|
+
* @returns
|
|
989
|
+
*/
|
|
990
|
+
export declare function isRegExp(v: unknown): v is RegExp;
|
|
991
|
+
|
|
992
|
+
export { isSet }
|
|
993
|
+
|
|
994
|
+
export { isString }
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* 是否子页面
|
|
998
|
+
* @param domain
|
|
999
|
+
*/
|
|
1000
|
+
export declare function isSubPage(domain: Domain): boolean;
|
|
1001
|
+
|
|
1002
|
+
export { isSymbol }
|
|
1003
|
+
|
|
1004
|
+
export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* 获取对应元素的在数组中最后一个匹配的索引
|
|
1008
|
+
* @param x
|
|
1009
|
+
* @param arr
|
|
1010
|
+
* @returns
|
|
1011
|
+
*/
|
|
1012
|
+
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
1013
|
+
|
|
1014
|
+
export declare const Mapping: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* 匹配条件
|
|
1018
|
+
*/
|
|
1019
|
+
export declare interface Matched {
|
|
1020
|
+
name?: string | RegExp | {
|
|
1021
|
+
(name: string): boolean;
|
|
1022
|
+
};
|
|
1023
|
+
maxLevel?: number;
|
|
1024
|
+
level?: number;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
export declare const MoneyItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1028
|
+
|
|
1029
|
+
export { multiply }
|
|
1030
|
+
|
|
1031
|
+
export { negate }
|
|
1032
|
+
|
|
1033
|
+
export { numberFormat }
|
|
1034
|
+
|
|
1035
|
+
export declare const Overlay: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* padding
|
|
1039
|
+
*/
|
|
1040
|
+
export declare interface Padding {
|
|
1041
|
+
left: number | null;
|
|
1042
|
+
top: number | null;
|
|
1043
|
+
right: number | null;
|
|
1044
|
+
bottom: number | null;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
export declare const Page: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* page layout
|
|
1051
|
+
*/
|
|
1052
|
+
export declare interface PageLayout {
|
|
1053
|
+
width: number | string;
|
|
1054
|
+
height?: number | string;
|
|
1055
|
+
headerHeight: number | string;
|
|
1056
|
+
footerHeight: number | string;
|
|
1057
|
+
headerPadding?: Padding;
|
|
1058
|
+
footerPadding?: Padding;
|
|
1059
|
+
contentPadding?: Padding;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
export declare interface PageState {
|
|
1063
|
+
width: number;
|
|
1064
|
+
height: number;
|
|
1065
|
+
headerHeight: number;
|
|
1066
|
+
headerPadding: Padding;
|
|
1067
|
+
footerHeight: number;
|
|
1068
|
+
footerPadding: Padding;
|
|
1069
|
+
contentHeight: number | string | null;
|
|
1070
|
+
contentPadding: Padding;
|
|
1071
|
+
safeAreaTop: number;
|
|
1072
|
+
safeAreaBottom: number;
|
|
1073
|
+
safeAreaLeft: number;
|
|
1074
|
+
safeAreaRight: number;
|
|
1075
|
+
headerMounted?: boolean;
|
|
1076
|
+
footerMounted?: boolean;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
export declare const Picker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* 坐标
|
|
1083
|
+
*/
|
|
1084
|
+
export declare interface Point {
|
|
1085
|
+
x: number;
|
|
1086
|
+
y: number;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
export declare const Popup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1090
|
+
|
|
1091
|
+
export declare const Price: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* 优先策略
|
|
1095
|
+
*/
|
|
1096
|
+
export declare enum PriorityPolicy {
|
|
1097
|
+
Parent = 0,
|
|
1098
|
+
Near = 1
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* 属性
|
|
1103
|
+
* @param source
|
|
1104
|
+
* @param name
|
|
1105
|
+
* @param policy
|
|
1106
|
+
* @param filter
|
|
1107
|
+
*/
|
|
1108
|
+
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
1109
|
+
|
|
1110
|
+
export declare const RadioItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* 动画
|
|
1114
|
+
*/
|
|
1115
|
+
export declare const raf: any;
|
|
1116
|
+
|
|
1117
|
+
export declare const RateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* 只读属性
|
|
1121
|
+
* @param source
|
|
1122
|
+
*/
|
|
1123
|
+
export declare function readonlyProperty(source: Ref): Ref;
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* Rect类型
|
|
1127
|
+
*/
|
|
1128
|
+
declare interface Rect {
|
|
1129
|
+
left: number;
|
|
1130
|
+
top: number;
|
|
1131
|
+
right: number;
|
|
1132
|
+
bottom: number;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
declare interface Rect_2 {
|
|
1136
|
+
top: number;
|
|
1137
|
+
left: number;
|
|
1138
|
+
right: number;
|
|
1139
|
+
bottom: number;
|
|
1140
|
+
width: number;
|
|
1141
|
+
height: number;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* 结果类型
|
|
1146
|
+
*/
|
|
1147
|
+
export declare type Result = Promise<any> | any;
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* 结果集合
|
|
1151
|
+
*/
|
|
1152
|
+
export declare type Results = Result[];
|
|
1153
|
+
|
|
1154
|
+
export declare const RowItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* 安全区域
|
|
1158
|
+
*/
|
|
1159
|
+
export declare interface SafeAreaInset {
|
|
1160
|
+
left: number | string;
|
|
1161
|
+
top: number | string;
|
|
1162
|
+
right: number | string;
|
|
1163
|
+
bottom: number | string;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* scope getter
|
|
1168
|
+
*/
|
|
1169
|
+
declare interface ScopeGetter {
|
|
1170
|
+
(proxy: ComponentPublicInstance): string | null;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
export declare const SelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* 设置公共校验检查事件
|
|
1177
|
+
* @param events
|
|
1178
|
+
*/
|
|
1179
|
+
export declare function setGlobalValidateCheckEvents(events: string[]): void;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* 设置公共的校验处理器
|
|
1183
|
+
* @param validateHandler
|
|
1184
|
+
*/
|
|
1185
|
+
export declare function setGlobalValidateHandler(validateHandler: ValidateHandler): void;
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* 设置公共校验提示信息
|
|
1189
|
+
*/
|
|
1190
|
+
export declare function setGlobalValidateMessages(messages: ValidateMessages): void;
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* 设置公共校验重置事件
|
|
1194
|
+
* @param events
|
|
1195
|
+
*/
|
|
1196
|
+
export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* 设置公共校验器
|
|
1200
|
+
* @param type
|
|
1201
|
+
* @param validator
|
|
1202
|
+
*/
|
|
1203
|
+
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
1204
|
+
|
|
1205
|
+
export declare const SlotItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1206
|
+
|
|
1207
|
+
export declare const SwitchItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1208
|
+
|
|
1209
|
+
export declare const TableItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1210
|
+
|
|
1211
|
+
export declare const TableMappingColumn: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* 节流函数
|
|
1215
|
+
* @param func 函数
|
|
1216
|
+
* @param time 延迟执行毫秒数
|
|
1217
|
+
* @returns
|
|
1218
|
+
*/
|
|
1219
|
+
export declare function throttle(func: GenericFunction, time: number): GenericFunction;
|
|
1220
|
+
|
|
1221
|
+
export declare const TimeItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1222
|
+
|
|
1223
|
+
export declare const TimeSelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1224
|
+
|
|
1225
|
+
export declare const Toast: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1226
|
+
|
|
1227
|
+
export { toBoolean }
|
|
1228
|
+
|
|
1229
|
+
export { toNumber }
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* 转换为number rect
|
|
1233
|
+
*/
|
|
1234
|
+
export declare function toPadding(rect: any): Padding;
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* 转换为px number数值
|
|
1238
|
+
* @param value
|
|
1239
|
+
* @param size
|
|
1240
|
+
*/
|
|
1241
|
+
export declare function toPx(value: number | string, size?: number): number;
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* to px desc
|
|
1245
|
+
* @param value
|
|
1246
|
+
* @parma size
|
|
1247
|
+
* @returns
|
|
1248
|
+
*/
|
|
1249
|
+
export declare const toPxDesc: (value: string | number, size?: number) => string;
|
|
1250
|
+
|
|
1251
|
+
export { toTypeString }
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* to model value
|
|
1255
|
+
* @param props
|
|
1256
|
+
* @param format
|
|
1257
|
+
* @returns
|
|
1258
|
+
*/
|
|
1259
|
+
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
1260
|
+
|
|
1261
|
+
export declare class UniqueID {
|
|
1262
|
+
/**
|
|
1263
|
+
* seed id
|
|
1264
|
+
*/
|
|
1265
|
+
private seed;
|
|
1266
|
+
/**
|
|
1267
|
+
* 种子
|
|
1268
|
+
* @param seed
|
|
1269
|
+
*/
|
|
1270
|
+
constructor(seed?: number);
|
|
1271
|
+
/**
|
|
1272
|
+
* 获取唯一ID
|
|
1273
|
+
* @returns
|
|
1274
|
+
*/
|
|
1275
|
+
get(): number;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
export { unNumberFormat }
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* 更新 page state
|
|
1282
|
+
* @param state
|
|
1283
|
+
* @param pageLayout
|
|
1284
|
+
* @param overrideProps
|
|
1285
|
+
*/
|
|
1286
|
+
export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* 使用broadcast
|
|
1290
|
+
* @param proxy
|
|
1291
|
+
* @returns
|
|
1292
|
+
*/
|
|
1293
|
+
export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* 获取当前domain
|
|
1297
|
+
* @returns
|
|
1298
|
+
*/
|
|
1299
|
+
export declare function useDomain(instance?: ComponentInternalInstance | null): Domain | null;
|
|
1300
|
+
|
|
1301
|
+
/**
|
|
1302
|
+
* use expose
|
|
1303
|
+
* @param apis
|
|
1304
|
+
*/
|
|
1305
|
+
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* 获取page state
|
|
1309
|
+
* @param domain
|
|
1310
|
+
* @returns
|
|
1311
|
+
*/
|
|
1312
|
+
export declare function usePageState(domain: Domain): PageState | null;
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* 获取element 位置
|
|
1316
|
+
* @param elementRef
|
|
1317
|
+
* @returns
|
|
1318
|
+
*/
|
|
1319
|
+
export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
|
|
1320
|
+
|
|
1321
|
+
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect_2;
|
|
1322
|
+
|
|
1323
|
+
export declare function useTouch(): {
|
|
1324
|
+
move: EventListener;
|
|
1325
|
+
start: EventListener;
|
|
1326
|
+
reset: () => void;
|
|
1327
|
+
startX: Ref<number>;
|
|
1328
|
+
startY: Ref<number>;
|
|
1329
|
+
startTime: Ref<number>;
|
|
1330
|
+
duration: Ref<number>;
|
|
1331
|
+
moveX: Ref<number>;
|
|
1332
|
+
moveY: Ref<number>;
|
|
1333
|
+
deltaX: Ref<number>;
|
|
1334
|
+
deltaY: Ref<number>;
|
|
1335
|
+
offsetX: Ref<number>;
|
|
1336
|
+
offsetY: Ref<number>;
|
|
1337
|
+
direction: Ref<Direction>;
|
|
1338
|
+
isVertical: () => boolean;
|
|
1339
|
+
isHorizontal: () => boolean;
|
|
1340
|
+
};
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* 校验条件
|
|
1344
|
+
*/
|
|
1345
|
+
export declare interface ValidateCondition {
|
|
1346
|
+
exclude?: string[];
|
|
1347
|
+
include?: string[];
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* 校验器handler
|
|
1352
|
+
*/
|
|
1353
|
+
export declare interface ValidateHandler {
|
|
1354
|
+
/**
|
|
1355
|
+
* 错误处理
|
|
1356
|
+
* @param errorMsg
|
|
1357
|
+
* @param proxy
|
|
1358
|
+
*
|
|
1359
|
+
*/
|
|
1360
|
+
error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
|
|
1361
|
+
/**
|
|
1362
|
+
* 重置处理
|
|
1363
|
+
* @param proxy
|
|
1364
|
+
*
|
|
1365
|
+
*/
|
|
1366
|
+
reset?(proxy: FoxComponentPublicInstance): void;
|
|
1367
|
+
/**
|
|
1368
|
+
* 成功处理
|
|
1369
|
+
* @param proxy
|
|
1370
|
+
*
|
|
1371
|
+
*/
|
|
1372
|
+
success?(proxy: FoxComponentPublicInstance): void;
|
|
1373
|
+
/**
|
|
1374
|
+
* 规则装饰处理
|
|
1375
|
+
* @param newRule
|
|
1376
|
+
* @param oldRule
|
|
1377
|
+
* @param proxy
|
|
1378
|
+
*
|
|
1379
|
+
*/
|
|
1380
|
+
decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
|
|
1381
|
+
/**
|
|
1382
|
+
* 获取value
|
|
1383
|
+
* @param proxy
|
|
1384
|
+
*
|
|
1385
|
+
*/
|
|
1386
|
+
getValue?(proxy: FoxComponentPublicInstance): any;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* 校验器schema
|
|
1391
|
+
*/
|
|
1392
|
+
export declare class ValidateSchema {
|
|
1393
|
+
/**
|
|
1394
|
+
* parent
|
|
1395
|
+
*/
|
|
1396
|
+
private parent;
|
|
1397
|
+
/**
|
|
1398
|
+
* 校验器
|
|
1399
|
+
*/
|
|
1400
|
+
private validators;
|
|
1401
|
+
/**
|
|
1402
|
+
* 属性rule
|
|
1403
|
+
*/
|
|
1404
|
+
private attrRules;
|
|
1405
|
+
/**
|
|
1406
|
+
* rule
|
|
1407
|
+
*/
|
|
1408
|
+
private rules;
|
|
1409
|
+
/**
|
|
1410
|
+
* 描述
|
|
1411
|
+
*/
|
|
1412
|
+
private descriptor;
|
|
1413
|
+
/**
|
|
1414
|
+
* 实例
|
|
1415
|
+
*/
|
|
1416
|
+
private proxy;
|
|
1417
|
+
/**
|
|
1418
|
+
* effect scope
|
|
1419
|
+
*/
|
|
1420
|
+
private scope;
|
|
1421
|
+
/**
|
|
1422
|
+
* 构造函数
|
|
1423
|
+
* @param parent
|
|
1424
|
+
* @param descriptor
|
|
1425
|
+
* @param proxy
|
|
1426
|
+
*/
|
|
1427
|
+
constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
|
|
1428
|
+
/**
|
|
1429
|
+
* 初始化
|
|
1430
|
+
*/
|
|
1431
|
+
private init;
|
|
1432
|
+
/**
|
|
1433
|
+
* 销毁
|
|
1434
|
+
*/
|
|
1435
|
+
destroy(): void;
|
|
1436
|
+
/**
|
|
1437
|
+
* 执行validate handler函数
|
|
1438
|
+
* @param name
|
|
1439
|
+
* @param args
|
|
1440
|
+
*/
|
|
1441
|
+
private execHandler;
|
|
1442
|
+
/**
|
|
1443
|
+
* 调用装饰处理函数
|
|
1444
|
+
*/
|
|
1445
|
+
private decorate;
|
|
1446
|
+
/**
|
|
1447
|
+
* 调用成功处理函数
|
|
1448
|
+
*/
|
|
1449
|
+
private success;
|
|
1450
|
+
/**
|
|
1451
|
+
* 调用错误处理函数
|
|
1452
|
+
* @returns
|
|
1453
|
+
*/
|
|
1454
|
+
private error;
|
|
1455
|
+
/**
|
|
1456
|
+
* 调用错误处理函数
|
|
1457
|
+
* @returns
|
|
1458
|
+
*/
|
|
1459
|
+
private getValue;
|
|
1460
|
+
/**
|
|
1461
|
+
* 设置校验器
|
|
1462
|
+
* @param type
|
|
1463
|
+
* @param validator
|
|
1464
|
+
* @param global
|
|
1465
|
+
*
|
|
1466
|
+
* @returns
|
|
1467
|
+
*/
|
|
1468
|
+
setValidator(type: string, validator: ExecuteValidator, global?: boolean): void;
|
|
1469
|
+
/**
|
|
1470
|
+
* 获取validator(只获取私有的validator)
|
|
1471
|
+
* @param type
|
|
1472
|
+
*/
|
|
1473
|
+
getValidator(type: string): ExecuteValidator | null;
|
|
1474
|
+
/**
|
|
1475
|
+
* 删除校验器
|
|
1476
|
+
* @param type
|
|
1477
|
+
* @param global
|
|
1478
|
+
*/
|
|
1479
|
+
deleteValidator(type: string, global?: boolean): void;
|
|
1480
|
+
/**
|
|
1481
|
+
* 判断校验器是否存在
|
|
1482
|
+
* @param type
|
|
1483
|
+
* @param global
|
|
1484
|
+
* @returns
|
|
1485
|
+
*/
|
|
1486
|
+
hasValidator(type: string, global?: boolean): boolean;
|
|
1487
|
+
/**
|
|
1488
|
+
* 设置rule
|
|
1489
|
+
* @param rule
|
|
1490
|
+
*/
|
|
1491
|
+
setRule(rule: Rule | null): void;
|
|
1492
|
+
/**
|
|
1493
|
+
* 清空校验错误信息
|
|
1494
|
+
* @params deep
|
|
1495
|
+
* @returns
|
|
1496
|
+
*/
|
|
1497
|
+
clear(): void;
|
|
1498
|
+
/**
|
|
1499
|
+
* 执行校验
|
|
1500
|
+
* @returns
|
|
1501
|
+
*/
|
|
1502
|
+
validate(): Promise<ValidateResult>;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* validate schema key
|
|
1507
|
+
*/
|
|
1508
|
+
export declare const ValidateSchemaKey: unique symbol;
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* value 格式话
|
|
1512
|
+
*/
|
|
1513
|
+
export declare interface ValueFormat<T, K> {
|
|
1514
|
+
(value: T): K;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
/**
|
|
1518
|
+
* 获取value长度
|
|
1519
|
+
* @param val
|
|
1520
|
+
* @returns
|
|
1521
|
+
*/
|
|
1522
|
+
export declare function valueLength(val: unknown): number;
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* value 类型
|
|
1526
|
+
*/
|
|
1527
|
+
export declare type ValueType = 'string' | 'number' | 'date';
|
|
1528
|
+
|
|
1529
|
+
export { }
|