@fox-js/foxui 4.0.1-7 → 4.0.1-71

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