@fox-js/foxui-pc 4.0.1-1 → 4.0.1-100

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,43 +1,117 @@
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
3
  import { ComponentInternalInstance } from 'vue';
7
- import type { ComponentOptionsMixin } from 'vue';
8
4
  import { ComponentPublicInstance } from 'vue';
9
- import type { ComputedOptions } from 'vue';
10
- import type { DefineComponent } from 'vue';
11
5
  import { divide } from '@fox-js/big-decimal';
12
6
  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';
7
+ import { ElAffix as FoxAffix } from './base';
8
+ import { ElAlert as FoxAlert } from './base';
9
+ import { ElAside as FoxAside } from './base';
10
+ import { ElAutocomplete as FoxAutocomplete } from './base';
11
+ import { ElAutoResizer as FoxAutoResizer } from './base';
12
+ import { ElAvatar as FoxAvatar } from './base';
13
+ import { ElBacktop as FoxBacktop } from './base';
14
+ import { ElBadge as FoxBadge } from './base';
15
+ import { ElBreadcrumb as FoxBreadcrumb } from './base';
16
+ import { ElBreadcrumbItem as FoxBreadcrumbItem } from './base';
17
+ import { ElButton as FoxButton } from './base';
18
+ import { ElButtonGroup as FoxButtonGroup } from './base';
19
+ import { ElCalendar as FoxCalendar } from './base';
20
+ import { ElCard as FoxCard } from './base';
21
+ import { ElCarousel as FoxCarousel } from './base';
22
+ import { ElCarouselItem as FoxCarouselItem } from './base';
23
+ import { ElCascader as FoxCascader } from './base';
24
+ import { ElCascaderPanel as FoxCascaderPanel } from './base';
25
+ import { ElCheckbox as FoxCheckbox } from './base';
26
+ import { ElCheckboxButton as FoxCheckboxButton } from './base';
27
+ import { ElCheckboxGroup as FoxCheckboxGroup } from './base';
28
+ import { ElCheckTag as FoxCheckTag } from './base';
29
+ import { ElCol as FoxCol } from './base';
30
+ import { ElCollapse as FoxCollapse } from './base';
31
+ import { ElCollapseItem as FoxCollapseItem } from './base';
32
+ import { ElCollapseTransition as FoxCollapseTransition } from './base';
33
+ import { ElColorPicker as FoxColorPicker } from './base';
34
+ import { FoxComponentPublicInstance } from './types';
35
+ import { ElConfigProvider as FoxConfigProvider } from './base';
36
+ import { ElContainer as FoxContainer } from './base';
37
+ import { ElDatePicker as FoxDatePicker } from './base';
38
+ import { ElDescriptions as FoxDescriptions } from './base';
39
+ import { ElDescriptionsItem as FoxDescriptionsItem } from './base';
40
+ import { ElDialog as FoxDialog } from './base';
41
+ import { ElDivider as FoxDivider } from './base';
42
+ import { ElDrawer as FoxDrawer } from './base';
43
+ import { ElDropdown as FoxDropdown } from './base';
44
+ import { ElDropdownItem as FoxDropdownItem } from './base';
45
+ import { ElDropdownMenu as FoxDropdownMenu } from './base';
46
+ import { ElEmpty as FoxEmpty } from './base';
47
+ import { ElFooter as FoxFooter } from './base';
48
+ import { ElForm as FoxForm } from './base';
49
+ import { ElFormItem as FoxFormItem } from './base';
50
+ import { ElHeader as FoxHeader } from './base';
51
+ import { ElIcon as FoxIcon } from './base';
52
+ import { ElImage as FoxImage } from './base';
53
+ import { ElImageViewer as FoxImageViewer } from './base';
54
+ import { ElInput as FoxInput } from './base';
55
+ import { ElInputNumber as FoxInputNumber } from './base';
56
+ import { ElLink as FoxLink } from './base';
57
+ import { ElMain as FoxMain } from './base';
58
+ import { ElMenu as FoxMenu } from './base';
59
+ import { ElMenuItem as FoxMenuItem } from './base';
60
+ import { ElMenuItemGroup as FoxMenuItemGroup } from './base';
61
+ import { ElOption as FoxOption } from './base';
62
+ import { ElOptionGroup as FoxOptionGroup } from './base';
63
+ import { ElPageHeader as FoxPageHeader } from './base';
64
+ import { ElPagination as FoxPagination } from './base';
65
+ import { ElPopconfirm as FoxPopconfirm } from './base';
66
+ import { ElPopover as FoxPopover } from './base';
67
+ import { ElPopper as FoxPopper } from './base';
68
+ import { ElProgress as FoxProgress } from './base';
69
+ import { ElRadio as FoxRadio } from './base';
70
+ import { ElRadioButton as FoxRadioButton } from './base';
71
+ import { ElRadioGroup as FoxRadioGroup } from './base';
72
+ import { ElRate as FoxRate } from './base';
73
+ import { ElResult as FoxResult } from './base';
74
+ import { ElRow as FoxRow } from './base';
75
+ import { ElScrollbar as FoxScrollbar } from './base';
76
+ import { ElSelect as FoxSelect } from './base';
77
+ import { ElSelectV2 as FoxSelectV2 } from './base';
78
+ import { ElSkeleton as FoxSkeleton } from './base';
79
+ import { ElSkeletonItem as FoxSkeletonItem } from './base';
80
+ import { ElSlider as FoxSlider } from './base';
81
+ import { ElSpace as FoxSpace } from './base';
82
+ import { ElStep as FoxStep } from './base';
83
+ import { ElSteps as FoxSteps } from './base';
84
+ import { ElSubMenu as FoxSubMenu } from './base';
85
+ import { ElSwitch as FoxSwitch } from './base';
86
+ import { ElTable as FoxTable } from './base';
87
+ import { ElTableColumn as FoxTableColumn } from './base';
88
+ import { ElTableV2 as FoxTableV2 } from './base';
89
+ import { ElTabPane as FoxTabPane } from './base';
90
+ import { ElTabs as FoxTabs } from './base';
91
+ import { ElTag as FoxTag } from './base';
92
+ import { ElTimeline as FoxTimeline } from './base';
93
+ import { ElTimelineItem as FoxTimelineItem } from './base';
94
+ import { ElTimePicker as FoxTimePicker } from './base';
95
+ import { ElTimeSelect as FoxTimeSelect } from './base';
96
+ import { ElTooltip as FoxTooltip } from './base';
97
+ import { ElTransfer as FoxTransfer } from './base';
98
+ import { ElTree as FoxTree } from './base';
99
+ import { ElTreeSelect as FoxTreeSelect } from './base';
100
+ import { ElTreeV2 as FoxTreeV2 } from './base';
101
+ import { FoxUI } from './interface';
102
+ import { FoxUIOptions } from './interface';
103
+ import { ElUpload as FoxUpload } from './base';
27
104
  import { multiply } from '@fox-js/big-decimal';
