@fox-js/foxui 4.0.1-6 → 4.0.1-61

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