@fox-js/foxui 4.0.1-9 → 4.0.1-90
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 +2 -16
- package/dist/index.d.ts +6 -0
- package/dist/index.esm.js +20269 -17930
- package/dist/index.umd.js +6 -20
- package/dist/locale/index.d.ts +108 -18
- package/dist/locale/index.esm.js +172 -115
- package/dist/locale/index.umd.js +1 -3
- package/dist/style.css +9800 -1
- package/dist/style.js +3 -0
- package/dist/types/index.d.ts +2192 -298
- package/package.json +18 -15
- package/dist/style.esm.js +0 -7
package/dist/types/index.d.ts
CHANGED
|
@@ -1,166 +1,958 @@
|
|
|
1
|
-
import type { AllowedComponentProps } from 'vue';
|
|
2
1
|
import { App } from 'vue';
|
|
3
2
|
import { compareTo } from '@fox-js/big-decimal';
|
|
4
|
-
import type { ComponentCustomProps } from 'vue';
|
|
5
|
-
import type { ComponentOptionsMixin } from 'vue';
|
|
6
|
-
import { ComponentPublicInstance } from 'vue';
|
|
7
|
-
import type { ComputedOptions } from 'vue';
|
|
8
3
|
import { CSSProperties } from 'vue';
|
|
9
|
-
import
|
|
4
|
+
import { DefineSetupFnComponent } from 'vue';
|
|
10
5
|
import { divide } from '@fox-js/big-decimal';
|
|
11
6
|
import { ExecuteValidator } from '@fox-js/validator';
|
|
12
|
-
import type { MethodOptions } from 'vue';
|
|
13
7
|
import { multiply } from '@fox-js/big-decimal';
|
|
14
8
|
import { negate } from '@fox-js/big-decimal';
|
|
15
9
|
import { numberFormat } from '@fox-js/big-decimal';
|
|
10
|
+
import { PublicProps } from 'vue';
|
|
11
|
+
import { Ref } from 'vue';
|
|
16
12
|
import { Rule } from '@fox-js/validator';
|
|
17
13
|
import { unNumberFormat } from '@fox-js/big-decimal';
|
|
14
|
+
import { UnwrapNestedRefs } from 'vue';
|
|
15
|
+
import { UnwrapRef } from 'vue';
|
|
16
|
+
import { ValidateMessages } from '@fox-js/validator';
|
|
18
17
|
import { ValidateResult } from '@fox-js/validator';
|
|
19
18
|
import { VNode } from 'vue';
|
|
20
|
-
import type { VNodeProps } from 'vue';
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
declare const Audio_2: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
31
|
-
export { Audio_2 as Audio }
|
|
32
|
-
|
|
33
|
-
export declare const AudioOperate: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
34
|
-
|
|
35
|
-
export declare const Avatar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
36
|
-
|
|
37
|
-
export declare const AvatarGroup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
38
|
-
|
|
39
|
-
export declare const BackTop: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
20
|
+
/**
|
|
21
|
+
* 虚拟页面范围
|
|
22
|
+
*/
|
|
23
|
+
export declare type AbstractPageScope = {
|
|
24
|
+
headerBar?: boolean;
|
|
25
|
+
footerBar?: boolean;
|
|
26
|
+
content?: boolean;
|
|
27
|
+
};
|
|
40
28
|
|
|
41
|
-
|
|
29
|
+
/**
|
|
30
|
+
* abstract page scope key(虚拟页面,不生成page、headerBar、footerBar、content,直接reader content内部组件)
|
|
31
|
+
*/
|
|
32
|
+
export declare const AbstractPageScopeKey: unique symbol;
|
|
42
33
|
|
|
43
|
-
|
|
34
|
+
/**
|
|
35
|
+
* 是否接受value过滤器
|
|
36
|
+
*/
|
|
37
|
+
export declare interface AcceptFilter {
|
|
38
|
+
(value: any): boolean;
|
|
39
|
+
}
|
|
44
40
|
|
|
45
|
-
|
|
41
|
+
/**
|
|
42
|
+
* 广播类
|
|
43
|
+
*/
|
|
44
|
+
export declare class Broadcast {
|
|
45
|
+
/**
|
|
46
|
+
* parent
|
|
47
|
+
*/
|
|
46
48
|
private parent;
|
|
49
|
+
/**
|
|
50
|
+
* children
|
|
51
|
+
*/
|
|
47
52
|
private children;
|
|
53
|
+
/**
|
|
54
|
+
* 回调函数注册表
|
|
55
|
+
*/
|
|
48
56
|
private callbacks;
|
|
49
|
-
|
|
57
|
+
/**
|
|
58
|
+
* vue exposed
|
|
59
|
+
*/
|
|
60
|
+
private exposed;
|
|
61
|
+
/**
|
|
62
|
+
* 名称
|
|
63
|
+
*/
|
|
50
64
|
private name?;
|
|
51
|
-
|
|
65
|
+
/**
|
|
66
|
+
* 持久消息注册表
|
|
67
|
+
*/
|
|
68
|
+
private persistantMessages;
|
|
69
|
+
/**
|
|
70
|
+
* 构造函数
|
|
71
|
+
* @param parent
|
|
72
|
+
* @param exposed
|
|
73
|
+
* @param name
|
|
74
|
+
*/
|
|
75
|
+
constructor(parent: Broadcast | null, exposed: FoxComponentPublicExposed, name?: string);
|
|
76
|
+
/**
|
|
77
|
+
* 加入孩子节点
|
|
78
|
+
* @param child
|
|
79
|
+
*/
|
|
52
80
|
private addChild;
|
|
81
|
+
/**
|
|
82
|
+
* 移除孩子节点
|
|
83
|
+
* @param child
|
|
84
|
+
*/
|
|
53
85
|
private removeChild;
|
|
86
|
+
/**
|
|
87
|
+
* 销毁
|
|
88
|
+
*/
|
|
54
89
|
destroy(): void;
|
|
90
|
+
/**
|
|
91
|
+
* 设置持久化消息
|
|
92
|
+
* @param matched
|
|
93
|
+
* @param action
|
|
94
|
+
* @param args
|
|
95
|
+
*/
|
|
96
|
+
private setPersistantMessage;
|
|
97
|
+
/**
|
|
98
|
+
* 删除持久化消息
|
|
99
|
+
* @param matched
|
|
100
|
+
* @param action
|
|
101
|
+
* @param args
|
|
102
|
+
*/
|
|
103
|
+
private deletePersistantMessage;
|
|
104
|
+
/**
|
|
105
|
+
* 获取持久化消息列表
|
|
106
|
+
* @returns
|
|
107
|
+
*/
|
|
108
|
+
getPersistantMessages(): PersistantMessage[];
|
|
109
|
+
/**
|
|
110
|
+
* 清空持久化消息列表
|
|
111
|
+
*/
|
|
112
|
+
clearPersistantMessage(): void;
|
|
113
|
+
/**
|
|
114
|
+
* 判断是否匹配
|
|
115
|
+
* @param name
|
|
116
|
+
* @param matched
|
|
117
|
+
* @returns
|
|
118
|
+
*/
|
|
119
|
+
private isMatched;
|
|
120
|
+
/**
|
|
121
|
+
* 触发函数
|
|
122
|
+
* @param action
|
|
123
|
+
* @param args
|
|
124
|
+
*/
|
|
125
|
+
private trigger;
|
|
126
|
+
/**
|
|
127
|
+
* 拉取持久消息
|
|
128
|
+
*/
|
|
129
|
+
pull(): void;
|
|
130
|
+
/**
|
|
131
|
+
* 发生消息
|
|
132
|
+
* @param matched
|
|
133
|
+
* @param action
|
|
134
|
+
* @param args
|
|
135
|
+
*/
|
|
55
136
|
emit(matched: Matched, action: string, ...args: any[]): Results;
|
|
137
|
+
/**
|
|
138
|
+
* 发生消息(只发给孩子节点)
|
|
139
|
+
* @param matched
|
|
140
|
+
* @param action
|
|
141
|
+
* @param args
|
|
142
|
+
*/
|
|
56
143
|
emitToChildren(matched: Matched, action: string, ...args: any[]): Results;
|
|
144
|
+
/**
|
|
145
|
+
* 注册回调函数
|
|
146
|
+
* @param action
|
|
147
|
+
* @param callback
|
|
148
|
+
* @returns
|
|
149
|
+
*/
|
|
57
150
|
on(action: string, callback: BroadcastCallback): void;
|
|
58
151
|
}
|
|
59
152
|
|
|
60
|
-
|
|
153
|
+
/**
|
|
154
|
+
* broadcast callback
|
|
155
|
+
*/
|
|
156
|
+
export declare interface BroadcastCallback {
|
|
61
157
|
(...args: any[]): Result;
|
|
62
158
|
}
|
|
63
159
|
|
|
64
|
-
|
|
160
|
+
/**
|
|
161
|
+
* broadcast key
|
|
162
|
+
*/
|
|
163
|
+
export declare const BroadcastKey: unique symbol;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* 浏览模式属性
|
|
167
|
+
* @param source
|
|
168
|
+
* @returns
|
|
169
|
+
*/
|
|
170
|
+
export declare function browseProperty(source: Ref): Ref<'on' | 'off'>;
|
|
171
|
+
|
|
172
|
+
export declare function cancelRaf(id: number): void;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* clamp
|
|
176
|
+
* @param num
|
|
177
|
+
* @param min
|
|
178
|
+
* @param max
|
|
179
|
+
* @returns
|
|
180
|
+
*/
|
|
181
|
+
export declare const clamp: (num: number, min: number, max: number) => number;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* 清理非数字
|
|
185
|
+
*/
|
|
186
|
+
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
65
187
|
|
|
66
|
-
export
|
|
188
|
+
export { compareTo }
|
|
67
189
|
|
|
68
|
-
|
|
190
|
+
/**
|
|
191
|
+
* 组件描述
|
|
192
|
+
*/
|
|
193
|
+
declare interface ComponentDescriptor {
|
|
194
|
+
componentName: string;
|
|
195
|
+
readonly?: boolean;
|
|
196
|
+
disabled?: boolean;
|
|
197
|
+
props?: Record<string, any>;
|
|
198
|
+
ignorePropKeys?: string[];
|
|
199
|
+
context: FoxSetupContext;
|
|
200
|
+
templateRefProxy?: FoxTemplateRefProxy;
|
|
201
|
+
fieldName?: string;
|
|
202
|
+
valueName?: string;
|
|
203
|
+
valueType?: ValueType;
|
|
204
|
+
validate?: boolean;
|
|
205
|
+
pureDataValidate?: boolean;
|
|
206
|
+
validateHandler?: ValidateHandler;
|
|
207
|
+
validateCheckEvents?: string[];
|
|
208
|
+
validateResetEvents?: string[];
|
|
209
|
+
}
|
|
69
210
|
|
|
70
|
-
|
|
211
|
+
/**
|
|
212
|
+
* 内容
|
|
213
|
+
*/
|
|
214
|
+
declare type Content_2 = string | GroupContent[] | string[] | VNode | {
|
|
215
|
+
(): VNode;
|
|
216
|
+
};
|
|
71
217
|
|
|
72
|
-
|
|
218
|
+
/**
|
|
219
|
+
* 创建broadcast
|
|
220
|
+
*
|
|
221
|
+
* @param expose
|
|
222
|
+
* @param parent
|
|
223
|
+
* @param name
|
|
224
|
+
* @param callbacks
|
|
225
|
+
* @returns
|
|
226
|
+
*/
|
|
227
|
+
export declare function createBroadcast(exposed: FoxComponentPublicExposed, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* 创建校验schema
|
|
231
|
+
* @param exposed
|
|
232
|
+
* @param parent
|
|
233
|
+
* @param descriptor
|
|
234
|
+
* @returns
|
|
235
|
+
*/
|
|
236
|
+
export declare function createValidateSchema(exposed: FoxComponentPublicExposed, parent: ValidateSchema | null, descriptor: ComponentDescriptor): ValidateSchema;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* data items key
|
|
240
|
+
*/
|
|
241
|
+
export declare const DataItemsKey: unique symbol;
|
|
73
242
|
|
|
74
|
-
export declare const
|
|
243
|
+
export declare const DateUtils: {
|
|
244
|
+
/**
|
|
245
|
+
* 格式化
|
|
246
|
+
* @param date
|
|
247
|
+
* @param formatTemplate
|
|
248
|
+
* @returns
|
|
249
|
+
*/
|
|
250
|
+
format(date: Date, formatTemplate?: string): string;
|
|
251
|
+
/**
|
|
252
|
+
* 解析
|
|
253
|
+
* @param dateString
|
|
254
|
+
* @param formatTemplate
|
|
255
|
+
*/
|
|
256
|
+
parser(dateString: string, formatTemplate?: string): Date;
|
|
257
|
+
/**
|
|
258
|
+
* 返回日期格式字符串
|
|
259
|
+
* @param i 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
260
|
+
* @param startDate 起点日期
|
|
261
|
+
* @param formatTemplate 格式化模版
|
|
262
|
+
* @return '2014-12-31'
|
|
263
|
+
*
|
|
264
|
+
*/
|
|
265
|
+
getDay(i: number, startDate?: Date, formatTemplate?: string): string;
|
|
266
|
+
/**
|
|
267
|
+
* 是否为闫年
|
|
268
|
+
* @return {Boolse} true|false
|
|
269
|
+
*/
|
|
270
|
+
isLeapYear(y: number): boolean;
|
|
271
|
+
/**
|
|
272
|
+
* 返回星期数
|
|
273
|
+
* @return {String}
|
|
274
|
+
*/
|
|
275
|
+
getWhatDay(year: number, month: number, day: number): number;
|
|
276
|
+
/**
|
|
277
|
+
* 返回月份天数
|
|
278
|
+
* @return {Number}
|
|
279
|
+
*/
|
|
280
|
+
getMonthDays(year: string, month: string): number;
|
|
281
|
+
/**
|
|
282
|
+
* 补齐数字位数
|
|
283
|
+
* @return {string}
|
|
284
|
+
*/
|
|
285
|
+
getNumTwoBit(n: number): string;
|
|
286
|
+
/**
|
|
287
|
+
* 日期对象转成字符串
|
|
288
|
+
* 转换为YYYY-MM-DD格式
|
|
289
|
+
* @return {string}
|
|
290
|
+
*/
|
|
291
|
+
date2Str: (date: Date, split?: string) => string;
|
|
292
|
+
/**
|
|
293
|
+
* 对比
|
|
294
|
+
* 0:相等, 1: x > y, -1: x < y
|
|
295
|
+
*
|
|
296
|
+
* @param x
|
|
297
|
+
* @param y
|
|
298
|
+
* @param formatTemplate
|
|
299
|
+
* @returns
|
|
300
|
+
*/
|
|
301
|
+
compare(x: string | Date, y: string | Date, formatTemplate?: string): number;
|
|
302
|
+
/**
|
|
303
|
+
* 判断
|
|
304
|
+
* @param date
|
|
305
|
+
* @param startDate 开始日期
|
|
306
|
+
* @param span 允许负数
|
|
307
|
+
* @param dateUint span单位 'year'|'month'|'day'
|
|
308
|
+
*/
|
|
309
|
+
between(date: Date, startDate: Date, span: number, dateUint: "year" | "month" | "day"): boolean;
|
|
310
|
+
/**
|
|
311
|
+
* 判断日期是否在范围内(day)
|
|
312
|
+
* @param date
|
|
313
|
+
* @param startDate
|
|
314
|
+
* @param span 允许负数
|
|
315
|
+
*/
|
|
316
|
+
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
317
|
+
/**
|
|
318
|
+
* 判断日期是否在范围内(month)
|
|
319
|
+
* @param date
|
|
320
|
+
* @param startDate
|
|
321
|
+
* @param span
|
|
322
|
+
*/
|
|
323
|
+
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
324
|
+
/**
|
|
325
|
+
* 判断日期是否在范围内(year)
|
|
326
|
+
* @param date
|
|
327
|
+
* @param startDate
|
|
328
|
+
* @param span
|
|
329
|
+
*/
|
|
330
|
+
inScope4Year(date: Date, startDate: Date, span: number): boolean;
|
|
331
|
+
};
|
|
75
332
|
|
|
76
|
-
|
|
333
|
+
/**
|
|
334
|
+
* 防抖函数(执行时间范围内的最后一次)
|
|
335
|
+
* @param func 函数
|
|
336
|
+
* @param delay 防止抖动毫秒数
|
|
337
|
+
* @returns
|
|
338
|
+
*/
|
|
339
|
+
export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* 防抖Ref
|
|
343
|
+
* @param value
|
|
344
|
+
* @param delay
|
|
345
|
+
*/
|
|
346
|
+
export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* 获取小数长度
|
|
350
|
+
* @param value
|
|
351
|
+
*/
|
|
352
|
+
export declare function decimalLength(value: string | number): number;
|
|
77
353
|
|
|
78
|
-
|
|
354
|
+
declare const _default: FoxUIApp;
|
|
355
|
+
export default _default;
|
|
79
356
|
|
|
80
|
-
|
|
357
|
+
declare const _default_10: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
358
|
+
export { _default_10 as FoxSlotItem }
|
|
359
|
+
export { _default_10 as SlotItem }
|
|
81
360
|
|
|
82
|
-
|
|
361
|
+
declare const _default_100: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
362
|
+
export { _default_100 as FoxVideo }
|
|
363
|
+
export { _default_100 as Video }
|
|
83
364
|
|
|
84
|
-
|
|
365
|
+
declare const _default_101: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
366
|
+
export { _default_101 as FoxSteps }
|
|
367
|
+
export { _default_101 as Steps }
|
|
85
368
|
|
|
86
|
-
|
|
369
|
+
declare const _default_102: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
370
|
+
export { _default_102 as FoxStep }
|
|
371
|
+
export { _default_102 as Step }
|
|
87
372
|
|
|
88
|
-
|
|
373
|
+
declare const _default_103: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
374
|
+
export { _default_103 as FoxSwiper }
|
|
375
|
+
export { _default_103 as Swiper }
|
|
89
376
|
|
|
90
|
-
|
|
377
|
+
declare const _default_104: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
378
|
+
export { _default_104 as FoxSwiperItem }
|
|
379
|
+
export { _default_104 as SwiperItem }
|
|
91
380
|
|
|
92
|
-
|
|
381
|
+
declare const _default_105: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
382
|
+
export { _default_105 as FoxPrice }
|
|
383
|
+
export { _default_105 as Price }
|
|
93
384
|
|
|
94
|
-
|
|
385
|
+
declare const _default_106: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
386
|
+
export { _default_106 as CountUp }
|
|
387
|
+
export { _default_106 as FoxCountUp }
|
|
95
388
|
|
|
96
|
-
|
|
389
|
+
declare const _default_107: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
390
|
+
export { _default_107 as CountDown }
|
|
391
|
+
export { _default_107 as FoxCountDown }
|
|
97
392
|
|
|
98
|
-
|
|
393
|
+
declare const _default_108: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
394
|
+
export { _default_108 as Badge }
|
|
395
|
+
export { _default_108 as FoxBadge }
|
|
99
396
|
|
|
100
|
-
declare const
|
|
101
|
-
export {
|
|
397
|
+
declare const _default_109: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
398
|
+
export { _default_109 as FoxTag }
|
|
399
|
+
export { _default_109 as Tag }
|
|
102
400
|
|
|
103
|
-
|
|
401
|
+
declare const _default_11: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
402
|
+
export { _default_11 as FoxInputItem }
|
|
403
|
+
export { _default_11 as InputItem }
|
|
104
404
|
|
|
105
|
-
|
|
405
|
+
declare const _default_110: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
406
|
+
export { _default_110 as FoxPopover }
|
|
407
|
+
export { _default_110 as Popover }
|
|
106
408
|
|
|
107
|
-
|
|
409
|
+
declare const _default_111: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
410
|
+
export { _default_111 as FoxSkeleton }
|
|
411
|
+
export { _default_111 as Skeleton }
|
|
108
412
|
|
|
109
|
-
|
|
413
|
+
declare const _default_112: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
414
|
+
export { _default_112 as Collapse }
|
|
415
|
+
export { _default_112 as FoxCollapse }
|
|
110
416
|
|
|
111
|
-
|
|
417
|
+
declare const _default_113: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
418
|
+
export { _default_113 as CollapseItem }
|
|
419
|
+
export { _default_113 as FoxCollapseItem }
|
|
112
420
|
|
|
113
|
-
|
|
421
|
+
declare const _default_114: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
422
|
+
export { _default_114 as FoxTable }
|
|
423
|
+
export { _default_114 as Table }
|
|
114
424
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
425
|
+
declare const _default_115: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
426
|
+
export { _default_115 as Ellipsis }
|
|
427
|
+
export { _default_115 as FoxEllipsis }
|
|
428
|
+
|
|
429
|
+
declare const _default_116: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
430
|
+
export { _default_116 as Animate }
|
|
431
|
+
export { _default_116 as FoxAnimate }
|
|
432
|
+
|
|
433
|
+
declare const _default_117: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
434
|
+
export { _default_117 as FoxWaterMark }
|
|
435
|
+
export { _default_117 as WaterMark }
|
|
436
|
+
|
|
437
|
+
declare const _default_118: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
438
|
+
export { _default_118 as FoxTrendArrow }
|
|
439
|
+
export { _default_118 as TrendArrow }
|
|
440
|
+
|
|
441
|
+
declare const _default_119: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
442
|
+
export { _default_119 as FoxTour }
|
|
443
|
+
export { _default_119 as Tour }
|
|
444
|
+
|
|
445
|
+
declare const _default_12: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
446
|
+
export { _default_12 as FoxMoneyItem }
|
|
447
|
+
export { _default_12 as MoneyItem }
|
|
448
|
+
|
|
449
|
+
declare const _default_120: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
450
|
+
export { _default_120 as Barrage }
|
|
451
|
+
export { _default_120 as FoxBarrage }
|
|
452
|
+
|
|
453
|
+
declare const _default_121: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
454
|
+
export { _default_121 as FoxSignature }
|
|
455
|
+
export { _default_121 as Signature }
|
|
456
|
+
|
|
457
|
+
declare const _default_13: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
458
|
+
export { _default_13 as FoxTextareaItem }
|
|
459
|
+
export { _default_13 as TextareaItem }
|
|
460
|
+
|
|
461
|
+
declare const _default_14: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
462
|
+
export { _default_14 as FoxTextarea }
|
|
463
|
+
export { _default_14 as Textarea }
|
|
464
|
+
|
|
465
|
+
declare const _default_15: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
466
|
+
export { _default_15 as FoxPickerItem }
|
|
467
|
+
export { _default_15 as PickerItem }
|
|
468
|
+
|
|
469
|
+
declare const _default_16: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
470
|
+
export { _default_16 as CascaderItem }
|
|
471
|
+
export { _default_16 as FoxCascaderItem }
|
|
472
|
+
|
|
473
|
+
declare const _default_17: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
474
|
+
export { _default_17 as DateItem }
|
|
475
|
+
export { _default_17 as FoxDateItem }
|
|
476
|
+
|
|
477
|
+
declare const _default_18: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
478
|
+
export { _default_18 as CalendarItem }
|
|
479
|
+
export { _default_18 as FoxCalendarItem }
|
|
480
|
+
|
|
481
|
+
declare const _default_19: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
482
|
+
export { _default_19 as FoxRadio }
|
|
483
|
+
export { _default_19 as Radio }
|
|
484
|
+
|
|
485
|
+
declare const _default_2: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
486
|
+
export { _default_2 as FoxPage }
|
|
487
|
+
export { _default_2 as Page }
|
|
488
|
+
|
|
489
|
+
declare const _default_20: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
490
|
+
export { _default_20 as FoxRadioGroup }
|
|
491
|
+
export { _default_20 as RadioGroup }
|
|
492
|
+
|
|
493
|
+
declare const _default_21: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
494
|
+
export { _default_21 as FoxRadioItem }
|
|
495
|
+
export { _default_21 as RadioItem }
|
|
496
|
+
|
|
497
|
+
declare const _default_22: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
498
|
+
export { _default_22 as Checkbox }
|
|
499
|
+
export { _default_22 as FoxCheckbox }
|
|
500
|
+
|
|
501
|
+
declare const _default_23: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
502
|
+
export { _default_23 as CheckboxGroup }
|
|
503
|
+
export { _default_23 as FoxCheckboxGroup }
|
|
504
|
+
|
|
505
|
+
declare const _default_24: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
506
|
+
export { _default_24 as CheckboxItem }
|
|
507
|
+
export { _default_24 as FoxCheckboxItem }
|
|
508
|
+
|
|
509
|
+
declare const _default_25: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
510
|
+
export { _default_25 as FoxSwitchItem }
|
|
511
|
+
export { _default_25 as SwitchItem }
|
|
512
|
+
|
|
513
|
+
declare const _default_26: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
514
|
+
export { _default_26 as FoxLinkItem }
|
|
515
|
+
export { _default_26 as LinkItem }
|
|
516
|
+
|
|
517
|
+
declare const _default_27: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
518
|
+
export { _default_27 as FoxRateItem }
|
|
519
|
+
export { _default_27 as RateItem }
|
|
520
|
+
|
|
521
|
+
declare const _default_28: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
522
|
+
export { _default_28 as ActionsheetPane }
|
|
523
|
+
export { _default_28 as FoxActionsheetPane }
|
|
524
|
+
|
|
525
|
+
declare const _default_29: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
526
|
+
export { _default_29 as ActionsheetItem }
|
|
527
|
+
export { _default_29 as FoxActionsheetItem }
|
|
528
|
+
|
|
529
|
+
declare const _default_3: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
530
|
+
export { _default_3 as FoxHeaderBar }
|
|
531
|
+
export { _default_3 as HeaderBar }
|
|
532
|
+
|
|
533
|
+
declare const _default_30: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
534
|
+
export { _default_30 as FoxInputNumberItem }
|
|
535
|
+
export { _default_30 as InputNumberItem }
|
|
536
|
+
|
|
537
|
+
declare const _default_31: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
538
|
+
export { _default_31 as FoxTabsBar }
|
|
539
|
+
export { _default_31 as TabsBar }
|
|
540
|
+
|
|
541
|
+
declare const _default_32: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
542
|
+
export { _default_32 as FoxTabsContainer }
|
|
543
|
+
export { _default_32 as TabsContainer }
|
|
544
|
+
|
|
545
|
+
declare const _default_33: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
546
|
+
export { _default_33 as FoxTabsPane }
|
|
547
|
+
export { _default_33 as TabsPane }
|
|
548
|
+
|
|
549
|
+
declare const _default_34: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
550
|
+
export { _default_34 as FoxTabsFrame }
|
|
551
|
+
export { _default_34 as TabsFrame }
|
|
552
|
+
|
|
553
|
+
declare const _default_35: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
554
|
+
export { _default_35 as FoxStepsBar }
|
|
555
|
+
export { _default_35 as StepsBar }
|
|
556
|
+
|
|
557
|
+
declare const _default_36: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
558
|
+
export { _default_36 as FloatingButton }
|
|
559
|
+
export { _default_36 as FoxFloatingButton }
|
|
560
|
+
|
|
561
|
+
declare const _default_37: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
562
|
+
export { _default_37 as FoxMoreButton }
|
|
563
|
+
export { _default_37 as MoreButton }
|
|
564
|
+
|
|
565
|
+
declare const _default_38: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
566
|
+
export { _default_38 as FoxPopupWrapper }
|
|
567
|
+
export { _default_38 as PopupWrapper }
|
|
568
|
+
|
|
569
|
+
declare const _default_39: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
570
|
+
export { _default_39 as Dropdown }
|
|
571
|
+
export { _default_39 as FoxDropdown }
|
|
572
|
+
|
|
573
|
+
declare const _default_4: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
574
|
+
export { _default_4 as FooterBar }
|
|
575
|
+
export { _default_4 as FoxFooterBar }
|
|
576
|
+
|
|
577
|
+
declare const _default_40: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
578
|
+
export { _default_40 as FoxPopoverDialog }
|
|
579
|
+
export { _default_40 as PopoverDialog }
|
|
580
|
+
|
|
581
|
+
declare const _default_41: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
582
|
+
export { _default_41 as FoxText }
|
|
583
|
+
export { _default_41 as Text }
|
|
584
|
+
|
|
585
|
+
declare const _default_42: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
586
|
+
export { _default_42 as FoxMapping }
|
|
587
|
+
export { _default_42 as Mapping }
|
|
588
|
+
|
|
589
|
+
declare const _default_43: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
590
|
+
export { _default_43 as DomainProvider }
|
|
591
|
+
export { _default_43 as FoxDomainProvider }
|
|
592
|
+
|
|
593
|
+
declare const _default_44: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
594
|
+
export { _default_44 as FoxRollingProvider }
|
|
595
|
+
export { _default_44 as RollingProvider }
|
|
596
|
+
|
|
597
|
+
declare const _default_45: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
598
|
+
export { _default_45 as Button }
|
|
599
|
+
export { _default_45 as FoxButton }
|
|
600
|
+
|
|
601
|
+
declare const _default_46: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
602
|
+
export { _default_46 as Cell }
|
|
603
|
+
export { _default_46 as FoxCell }
|
|
604
|
+
|
|
605
|
+
declare const _default_47: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
606
|
+
export { _default_47 as FoxIcon }
|
|
607
|
+
export { _default_47 as Icon }
|
|
608
|
+
|
|
609
|
+
declare const _default_48: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
610
|
+
export { _default_48 as CellGroup }
|
|
611
|
+
export { _default_48 as FoxCellGroup }
|
|
612
|
+
|
|
613
|
+
declare const _default_49: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
614
|
+
export { _default_49 as FoxOverLay }
|
|
615
|
+
export { _default_49 as OverLay }
|
|
616
|
+
|
|
617
|
+
declare const _default_5: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
618
|
+
export { _default_5 as Content }
|
|
619
|
+
export { _default_5 as FoxContent }
|
|
620
|
+
|
|
621
|
+
declare const _default_50: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
622
|
+
export { _default_50 as FoxPopup }
|
|
623
|
+
export { _default_50 as Popup }
|
|
624
|
+
|
|
625
|
+
declare const _default_51: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
626
|
+
export { _default_51 as FoxImage }
|
|
627
|
+
export { _default_51 as Image }
|
|
628
|
+
|
|
629
|
+
declare const _default_52: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
630
|
+
export { _default_52 as FoxLayout }
|
|
631
|
+
export { _default_52 as Layout }
|
|
632
|
+
|
|
633
|
+
declare const _default_53: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
634
|
+
export { _default_53 as Col }
|
|
635
|
+
export { _default_53 as FoxCol }
|
|
636
|
+
|
|
637
|
+
declare const _default_54: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
638
|
+
export { _default_54 as FoxRow }
|
|
639
|
+
export { _default_54 as Row }
|
|
640
|
+
|
|
641
|
+
declare const _default_55: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
642
|
+
export { _default_55 as FoxSticky }
|
|
643
|
+
export { _default_55 as Sticky }
|
|
644
|
+
|
|
645
|
+
declare const _default_56: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
646
|
+
export { _default_56 as Divider }
|
|
647
|
+
export { _default_56 as FoxDivider }
|
|
648
|
+
|
|
649
|
+
declare const _default_57: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
650
|
+
export { _default_57 as FoxGrid }
|
|
651
|
+
export { _default_57 as Grid }
|
|
652
|
+
|
|
653
|
+
declare const _default_58: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
654
|
+
export { _default_58 as FoxGridItem }
|
|
655
|
+
export { _default_58 as GridItem }
|
|
656
|
+
|
|
657
|
+
declare const _default_59: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
658
|
+
export { _default_59 as FoxNavbar }
|
|
659
|
+
export { _default_59 as Navbar }
|
|
660
|
+
|
|
661
|
+
declare const _default_6: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
662
|
+
export { _default_6 as FoxGroup }
|
|
663
|
+
export { _default_6 as Group }
|
|
664
|
+
|
|
665
|
+
declare const _default_60: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
666
|
+
export { _default_60 as FixedNav }
|
|
667
|
+
export { _default_60 as FoxFixedNav }
|
|
668
|
+
|
|
669
|
+
declare const _default_61: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
670
|
+
export { _default_61 as FoxMenu }
|
|
671
|
+
export { _default_61 as Menu }
|
|
672
|
+
|
|
673
|
+
declare const _default_62: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
674
|
+
export { _default_62 as FoxMenuItem }
|
|
675
|
+
export { _default_62 as MenuItem }
|
|
676
|
+
|
|
677
|
+
declare const _default_63: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
678
|
+
export { _default_63 as FoxTabbar }
|
|
679
|
+
export { _default_63 as Tabbar }
|
|
680
|
+
|
|
681
|
+
declare const _default_64: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
682
|
+
export { _default_64 as FoxTabbarItem }
|
|
683
|
+
export { _default_64 as TabbarItem }
|
|
684
|
+
|
|
685
|
+
declare const _default_65: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
686
|
+
export { _default_65 as Elevator }
|
|
687
|
+
export { _default_65 as FoxElevator }
|
|
688
|
+
|
|
689
|
+
declare const _default_66: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
690
|
+
export { _default_66 as FoxPagination }
|
|
691
|
+
export { _default_66 as Pagination }
|
|
692
|
+
|
|
693
|
+
declare const _default_67: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
694
|
+
export { _default_67 as FoxTabs }
|
|
695
|
+
export { _default_67 as Tabs }
|
|
696
|
+
|
|
697
|
+
declare const _default_68: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
698
|
+
export { _default_68 as FoxTabPane }
|
|
699
|
+
export { _default_68 as TabPane }
|
|
700
|
+
|
|
701
|
+
declare const _default_69: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
702
|
+
export { _default_69 as FoxIndicator }
|
|
703
|
+
export { _default_69 as Indicator }
|
|
704
|
+
|
|
705
|
+
declare const _default_7: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
706
|
+
export { _default_7 as FoxItem }
|
|
707
|
+
export { _default_7 as Item }
|
|
708
|
+
|
|
709
|
+
declare const _default_70: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
710
|
+
export { _default_70 as FoxSideNavBar }
|
|
711
|
+
export { _default_70 as SideNavBar }
|
|
712
|
+
|
|
713
|
+
declare const _default_71: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
714
|
+
export { _default_71 as FoxSideNavBarItem }
|
|
715
|
+
export { _default_71 as SideNavBarItem }
|
|
716
|
+
|
|
717
|
+
declare const _default_72: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
718
|
+
export { _default_72 as FoxSubSideNavBar }
|
|
719
|
+
export { _default_72 as SubSideNavBar }
|
|
720
|
+
|
|
721
|
+
declare const _default_73: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
722
|
+
export { _default_73 as FoxRange }
|
|
723
|
+
export { _default_73 as Range }
|
|
724
|
+
|
|
725
|
+
declare const _default_74: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
726
|
+
export { _default_74 as FoxSearchBar }
|
|
727
|
+
export { _default_74 as SearchBar }
|
|
728
|
+
|
|
729
|
+
declare const _default_75: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
730
|
+
export { _default_75 as Cascader }
|
|
731
|
+
export { _default_75 as FoxCascader }
|
|
732
|
+
|
|
733
|
+
declare const _default_76: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
734
|
+
export { _default_76 as Calendar }
|
|
735
|
+
export { _default_76 as FoxCalendar }
|
|
736
|
+
|
|
737
|
+
declare const _default_77: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
738
|
+
export { _default_77 as DatePicker }
|
|
739
|
+
export { _default_77 as FoxDatePicker }
|
|
740
|
+
|
|
741
|
+
declare const _default_78: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
742
|
+
export { _default_78 as FoxInputNumber }
|
|
743
|
+
export { _default_78 as InputNumber }
|
|
744
|
+
|
|
745
|
+
declare const _default_79: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
746
|
+
export { _default_79 as FoxRate }
|
|
747
|
+
export { _default_79 as Rate }
|
|
748
|
+
|
|
749
|
+
declare const _default_8: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
750
|
+
export { _default_8 as FoxRowItem }
|
|
751
|
+
export { _default_8 as RowItem }
|
|
752
|
+
|
|
753
|
+
declare const _default_80: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
754
|
+
export { _default_80 as FoxPicker }
|
|
755
|
+
export { _default_80 as Picker }
|
|
756
|
+
|
|
757
|
+
declare const _default_81: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
758
|
+
export { _default_81 as FoxShortPassword }
|
|
759
|
+
export { _default_81 as ShortPassword }
|
|
760
|
+
|
|
761
|
+
declare const _default_82: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
762
|
+
export { _default_82 as FoxUploader }
|
|
763
|
+
export { _default_82 as Uploader }
|
|
764
|
+
|
|
765
|
+
declare const _default_83: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
766
|
+
export { _default_83 as FoxNumberKeyboard }
|
|
767
|
+
export { _default_83 as NumberKeyboard }
|
|
768
|
+
|
|
769
|
+
declare const _default_84: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
770
|
+
export { _default_84 as FoxSwipe }
|
|
771
|
+
export { _default_84 as Swipe }
|
|
772
|
+
|
|
773
|
+
declare const _default_85: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
774
|
+
export { _default_85 as ActionSheet }
|
|
775
|
+
export { _default_85 as FoxActionSheet }
|
|
776
|
+
|
|
777
|
+
declare const _default_86: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
778
|
+
export { _default_86 as BackTop }
|
|
779
|
+
export { _default_86 as FoxBackTop }
|
|
780
|
+
|
|
781
|
+
declare const _default_87: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
782
|
+
export { _default_87 as Drag }
|
|
783
|
+
export { _default_87 as FoxDrag }
|
|
784
|
+
|
|
785
|
+
declare const _default_88: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
786
|
+
export { _default_88 as FoxInfiniteLoading }
|
|
787
|
+
export { _default_88 as InfiniteLoading }
|
|
788
|
+
|
|
789
|
+
declare const _default_89: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
790
|
+
export { _default_89 as FoxPullRefresh }
|
|
791
|
+
export { _default_89 as PullRefresh }
|
|
792
|
+
|
|
793
|
+
declare const _default_9: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
794
|
+
export { _default_9 as ButtonsItem }
|
|
795
|
+
export { _default_9 as FoxButtonsItem }
|
|
796
|
+
|
|
797
|
+
declare const _default_90: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
798
|
+
export { _default_90 as FoxSwitch }
|
|
799
|
+
export { _default_90 as Switch }
|
|
800
|
+
|
|
801
|
+
declare const _default_91: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
802
|
+
export { _default_91 as Audio }
|
|
803
|
+
export { _default_91 as FoxAudio }
|
|
804
|
+
|
|
805
|
+
declare const _default_92: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
806
|
+
export { _default_92 as AudioOperate }
|
|
807
|
+
export { _default_92 as FoxAudioOperate }
|
|
808
|
+
|
|
809
|
+
declare const _default_93: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
810
|
+
export { _default_93 as Avatar }
|
|
811
|
+
export { _default_93 as FoxAvatar }
|
|
812
|
+
|
|
813
|
+
declare const _default_94: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
814
|
+
export { _default_94 as AvatarGroup }
|
|
815
|
+
export { _default_94 as FoxAvatarGroup }
|
|
816
|
+
|
|
817
|
+
declare const _default_95: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
818
|
+
export { _default_95 as FoxList }
|
|
819
|
+
export { _default_95 as List }
|
|
820
|
+
|
|
821
|
+
declare const _default_96: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
822
|
+
export { _default_96 as FoxProgress }
|
|
823
|
+
export { _default_96 as Progress }
|
|
824
|
+
|
|
825
|
+
declare const _default_97: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
826
|
+
export { _default_97 as CircleProgress }
|
|
827
|
+
export { _default_97 as FoxCircleProgress }
|
|
828
|
+
|
|
829
|
+
declare const _default_98: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
830
|
+
export { _default_98 as FoxNoticeBar }
|
|
831
|
+
export { _default_98 as NoticeBar }
|
|
832
|
+
|
|
833
|
+
declare const _default_99: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
834
|
+
export { _default_99 as Empty }
|
|
835
|
+
export { _default_99 as FoxEmpty }
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* 安装config domain
|
|
839
|
+
* @param descriptor domain组件描述
|
|
840
|
+
* @param name 名称
|
|
841
|
+
* @returns
|
|
842
|
+
*/
|
|
843
|
+
export declare function defineConfigDomain(descriptor: DomainComponentDescriptor, name: string | null): {
|
|
844
|
+
domain: Domain;
|
|
845
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
129
846
|
};
|
|
130
847
|
|
|
131
|
-
|
|
848
|
+
/**
|
|
849
|
+
* 定义data item
|
|
850
|
+
* @param domain domain
|
|
851
|
+
* @param name 名称
|
|
852
|
+
* @param descriptor 描述
|
|
853
|
+
* @param parentBroadcast parent broadcast
|
|
854
|
+
* @param parentValidateSchema parent validateSchema
|
|
855
|
+
* @returns
|
|
856
|
+
*/
|
|
857
|
+
export declare function defineDataItem(domain: Domain, name: string, descriptor: ComponentDescriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
|
|
858
|
+
broadcast: Broadcast;
|
|
859
|
+
validateSchema: ValidateSchema;
|
|
860
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
861
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
862
|
+
};
|
|
132
863
|
|
|
133
|
-
|
|
864
|
+
/**
|
|
865
|
+
* 安装domain
|
|
866
|
+
* @param descriptor domain组件描述
|
|
867
|
+
* @param name 名称
|
|
868
|
+
* @param broadcastCallbacks 消息
|
|
869
|
+
* @returns
|
|
870
|
+
*/
|
|
871
|
+
export declare function defineDomain(descriptor: DomainComponentDescriptor, name: string | null, messageListeners?: Record<string, BroadcastCallback>): {
|
|
872
|
+
domain: Domain;
|
|
873
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
874
|
+
};
|
|
134
875
|
|
|
135
|
-
|
|
136
|
-
|
|
876
|
+
/**
|
|
877
|
+
* 定义domain item属性
|
|
878
|
+
*/
|
|
879
|
+
export declare function defineDomainItemProperty(props: {
|
|
880
|
+
disabled?: boolean | string;
|
|
881
|
+
readonly?: boolean | string;
|
|
882
|
+
browse?: 'off' | 'on';
|
|
883
|
+
}): {
|
|
884
|
+
itemTemplateRef: Ref<any, any>;
|
|
885
|
+
innerDisabled: Ref<boolean, boolean>;
|
|
886
|
+
disabled: Ref<boolean, boolean>;
|
|
887
|
+
innerReadonly: Ref<boolean, boolean>;
|
|
888
|
+
readonly: Ref<boolean, boolean>;
|
|
889
|
+
browse: Ref<"on" | "off", "on" | "off">;
|
|
890
|
+
};
|
|
137
891
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
892
|
+
/**
|
|
893
|
+
* 定义domain item
|
|
894
|
+
* @param descriptor 组件描述
|
|
895
|
+
* @param name 名称
|
|
896
|
+
* @param broadcastCallbacks 消息
|
|
897
|
+
* @returns
|
|
898
|
+
*/
|
|
899
|
+
export declare function defineItem(descriptor: ComponentDescriptor, name?: string, broadcastCallbacks?: Record<string, BroadcastCallback>): {
|
|
900
|
+
broadcast: Broadcast;
|
|
901
|
+
validateSchema: ValidateSchema;
|
|
902
|
+
emitEvent: (type: string, ...args: any[]) => void;
|
|
903
|
+
onEvent: (type: string, listener: EventListener_2) => void;
|
|
904
|
+
offEvent: (type: string, listener: EventListener_2) => void;
|
|
905
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
906
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* 创建page state
|
|
911
|
+
*
|
|
912
|
+
* @param domain
|
|
913
|
+
* @param overrideProps
|
|
914
|
+
*/
|
|
915
|
+
export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* 定义simple item
|
|
919
|
+
* @param descriptor simple组件描述
|
|
920
|
+
* @param name 名称
|
|
921
|
+
* @returns
|
|
922
|
+
*/
|
|
923
|
+
export declare function defineSimpleItem(descriptor: SimpleComponentDescriptor, name?: string): {
|
|
924
|
+
emitEvent: (type: string, ...args: any[]) => void;
|
|
925
|
+
onEvent: (type: string, listener: EventListener_2) => void;
|
|
926
|
+
offEvent: (type: string, listener: EventListener_2) => void;
|
|
927
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
928
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
929
|
+
};
|
|
149
930
|
|
|
150
|
-
|
|
931
|
+
/**
|
|
932
|
+
* 删除公共校验器
|
|
933
|
+
* @param type
|
|
934
|
+
*/
|
|
935
|
+
export declare function deleteGlobalValidator(type: string): void;
|
|
936
|
+
|
|
937
|
+
declare const _Dialog: {
|
|
151
938
|
(options: DialogOptions): DialogFunction;
|
|
152
939
|
install(app: any): void;
|
|
153
940
|
};
|
|
941
|
+
export { _Dialog as Dialog }
|
|
942
|
+
export { _Dialog as FoxDialog }
|
|
154
943
|
|
|
155
944
|
declare class DialogFunction {
|
|
156
|
-
options
|
|
157
|
-
|
|
945
|
+
private options;
|
|
946
|
+
/**
|
|
947
|
+
* 构造函数
|
|
948
|
+
* @param _options
|
|
949
|
+
*/
|
|
158
950
|
constructor(_options: DialogOptions);
|
|
159
|
-
close: () => void;
|
|
160
|
-
setDefaultOptions: (options: DialogOptions) => void;
|
|
161
|
-
resetDefaultOptions: () => void;
|
|
162
951
|
}
|
|
163
952
|
|
|
953
|
+
/**
|
|
954
|
+
* 默认配置
|
|
955
|
+
*/
|
|
164
956
|
declare class DialogOptions {
|
|
165
957
|
title?: string;
|
|
166
958
|
content?: string | VNode;
|
|
@@ -190,454 +982,1556 @@ declare class DialogOptions {
|
|
|
190
982
|
lockScroll?: boolean;
|
|
191
983
|
}
|
|
192
984
|
|
|
193
|
-
|
|
985
|
+
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
194
986
|
|
|
195
|
-
|
|
987
|
+
/**
|
|
988
|
+
* 禁用属性
|
|
989
|
+
* @param source
|
|
990
|
+
*/
|
|
991
|
+
export declare function disabledProperty(source: Ref): Ref<boolean>;
|
|
992
|
+
|
|
993
|
+
export { divide }
|
|
196
994
|
|
|
197
|
-
|
|
995
|
+
/**
|
|
996
|
+
* Domain
|
|
997
|
+
*/
|
|
998
|
+
export declare class Domain {
|
|
999
|
+
/**
|
|
1000
|
+
* 父亲domain
|
|
1001
|
+
*/
|
|
198
1002
|
private _parent;
|
|
199
1003
|
get parent(): Domain | null;
|
|
200
1004
|
set parent(val: Domain | null);
|
|
1005
|
+
/**
|
|
1006
|
+
* 名称
|
|
1007
|
+
*/
|
|
201
1008
|
private _name;
|
|
202
1009
|
get name(): string | null;
|
|
1010
|
+
/**
|
|
1011
|
+
* 广播器
|
|
1012
|
+
*/
|
|
203
1013
|
private _broadcast;
|
|
204
1014
|
get broadcast(): Broadcast | null;
|
|
205
1015
|
set broadcast(val: Broadcast | null);
|
|
1016
|
+
/**
|
|
1017
|
+
* 校验器
|
|
1018
|
+
*/
|
|
206
1019
|
private _validateSchema;
|
|
207
1020
|
get validateSchema(): ValidateSchema | null;
|
|
208
1021
|
set validateSchema(val: ValidateSchema | null);
|
|
1022
|
+
/**
|
|
1023
|
+
* component public expose
|
|
1024
|
+
*/
|
|
1025
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
1026
|
+
/**
|
|
1027
|
+
* 属性集合
|
|
1028
|
+
*/
|
|
209
1029
|
private _props;
|
|
1030
|
+
/**
|
|
1031
|
+
* 本地数据集合
|
|
1032
|
+
*/
|
|
1033
|
+
private _datas;
|
|
1034
|
+
/**
|
|
1035
|
+
* 构造函数
|
|
1036
|
+
* @param name
|
|
1037
|
+
*/
|
|
210
1038
|
constructor(name?: string | null);
|
|
1039
|
+
/**
|
|
1040
|
+
* 销毁
|
|
1041
|
+
*/
|
|
211
1042
|
destroy(): void;
|
|
212
|
-
|
|
1043
|
+
/**
|
|
1044
|
+
* 设置数据
|
|
1045
|
+
* @param key
|
|
1046
|
+
* @param data
|
|
1047
|
+
*/
|
|
1048
|
+
setData(key: string | number | symbol, data: any): void;
|
|
1049
|
+
/**
|
|
1050
|
+
* 获取本地数据
|
|
1051
|
+
* @param key
|
|
1052
|
+
*/
|
|
1053
|
+
getData(key: string | number | symbol): any;
|
|
1054
|
+
/**
|
|
1055
|
+
* 是否有本地数据
|
|
1056
|
+
* @param key
|
|
1057
|
+
* @returns
|
|
1058
|
+
*/
|
|
1059
|
+
hasData(key: string | number | symbol): boolean;
|
|
1060
|
+
/**
|
|
1061
|
+
* 删除本地数据
|
|
1062
|
+
* @param key
|
|
1063
|
+
* @returns
|
|
1064
|
+
*/
|
|
1065
|
+
deleteData(key: string | number | symbol): boolean;
|
|
1066
|
+
/**
|
|
1067
|
+
* 合并属性
|
|
1068
|
+
* @param props
|
|
1069
|
+
*/
|
|
1070
|
+
merge(props: Record<string | number, any>, ignores?: string[]): void;
|
|
1071
|
+
/**
|
|
1072
|
+
* 判断是否有属性
|
|
1073
|
+
*/
|
|
213
1074
|
has(key: string | number): boolean;
|
|
1075
|
+
/**
|
|
1076
|
+
* 删除属性
|
|
1077
|
+
* @param key
|
|
1078
|
+
*/
|
|
214
1079
|
delete(key: string | number): void;
|
|
1080
|
+
/**
|
|
1081
|
+
* 设置属性
|
|
1082
|
+
* @param key
|
|
1083
|
+
* @param value
|
|
1084
|
+
*/
|
|
215
1085
|
set(key: string | number, value: any): void;
|
|
1086
|
+
/**
|
|
1087
|
+
* 获取属性
|
|
1088
|
+
*
|
|
1089
|
+
* @param key
|
|
1090
|
+
* @param defaultValue
|
|
1091
|
+
*/
|
|
216
1092
|
get(key: string | number, defaultValue?: any): any;
|
|
1093
|
+
/**
|
|
1094
|
+
* 获取属性
|
|
1095
|
+
*
|
|
1096
|
+
* @param key
|
|
1097
|
+
* @param defaultValue
|
|
1098
|
+
*/
|
|
217
1099
|
getForParent(key: string | number, defaultValue?: any): any;
|
|
1100
|
+
/**
|
|
1101
|
+
* 获取self属性
|
|
1102
|
+
* @param key
|
|
1103
|
+
* @returns
|
|
1104
|
+
*/
|
|
218
1105
|
getForSelf(key: string | number): any;
|
|
1106
|
+
/**
|
|
1107
|
+
* 从继承关系中获取属性集合
|
|
1108
|
+
* @param key
|
|
1109
|
+
*/
|
|
219
1110
|
getAll(key: string | number): any[];
|
|
220
1111
|
}
|
|
221
1112
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
1113
|
+
/**
|
|
1114
|
+
* Domain组件描述
|
|
1115
|
+
*/
|
|
1116
|
+
declare interface DomainComponentDescriptor {
|
|
1117
|
+
props?: Record<string, any> | {
|
|
1118
|
+
(): Record<string, any>;
|
|
1119
|
+
};
|
|
1120
|
+
ignorePropKeys?: string[];
|
|
1121
|
+
context: FoxSetupContext;
|
|
1122
|
+
templateRefProxy?: FoxTemplateRefProxy;
|
|
1123
|
+
}
|
|
225
1124
|
|
|
226
|
-
|
|
1125
|
+
/**
|
|
1126
|
+
* domain key
|
|
1127
|
+
*/
|
|
1128
|
+
export declare const DomainKey: unique symbol;
|
|
227
1129
|
|
|
228
|
-
|
|
1130
|
+
/**
|
|
1131
|
+
* exposed
|
|
1132
|
+
*/
|
|
1133
|
+
declare type EmitFn = (...args: any) => void;
|
|
229
1134
|
|
|
230
|
-
|
|
1135
|
+
/**
|
|
1136
|
+
* event listener
|
|
1137
|
+
*/
|
|
1138
|
+
declare interface EventListener_2 {
|
|
1139
|
+
(...args: any[]): void;
|
|
1140
|
+
}
|
|
231
1141
|
|
|
1142
|
+
/**
|
|
1143
|
+
* 根据排除模版,抽取属性
|
|
1144
|
+
* @param src
|
|
1145
|
+
* @param excludeTemplates
|
|
1146
|
+
* @returns
|
|
1147
|
+
*/
|
|
232
1148
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
233
1149
|
|
|
234
|
-
|
|
1150
|
+
/**
|
|
1151
|
+
* expose function
|
|
1152
|
+
*/
|
|
1153
|
+
declare type ExposeFn = (exposed?: Record<string, any>) => void;
|
|
235
1154
|
|
|
236
|
-
|
|
1155
|
+
/**
|
|
1156
|
+
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
1157
|
+
*
|
|
1158
|
+
* @returns
|
|
1159
|
+
*/
|
|
1160
|
+
export declare function extend(...args: any[]): any;
|
|
237
1161
|
|
|
1162
|
+
/**
|
|
1163
|
+
* float data
|
|
1164
|
+
* @param format
|
|
1165
|
+
* @param dataOp
|
|
1166
|
+
* @param mapOps
|
|
1167
|
+
* @returns
|
|
1168
|
+
*/
|
|
238
1169
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
239
1170
|
|
|
240
|
-
|
|
1171
|
+
/**
|
|
1172
|
+
* component public exposed
|
|
1173
|
+
*/
|
|
1174
|
+
declare type FoxComponentPublicExposed = Record<string | number | symbol, any>;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* component public exposed
|
|
1178
|
+
*/
|
|
1179
|
+
declare type FoxComponentPublicProxy = {
|
|
1180
|
+
exposed: FoxComponentPublicExposed;
|
|
1181
|
+
$el?: HTMLElement;
|
|
1182
|
+
props: Record<string, any>;
|
|
1183
|
+
attrs: Record<string, any>;
|
|
1184
|
+
};
|
|
241
1185
|
|
|
242
|
-
|
|
1186
|
+
/**
|
|
1187
|
+
* Fox setup context
|
|
1188
|
+
*/
|
|
1189
|
+
declare type FoxSetupContext = {
|
|
1190
|
+
attrs: Record<string, any>;
|
|
1191
|
+
emit: EmitFn;
|
|
1192
|
+
expose: ExposeFn;
|
|
1193
|
+
};
|
|
243
1194
|
|
|
1195
|
+
/**
|
|
1196
|
+
* template ref proxy
|
|
1197
|
+
*/
|
|
1198
|
+
declare type FoxTemplateRefProxy = any;
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
* Fox UI
|
|
1202
|
+
*/
|
|
244
1203
|
declare interface FoxUI {
|
|
1204
|
+
/**
|
|
1205
|
+
* 版本号
|
|
1206
|
+
*/
|
|
245
1207
|
version: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* 安装
|
|
1210
|
+
* @param app
|
|
1211
|
+
* @param options
|
|
1212
|
+
*/
|
|
246
1213
|
install(app: App, ...options: any[]): any;
|
|
247
|
-
|
|
1214
|
+
/**
|
|
1215
|
+
* 更新Layout
|
|
1216
|
+
*
|
|
1217
|
+
* @param options
|
|
1218
|
+
* @param rootDomain
|
|
1219
|
+
*/
|
|
1220
|
+
updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
1221
|
+
/**
|
|
1222
|
+
* 设置scope getter
|
|
1223
|
+
* @param getter
|
|
1224
|
+
*/
|
|
248
1225
|
setScopeGetter(getter: ScopeGetter): void;
|
|
1226
|
+
/**
|
|
1227
|
+
* 获取scope getter
|
|
1228
|
+
* @param getter
|
|
1229
|
+
*/
|
|
1230
|
+
getScopeGetter(): ScopeGetter | null;
|
|
1231
|
+
/**
|
|
1232
|
+
* 设置API
|
|
1233
|
+
* @param name
|
|
1234
|
+
* @param func
|
|
1235
|
+
* @param scope
|
|
1236
|
+
*/
|
|
249
1237
|
setAPI(name: string, func: any, scope?: string): void;
|
|
250
|
-
|
|
1238
|
+
/**
|
|
1239
|
+
* 获取API
|
|
1240
|
+
* @param name
|
|
1241
|
+
* @param scope
|
|
1242
|
+
*/
|
|
1243
|
+
getAPI(name: string, scope?: string): any | null;
|
|
1244
|
+
/**
|
|
1245
|
+
* 批量增加api
|
|
1246
|
+
* @param apis
|
|
1247
|
+
* @param scope
|
|
1248
|
+
*/
|
|
251
1249
|
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
1250
|
+
/**
|
|
1251
|
+
* 清空scope apis
|
|
1252
|
+
* @param scope
|
|
1253
|
+
*/
|
|
252
1254
|
clearScopeAPI(scope: string): void;
|
|
1255
|
+
/**
|
|
1256
|
+
* 获取root domain
|
|
1257
|
+
*/
|
|
253
1258
|
getRootDomain(): Domain;
|
|
254
1259
|
}
|
|
255
1260
|
|
|
1261
|
+
/**
|
|
1262
|
+
* Fox UI App
|
|
1263
|
+
*/
|
|
256
1264
|
declare class FoxUIApp implements FoxUI {
|
|
1265
|
+
/**
|
|
1266
|
+
* packages
|
|
1267
|
+
*/
|
|
257
1268
|
private packages;
|
|
1269
|
+
/**
|
|
1270
|
+
* version
|
|
1271
|
+
*/
|
|
258
1272
|
private _version;
|
|
259
1273
|
get version(): string;
|
|
1274
|
+
/**
|
|
1275
|
+
* 构造函数
|
|
1276
|
+
* @param packages
|
|
1277
|
+
* @param version
|
|
1278
|
+
*/
|
|
260
1279
|
constructor(packages: any[], version: string);
|
|
1280
|
+
/**
|
|
1281
|
+
* 安装
|
|
1282
|
+
* @param app
|
|
1283
|
+
* @param options
|
|
1284
|
+
*/
|
|
261
1285
|
install(app: App, options: FoxUIOptions): any;
|
|
262
|
-
|
|
1286
|
+
/**
|
|
1287
|
+
* 更新Layout
|
|
1288
|
+
*
|
|
1289
|
+
* @param options
|
|
1290
|
+
* @param rootDomain
|
|
1291
|
+
*/
|
|
1292
|
+
updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
1293
|
+
/**
|
|
1294
|
+
* 设置scope getter
|
|
1295
|
+
* @param getter
|
|
1296
|
+
*/
|
|
263
1297
|
setScopeGetter(getter: ScopeGetter): void;
|
|
1298
|
+
/**
|
|
1299
|
+
* 获取scope getter
|
|
1300
|
+
*/
|
|
1301
|
+
getScopeGetter(): ScopeGetter | null;
|
|
1302
|
+
/**
|
|
1303
|
+
* 设置API
|
|
1304
|
+
* @param name
|
|
1305
|
+
* @param api
|
|
1306
|
+
* @param scope
|
|
1307
|
+
*/
|
|
264
1308
|
setAPI(name: string, api: any, scope?: string): void;
|
|
265
|
-
|
|
1309
|
+
/**
|
|
1310
|
+
* 获取API
|
|
1311
|
+
* @param name
|
|
1312
|
+
* @param scope
|
|
1313
|
+
*/
|
|
1314
|
+
getAPI(name: string, scope?: string): any | null;
|
|
1315
|
+
/**
|
|
1316
|
+
* 批量增加api
|
|
1317
|
+
* @param apis
|
|
1318
|
+
* @param scope
|
|
1319
|
+
*/
|
|
266
1320
|
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
1321
|
+
/**
|
|
1322
|
+
* 清空scope apis
|
|
1323
|
+
* @param scope
|
|
1324
|
+
*/
|
|
267
1325
|
clearScopeAPI(scope: string): void;
|
|
1326
|
+
/**
|
|
1327
|
+
* 获取root domain
|
|
1328
|
+
*/
|
|
268
1329
|
getRootDomain(): Domain;
|
|
269
1330
|
}
|
|
270
1331
|
|
|
1332
|
+
/**
|
|
1333
|
+
* UI Options
|
|
1334
|
+
*/
|
|
271
1335
|
declare interface FoxUIOptions {
|
|
272
1336
|
install?: boolean;
|
|
1337
|
+
componentPrefix?: string;
|
|
273
1338
|
headerBarHeight?: number;
|
|
274
1339
|
footerBarHeight?: number;
|
|
275
1340
|
safeAreaInset?: SafeAreaInset;
|
|
276
1341
|
pageLayout?: PageLayout;
|
|
277
|
-
headerPadding?:
|
|
278
|
-
contentPadding?:
|
|
1342
|
+
headerPadding?: Rect_2;
|
|
1343
|
+
contentPadding?: Rect_2;
|
|
279
1344
|
groupLayout?: GroupLayout;
|
|
280
1345
|
labelWidth?: number | string;
|
|
281
1346
|
[propName: string]: any;
|
|
282
1347
|
}
|
|
283
1348
|
|
|
1349
|
+
/**
|
|
1350
|
+
* 通用函数接口
|
|
1351
|
+
*/
|
|
284
1352
|
export declare interface GenericFunction {
|
|
285
1353
|
(...args: any[]): any;
|
|
286
1354
|
}
|
|
287
1355
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
export declare
|
|
1356
|
+
/**
|
|
1357
|
+
* icons
|
|
1358
|
+
* @returns
|
|
1359
|
+
*/
|
|
1360
|
+
export declare function getGlobalIcons(): Icons;
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* 获取公共校验检查事件
|
|
1364
|
+
*/
|
|
1365
|
+
export declare function getGlobalValidateCheckEvents(): string[];
|
|
1366
|
+
|
|
1367
|
+
/**
|
|
1368
|
+
* 获取公共校验重置事件
|
|
1369
|
+
*/
|
|
1370
|
+
export declare function getGlobalValidateResetEvents(): string[];
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* 获取page content区域高度(pageHeight - headerHeight - footerHeight - padding )
|
|
1374
|
+
* @param domain
|
|
1375
|
+
* @param state
|
|
1376
|
+
* @returns
|
|
1377
|
+
*/
|
|
1378
|
+
export declare function getPageContentAreaHeight(domain: Domain, state?: PageState): number;
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* 获取page content区域宽度(pageWidth - padding )
|
|
1382
|
+
* @param domain
|
|
1383
|
+
* @param state
|
|
1384
|
+
* @returns
|
|
1385
|
+
*/
|
|
1386
|
+
export declare function getPageContentAreaWidth(domain: Domain, state?: PageState): number;
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* 获取page footer区域高度(footerHeight + SafeAreaBottom )
|
|
1390
|
+
* @param domain
|
|
1391
|
+
* @param state
|
|
1392
|
+
* @returns
|
|
1393
|
+
*/
|
|
1394
|
+
export declare function getPageFooterAreaHeight(domain: Domain, state?: PageState): number;
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* 获取page header区域高度(headerHeight + SafeAreaTop )
|
|
1398
|
+
* @param domain
|
|
1399
|
+
* @param state
|
|
1400
|
+
* @returns
|
|
1401
|
+
*/
|
|
1402
|
+
export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageState): number;
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* 获取root domain
|
|
1406
|
+
* @returns
|
|
1407
|
+
*/
|
|
1408
|
+
export declare function getRootDomain(): Domain;
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* Group Content
|
|
1412
|
+
*/
|
|
1413
|
+
declare type GroupContent = {
|
|
1414
|
+
title: string;
|
|
1415
|
+
content: Array<string> | string;
|
|
1416
|
+
};
|
|
293
1417
|
|
|
1418
|
+
/**
|
|
1419
|
+
* Layout信息接口
|
|
1420
|
+
*/
|
|
294
1421
|
declare interface GroupLayout {
|
|
295
|
-
type
|
|
296
|
-
width
|
|
297
|
-
column
|
|
298
|
-
gutter
|
|
1422
|
+
type?: string;
|
|
1423
|
+
width?: number | string;
|
|
1424
|
+
column?: number;
|
|
1425
|
+
gutter?: number | string;
|
|
299
1426
|
}
|
|
300
1427
|
|
|
1428
|
+
/**
|
|
1429
|
+
* 是否支持symbol
|
|
1430
|
+
*/
|
|
301
1431
|
export declare const hasSymbol: boolean;
|
|
302
1432
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
export
|
|
1433
|
+
/**
|
|
1434
|
+
* hint text function
|
|
1435
|
+
*/
|
|
1436
|
+
declare const HintTextFunction: HintTextTooltip;
|
|
1437
|
+
export { HintTextFunction as FoxHintText }
|
|
1438
|
+
export { HintTextFunction as HintText }
|
|
1439
|
+
|
|
1440
|
+
/**
|
|
1441
|
+
* HintTextTooltip
|
|
1442
|
+
*/
|
|
1443
|
+
declare interface HintTextTooltip {
|
|
1444
|
+
/**
|
|
1445
|
+
* 显示
|
|
1446
|
+
* @param reference
|
|
1447
|
+
* @param message
|
|
1448
|
+
* @param opts
|
|
1449
|
+
* @param only
|
|
1450
|
+
* @returns
|
|
1451
|
+
*/
|
|
1452
|
+
show(reference: HTMLElement, message: string, opts: Record<string, any>, only?: boolean): string;
|
|
1453
|
+
/**
|
|
1454
|
+
* 隐藏
|
|
1455
|
+
* @param id
|
|
1456
|
+
*/
|
|
1457
|
+
hide(id?: string): void;
|
|
1458
|
+
/**
|
|
1459
|
+
* 额外属性
|
|
1460
|
+
*/
|
|
1461
|
+
[propName: string]: any;
|
|
1462
|
+
}
|
|
308
1463
|
|
|
309
|
-
declare
|
|
310
|
-
|
|
1464
|
+
declare type Icons = {
|
|
1465
|
+
headerbar: {
|
|
1466
|
+
Left?: any;
|
|
1467
|
+
};
|
|
1468
|
+
radio: {
|
|
1469
|
+
CheckNormal?: any;
|
|
1470
|
+
Checked?: any;
|
|
1471
|
+
};
|
|
1472
|
+
checkbox: {
|
|
1473
|
+
CheckNormal?: any;
|
|
1474
|
+
Checked?: any;
|
|
1475
|
+
Indeterminate?: any;
|
|
1476
|
+
};
|
|
1477
|
+
};
|
|
311
1478
|
|
|
312
1479
|
declare interface ImageInterface {
|
|
313
1480
|
src: string;
|
|
314
1481
|
}
|
|
315
1482
|
|
|
316
|
-
|
|
317
|
-
(options: ImagePreviewOptions): ImagePreviewFunction;
|
|
318
|
-
install(app: any): void;
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
declare class ImagePreviewFunction {
|
|
1483
|
+
declare class ImagePreviewApp {
|
|
322
1484
|
options: ImagePreviewOptions;
|
|
323
1485
|
constructor(_options: ImagePreviewOptions);
|
|
324
1486
|
}
|
|
325
1487
|
|
|
1488
|
+
declare const ImagePreviewFunction: {
|
|
1489
|
+
(options: ImagePreviewOptions): ImagePreviewApp;
|
|
1490
|
+
install(app: any): void;
|
|
1491
|
+
};
|
|
1492
|
+
export { ImagePreviewFunction as FoxImagePreview }
|
|
1493
|
+
export { ImagePreviewFunction as ImagePreview }
|
|
1494
|
+
|
|
326
1495
|
declare class ImagePreviewOptions {
|
|
327
1496
|
show: boolean;
|
|
328
1497
|
images: ImageInterface[];
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
1498
|
+
videos?: [];
|
|
1499
|
+
contentClose?: boolean;
|
|
1500
|
+
initNo?: number;
|
|
1501
|
+
paginationVisible?: boolean;
|
|
1502
|
+
paginationColor?: string;
|
|
1503
|
+
autoplay?: number | string;
|
|
1504
|
+
isWrapTeleport?: boolean;
|
|
1505
|
+
showIndex?: boolean;
|
|
1506
|
+
closeable?: boolean;
|
|
1507
|
+
closeIconPosition?: string;
|
|
1508
|
+
beforeClose?: Interceptor;
|
|
1509
|
+
maxZoom?: number;
|
|
1510
|
+
minZoom?: number;
|
|
1511
|
+
isLoop?: boolean;
|
|
1512
|
+
onClose?(): void;
|
|
1513
|
+
onChange?(index: number): void;
|
|
1514
|
+
teleport?: string | HTMLElement;
|
|
334
1515
|
}
|
|
335
1516
|
|
|
1517
|
+
/**
|
|
1518
|
+
* 根据包含模版,抽取属性
|
|
1519
|
+
* @param src
|
|
1520
|
+
* @param includeTemplates
|
|
1521
|
+
* @returns
|
|
1522
|
+
*/
|
|
336
1523
|
export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
|
|
337
1524
|
|
|
1525
|
+
/**
|
|
1526
|
+
* 获取对应元素的在数组中第一个匹配的索引
|
|
1527
|
+
* @param x
|
|
1528
|
+
* @param arr
|
|
1529
|
+
* @returns
|
|
1530
|
+
*/
|
|
338
1531
|
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
339
1532
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
export declare
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
1533
|
+
/**
|
|
1534
|
+
* 获取是否为虚拟页面范围
|
|
1535
|
+
* @param defaultValue
|
|
1536
|
+
*/
|
|
1537
|
+
export declare function injectAbstractPageScope(defaultValue?: boolean): boolean | AbstractPageScope;
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* 获取content是否为虚拟页面范围
|
|
1541
|
+
* @param defaultValue
|
|
1542
|
+
* @returns
|
|
1543
|
+
*/
|
|
1544
|
+
export declare function injectAbstractPageScopeForContent(defaultValue?: boolean): boolean;
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* 获取footerBar是否为虚拟页面范围
|
|
1548
|
+
* @param defaultValue
|
|
1549
|
+
* @returns
|
|
1550
|
+
*/
|
|
1551
|
+
export declare function injectAbstractPageScopeForFooterBar(defaultValue?: boolean): boolean;
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* 获取headerBar是否为虚拟页面范围
|
|
1555
|
+
* @param defaultValue
|
|
1556
|
+
* @returns
|
|
1557
|
+
*/
|
|
1558
|
+
export declare function injectAbstractPageScopeForHeaderBar(defaultValue?: boolean): boolean;
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* 获取是否为内部页面范围
|
|
1562
|
+
* @param defaultValue
|
|
1563
|
+
*/
|
|
1564
|
+
export declare function injectInnerPageScope(defaultValue?: boolean): boolean;
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* inner page scope key(内部页面,默认适配父亲容器尺寸,not watch resize)
|
|
1568
|
+
*/
|
|
1569
|
+
export declare const InnerPageScopeKey: unique symbol;
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* 获取整数长度
|
|
1573
|
+
* @param value
|
|
1574
|
+
*/
|
|
348
1575
|
export declare function integerLength(value: string | number): number;
|
|
349
1576
|
|
|
1577
|
+
declare type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
|
|
1578
|
+
|
|
1579
|
+
/**
|
|
1580
|
+
* 是否数组
|
|
1581
|
+
*/
|
|
350
1582
|
export declare const isArray: (arg: any) => arg is any[];
|
|
351
1583
|
|
|
1584
|
+
/**
|
|
1585
|
+
* 是否为类数组
|
|
1586
|
+
* @param obj
|
|
1587
|
+
* @returns {boolean}
|
|
1588
|
+
*/
|
|
352
1589
|
export declare function isArrayLike(obj: any): boolean;
|
|
353
1590
|
|
|
1591
|
+
/**
|
|
1592
|
+
* 是否为浏览器环境
|
|
1593
|
+
*/
|
|
354
1594
|
export declare const isBrowser: boolean;
|
|
355
1595
|
|
|
1596
|
+
/**
|
|
1597
|
+
* 是否为Date
|
|
1598
|
+
* @param val
|
|
1599
|
+
* @returns
|
|
1600
|
+
*/
|
|
356
1601
|
export declare const isDate: (val: unknown) => val is Date;
|
|
357
1602
|
|
|
1603
|
+
/**
|
|
1604
|
+
* 是否display none
|
|
1605
|
+
* @param el
|
|
1606
|
+
* @returns
|
|
1607
|
+
*/
|
|
1608
|
+
export declare function isDisplayNone(el: HTMLElement): boolean;
|
|
1609
|
+
|
|
1610
|
+
/**
|
|
1611
|
+
* 是否空字符串
|
|
1612
|
+
* @param v
|
|
1613
|
+
* @returns
|
|
1614
|
+
*/
|
|
358
1615
|
export declare const isEmptyString: (v: unknown) => boolean;
|
|
359
1616
|
|
|
1617
|
+
/**
|
|
1618
|
+
* 判断两个对象是否一致
|
|
1619
|
+
* @param x
|
|
1620
|
+
* @param y
|
|
1621
|
+
* @return
|
|
1622
|
+
*/
|
|
360
1623
|
export declare function isEqual(x: any, y: any): boolean;
|
|
361
1624
|
|
|
1625
|
+
/**
|
|
1626
|
+
* 是否为es module
|
|
1627
|
+
* @param obj
|
|
1628
|
+
* @returns
|
|
1629
|
+
*/
|
|
362
1630
|
export declare function isESModule(obj: any): obj is Object;
|
|
363
1631
|
|
|
1632
|
+
/**
|
|
1633
|
+
* 是否为函数
|
|
1634
|
+
* @param val
|
|
1635
|
+
* @returns
|
|
1636
|
+
*/
|
|
364
1637
|
export declare const isFunction: (val: unknown) => val is Function;
|
|
365
1638
|
|
|
1639
|
+
/**
|
|
1640
|
+
* 是否是隐藏 element(自身或任意父级隐藏)
|
|
1641
|
+
* - display: none
|
|
1642
|
+
* - visibility: hidden
|
|
1643
|
+
* - hidden 属性
|
|
1644
|
+
* - 父级隐藏
|
|
1645
|
+
*/
|
|
1646
|
+
export declare function isHidden(el: any): boolean;
|
|
1647
|
+
|
|
1648
|
+
/**
|
|
1649
|
+
* 是否为Map
|
|
1650
|
+
* @param val
|
|
1651
|
+
* @returns
|
|
1652
|
+
*/
|
|
366
1653
|
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
367
1654
|
|
|
1655
|
+
/**
|
|
1656
|
+
* 是否null/undefined对象
|
|
1657
|
+
*/
|
|
1658
|
+
export declare function isNil(v: unknown): v is null | undefined;
|
|
1659
|
+
|
|
1660
|
+
/**
|
|
1661
|
+
* 是否为数字字符串
|
|
1662
|
+
* @param value
|
|
1663
|
+
* @returns
|
|
1664
|
+
*/
|
|
368
1665
|
export declare function isNumberString(value: string): boolean;
|
|
369
1666
|
|
|
1667
|
+
/**
|
|
1668
|
+
* 是否为object
|
|
1669
|
+
*/
|
|
370
1670
|
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
371
1671
|
|
|
1672
|
+
/**
|
|
1673
|
+
* 是否为plain对象
|
|
1674
|
+
* @param val
|
|
1675
|
+
* @returns
|
|
1676
|
+
*/
|
|
372
1677
|
export declare const isPlainObject: (val: unknown) => val is object;
|
|
373
1678
|
|
|
1679
|
+
/**
|
|
1680
|
+
* 是否为promise
|
|
1681
|
+
* @param val
|
|
1682
|
+
* @returns
|
|
1683
|
+
*/
|
|
374
1684
|
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
375
1685
|
|
|
1686
|
+
/**
|
|
1687
|
+
* 判断是否为正则表达式
|
|
1688
|
+
* @param v
|
|
1689
|
+
* @returns
|
|
1690
|
+
*/
|
|
376
1691
|
export declare function isRegExp(v: unknown): v is RegExp;
|
|
377
1692
|
|
|
1693
|
+
/**
|
|
1694
|
+
* 是否为Set
|
|
1695
|
+
* @param val
|
|
1696
|
+
* @returns
|
|
1697
|
+
*/
|
|
378
1698
|
export declare const isSet: (val: unknown) => val is Set<any>;
|
|
379
1699
|
|
|
1700
|
+
/**
|
|
1701
|
+
* 是否为字符串
|
|
1702
|
+
* @param val
|
|
1703
|
+
* @returns
|
|
1704
|
+
*/
|
|
380
1705
|
export declare const isString: (val: unknown) => val is string;
|
|
381
1706
|
|
|
1707
|
+
/**
|
|
1708
|
+
* 是否子页面
|
|
1709
|
+
* @param domain
|
|
1710
|
+
*/
|
|
1711
|
+
export declare function isSubPage(domain: Domain): boolean;
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* 是否为symbol
|
|
1715
|
+
* @param val
|
|
1716
|
+
* @returns
|
|
1717
|
+
*/
|
|
382
1718
|
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
383
1719
|
|
|
384
|
-
|
|
1720
|
+
/**
|
|
1721
|
+
* 是否为支持触摸
|
|
1722
|
+
* @returns
|
|
1723
|
+
*/
|
|
1724
|
+
export declare function isTouch(): boolean;
|
|
385
1725
|
|
|
386
|
-
|
|
1726
|
+
/**
|
|
1727
|
+
* 是否是window对象
|
|
1728
|
+
* @param obj
|
|
1729
|
+
*/
|
|
1730
|
+
export declare function isWindow(obj: any): boolean;
|
|
387
1731
|
|
|
1732
|
+
/**
|
|
1733
|
+
* 中划线格式转换为大驼峰
|
|
1734
|
+
* @param str
|
|
1735
|
+
* @returns
|
|
1736
|
+
*/
|
|
1737
|
+
export declare function kebabToPascal(str: string): string;
|
|
1738
|
+
|
|
1739
|
+
/**
|
|
1740
|
+
* 获取对应元素的在数组中最后一个匹配的索引
|
|
1741
|
+
* @param x
|
|
1742
|
+
* @param arr
|
|
1743
|
+
* @returns
|
|
1744
|
+
*/
|
|
388
1745
|
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
389
1746
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
1747
|
+
/**
|
|
1748
|
+
* 创建数组
|
|
1749
|
+
* @param arr
|
|
1750
|
+
* @param results
|
|
1751
|
+
* @return
|
|
1752
|
+
*/
|
|
396
1753
|
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
397
1754
|
|
|
398
|
-
|
|
1755
|
+
/**
|
|
1756
|
+
* 匹配条件
|
|
1757
|
+
*/
|
|
1758
|
+
export declare interface Matched {
|
|
399
1759
|
name?: string | RegExp | {
|
|
400
1760
|
(name: string): boolean;
|
|
401
1761
|
};
|
|
402
|
-
|
|
403
|
-
|
|
1762
|
+
resolve?: Resolve;
|
|
1763
|
+
resolved?: boolean;
|
|
1764
|
+
uniqueId?: string;
|
|
1765
|
+
cachePolicy?: MessageCachePolicy;
|
|
1766
|
+
messagingPolicy?: MessagingPolicy;
|
|
404
1767
|
}
|
|
405
1768
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
1769
|
+
/**
|
|
1770
|
+
* 合并数组
|
|
1771
|
+
* @param first
|
|
1772
|
+
* @param second
|
|
1773
|
+
* @return
|
|
1774
|
+
*/
|
|
410
1775
|
export declare function merge(first: any[], second: any[]): any[];
|
|
411
1776
|
|
|
412
|
-
|
|
1777
|
+
/**
|
|
1778
|
+
* MessageBox动作
|
|
1779
|
+
*/
|
|
1780
|
+
declare type MessageBoxAction = 'confirm' | 'cancel' | 'close';
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* MesageBox Function
|
|
1784
|
+
*/
|
|
1785
|
+
declare const MessageBoxFunction: {
|
|
1786
|
+
/**
|
|
1787
|
+
* show
|
|
1788
|
+
* @param message
|
|
1789
|
+
* @param title
|
|
1790
|
+
* @param options
|
|
1791
|
+
*/
|
|
1792
|
+
show: (openType: OpenType, message: Content_2 | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
|
|
1793
|
+
/**
|
|
1794
|
+
* alert
|
|
1795
|
+
* @param messge
|
|
1796
|
+
* @param title
|
|
1797
|
+
* @param options
|
|
1798
|
+
*/
|
|
1799
|
+
alert: (message: string | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
|
|
1800
|
+
/**
|
|
1801
|
+
* confirm
|
|
1802
|
+
* @param messge
|
|
1803
|
+
* @param title
|
|
1804
|
+
* @param options
|
|
1805
|
+
*/
|
|
1806
|
+
confirm: (message: string | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
|
|
1807
|
+
/**
|
|
1808
|
+
* 安装
|
|
1809
|
+
* @param app
|
|
1810
|
+
*/
|
|
1811
|
+
install(app: any): void;
|
|
1812
|
+
};
|
|
1813
|
+
export { MessageBoxFunction as FoxMessageBox }
|
|
1814
|
+
export { MessageBoxFunction as MessageBox }
|
|
1815
|
+
|
|
1816
|
+
/**
|
|
1817
|
+
* 消息缓存策略
|
|
1818
|
+
* None:不缓存; UnResolved:消息未命中前缓存;Persistant:永久缓存
|
|
1819
|
+
*/
|
|
1820
|
+
export declare type MessageCachePolicy = 'None' | 'Unresolved' | 'Persistant';
|
|
1821
|
+
|
|
1822
|
+
/**
|
|
1823
|
+
* Message Box返回值
|
|
1824
|
+
*/
|
|
1825
|
+
declare type MessageResult = {
|
|
1826
|
+
action: MessageBoxAction;
|
|
1827
|
+
};
|
|
413
1828
|
|
|
414
|
-
|
|
1829
|
+
/**
|
|
1830
|
+
* 消息传递策略
|
|
1831
|
+
* broadcast
|
|
1832
|
+
*/
|
|
1833
|
+
export declare type MessagingPolicy = 'Brodcast' | 'Once';
|
|
415
1834
|
|
|
416
|
-
export
|
|
1835
|
+
export { multiply }
|
|
417
1836
|
|
|
418
1837
|
export { negate }
|
|
419
1838
|
|
|
1839
|
+
/**
|
|
1840
|
+
* 下一个事件周期中执行函数
|
|
1841
|
+
* @param fn
|
|
1842
|
+
* @param args
|
|
1843
|
+
*/
|
|
420
1844
|
export declare function nextTick(fn: {
|
|
421
1845
|
(...args: any[]): void;
|
|
422
1846
|
}, ...args: any[]): void;
|
|
423
1847
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
primary(msg: string, obj?: {}):
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
1848
|
+
declare const NotifyFunction: {
|
|
1849
|
+
text(msg: string, obj?: {}): {
|
|
1850
|
+
[x: string]: unknown;
|
|
1851
|
+
};
|
|
1852
|
+
primary(msg: string, obj?: {}): {
|
|
1853
|
+
[x: string]: unknown;
|
|
1854
|
+
};
|
|
1855
|
+
success(msg: string, obj?: {}): {
|
|
1856
|
+
[x: string]: unknown;
|
|
1857
|
+
};
|
|
1858
|
+
danger(msg: string, obj?: {}): {
|
|
1859
|
+
[x: string]: unknown;
|
|
1860
|
+
};
|
|
1861
|
+
warn(msg: string, obj?: {}): {
|
|
1862
|
+
[x: string]: unknown;
|
|
1863
|
+
};
|
|
432
1864
|
hide(): void;
|
|
433
1865
|
install(app: any): void;
|
|
434
1866
|
};
|
|
1867
|
+
export { NotifyFunction as FoxNotify }
|
|
1868
|
+
export { NotifyFunction as Notify }
|
|
435
1869
|
|
|
436
1870
|
export { numberFormat }
|
|
437
1871
|
|
|
438
|
-
|
|
439
|
-
|
|
1872
|
+
/**
|
|
1873
|
+
* 对象类型
|
|
1874
|
+
*/
|
|
440
1875
|
export declare const objectToString: () => string;
|
|
441
1876
|
|
|
442
|
-
|
|
1877
|
+
/**
|
|
1878
|
+
* 只执行一次函数
|
|
1879
|
+
* @param func
|
|
1880
|
+
* @returns
|
|
1881
|
+
*/
|
|
1882
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
443
1883
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
bottom: number | null;
|
|
449
|
-
}
|
|
1884
|
+
/**
|
|
1885
|
+
* 打开类型
|
|
1886
|
+
*/
|
|
1887
|
+
declare type OpenType = 'alert' | 'confirm' | '';
|
|
450
1888
|
|
|
451
|
-
|
|
1889
|
+
declare type Options = {
|
|
1890
|
+
teleport?: string | HTMLElement;
|
|
1891
|
+
zIndex?: number | string;
|
|
1892
|
+
[propName: string]: any;
|
|
1893
|
+
};
|
|
452
1894
|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
1895
|
+
/**
|
|
1896
|
+
* 覆盖更新公共Icon
|
|
1897
|
+
* @param icons
|
|
1898
|
+
* @param merge
|
|
1899
|
+
*/
|
|
1900
|
+
export declare function overrideGlobalIcons(newIcons: Partial<Icons>): void;
|
|
1901
|
+
|
|
1902
|
+
/**
|
|
1903
|
+
* 覆盖更新公共的校验处理器
|
|
1904
|
+
* @param validateHandler
|
|
1905
|
+
*/
|
|
1906
|
+
export declare function overrideGlobalValidateHandler(validateHandler: Partial<ValidateHandler>): void;
|
|
1907
|
+
|
|
1908
|
+
/**
|
|
1909
|
+
* padding
|
|
1910
|
+
*/
|
|
1911
|
+
export declare interface Padding {
|
|
1912
|
+
left: number | string | null;
|
|
1913
|
+
top: number | string | null;
|
|
1914
|
+
right: number | string | null;
|
|
1915
|
+
bottom: number | string | null;
|
|
461
1916
|
}
|
|
462
1917
|
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
export declare
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
1918
|
+
/**
|
|
1919
|
+
* pad zero
|
|
1920
|
+
*/
|
|
1921
|
+
export declare const padZero: (num: number | string, length?: number) => string;
|
|
1922
|
+
|
|
1923
|
+
/**
|
|
1924
|
+
* page layout
|
|
1925
|
+
*/
|
|
1926
|
+
export declare interface PageLayout {
|
|
1927
|
+
width?: number | string;
|
|
1928
|
+
height?: number | string;
|
|
1929
|
+
headerHeight?: number | string;
|
|
1930
|
+
footerHeight?: number | string;
|
|
1931
|
+
headerPadding?: Partial<Padding>;
|
|
1932
|
+
footerPadding?: Partial<Padding>;
|
|
1933
|
+
contentPadding?: Partial<Padding>;
|
|
1934
|
+
}
|
|
476
1935
|
|
|
477
|
-
|
|
1936
|
+
/**
|
|
1937
|
+
* page state
|
|
1938
|
+
*/
|
|
1939
|
+
export declare interface PageState {
|
|
1940
|
+
width: number;
|
|
1941
|
+
height: number;
|
|
1942
|
+
headerHeight: number;
|
|
1943
|
+
headerPadding: Padding;
|
|
1944
|
+
headerAllHeight?: number;
|
|
1945
|
+
footerHeight: number;
|
|
1946
|
+
footerPadding: Padding;
|
|
1947
|
+
footerAllHeight?: number;
|
|
1948
|
+
contentHeight: number | string | null;
|
|
1949
|
+
contentPadding: Padding;
|
|
1950
|
+
contentInnerHeight?: number;
|
|
1951
|
+
contentInnerWidth?: number;
|
|
1952
|
+
safeAreaTop: number;
|
|
1953
|
+
safeAreaBottom: number;
|
|
1954
|
+
safeAreaLeft: number;
|
|
1955
|
+
safeAreaRight: number;
|
|
1956
|
+
headerMounted?: boolean;
|
|
1957
|
+
footerMounted?: boolean;
|
|
1958
|
+
}
|
|
478
1959
|
|
|
479
|
-
|
|
1960
|
+
/**
|
|
1961
|
+
* 大驼峰转换为中划线
|
|
1962
|
+
* @param str
|
|
1963
|
+
* @returns
|
|
1964
|
+
*/
|
|
1965
|
+
export declare function pascalToKebab<T extends string>(str: string): string;
|
|
1966
|
+
|
|
1967
|
+
/**
|
|
1968
|
+
* 持久消息
|
|
1969
|
+
*/
|
|
1970
|
+
declare interface PersistantMessage {
|
|
1971
|
+
matched: Matched;
|
|
1972
|
+
action: string;
|
|
1973
|
+
args: any[];
|
|
1974
|
+
}
|
|
480
1975
|
|
|
481
|
-
|
|
1976
|
+
/**
|
|
1977
|
+
* 坐标
|
|
1978
|
+
*/
|
|
1979
|
+
export declare interface Point {
|
|
1980
|
+
x: number;
|
|
1981
|
+
y: number;
|
|
1982
|
+
}
|
|
482
1983
|
|
|
483
|
-
|
|
484
|
-
|
|
1984
|
+
/**
|
|
1985
|
+
* prevent default
|
|
1986
|
+
* @param event
|
|
1987
|
+
* @param isStopPropagation
|
|
1988
|
+
*/
|
|
1989
|
+
export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
|
|
1990
|
+
|
|
1991
|
+
/**
|
|
1992
|
+
* 优先策略
|
|
1993
|
+
*/
|
|
1994
|
+
export declare enum PriorityPolicy {
|
|
1995
|
+
Parent = 0,
|
|
1996
|
+
Near = 1
|
|
1997
|
+
}
|
|
485
1998
|
|
|
486
|
-
|
|
1999
|
+
/**
|
|
2000
|
+
* 属性
|
|
2001
|
+
* @param source
|
|
2002
|
+
* @param name
|
|
2003
|
+
* @param policy
|
|
2004
|
+
* @param filter
|
|
2005
|
+
*/
|
|
2006
|
+
export declare function property<T>(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref<T>;
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
* 设置虚拟页面范围
|
|
2010
|
+
* 虚拟页面,默认情况下不生成page、headerBar、footerBar、content,直接reader content内部组件
|
|
2011
|
+
* 也可以通过AbstractPageScope对象设置选择生成headerBar or footerBar or content 部分结构
|
|
2012
|
+
* @param value
|
|
2013
|
+
*/
|
|
2014
|
+
export declare function provideAbstractPageScope(value: boolean | AbstractPageScope): void;
|
|
2015
|
+
|
|
2016
|
+
/**
|
|
2017
|
+
* 设置内部页面范围
|
|
2018
|
+
* 内部页面,默认适配父亲容器尺寸,not watch resize
|
|
2019
|
+
* @param value
|
|
2020
|
+
*/
|
|
2021
|
+
export declare function provideInnerPageScope(value: boolean): void;
|
|
2022
|
+
|
|
2023
|
+
/**
|
|
2024
|
+
* px转换为number
|
|
2025
|
+
* @param s
|
|
2026
|
+
* @returns
|
|
2027
|
+
*/
|
|
2028
|
+
export declare function px2Number(s: string): number;
|
|
2029
|
+
|
|
2030
|
+
export declare const raf: any;
|
|
2031
|
+
|
|
2032
|
+
/**
|
|
2033
|
+
* 只读属性
|
|
2034
|
+
* @param source
|
|
2035
|
+
*/
|
|
2036
|
+
export declare function readonlyProperty(source: Ref): Ref<boolean>;
|
|
2037
|
+
|
|
2038
|
+
export declare interface Rect {
|
|
2039
|
+
top: number;
|
|
2040
|
+
left: number;
|
|
2041
|
+
right: number;
|
|
2042
|
+
bottom: number;
|
|
2043
|
+
width: number;
|
|
2044
|
+
height: number;
|
|
2045
|
+
}
|
|
487
2046
|
|
|
488
|
-
|
|
2047
|
+
/**
|
|
2048
|
+
* Rect类型
|
|
2049
|
+
*/
|
|
2050
|
+
declare interface Rect_2 {
|
|
489
2051
|
left: number;
|
|
490
2052
|
top: number;
|
|
491
2053
|
right: number;
|
|
492
2054
|
bottom: number;
|
|
493
2055
|
}
|
|
494
2056
|
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
declare
|
|
2057
|
+
/**
|
|
2058
|
+
* 消息确认函数
|
|
2059
|
+
*/
|
|
2060
|
+
declare type Resolve = (...args: any) => void;
|
|
2061
|
+
|
|
2062
|
+
/**
|
|
2063
|
+
* 结果类型
|
|
2064
|
+
*/
|
|
2065
|
+
export declare type Result = Promise<any> | any;
|
|
2066
|
+
|
|
2067
|
+
/**
|
|
2068
|
+
* 结果集合
|
|
2069
|
+
*/
|
|
2070
|
+
export declare type Results = Result[];
|
|
2071
|
+
|
|
2072
|
+
/**
|
|
2073
|
+
* 安全区域
|
|
2074
|
+
*/
|
|
2075
|
+
export declare interface SafeAreaInset {
|
|
504
2076
|
left: number | string;
|
|
505
2077
|
top: number | string;
|
|
506
2078
|
right: number | string;
|
|
507
2079
|
bottom: number | string;
|
|
508
2080
|
}
|
|
509
2081
|
|
|
2082
|
+
/**
|
|
2083
|
+
* scope getter
|
|
2084
|
+
* 需要保证该函数能够在 InjectionContext 上下文中允许
|
|
2085
|
+
*/
|
|
510
2086
|
declare interface ScopeGetter {
|
|
511
|
-
(
|
|
2087
|
+
(): string | null;
|
|
512
2088
|
}
|
|
513
2089
|
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
export declare
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
export declare
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
export declare
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
export declare const TabbarItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
551
|
-
|
|
552
|
-
export declare const Table: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
553
|
-
|
|
554
|
-
export declare const TabPane: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
555
|
-
|
|
556
|
-
export declare const Tabs: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
557
|
-
|
|
558
|
-
export declare const Tag: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
559
|
-
|
|
560
|
-
export declare const Textarea: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
561
|
-
|
|
562
|
-
export declare const TextareaItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
563
|
-
|
|
564
|
-
export declare function throttle(func: GenericFunction, time: number): GenericFunction;
|
|
565
|
-
|
|
566
|
-
export declare const TimeDetail: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
567
|
-
|
|
568
|
-
export declare const TimePannel: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
2090
|
+
/**
|
|
2091
|
+
* 设置公共校验检查事件
|
|
2092
|
+
* @param events
|
|
2093
|
+
*/
|
|
2094
|
+
export declare function setGlobalValidateCheckEvents(events: string[]): void;
|
|
2095
|
+
|
|
2096
|
+
/**
|
|
2097
|
+
* 设置公共的校验处理器
|
|
2098
|
+
* @param validateHandler
|
|
2099
|
+
*/
|
|
2100
|
+
export declare function setGlobalValidateHandler(validateHandler: ValidateHandler): void;
|
|
2101
|
+
|
|
2102
|
+
/**
|
|
2103
|
+
* 设置公共校验提示信息
|
|
2104
|
+
*/
|
|
2105
|
+
export declare function setGlobalValidateMessages(messages: ValidateMessages): void;
|
|
2106
|
+
|
|
2107
|
+
/**
|
|
2108
|
+
* 设置公共校验重置事件
|
|
2109
|
+
* @param events
|
|
2110
|
+
*/
|
|
2111
|
+
export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
2112
|
+
|
|
2113
|
+
/**
|
|
2114
|
+
* 设置公共校验器
|
|
2115
|
+
* @param type
|
|
2116
|
+
* @param validator
|
|
2117
|
+
*/
|
|
2118
|
+
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
2119
|
+
|
|
2120
|
+
/**
|
|
2121
|
+
* simple组件描述
|
|
2122
|
+
*/
|
|
2123
|
+
declare interface SimpleComponentDescriptor {
|
|
2124
|
+
context: FoxSetupContext;
|
|
2125
|
+
}
|
|
569
2126
|
|
|
570
|
-
|
|
2127
|
+
/**
|
|
2128
|
+
* size
|
|
2129
|
+
*/
|
|
2130
|
+
declare interface Size {
|
|
2131
|
+
width: number;
|
|
2132
|
+
height: number;
|
|
2133
|
+
}
|
|
571
2134
|
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
2135
|
+
/**
|
|
2136
|
+
* 节流函数(执行时间范围内的第一次)
|
|
2137
|
+
* @param func 函数
|
|
2138
|
+
* @param delay 延迟执行毫秒数
|
|
2139
|
+
* @returns
|
|
2140
|
+
*/
|
|
2141
|
+
export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
|
|
2142
|
+
|
|
2143
|
+
declare const ToastFunction: {
|
|
2144
|
+
text(msg: string, opts?: {}): /*elided*/ any;
|
|
2145
|
+
success(msg: string, opts?: {}): /*elided*/ any;
|
|
2146
|
+
fail(msg: string, opts?: {}): /*elided*/ any;
|
|
2147
|
+
warn(msg: string, opts?: {}): /*elided*/ any;
|
|
2148
|
+
loading(msg: string, opts?: {}): /*elided*/ any;
|
|
578
2149
|
hide(id?: string): void;
|
|
579
2150
|
install(app: any): void;
|
|
580
2151
|
};
|
|
581
|
-
|
|
2152
|
+
export { ToastFunction as FoxToast }
|
|
2153
|
+
export { ToastFunction as Toast }
|
|
2154
|
+
|
|
2155
|
+
/**
|
|
2156
|
+
* 转换为boolean值
|
|
2157
|
+
* @param val
|
|
2158
|
+
* @returns
|
|
2159
|
+
*/
|
|
582
2160
|
export declare function toBoolean(val: unknown): boolean;
|
|
583
2161
|
|
|
2162
|
+
/**
|
|
2163
|
+
* 转换为number值
|
|
2164
|
+
* @param val
|
|
2165
|
+
* @returns
|
|
2166
|
+
*/
|
|
584
2167
|
export declare function toNumber(val: unknown): number;
|
|
585
2168
|
|
|
2169
|
+
/**
|
|
2170
|
+
* 转换为number rect
|
|
2171
|
+
*/
|
|
2172
|
+
export declare function toPadding(rect: any): Padding;
|
|
2173
|
+
|
|
2174
|
+
/**
|
|
2175
|
+
* 转换为px number数值
|
|
2176
|
+
* @param value
|
|
2177
|
+
* @param size
|
|
2178
|
+
*/
|
|
2179
|
+
export declare function toPx(value: number | string, size?: number): number;
|
|
2180
|
+
|
|
2181
|
+
export declare const toPxDesc: (value: string | number, size?: number) => string;
|
|
2182
|
+
|
|
2183
|
+
/**
|
|
2184
|
+
* to px desc
|
|
2185
|
+
* @param value
|
|
2186
|
+
* @param size
|
|
2187
|
+
* @returns
|
|
2188
|
+
*/
|
|
2189
|
+
export declare const toPxString: (value: string | number, size?: number) => string;
|
|
2190
|
+
|
|
586
2191
|
export declare const toTypeString: (value: unknown) => string;
|
|
587
2192
|
|
|
588
|
-
|
|
2193
|
+
/**
|
|
2194
|
+
* to model value
|
|
2195
|
+
* @param props
|
|
2196
|
+
* @param name
|
|
2197
|
+
* @param format
|
|
2198
|
+
* @param emitEvent
|
|
2199
|
+
* @returns
|
|
2200
|
+
*/
|
|
2201
|
+
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any> | null, emitEvent?: {
|
|
2202
|
+
(type: string, ...args: any[]): void;
|
|
2203
|
+
}): Ref;
|
|
2204
|
+
|
|
2205
|
+
/**
|
|
2206
|
+
* 尝试执行多次函数
|
|
2207
|
+
* @param func 执行函数
|
|
2208
|
+
* @param milliseconds 执行间隔
|
|
2209
|
+
* @param maxLimit 最大尝试次数
|
|
2210
|
+
* @param step 间隔增加步长
|
|
2211
|
+
* @param immediately 是否立刻执行
|
|
2212
|
+
*/
|
|
2213
|
+
export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean): void;
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* 尝试多次函数
|
|
2217
|
+
* 返回true,代表执行完成,不在需要重试
|
|
2218
|
+
*/
|
|
2219
|
+
export declare interface TryTimesFunction {
|
|
2220
|
+
(): boolean;
|
|
2221
|
+
}
|
|
589
2222
|
|
|
2223
|
+
/**
|
|
2224
|
+
* 判断类型
|
|
2225
|
+
* @param obj
|
|
2226
|
+
* @returns any
|
|
2227
|
+
*/
|
|
590
2228
|
export declare function typeOf(obj: any): string;
|
|
591
2229
|
|
|
592
2230
|
export declare class UniqueID {
|
|
2231
|
+
/**
|
|
2232
|
+
* seed id
|
|
2233
|
+
*/
|
|
593
2234
|
private seed;
|
|
2235
|
+
/**
|
|
2236
|
+
* 种子
|
|
2237
|
+
* @param seed
|
|
2238
|
+
*/
|
|
594
2239
|
constructor(seed?: number);
|
|
2240
|
+
/**
|
|
2241
|
+
* 获取唯一ID
|
|
2242
|
+
* @returns
|
|
2243
|
+
*/
|
|
595
2244
|
get(): number;
|
|
596
2245
|
}
|
|
597
2246
|
|
|
598
2247
|
export { unNumberFormat }
|
|
599
2248
|
|
|
600
|
-
|
|
2249
|
+
/**
|
|
2250
|
+
* 更新 page state
|
|
2251
|
+
* @param state
|
|
2252
|
+
* @param pageLayout(领域设置)
|
|
2253
|
+
* @param overrideProps(组件属性)
|
|
2254
|
+
* @param root
|
|
2255
|
+
* @param rootWidth
|
|
2256
|
+
* @param rootHeight
|
|
2257
|
+
* @param headerBarHeight
|
|
2258
|
+
* @param footerBarHeight
|
|
2259
|
+
*/
|
|
2260
|
+
export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
|
|
2261
|
+
|
|
2262
|
+
/**
|
|
2263
|
+
* 使用broadcast
|
|
2264
|
+
* @param expose
|
|
2265
|
+
* @returns
|
|
2266
|
+
*/
|
|
2267
|
+
export declare function useBroadcast(exposed?: FoxComponentPublicExposed): Broadcast | null;
|
|
2268
|
+
|
|
2269
|
+
/**
|
|
2270
|
+
* 获取当前domain
|
|
2271
|
+
* @returns
|
|
2272
|
+
*/
|
|
2273
|
+
export declare function useDomain(): Domain | null;
|
|
2274
|
+
|
|
2275
|
+
/**
|
|
2276
|
+
* 获取内部可用size
|
|
2277
|
+
* @param elementRef
|
|
2278
|
+
* @returns
|
|
2279
|
+
*/
|
|
2280
|
+
export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
|
|
2281
|
+
|
|
2282
|
+
/**
|
|
2283
|
+
* 获取page state
|
|
2284
|
+
* @param domain
|
|
2285
|
+
* @returns
|
|
2286
|
+
*/
|
|
2287
|
+
export declare function usePageState(domain: Domain): PageState | null;
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* 获取element 位置
|
|
2291
|
+
* @param elementRef
|
|
2292
|
+
* @returns
|
|
2293
|
+
*/
|
|
2294
|
+
export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
|
|
2295
|
+
|
|
2296
|
+
/**
|
|
2297
|
+
* 获取非响应式touch对象
|
|
2298
|
+
* @returns
|
|
2299
|
+
*/
|
|
2300
|
+
export declare function useRawTouch(): {
|
|
2301
|
+
move: EventListener;
|
|
2302
|
+
start: EventListener;
|
|
2303
|
+
reset: () => void;
|
|
2304
|
+
isVertical: () => boolean;
|
|
2305
|
+
isHorizontal: () => boolean;
|
|
2306
|
+
state: {
|
|
2307
|
+
startX: number;
|
|
2308
|
+
startY: number;
|
|
2309
|
+
startTime: number;
|
|
2310
|
+
duration: number;
|
|
2311
|
+
moveX: number;
|
|
2312
|
+
moveY: number;
|
|
2313
|
+
deltaX: number;
|
|
2314
|
+
deltaY: number;
|
|
2315
|
+
offsetX: number;
|
|
2316
|
+
offsetY: number;
|
|
2317
|
+
direction: Direction;
|
|
2318
|
+
};
|
|
2319
|
+
};
|
|
601
2320
|
|
|
2321
|
+
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
2322
|
+
|
|
2323
|
+
/**
|
|
2324
|
+
* 获取size
|
|
2325
|
+
* @param elementRef
|
|
2326
|
+
* @returns
|
|
2327
|
+
*/
|
|
2328
|
+
export declare function useSize(elementRef: Element | Ref<Element>): Size;
|
|
2329
|
+
|
|
2330
|
+
/**
|
|
2331
|
+
* 获取child slot
|
|
2332
|
+
* @param slot
|
|
2333
|
+
* @returns
|
|
2334
|
+
*/
|
|
2335
|
+
export declare function useSlotChildren(slot?: () => VNode[]): {
|
|
2336
|
+
getChildren: () => VNode[];
|
|
2337
|
+
};
|
|
2338
|
+
|
|
2339
|
+
/**
|
|
2340
|
+
* 获取响应式touch对象
|
|
2341
|
+
* @returns
|
|
2342
|
+
*/
|
|
2343
|
+
export declare function useTouch(): {
|
|
2344
|
+
move: EventListener;
|
|
2345
|
+
start: EventListener;
|
|
2346
|
+
reset: () => void;
|
|
2347
|
+
startX: Ref<number, number>;
|
|
2348
|
+
startY: Ref<number, number>;
|
|
2349
|
+
startTime: Ref<number, number>;
|
|
2350
|
+
duration: Ref<number, number>;
|
|
2351
|
+
moveX: Ref<number, number>;
|
|
2352
|
+
moveY: Ref<number, number>;
|
|
2353
|
+
deltaX: Ref<number, number>;
|
|
2354
|
+
deltaY: Ref<number, number>;
|
|
2355
|
+
offsetX: Ref<number, number>;
|
|
2356
|
+
offsetY: Ref<number, number>;
|
|
2357
|
+
direction: Ref<Direction, Direction>;
|
|
2358
|
+
isVertical: () => boolean;
|
|
2359
|
+
isHorizontal: () => boolean;
|
|
2360
|
+
};
|
|
2361
|
+
|
|
2362
|
+
/**
|
|
2363
|
+
* 校验器handler
|
|
2364
|
+
*/
|
|
602
2365
|
declare interface ValidateHandler {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
2366
|
+
/**
|
|
2367
|
+
* 错误处理
|
|
2368
|
+
* @param errorMsg
|
|
2369
|
+
* @param proxy
|
|
2370
|
+
*
|
|
2371
|
+
*/
|
|
2372
|
+
error?(errorMsg: string, proxy: FoxComponentPublicProxy): void;
|
|
2373
|
+
/**
|
|
2374
|
+
* 重置处理
|
|
2375
|
+
* @param proxy
|
|
2376
|
+
*/
|
|
2377
|
+
reset?(proxy: FoxComponentPublicProxy): void;
|
|
2378
|
+
/**
|
|
2379
|
+
* 成功处理
|
|
2380
|
+
* @param proxy
|
|
2381
|
+
*/
|
|
2382
|
+
success?(proxy: FoxComponentPublicProxy): void;
|
|
2383
|
+
/**
|
|
2384
|
+
* 规则装饰处理
|
|
2385
|
+
* @param newRule
|
|
2386
|
+
* @param oldRule
|
|
2387
|
+
* @param proxy
|
|
2388
|
+
*/
|
|
2389
|
+
decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicProxy): void;
|
|
2390
|
+
/**
|
|
2391
|
+
* 获取value
|
|
2392
|
+
* @param proxy
|
|
2393
|
+
*/
|
|
2394
|
+
getValue?(proxy: FoxComponentPublicProxy): any;
|
|
608
2395
|
}
|
|
609
2396
|
|
|
610
|
-
|
|
2397
|
+
/**
|
|
2398
|
+
* 校验器schema
|
|
2399
|
+
*/
|
|
2400
|
+
export declare class ValidateSchema {
|
|
2401
|
+
/**
|
|
2402
|
+
* parent
|
|
2403
|
+
*/
|
|
611
2404
|
private parent;
|
|
2405
|
+
/**
|
|
2406
|
+
* 校验器
|
|
2407
|
+
*/
|
|
612
2408
|
private validators;
|
|
2409
|
+
/**
|
|
2410
|
+
* 属性rule
|
|
2411
|
+
*/
|
|
613
2412
|
private attrRules;
|
|
2413
|
+
/**
|
|
2414
|
+
* rule
|
|
2415
|
+
*/
|
|
614
2416
|
private rules;
|
|
2417
|
+
/**
|
|
2418
|
+
* 描述
|
|
2419
|
+
*/
|
|
615
2420
|
private descriptor;
|
|
2421
|
+
/**
|
|
2422
|
+
* 组件public proxy
|
|
2423
|
+
*/
|
|
616
2424
|
private proxy;
|
|
2425
|
+
/**
|
|
2426
|
+
* effect scope
|
|
2427
|
+
*/
|
|
617
2428
|
private scope;
|
|
618
|
-
|
|
2429
|
+
/**
|
|
2430
|
+
* 构造函数
|
|
2431
|
+
* @param parent
|
|
2432
|
+
* @param descriptor
|
|
2433
|
+
* @param proxy
|
|
2434
|
+
*/
|
|
2435
|
+
constructor(parent: ValidateSchema | null, descriptor: ComponentDescriptor, proxy: FoxComponentPublicProxy);
|
|
2436
|
+
/**
|
|
2437
|
+
* 初始化
|
|
2438
|
+
*/
|
|
619
2439
|
private init;
|
|
2440
|
+
/**
|
|
2441
|
+
* 销毁
|
|
2442
|
+
*/
|
|
620
2443
|
destroy(): void;
|
|
2444
|
+
/**
|
|
2445
|
+
* 执行validate handler函数
|
|
2446
|
+
* @param name
|
|
2447
|
+
* @param args
|
|
2448
|
+
*/
|
|
621
2449
|
private execHandler;
|
|
2450
|
+
/**
|
|
2451
|
+
* 调用装饰处理函数
|
|
2452
|
+
*/
|
|
622
2453
|
private decorate;
|
|
2454
|
+
/**
|
|
2455
|
+
* 调用成功处理函数
|
|
2456
|
+
*/
|
|
623
2457
|
private success;
|
|
2458
|
+
/**
|
|
2459
|
+
* 调用错误处理函数
|
|
2460
|
+
* @returns
|
|
2461
|
+
*/
|
|
624
2462
|
private error;
|
|
2463
|
+
/**
|
|
2464
|
+
* 调用错误处理函数
|
|
2465
|
+
* @returns
|
|
2466
|
+
*/
|
|
625
2467
|
private getValue;
|
|
2468
|
+
/**
|
|
2469
|
+
* 设置校验器
|
|
2470
|
+
* @param type
|
|
2471
|
+
* @param validator
|
|
2472
|
+
* @param global
|
|
2473
|
+
*
|
|
2474
|
+
* @returns
|
|
2475
|
+
*/
|
|
626
2476
|
setValidator(type: string, validator: ExecuteValidator, global?: boolean): void;
|
|
2477
|
+
/**
|
|
2478
|
+
* 获取validator(只获取私有的validator)
|
|
2479
|
+
* @param type
|
|
2480
|
+
*/
|
|
627
2481
|
getValidator(type: string): ExecuteValidator | null;
|
|
2482
|
+
/**
|
|
2483
|
+
* 删除校验器
|
|
2484
|
+
* @param type
|
|
2485
|
+
* @param global
|
|
2486
|
+
*/
|
|
628
2487
|
deleteValidator(type: string, global?: boolean): void;
|
|
2488
|
+
/**
|
|
2489
|
+
* 判断校验器是否存在
|
|
2490
|
+
* @param type
|
|
2491
|
+
* @param global
|
|
2492
|
+
* @returns
|
|
2493
|
+
*/
|
|
629
2494
|
hasValidator(type: string, global?: boolean): boolean;
|
|
2495
|
+
/**
|
|
2496
|
+
* 设置rule
|
|
2497
|
+
* @param rule
|
|
2498
|
+
*/
|
|
630
2499
|
setRule(rule: Rule | null): void;
|
|
2500
|
+
/**
|
|
2501
|
+
* 清空校验错误信息
|
|
2502
|
+
* @params deep
|
|
2503
|
+
* @returns
|
|
2504
|
+
*/
|
|
631
2505
|
clear(): void;
|
|
2506
|
+
/**
|
|
2507
|
+
* 执行校验
|
|
2508
|
+
* @returns
|
|
2509
|
+
*/
|
|
632
2510
|
validate(): Promise<ValidateResult>;
|
|
633
2511
|
}
|
|
634
2512
|
|
|
635
|
-
|
|
2513
|
+
/**
|
|
2514
|
+
* validate schema key
|
|
2515
|
+
*/
|
|
2516
|
+
export declare const ValidateSchemaKey: unique symbol;
|
|
636
2517
|
|
|
637
|
-
|
|
2518
|
+
/**
|
|
2519
|
+
* value 格式化
|
|
2520
|
+
*/
|
|
2521
|
+
export declare interface ValueFormat<T, K> {
|
|
2522
|
+
(value: T): K;
|
|
2523
|
+
}
|
|
638
2524
|
|
|
639
|
-
|
|
2525
|
+
/**
|
|
2526
|
+
* 获取value长度
|
|
2527
|
+
* @param val
|
|
2528
|
+
* @returns
|
|
2529
|
+
*/
|
|
2530
|
+
export declare function valueLength(val: unknown): number;
|
|
640
2531
|
|
|
641
|
-
|
|
2532
|
+
/**
|
|
2533
|
+
* value 类型
|
|
2534
|
+
*/
|
|
2535
|
+
declare type ValueType = 'string' | 'number' | 'date';
|
|
642
2536
|
|
|
643
2537
|
export { }
|