28
105
  import { negate } from '@fox-js/big-decimal';
29
106
  import { numberFormat } from '@fox-js/big-decimal';
30
107
  import { Ref } from 'vue';
31
108
  import { Rule } from '@fox-js/validator';
32
- import { toBoolean } from '@fox-js/fox';
33
- import { toNumber } from '@fox-js/fox';
34
- import { toTypeString } from '@fox-js/fox';
109
+ import { ScopeGetter } from './api';
35
110
  import { unNumberFormat } from '@fox-js/big-decimal';
36
111
  import { UnwrapNestedRefs } from 'vue';
37
112
  import { UnwrapRef } from 'vue';
38
113
  import { ValidateMessages } from '@fox-js/validator';
39
114
  import { ValidateResult } from '@fox-js/validator';
40
- import type { VNodeProps } from 'vue';
41
115
 
42
116
  /**
43
117
  * 是否接受value过滤器
@@ -63,9 +137,9 @@ export declare class Broadcast {
63
137
  */
64
138
  private callbacks;
65
139
  /**
66
- * vue instance
140
+ * vue proxy
67
141
  */
68
- private instance;
142
+ private proxy;
69
143
  /**
70
144
  * 名称
71
145
  */
@@ -73,10 +147,10 @@ export declare class Broadcast {
73
147
  /**
74
148
  * 构造函数
75
149
  * @param parent
76
- * @param instance
150
+ * @param proxy
77
151
  * @param name
78
152
  */
79
- constructor(parent: Broadcast | null, instance: ComponentInternalInstance, name?: string);
153
+ constructor(parent: Broadcast | null, proxy: FoxComponentPublicInstance, name?: string);
80
154
  /**
81
155
  * 加入孩子节点
82
156
  * @param child
@@ -123,44 +197,167 @@ export declare interface BroadcastCallback {
123
197
 
124
198
  export declare const BroadcastKey: unique symbol;
125
199
 
200
+ export declare function cancelRaf(id: number): void;
201
+
126
202
  /**
127
203
  * 清理非数字
128
204
  */
129
205
  export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
130
206
 
131
- export { clone }
207
+ /**
208
+ * 克隆对象
209
+ * @param target
210
+ * @param source
211
+ * @param plain
212
+ *
213
+ * @returns
214
+ */
215
+ export declare function clone(target: any, source: any, plain?: boolean): any;
132
216
 
133
217
  export { compareTo }
134
218
 
135
- export declare const Content: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
136
-
137
219
  /**
138
220
  * 创建broadcast
221
+ *
222
+ * @param proxy
139
223
  * @param parent
140
224
  * @param name
141
225
  * @param callbacks
142
226
  * @returns
143
227
  */
144
- export declare function createBroadcast(instance: ComponentInternalInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
228
+ export declare function createBroadcast(proxy: FoxComponentPublicInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
145
229
 
146
230
  /**
147
231
  * 创建校验schema
148
- * @param instance
232
+ * @param proxy
149
233
  * @param parent
150
234
  * @param descriptor
151
235
  * @returns
152
236
  */
153
- export declare function createValidateSchema(instance: ComponentInternalInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
237
+ export declare function createValidateSchema(proxy: FoxComponentPublicInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
238
+
239
+ /**
240
+ * data items key
241
+ */
242
+ export declare const DataItemsKey: unique symbol;
154
243
 
155
- export declare const DateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
244
+ export declare const DateUtils: {
245
+ /**
246
+ * 格式化
247
+ * @param date
248
+ * @param template
249
+ * @returns
250
+ */
251
+ format(date: Date, template: string): string;
252
+ /**
253
+ * 解析
254
+ * @param str
255
+ * @param template
256
+ */
257
+ parser(str: string, template: string): Date;
258
+ /**
259
+ * 是否为闫年
260
+ * @return {Boolse} true|false
261
+ */
262
+ isLeapYear(y: number): boolean;
263
+ /**
264
+ * 返回星期数
265
+ * @return {String}
266
+ */
267
+ getWhatDay(year: number, month: number, day: number): string;
268
+ /**
269
+ * 返回星期数
270
+ * @return {Number}
271
+ */
272
+ getMonthPreDay(year: number, month: number): number;
273
+ /**
274
+ * 返回月份天数
275
+ * @return {Number}
276
+ */
277
+ getMonthDays(year: string, month: string): number;
278
+ /**
279
+ * 补齐数字位数
280
+ * @return {string}
281
+ */
282
+ getNumTwoBit(n: number): string;
283
+ /**
284
+ * 日期对象转成字符串
285
+ * @return {string}
286
+ */
287
+ date2Str: (date: Date, split?: string) => string;
288
+ /**
289
+ * 返回日期格式字符串
290
+ * @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
291
+ * @param {Date} 起点日期
292
+ * @return {string} '2014-12-31'
293
+ */
294
+ getDay(i: number, startDate?: Date): string;
295
+ /**
296
+ * 时间比较
297
+ * @return
298
+ */
299
+ compareDate(date1: string | Date, date2: string | Date): boolean;
300
+ /**
301
+ * 时间是否相等
302
+ * @return
303
+ */
304
+ isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
305
+ /**
306
+ * get month week
307
+ * @param year
308
+ * @param month
309
+ * @param date
310
+ * @param firstDayOfWeek
311
+ * @returns
312
+ */
313
+ getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
314
+ /**
315
+ * get year week
316
+ * @param year
317
+ * @param month
318
+ * @param date
319
+ * @param firstDayOfWeek
320
+ * @returns
321
+ */
322
+ getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
323
+ /**
324
+ * get week date
325
+ */
326
+ getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
327
+ /**
328
+ * format result date
329
+ */
330
+ formatResultDate: (date: string) => string[];
331
+ /**
332
+ * 判断日期是否在范围内
333
+ * @param date
334
+ * @param startDate
335
+ * @param span 允许负数
336
+ */
337
+ inScope4Day(date: Date, startDate: Date, span: number): boolean;
338
+ /**
339
+ * 判断日期是否在范围内
340
+ * @param date
341
+ * @param startDate
342
+ * @param span
343
+ */
344
+ inScope4Month(date: Date, startDate: Date, span: number): boolean;
345
+ };
156
346
 
157
347
  /**
158
- * 防抖函数
348
+ * 防抖函数(执行时间范围内的最后一次)
159
349
  * @param func 函数
160
- * @param time 防止抖动毫秒数
350
+ * @param delay 防止抖动毫秒数
161
351
  * @returns
162
352
  */
163
- export declare function debounce(func: GenericFunction, time: number): GenericFunction;
353
+ export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
354
+
355
+ /**
356
+ * 防抖Ref
357
+ * @param value
358
+ * @param delay
359
+ */
360
+ export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
164
361
 
165
362
  /**
166
363
  * 获取小数长度
@@ -171,13 +368,183 @@ export declare function decimalLength(value: string | number): number;
171
368
  declare const _default: FoxUIVue;
172
369
  export default _default;
173
370
 
371
+ declare const _default_10: any;
372
+ export { _default_10 as FoxHintText }
373
+ export { _default_10 as HintText }
374
+
375
+ declare const _default_11: any;
376
+ export { _default_11 as FoxInputItem }
377
+ export { _default_11 as InputItem }
378
+
379
+ declare const _default_12: any;
380
+ export { _default_12 as FoxSelectItem }
381
+ export { _default_12 as SelectItem }
382
+
383
+ declare const _default_13: any;
384
+ export { _default_13 as DateItem }
385
+ export { _default_13 as FoxDateItem }
386
+
387
+ declare const _default_14: any;
388
+ export { _default_14 as FoxTimeItem }
389
+ export { _default_14 as TimeItem }
390
+
391
+ declare const _default_15: any;
392
+ export { _default_15 as FoxTimeSelectItem }
393
+ export { _default_15 as TimeSelectItem }
394
+
395
+ declare const _default_16: any;
396
+ export { _default_16 as FoxMoneyItem }
397
+ export { _default_16 as MoneyItem }
398
+
399
+ declare const _default_17: any;
400
+ export { _default_17 as FoxInputNumberItem }
401
+ export { _default_17 as InputNumberItem }
402
+
403
+ declare const _default_18: any;
404
+ export { _default_18 as CascaderItem }
405
+ export { _default_18 as FoxCascaderItem }
406
+
407
+ declare const _default_19: any;
408
+ export { _default_19 as AutocompleteItem }
409
+ export { _default_19 as FoxAutocompleteItem }
410
+
411
+ declare const _default_2: any;
412
+ export { _default_2 as FoxPage }
413
+ export { _default_2 as Page }
414
+
415
+ declare const _default_20: any;
416
+ export { _default_20 as FoxTableMappingColumn }
417
+ export { _default_20 as TableMappingColumn }
418
+
419
+ declare const _default_21: any;
420
+ export { _default_21 as FoxTableRadioColumn }
421
+ export { _default_21 as TableRadioColumn }
422
+
423
+ declare const _default_22: any;
424
+ export { _default_22 as FoxTableSetting }
425
+ export { _default_22 as TableSetting }
426
+
427
+ declare const _default_23: any;
428
+ export { _default_23 as FoxTableItem }
429
+ export { _default_23 as TableItem }
430
+
431
+ declare const _default_24: any;
432
+ export { _default_24 as FoxRadioItem }
433
+ export { _default_24 as RadioItem }
434
+
435
+ declare const _default_25: any;
436
+ export { _default_25 as CheckboxItem }
437
+ export { _default_25 as FoxCheckboxItem }
438
+
439
+ declare const _default_26: any;
440
+ export { _default_26 as FoxRateItem }
441
+ export { _default_26 as RateItem }
442
+
443
+ declare const _default_27: any;
444
+ export { _default_27 as FoxSwitchItem }
445
+ export { _default_27 as SwitchItem }
446
+
447
+ declare const _default_28: any;
448
+ export { _default_28 as FoxTreeSelectItem }
449
+ export { _default_28 as TreeSelectItem }
450
+
451
+ declare const _default_29: any;
452
+ export { _default_29 as FoxGroupSetting }
453
+ export { _default_29 as GroupSetting }
454
+
455
+ declare const _default_3: any;
456
+ export { _default_3 as FoxHeaderBar }
457
+ export { _default_3 as HeaderBar }
458
+
459
+ declare const _default_30: any;
460
+ export { _default_30 as DialogItem }
461
+ export { _default_30 as FoxDialogItem }
462
+
463
+ declare const _default_31: any;
464
+ export { _default_31 as FoxMapping }
465
+ export { _default_31 as Mapping }
466
+
467
+ declare const _default_32: any;
468
+ export { _default_32 as FoxPrice }
469
+ export { _default_32 as Price }
470
+
471
+ declare const _default_33: any;
472
+ export { _default_33 as FoxIndicator }
473
+ export { _default_33 as Indicator }
474
+
475
+ declare const _default_34: any;
476
+ export { _default_34 as FoxText }
477
+ export { _default_34 as Text }
478
+
479
+ declare const _default_35: any;
480
+ export { _default_35 as FoxMoreButton }
481
+ export { _default_35 as MoreButton }
482
+
483
+ declare const _default_36: any;
484
+ export { _default_36 as FoxTour }
485
+ export { _default_36 as Tour }
486
+
487
+ declare const _default_37: any;
488
+ export { _default_37 as FloatingWindow }
489
+ export { _default_37 as FoxFloatingWindow }
490
+
491
+ declare const _default_38: any;
492
+ export { _default_38 as DomainProvider }
493
+ export { _default_38 as FoxDomainProvider }
494
+
495
+ declare const _default_39: any;
496
+ export { _default_39 as FoxRollingProvider }
497
+ export { _default_39 as RollingProvider }
498
+
499
+ declare const _default_4: any;
500
+ export { _default_4 as FooterBar }
501
+ export { _default_4 as FoxFooterBar }
502
+
503
+ declare const _default_5: any;
504
+ export { _default_5 as Content }
505
+ export { _default_5 as FoxContent }
506
+
507
+ declare const _default_6: any;
508
+ export { _default_6 as FoxGroup }
509
+ export { _default_6 as Group }
510
+
511
+ declare const _default_7: any;
512
+ export { _default_7 as FoxItem }
513
+ export { _default_7 as Item }
514
+
515
+ declare const _default_8: any;
516
+ export { _default_8 as FoxSlotItem }
517
+ export { _default_8 as SlotItem }
518
+
519
+ declare const _default_9: any;
520
+ export { _default_9 as FoxRowItem }
521
+ export { _default_9 as RowItem }
522
+
174
523
  /**
175
524
  * anyNode
176
525
  * @param name
177
526
  * @param callbacks
178
527
  * @returns
179
528
  */
180
- export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast | null;
529
+ export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
530
+
531
+ /**
532
+ * 安装config domain
533
+ * @param name 名称
534
+ * @param props 属性
535
+ * @param ignores 忽略的属性
536
+ * @returns
537
+ */
538
+ export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
539
+
540
+ /**
541
+ * 定义domain data item
542
+ * @returns
543
+ */
544
+ export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
545
+ broadcast: Broadcast;
546
+ validateSchema: ValidateSchema;
547
+ };
181
548
 
182
549
  /**
183
550
  * 安装domain
@@ -218,13 +585,12 @@ export declare interface Descriptor {
218
585
  valueName?: string;
219
586
  valueType?: ValueType;
220
587
  validate?: boolean;
588
+ pureDataValidate?: boolean;
221
589
  validateHandler?: ValidateHandler;
222
590
  validateCheckEvents?: string[];
223
591
  validateResetEvents?: string[];
224
592
  }
225
593
 
226
- export declare const DialogItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
227
-
228
594
  /**
229
595
  * 禁用属性
230
596
  * @param source
@@ -357,83 +723,207 @@ declare interface EventListener_2 {
357
723
  */
358
724
  export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
359
725
 
360
- export { extend }
361
-
362
- export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
363
-
364
- export declare const FooterBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
365
-
366
726
  /**
367
- * Fox UI
727
+ * 继承(是否深度拷贝,dest,src1,src2,src3...)
728
+ *
729
+ * @returns
368
730
  */
369
- declare interface FoxUI {
370
- /**
371
- * 版本号
372
- */
373
- version: string;
374
- /**
375
- * 安装
376
- * @param app
377
- * @param options
378
- */
379
- install(app: App, options: FoxUIOptions): void;
380
- /**
381
- * 初始化page Layout
382
- *
383
- * @param options
384
- * @param rootDomain
385
- */
386
- initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
387
- /**
388
- * 设置scope getter
389
- * @param getter
390
- */
391
- setScopeGetter(getter: ScopeGetter): void;
392
- /**
393
- * 设置API
394
- * @param name
395
- * @param func
396
- * @param scope
397
- */
398
- setAPI(name: string, func: any, scope?: string): void;
399
- /**
400
- * 获取API
401
- * @param proxy
402
- * @param name
403
- * @param scope
404
- */
405
- getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
406
- /**
407
- * 批量增加api
408
- * @param apis
409
- * @param scope
410
- */
411
- batchSetAPI(apis: Record<string, any>, scope?: string): void;
412
- /**
413
- * 清空scope apis
414
- * @param scope
415
- */
416
- clearScopeAPI(scope: string): void;
417
- /**
418
- * 获取root domain
419
- */
420
- getRootDomain(): Domain;
421
- }
731
+ export declare function extend(...args: any[]): any;
422
732
 
423
733
  /**
424
- * UI Options
734
+ * float data
735
+ * @param format
736
+ * @param dataOp
737
+ * @param mapOps
738
+ * @returns
425
739
  */
426
- declare interface FoxUIOptions {
427
- headerBarHeight?: number;
428
- footerBarHeight?: number;
429
- safeAreaInset?: SafeAreaInset;
430
- pageLayout?: PageLayout;
431
- headerPadding?: Rect;
432
- contentPadding?: Rect;
433
- groupLayout?: GroupLayout;
434
- labelWidth?: number | string;
435
- [propName: string]: any;
436
- }
740
+ export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
741
+
742
+ export { FoxAffix }
743
+
744
+ export { FoxAlert }
745
+
746
+ export { FoxAside }
747
+
748
+ export { FoxAutocomplete }
749
+
750
+ export { FoxAutoResizer }
751
+
752
+ export { FoxAvatar }
753
+
754
+ export { FoxBacktop }
755
+
756
+ export { FoxBadge }
757
+
758
+ export { FoxBreadcrumb }
759
+
760
+ export { FoxBreadcrumbItem }
761
+
762
+ export { FoxButton }
763
+
764
+ export { FoxButtonGroup }
765
+
766
+ export { FoxCalendar }
767
+
768
+ export { FoxCard }
769
+
770
+ export { FoxCarousel }
771
+
772
+ export { FoxCarouselItem }
773
+
774
+ export { FoxCascader }
775
+
776
+ export { FoxCascaderPanel }
777
+
778
+ export { FoxCheckbox }
779
+
780
+ export { FoxCheckboxButton }
781
+
782
+ export { FoxCheckboxGroup }
783
+
784
+ export { FoxCheckTag }
785
+
786
+ export { FoxCol }
787
+
788
+ export { FoxCollapse }
789
+
790
+ export { FoxCollapseItem }
791
+
792
+ export { FoxCollapseTransition }
793
+
794
+ export { FoxColorPicker }
795
+
796
+ export { FoxConfigProvider }
797
+
798
+ export { FoxContainer }
799
+
800
+ export { FoxDatePicker }
801
+
802
+ export { FoxDescriptions }
803
+
804
+ export { FoxDescriptionsItem }
805
+
806
+ export { FoxDialog }
807
+
808
+ export { FoxDivider }
809
+
810
+ export { FoxDrawer }
811
+
812
+ export { FoxDropdown }
813
+
814
+ export { FoxDropdownItem }
815
+
816
+ export { FoxDropdownMenu }
817
+
818
+ export { FoxEmpty }
819
+
820
+ export { FoxFooter }
821
+
822
+ export { FoxForm }
823
+
824
+ export { FoxFormItem }
825
+
826
+ export { FoxHeader }
827
+
828
+ export { FoxIcon }
829
+
830
+ export { FoxImage }
831
+
832
+ export { FoxImageViewer }
833
+
834
+ export { FoxInput }
835
+
836
+ export { FoxInputNumber }
837
+
838
+ export { FoxLink }
839
+
840
+ export { FoxMain }
841
+
842
+ export { FoxMenu }
843
+
844
+ export { FoxMenuItem }
845
+
846
+ export { FoxMenuItemGroup }
847
+
848
+ export { FoxOption }
849
+
850
+ export { FoxOptionGroup }
851
+
852
+ export { FoxPageHeader }
853
+
854
+ export { FoxPagination }
855
+
856
+ export { FoxPopconfirm }
857
+
858
+ export { FoxPopover }
859
+
860
+ export { FoxPopper }
861
+
862
+ export { FoxProgress }
863
+
864
+ export { FoxRadio }
865
+
866
+ export { FoxRadioButton }
867
+
868
+ export { FoxRadioGroup }
869
+
870
+ export { FoxRate }
871
+
872
+ export { FoxResult }
873
+
874
+ export { FoxRow }
875
+
876
+ export { FoxScrollbar }
877
+
878
+ export { FoxSelect }
879
+
880
+ export { FoxSelectV2 }
881
+
882
+ export { FoxSkeleton }
883
+
884
+ export { FoxSkeletonItem }
885
+
886
+ export { FoxSlider }
887
+
888
+ export { FoxSpace }
889
+
890
+ export { FoxStep }
891
+
892
+ export { FoxSteps }
893
+
894
+ export { FoxSubMenu }
895
+
896
+ export { FoxSwitch }
897
+
898
+ export { FoxTable }
899
+
900
+ export { FoxTableColumn }
901
+
902
+ export { FoxTableV2 }
903
+
904
+ export { FoxTabPane }
905
+
906
+ export { FoxTabs }
907
+
908
+ export { FoxTag }
909
+
910
+ export { FoxTimeline }
911
+
912
+ export { FoxTimelineItem }
913
+
914
+ export { FoxTimePicker }
915
+
916
+ export { FoxTimeSelect }
917
+
918
+ export { FoxTooltip }
919
+
920
+ export { FoxTransfer }
921
+
922
+ export { FoxTree }
923
+
924
+ export { FoxTreeSelect }
925
+
926
+ export { FoxTreeV2 }
437
927
 
438
928
  /**
439
929
  * Fox UI vue实例
@@ -463,7 +953,7 @@ declare class FoxUIVue implements FoxUI {
463
953
  * @param app
464
954
  * @param options
465
955
  */
466
- install(app: App, options?: FoxUIOptions): void;
956
+ install(app: App, options?: FoxUIOptions): any;
467
957
  /**
468
958
  * 初始化page Layout
469
959
  *
@@ -507,6 +997,8 @@ declare class FoxUIVue implements FoxUI {
507
997
  getRootDomain(): Domain;
508
998
  }
509
999
 
1000
+ export { FoxUpload }
1001
+
510
1002
  /**
511
1003
  * 通用函数接口
512
1004
  */
@@ -562,21 +1054,10 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
562
1054
  */
563
1055
  export declare function getRootDomain(): Domain;
564
1056
 
565
- export declare const Group: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
566
-
567
1057
  /**
568
- * Layout信息接口
1058
+ * 是否支持symbol
569
1059
  */
570
- declare interface GroupLayout {
571
- type: string;
572
- width: number;
573
- column: number;
574
- gutter: number;
575
- }
576
-
577
- export declare const HeaderBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
578
-
579
- export declare const HintText: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
1060
+ export declare const hasSymbol: boolean;
580
1061
 
581
1062
  /**
582
1063
  * 根据包含模版,抽取属性
@@ -594,8 +1075,6 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
594
1075
  */
595
1076
  export declare function indexOf(x: unknown, arr: unknown[]): number;
596
1077
 
597
- export declare const InputItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
598
-
599
1078
  /**
600
1079
  * 安装函数
601
1080
  */
@@ -603,33 +1082,76 @@ declare interface Installer {
603
1082
  (app: App, options?: any): void;
604
1083
  }
605
1084
 
1085
+ /**
1086
+ * 安装校验规则
1087
+ * @param proxy
1088
+ */
1089
+ export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1090
+
606
1091
  /**
607
1092
  * 获取整数长度
608
1093
  * @param value
609
1094
  */
610
- export declare function integerLength(value: string | number): number;
1095
+ export declare function integerLength(v: string | number): number;
1096
+
1097
+ /**
1098
+ * 是否数组
1099
+ */
1100
+ export declare const isArray: (arg: any) => arg is any[];
611
1101
 
612
- export { isArray }
1102
+ /**
1103
+ * 是否为类数组
1104
+ * @param obj
1105
+ * @returns {boolean}
1106
+ */
1107
+ export declare function isArrayLike(obj: any): boolean;
613
1108
 
614
1109
  /**
615
1110
  * 是否为浏览器环境
616
1111
  */
617
1112
  export declare const isBrowser: boolean;
618
1113
 
619
- export { isDate }
1114
+ /**
1115
+ * 是否为Date
1116
+ * @param val
1117
+ * @returns
1118
+ */
1119
+ export declare const isDate: (val: unknown) => val is Date;
620
1120
 
621
1121
  /**
622
1122
  * 是否空字符串
623
1123
  * @param v
624
1124
  * @returns
625
1125
  */
626
- export declare const isEmptyString: (v: unknown) => boolean;
1126
+ export declare const isEmptyString: (v: unknown) => v is "";
627
1127
 
628
- export { isEqual }
1128
+ /**
1129
+ * 判断两个对象是否一致
1130
+ * @param x
1131
+ * @param y
1132
+ * @return
1133
+ */
1134
+ export declare function isEqual(x: any, y: any): boolean;
629
1135
 
630
- export { isESModule }
1136
+ /**
1137
+ * 是否为es module
1138
+ * @param obj
1139
+ * @returns
1140
+ */
1141
+ export declare function isESModule(obj: any): obj is Object;
631
1142
 
632
- export { isFunction }
1143
+ /**
1144
+ * 是否为函数
1145
+ * @param val
1146
+ * @returns
1147
+ */
1148
+ export declare const isFunction: (val: unknown) => val is Function;
1149
+
1150
+ /**
1151
+ * 是否是隐藏element
1152
+ * @param el
1153
+ */
1154
+ export declare function isHidden(el: any): boolean;
633
1155
 
634
1156
  /**
635
1157
  * 是否为内嵌页面
@@ -640,20 +1162,43 @@ export { isFunction }
640
1162
  */
641
1163
  export declare function isInnerPage(domain: Domain, proxy: any): boolean;
642
1164
 
643
- export { isMap }
1165
+ /**
1166
+ * 是否为Map
1167
+ * @param val
1168
+ * @returns
1169
+ */
1170
+ export declare const isMap: (val: unknown) => val is Map<any, any>;
1171
+
1172
+ /**
1173
+ * 是否null/undefined对象
1174
+ */
1175
+ export declare function isNil(v: unknown): v is null | undefined;
644
1176
 
645
1177
  /**
646
1178
  * 是否为数字字符串
647
1179
  * @param value
648
1180
  * @returns
649
1181
  */
650
- export declare function isNumberString(value: string): boolean;
1182
+ export declare function isNumberString(v: string): v is string;
651
1183
 
652
- export { isObject }
1184
+ /**
1185
+ * 是否为object
1186
+ */
1187
+ export declare const isObject: (val: unknown) => val is Record<any, any>;
653
1188
 
654
- export { isPlainObject }
1189
+ /**
1190
+ * 是否为plain对象
1191
+ * @param val
1192
+ * @returns
1193
+ */
1194
+ export declare const isPlainObject: (val: unknown) => val is object;
655
1195
 
656
- export { isPromise }
1196
+ /**
1197
+ * 是否为promise
1198
+ * @param val
1199
+ * @returns
1200
+ */
1201
+ export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
657
1202
 
658
1203
  /**
659
1204
  * 判断是否为正则表达式
@@ -662,9 +1207,19 @@ export { isPromise }
662
1207
  */
663
1208
  export declare function isRegExp(v: unknown): v is RegExp;
664
1209
 
665
- export { isSet }
1210
+ /**
1211
+ * 是否为Set
1212
+ * @param val
1213
+ * @returns
1214
+ */
1215
+ export declare const isSet: (val: unknown) => val is Set<any>;
666
1216
 
667
- export { isString }
1217
+ /**
1218
+ * 是否为字符串
1219
+ * @param val
1220
+ * @returns
1221
+ */
1222
+ export declare const isString: (val: unknown) => val is string;
668
1223
 
669
1224
  /**
670
1225
  * 是否子页面
@@ -672,9 +1227,18 @@ export { isString }
672
1227
  */
673
1228
  export declare function isSubPage(domain: Domain): boolean;
674
1229
 
675
- export { isSymbol }
1230
+ /**
1231
+ * 是否为symbol
1232
+ * @param val
1233
+ * @returns
1234
+ */
1235
+ export declare const isSymbol: (val: unknown) => val is symbol;
676
1236
 
677
- export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
1237
+ /**
1238
+ * 是否是window对象
1239
+ * @param obj
1240
+ */
1241
+ export declare function isWindow(obj: any): boolean;
678
1242
 
679
1243
  /**
680
1244
  * 获取对应元素的在数组中最后一个匹配的索引
@@ -684,7 +1248,13 @@ export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions,
684
1248
  */
685
1249
  export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
686
1250
 
687
- export declare const Mapping: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
1251
+ /**
1252
+ * 创建数组
1253
+ * @param arr
1254
+ * @param results
1255
+ * @return
1256
+ */
1257
+ export declare function makeArray(arr: any, results?: any[]): any[];
688
1258
 
689
1259
  /**
690
1260
  * 匹配条件
@@ -697,12 +1267,41 @@ export declare interface Matched {
697
1267
  level?: number;
698
1268
  }
699
1269
 
1270
+ /**
1271
+ * 合并数组
1272
+ * @param first
1273
+ * @param second
1274
+ * @return
1275
+ */
1276
+ export declare function merge(first: any[], second: any[]): any[];
1277
+
700
1278
  export { multiply }
701
1279
 
702
1280
  export { negate }
703
1281
 
1282
+ /**
1283
+ * 下一个事件周期中执行函数
1284
+ * @param fn
1285
+ * @param args
1286
+ */
1287
+ export declare function nextTick(fn: {
1288
+ (...args: any[]): void;
1289
+ }, ...args: any[]): void;
1290
+
704
1291
  export { numberFormat }
705
1292
 
1293
+ /**
1294
+ * 对象类型
1295
+ */
1296
+ export declare const objectToString: () => string;
1297
+
1298
+ /**
1299
+ * 只执行一次函数
1300
+ * @param func
1301
+ * @returns
1302
+ */
1303
+ export declare function once(func: GenericFunction): GenericFunction;
1304
+
706
1305
  /**
707
1306
  * padding
708
1307
  */
@@ -713,8 +1312,6 @@ export declare interface Padding {
713
1312
  bottom: number | null;
714
1313
  }
715
1314
 
716
- export declare const Page: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
717
-
718
1315
  /**
719
1316
  * page layout
720
1317
  */
@@ -733,10 +1330,14 @@ export declare interface PageState {
733
1330
  height: number;
734
1331
  headerHeight: number;
735
1332
  headerPadding: Padding;
1333
+ headerAllHeight?: number;
736
1334
  footerHeight: number;
737
1335
  footerPadding: Padding;
1336
+ footerAllHeight?: number;
738
1337
  contentHeight: number | string | null;
739
1338
  contentPadding: Padding;
1339
+ contentInnerHeight?: number;
1340
+ contentInnerWidth?: number;
740
1341
  safeAreaTop: number;
741
1342
  safeAreaBottom: number;
742
1343
  safeAreaLeft: number;
@@ -753,8 +1354,6 @@ export declare interface Point {
753
1354
  y: number;
754
1355
  }
755
1356
 
756
- export declare const Price: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
757
-
758
1357
  /**
759
1358
  * 优先策略
760
1359
  */
@@ -772,9 +1371,6 @@ export declare enum PriorityPolicy {
772
1371
  */
773
1372
  export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
774
1373
 
775
- /**
776
- * 动画
777
- */
778
1374
  export declare const raf: any;
779
1375
 
780
1376
  /**
@@ -783,17 +1379,7 @@ export declare const raf: any;
783
1379
  */
784
1380
  export declare function readonlyProperty(source: Ref): Ref;
785
1381
 
786
- /**
787
- * Rect类型
788
- */
789
1382
  declare interface Rect {
790
- left: number;
791
- top: number;
792
- right: number;
793
- bottom: number;
794
- }
795
-
796
- declare interface Rect_2 {
797
1383
  top: number;
798
1384
  left: number;
799
1385
  right: number;
@@ -812,8 +1398,6 @@ export declare type Result = Promise<any> | any;
812
1398
  */
813
1399
  export declare type Results = Result[];
814
1400
 
815
- export declare const RowItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
816
-
817
1401
  /**
818
1402
  * 安全区域
819
1403
  */
@@ -824,15 +1408,6 @@ export declare interface SafeAreaInset {
824
1408
  bottom: number | string;
825
1409
  }
826
1410
 
827
- /**
828
- * scope getter
829
- */
830
- declare interface ScopeGetter {
831
- (proxy: ComponentPublicInstance): string | null;
832
- }
833
-
834
- export declare const SelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
835
-
836
1411
  /**
837
1412
  * 设置公共校验检查事件
838
1413
  * @param events
@@ -863,27 +1438,35 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
863
1438
  */
864
1439
  export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
865
1440
 
866
- export declare const SlotItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
867
-
868
- export declare const TableItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
869
-
870
- export declare const TableMappingColumn: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
1441
+ /**
1442
+ * size
1443
+ */
1444
+ declare interface Size {
1445
+ width: number;
1446
+ height: number;
1447
+ }
871
1448
 
872
1449
  /**
873
- * 节流函数
1450
+ * 节流函数(执行时间范围内的第一次)
874
1451
  * @param func 函数
875
- * @param time 延迟执行毫秒数
1452
+ * @param delay 延迟执行毫秒数
876
1453
  * @returns
877
1454
  */
878
- export declare function throttle(func: GenericFunction, time: number): GenericFunction;
879
-
880
- export declare const TimeItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
1455
+ export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
881
1456
 
882
- export declare const TimeSelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
883
-
884
- export { toBoolean }
1457
+ /**
1458
+ * 转换为boolean值
1459
+ * @param val
1460
+ * @returns
1461
+ */
1462
+ export declare function toBoolean(val: unknown): boolean;
885
1463
 
886
- export { toNumber }
1464
+ /**
1465
+ * 转换为number值
1466
+ * @param val
1467
+ * @returns
1468
+ */
1469
+ export declare function toNumber(val: unknown): number;
887
1470
 
888
1471
  /**
889
1472
  * 转换为number rect
@@ -905,7 +1488,7 @@ export declare function toPx(value: number | string, size?: number): number;
905
1488
  */
906
1489
  export declare const toPxDesc: (value: string | number, size?: number) => string;
907
1490
 
908
- export { toTypeString }
1491
+ export declare const toTypeString: (value: unknown) => string;
909
1492
 
910
1493
  /**
911
1494
  * to model value
@@ -915,6 +1498,31 @@ export { toTypeString }
915
1498
  */
916
1499
  export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
917
1500
 
1501
+ /**
1502
+ * 尝试执行多次函数
1503
+ * @param func 执行函数
1504
+ * @param milliseconds 执行间隔
1505
+ * @param maxLimit 最大尝试次数
1506
+ * @param step 间隔增加步长
1507
+ * @param immediately 是否立刻执行
1508
+ */
1509
+ export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean): void;
1510
+
1511
+ /**
1512
+ * 尝试多次函数
1513
+ * 返回true,代表执行完成,不在需要重试
1514
+ */
1515
+ export declare interface TryTimesFunction {
1516
+ (): boolean;
1517
+ }
1518
+
1519
+ /**
1520
+ * 判断类型
1521
+ * @param obj
1522
+ * @returns any
1523
+ */
1524
+ export declare function typeOf(obj: any): string;
1525
+
918
1526
  export declare class UniqueID {
919
1527
  /**
920
1528
  * seed id
@@ -947,13 +1555,13 @@ export declare function updatePageState(state: PageState, pageLayout: any, overr
947
1555
  * @param proxy
948
1556
  * @returns
949
1557
  */
950
- export declare function useBroadcast(proxy?: ComponentPublicInstance | null): Broadcast | null;
1558
+ export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
951
1559
 
952
1560
  /**
953
1561
  * 获取当前domain
954
1562
  * @returns
955
1563
  */
956
- export declare function useDomain(instance?: ComponentInternalInstance | null): Domain | null;
1564
+ export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
957
1565
 
958
1566
  /**
959
1567
  * use expose
@@ -961,6 +1569,13 @@ export declare function useDomain(instance?: ComponentInternalInstance | null):
961
1569
  */
962
1570
  export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
963
1571
 
1572
+ /**
1573
+ * 获取内部可用size
1574
+ * @param elementRef
1575
+ * @returns
1576
+ */
1577
+ export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
1578
+
964
1579
  /**
965
1580
  * 获取page state
966
1581
  * @param domain
@@ -975,14 +1590,42 @@ export declare function usePageState(domain: Domain): PageState | null;
975
1590
  */
976
1591
  export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
977
1592
 
978
- export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect_2;
1593
+ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
1594
+
1595
+ /**
1596
+ * 获取size
1597
+ * @param elementRef
1598
+ * @returns
1599
+ */
1600
+ export declare function useSize(elementRef: Element | Ref<Element>): Size;
1601
+
1602
+ export declare function useTouch(): {
1603
+ move: EventListener;
1604
+ start: EventListener;
1605
+ reset: () => void;
1606
+ startX: any;
1607
+ startY: any;
1608
+ startTime: any;
1609
+ duration: any;
1610
+ moveX: any;
1611
+ moveY: any;
1612
+ deltaX: any;
1613
+ deltaY: any;
1614
+ offsetX: any;
1615
+ offsetY: any;
1616
+ direction: any;
1617
+ isVertical: () => boolean;
1618
+ isHorizontal: () => boolean;
1619
+ };
979
1620
 
980
1621
  /**
981
1622
  * 校验条件
982
1623
  */
983
1624
  export declare interface ValidateCondition {
984
- exclude?: string[];
1625
+ deep?: boolean;
985
1626
  include?: string[];
1627
+ exclude?: string[];
1628
+ ignoreHidden?: boolean;
986
1629
  }
987
1630
 
988
1631
  /**
@@ -993,35 +1636,35 @@ export declare interface ValidateHandler {
993
1636
  * 错误处理
994
1637
  * @param errorMsg
995
1638
  * @param proxy
996
- * @param instance
1639
+ *
997
1640
  */
998
- error?(errorMsg: string, proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
1641
+ error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
999
1642
  /**
1000
1643
  * 重置处理
1001
1644
  * @param proxy
1002
- * @param instance
1645
+ *
1003
1646
  */
1004
- reset?(proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
1647
+ reset?(proxy: FoxComponentPublicInstance): void;
1005
1648
  /**
1006
1649
  * 成功处理
1007
1650
  * @param proxy
1008
- * @param instance
1651
+ *
1009
1652
  */
1010
- success?(proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
1653
+ success?(proxy: FoxComponentPublicInstance): void;
1011
1654
  /**
1012
1655
  * 规则装饰处理
1013
1656
  * @param newRule
1014
1657
  * @param oldRule
1015
1658
  * @param proxy
1016
- * @param instance
1659
+ *
1017
1660
  */
1018
- decorate?(newRule: Rule, oldRle: Rule, proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
1661
+ decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
1019
1662
  /**
1020
1663
  * 获取value
1021
1664
  * @param proxy
1022
- * @param instance
1665
+ *
1023
1666
  */
1024
- getValue?(proxy: ComponentPublicInstance, instance: ComponentInternalInstance): any;
1667
+ getValue?(proxy: FoxComponentPublicInstance): any;
1025
1668
  }
1026
1669
 
1027
1670
  /**
@@ -1051,7 +1694,7 @@ export declare class ValidateSchema {
1051
1694
  /**
1052
1695
  * 实例
1053
1696
  */
1054
- private instance;
1697
+ private proxy;
1055
1698
  /**
1056
1699
  * effect scope
1057
1700
  */
@@ -1060,9 +1703,9 @@ export declare class ValidateSchema {
1060
1703
  * 构造函数
1061
1704
  * @param parent
1062
1705
  * @param descriptor
1063
- * @param instance
1706
+ * @param proxy
1064
1707
  */
1065
- constructor(parent: ValidateSchema | null, descriptor: Descriptor, instance: ComponentInternalInstance);
1708
+ constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
1066
1709
  /**
1067
1710
  * 初始化
1068
1711
  */