@fox-js/foxui-pc 4.1.1-4 → 4.1.1-40

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,126 +1,139 @@
1
1
  import { App } from 'vue';
2
2
  import { compareTo } from '@fox-js/big-decimal';
3
- import { ComponentInternalInstance } from 'vue';
4
- import { ComponentPublicInstance } from 'vue';
3
+ import { DefineSetupFnComponent } from 'vue';
5
4
  import { divide } from '@fox-js/big-decimal';
6
5
  import { ExecuteValidator } from '@fox-js/validator';
7
- import { ElAffix as FoxAffix } from './base';
8
- import { ElAlert as FoxAlert } from './base';
9
- import { ElAnchor as FoxAnchor } from './base';
10
- import { ElAnchorLink as FoxAnchorLink } from './base';
11
- import { ElAside as FoxAside } from './base';
12
- import { ElAutocomplete as FoxAutocomplete } from './base';
13
- import { ElAutoResizer as FoxAutoResizer } from './base';
14
- import { ElAvatar as FoxAvatar } from './base';
15
- import { ElBacktop as FoxBacktop } from './base';
16
- import { ElBadge as FoxBadge } from './base';
17
- import { ElBreadcrumb as FoxBreadcrumb } from './base';
18
- import { ElBreadcrumbItem as FoxBreadcrumbItem } from './base';
19
- import { ElButton as FoxButton } from './base';
20
- import { ElButtonGroup as FoxButtonGroup } from './base';
21
- import { ElCalendar as FoxCalendar } from './base';
22
- import { ElCard as FoxCard } from './base';
23
- import { ElCarousel as FoxCarousel } from './base';
24
- import { ElCarouselItem as FoxCarouselItem } from './base';
25
- import { ElCascader as FoxCascader } from './base';
26
- import { ElCascaderPanel as FoxCascaderPanel } from './base';
27
- import { ElCheckbox as FoxCheckbox } from './base';
28
- import { ElCheckboxButton as FoxCheckboxButton } from './base';
29
- import { ElCheckboxGroup as FoxCheckboxGroup } from './base';
30
- import { ElCheckTag as FoxCheckTag } from './base';
31
- import { ElCol as FoxCol } from './base';
32
- import { ElCollapse as FoxCollapse } from './base';
33
- import { ElCollapseItem as FoxCollapseItem } from './base';
34
- import { ElCollapseTransition as FoxCollapseTransition } from './base';
35
- import { ElColorPicker as FoxColorPicker } from './base';
36
- import { FoxComponentPublicInstance } from './types';
37
- import { ElConfigProvider as FoxConfigProvider } from './base';
38
- import { ElContainer as FoxContainer } from './base';
39
- import { ElCountdown as FoxCountdown } from './base';
40
- import { ElDatePicker as FoxDatePicker } from './base';
41
- import { ElDescriptions as FoxDescriptions } from './base';
42
- import { ElDescriptionsItem as FoxDescriptionsItem } from './base';
43
- import { ElDialog as FoxDialog } from './base';
44
- import { ElDivider as FoxDivider } from './base';
45
- import { ElDrawer as FoxDrawer } from './base';
46
- import { ElDropdown as FoxDropdown } from './base';
47
- import { ElDropdownItem as FoxDropdownItem } from './base';
48
- import { ElDropdownMenu as FoxDropdownMenu } from './base';
49
- import { ElEmpty as FoxEmpty } from './base';
50
- import { ElFooter as FoxFooter } from './base';
51
- import { ElForm as FoxForm } from './base';
52
- import { ElFormItem as FoxFormItem } from './base';
53
- import { ElHeader as FoxHeader } from './base';
54
- import { ElIcon as FoxIcon } from './base';
55
- import { ElImage as FoxImage } from './base';
56
- import { ElImageViewer as FoxImageViewer } from './base';
57
- import { ElInput as FoxInput } from './base';
58
- import { ElInputNumber as FoxInputNumber } from './base';
59
- import { ElLink as FoxLink } from './base';
60
- import { ElMain as FoxMain } from './base';
61
- import { ElMenu as FoxMenu } from './base';
62
- import { ElMenuItem as FoxMenuItem } from './base';
63
- import { ElMenuItemGroup as FoxMenuItemGroup } from './base';
64
- import { ElMessage as FoxMessage } from './base';
65
- import { ElMessageBox as FoxMessageBox } from './base';
66
- import { ElNotification as FoxNotification } from './base';
67
- import { ElOption as FoxOption } from './base';
68
- import { ElOptionGroup as FoxOptionGroup } from './base';
69
- import { ElPageHeader as FoxPageHeader } from './base';
70
- import { ElPagination as FoxPagination } from './base';
71
- import { ElPopconfirm as FoxPopconfirm } from './base';
72
- import { ElPopover as FoxPopover } from './base';
73
- import { ElPopper as FoxPopper } from './base';
74
- import { ElProgress as FoxProgress } from './base';
75
- import { ElRadio as FoxRadio } from './base';
76
- import { ElRadioButton as FoxRadioButton } from './base';
77
- import { ElRadioGroup as FoxRadioGroup } from './base';
78
- import { ElRate as FoxRate } from './base';
79
- import { ElResult as FoxResult } from './base';
80
- import { ElRow as FoxRow } from './base';
81
- import { ElScrollbar as FoxScrollbar } from './base';
82
- import { ElSegmented as FoxSegmented } from './base';
83
- import { ElSelect as FoxSelect } from './base';
84
- import { ElSelectV2 as FoxSelectV2 } from './base';
85
- import { ElSkeleton as FoxSkeleton } from './base';
86
- import { ElSkeletonItem as FoxSkeletonItem } from './base';
87
- import { ElSlider as FoxSlider } from './base';
88
- import { ElSpace as FoxSpace } from './base';
89
- import { ElStatistic as FoxStatistic } from './base';
90
- import { ElStep as FoxStep } from './base';
91
- import { ElSteps as FoxSteps } from './base';
92
- import { ElSubMenu as FoxSubMenu } from './base';
93
- import { ElSwitch as FoxSwitch } from './base';
94
- import { ElTable as FoxTable } from './base';
95
- import { ElTableColumn as FoxTableColumn } from './base';
96
- import { ElTableV2 as FoxTableV2 } from './base';
97
- import { ElTabPane as FoxTabPane } from './base';
98
- import { ElTabs as FoxTabs } from './base';
99
- import { ElTag as FoxTag } from './base';
100
- import { ElTimeline as FoxTimeline } from './base';
101
- import { ElTimelineItem as FoxTimelineItem } from './base';
102
- import { ElTimePicker as FoxTimePicker } from './base';
103
- import { ElTimeSelect as FoxTimeSelect } from './base';
104
- import { ElTooltip as FoxTooltip } from './base';
105
- import { ElTransfer as FoxTransfer } from './base';
106
- import { ElTree as FoxTree } from './base';
107
- import { ElTreeSelect as FoxTreeSelect } from './base';
108
- import { ElTreeV2 as FoxTreeV2 } from './base';
109
- import { FoxUI } from './interface';
110
- import { FoxUIOptions } from './interface';
111
- import { ElUpload as FoxUpload } from './base';
112
- import { ElWatermark as FoxWatermark } from './base';
6
+ import { ElAffix as FoxAffix } from 'element-plus';
7
+ import { ElAlert as FoxAlert } from 'element-plus';
8
+ import { ElAnchor as FoxAnchor } from 'element-plus';
9
+ import { ElAnchorLink as FoxAnchorLink } from 'element-plus';
10
+ import { ElAside as FoxAside } from 'element-plus';
11
+ import { ElAutocomplete as FoxAutocomplete } from 'element-plus';
12
+ import { ElAutoResizer as FoxAutoResizer } from 'element-plus';
13
+ import { ElAvatar as FoxAvatar } from 'element-plus';
14
+ import { ElBacktop as FoxBacktop } from 'element-plus';
15
+ import { ElBadge as FoxBadge } from 'element-plus';
16
+ import { ElBreadcrumb as FoxBreadcrumb } from 'element-plus';
17
+ import { ElBreadcrumbItem as FoxBreadcrumbItem } from 'element-plus';
18
+ import { ElButton as FoxButton } from 'element-plus';
19
+ import { ElButtonGroup as FoxButtonGroup } from 'element-plus';
20
+ import { ElCalendar as FoxCalendar } from 'element-plus';
21
+ import { ElCard as FoxCard } from 'element-plus';
22
+ import { ElCarousel as FoxCarousel } from 'element-plus';
23
+ import { ElCarouselItem as FoxCarouselItem } from 'element-plus';
24
+ import { ElCascader as FoxCascader } from 'element-plus';
25
+ import { ElCascaderPanel as FoxCascaderPanel } from 'element-plus';
26
+ import { ElCheckbox as FoxCheckbox } from 'element-plus';
27
+ import { ElCheckboxButton as FoxCheckboxButton } from 'element-plus';
28
+ import { ElCheckboxGroup as FoxCheckboxGroup } from 'element-plus';
29
+ import { ElCheckTag as FoxCheckTag } from 'element-plus';
30
+ import { ElCol as FoxCol } from 'element-plus';
31
+ import { ElCollapse as FoxCollapse } from 'element-plus';
32
+ import { ElCollapseItem as FoxCollapseItem } from 'element-plus';
33
+ import { ElCollapseTransition as FoxCollapseTransition } from 'element-plus';
34
+ import { ElColorPicker as FoxColorPicker } from 'element-plus';
35
+ import { ElConfigProvider as FoxConfigProvider } from 'element-plus';
36
+ import { ElContainer as FoxContainer } from 'element-plus';
37
+ import { ElCountdown as FoxCountdown } from 'element-plus';
38
+ import { ElDatePicker as FoxDatePicker } from 'element-plus';
39
+ import { ElDescriptions as FoxDescriptions } from 'element-plus';
40
+ import { ElDescriptionsItem as FoxDescriptionsItem } from 'element-plus';
41
+ import { ElDialog as FoxDialog } from 'element-plus';
42
+ import { ElDivider as FoxDivider } from 'element-plus';
43
+ import { ElDrawer as FoxDrawer } from 'element-plus';
44
+ import { ElDropdown as FoxDropdown } from 'element-plus';
45
+ import { ElDropdownItem as FoxDropdownItem } from 'element-plus';
46
+ import { ElDropdownMenu as FoxDropdownMenu } from 'element-plus';
47
+ import { ElEmpty as FoxEmpty } from 'element-plus';
48
+ import { ElFooter as FoxFooter } from 'element-plus';
49
+ import { ElForm as FoxForm } from 'element-plus';
50
+ import { ElFormItem as FoxFormItem } from 'element-plus';
51
+ import { ElHeader as FoxHeader } from 'element-plus';
52
+ import { ElIcon as FoxIcon } from 'element-plus';
53
+ import { ElImage as FoxImage } from 'element-plus';
54
+ import { ElImageViewer as FoxImageViewer } from 'element-plus';
55
+ import { ElInput as FoxInput } from 'element-plus';
56
+ import { ElInputNumber as FoxInputNumber } from 'element-plus';
57
+ import { ElInputTag as FoxInputTag } from 'element-plus';
58
+ import { ElLink as FoxLink } from 'element-plus';
59
+ import { ElMain as FoxMain } from 'element-plus';
60
+ import { ElMention as FoxMention } from 'element-plus';
61
+ import { ElMenu as FoxMenu } from 'element-plus';
62
+ import { ElMenuItem as FoxMenuItem } from 'element-plus';
63
+ import { ElMenuItemGroup as FoxMenuItemGroup } from 'element-plus';
64
+ import { ElMessage as FoxMessage } from 'element-plus';
65
+ import { ElMessageBox as FoxMessageBox } from 'element-plus';
66
+ import { ElNotification as FoxNotification } from 'element-plus';
67
+ import { ElOption as FoxOption } from 'element-plus';
68
+ import { ElOptionGroup as FoxOptionGroup } from 'element-plus';
69
+ import { ElPageHeader as FoxPageHeader } from 'element-plus';
70
+ import { ElPagination as FoxPagination } from 'element-plus';
71
+ import { ElPopconfirm as FoxPopconfirm } from 'element-plus';
72
+ import { ElPopover as FoxPopover } from 'element-plus';
73
+ import { ElPopper as FoxPopper } from 'element-plus';
74
+ import { ElProgress as FoxProgress } from 'element-plus';
75
+ import { ElRadio as FoxRadio } from 'element-plus';
76
+ import { ElRadioButton as FoxRadioButton } from 'element-plus';
77
+ import { ElRadioGroup as FoxRadioGroup } from 'element-plus';
78
+ import { ElRate as FoxRate } from 'element-plus';
79
+ import { ElResult as FoxResult } from 'element-plus';
80
+ import { ElRow as FoxRow } from 'element-plus';
81
+ import { ElScrollbar as FoxScrollbar } from 'element-plus';
82
+ import { ElSegmented as FoxSegmented } from 'element-plus';
83
+ import { ElSelect as FoxSelect } from 'element-plus';
84
+ import { ElSelectV2 as FoxSelectV2 } from 'element-plus';
85
+ import { ElSkeleton as FoxSkeleton } from 'element-plus';
86
+ import { ElSkeletonItem as FoxSkeletonItem } from 'element-plus';
87
+ import { ElSlider as FoxSlider } from 'element-plus';
88
+ import { ElSpace as FoxSpace } from 'element-plus';
89
+ import { ElStatistic as FoxStatistic } from 'element-plus';
90
+ import { ElStep as FoxStep } from 'element-plus';
91
+ import { ElSteps as FoxSteps } from 'element-plus';
92
+ import { ElSubMenu as FoxSubMenu } from 'element-plus';
93
+ import { ElSwitch as FoxSwitch } from 'element-plus';
94
+ import { ElTable as FoxTable } from 'element-plus';
95
+ import { ElTableColumn as FoxTableColumn } from 'element-plus';
96
+ import { ElTableV2 as FoxTableV2 } from 'element-plus';
97
+ import { ElTabPane as FoxTabPane } from 'element-plus';
98
+ import { ElTabs as FoxTabs } from 'element-plus';
99
+ import { ElTag as FoxTag } from 'element-plus';
100
+ import { ElTimeline as FoxTimeline } from 'element-plus';
101
+ import { ElTimelineItem as FoxTimelineItem } from 'element-plus';
102
+ import { ElTimePicker as FoxTimePicker } from 'element-plus';
103
+ import { ElTimeSelect as FoxTimeSelect } from 'element-plus';
104
+ import { ElTooltip as FoxTooltip } from 'element-plus';
105
+ import { ElTransfer as FoxTransfer } from 'element-plus';
106
+ import { ElTree as FoxTree } from 'element-plus';
107
+ import { ElTreeSelect as FoxTreeSelect } from 'element-plus';
108
+ import { ElTreeV2 as FoxTreeV2 } from 'element-plus';
109
+ import { ElUpload as FoxUpload } from 'element-plus';
110
+ import { ElWatermark as FoxWatermark } from 'element-plus';
113
111
  import { multiply } from '@fox-js/big-decimal';
114
112
  import { negate } from '@fox-js/big-decimal';
115
113
  import { numberFormat } from '@fox-js/big-decimal';
114
+ import { PublicProps } from 'vue';
116
115
  import { Ref } from 'vue';
117
116
  import { Rule } from '@fox-js/validator';
118
- import { ScopeGetter } from './api';
119
117
  import { unNumberFormat } from '@fox-js/big-decimal';
120
118
  import { UnwrapNestedRefs } from 'vue';
121
119
  import { UnwrapRef } from 'vue';
122
120
  import { ValidateMessages } from '@fox-js/validator';
123
121
  import { ValidateResult } from '@fox-js/validator';
122
+ import { VNode } from 'vue';
123
+
124
+ /**
125
+ * 虚拟页面范围
126
+ */
127
+ export declare type AbstractPageScope = {
128
+ headerBar?: boolean;
129
+ footerBar?: boolean;
130
+ content?: boolean;
131
+ };
132
+
133
+ /**
134
+ * abstract page scope key(虚拟页面,不生成page、headerBar、footerBar、content,直接reader content内部组件)
135
+ */
136
+ export declare const AbstractPageScopeKey: unique symbol;
124
137
 
125
138
  /**
126
139
  * 是否接受value过滤器
@@ -146,20 +159,24 @@ export declare class Broadcast {
146
159
  */
147
160
  private callbacks;
148
161
  /**
149
- * vue proxy
162
+ * vue exposed
150
163
  */
151
- private proxy;
164
+ private exposed;
152
165
  /**
153
166
  * 名称
154
167
  */
155
168
  private name?;
169
+ /**
170
+ * 持久消息注册表
171
+ */
172
+ private persistantMessages;
156
173
  /**
157
174
  * 构造函数
158
175
  * @param parent
159
- * @param proxy
176
+ * @param exposed
160
177
  * @param name
161
178
  */
162
- constructor(parent: Broadcast | null, proxy: FoxComponentPublicInstance, name?: string);
179
+ constructor(parent: Broadcast | null, exposed: FoxComponentPublicExposed, name?: string);
163
180
  /**
164
181
  * 加入孩子节点
165
182
  * @param child
@@ -174,6 +191,46 @@ export declare class Broadcast {
174
191
  * 销毁
175
192
  */
176
193
  destroy(): void;
194
+ /**
195
+ * 设置持久化消息
196
+ * @param matched
197
+ * @param action
198
+ * @param args
199
+ */
200
+ private setPersistantMessage;
201
+ /**
202
+ * 删除持久化消息
203
+ * @param matched
204
+ * @param action
205
+ * @param args
206
+ */
207
+ private deletePersistantMessage;
208
+ /**
209
+ * 获取持久化消息列表
210
+ * @returns
211
+ */
212
+ getPersistantMessages(): PersistantMessage[];
213
+ /**
214
+ * 清空持久化消息列表
215
+ */
216
+ clearPersistantMessage(): void;
217
+ /**
218
+ * 判断是否匹配
219
+ * @param name
220
+ * @param matched
221
+ * @returns
222
+ */
223
+ private isMatched;
224
+ /**
225
+ * 触发函数
226
+ * @param action
227
+ * @param args
228
+ */
229
+ private trigger;
230
+ /**
231
+ * 拉取持久消息
232
+ */
233
+ pull(): void;
177
234
  /**
178
235
  * 发生消息
179
236
  * @param matched
@@ -204,46 +261,76 @@ export declare interface BroadcastCallback {
204
261
  (...args: any[]): Result;
205
262
  }
206
263
 
264
+ /**
265
+ * broadcast key
266
+ */
207
267
  export declare const BroadcastKey: unique symbol;
208
268
 
269
+ /**
270
+ * 浏览模式属性
271
+ * @param source
272
+ * @returns
273
+ */
274
+ export declare function browseProperty(source: Ref): Ref<'on' | 'off'>;
275
+
209
276
  export declare function cancelRaf(id: number): void;
210
277
 
211
278
  /**
212
- * 清理非数字
279
+ * clamp
280
+ * @param num
281
+ * @param min
282
+ * @param max
283
+ * @returns
213
284
  */
214
- export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
285
+ export declare const clamp: (num: number, min: number, max: number) => number;
215
286
 
216
287
  /**
217
- * 克隆对象
218
- * @param target
219
- * @param source
220
- * @param plain
221
- *
222
- * @returns
288
+ * 清理非数字
223
289
  */
224
- export declare function clone(target: any, source: any, plain?: boolean): any;
290
+ export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
225
291
 
226
292
  export { compareTo }
227
293
 
294
+ /**
295
+ * 组件描述
296
+ */
297
+ declare interface ComponentDescriptor {
298
+ componentName: string;
299
+ readonly?: boolean;
300
+ disabled?: boolean;
301
+ props?: Record<string, any>;
302
+ ignorePropKeys?: string[];
303
+ context: FoxSetupContext;
304
+ templateRefProxy?: FoxTemplateRefProxy;
305
+ fieldName?: string;
306
+ valueName?: string;
307
+ valueType?: ValueType;
308
+ validate?: boolean;
309
+ pureDataValidate?: boolean;
310
+ validateHandler?: ValidateHandler;
311
+ validateCheckEvents?: string[];
312
+ validateResetEvents?: string[];
313
+ }
314
+
228
315
  /**
229
316
  * 创建broadcast
230
317
  *
231
- * @param proxy
318
+ * @param expose
232
319
  * @param parent
233
320
  * @param name
234
321
  * @param callbacks
235
322
  * @returns
236
323
  */
237
- export declare function createBroadcast(proxy: FoxComponentPublicInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
324
+ export declare function createBroadcast(exposed: FoxComponentPublicExposed, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
238
325
 
239
326
  /**
240
327
  * 创建校验schema
241
- * @param proxy
328
+ * @param exposed
242
329
  * @param parent
243
330
  * @param descriptor
244
331
  * @returns
245
332
  */
246
- export declare function createValidateSchema(proxy: FoxComponentPublicInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
333
+ export declare function createValidateSchema(exposed: FoxComponentPublicExposed, parent: ValidateSchema | null, descriptor: ComponentDescriptor): ValidateSchema;
247
334
 
248
335
  /**
249
336
  * data items key
@@ -254,16 +341,25 @@ export declare const DateUtils: {
254
341
  /**
255
342
  * 格式化
256
343
  * @param date
257
- * @param template
344
+ * @param formatTemplate
258
345
  * @returns
259
346
  */
260
- format(date: Date, template: string): string;
347
+ format(date: Date, formatTemplate?: string): string;
261
348
  /**
262
349
  * 解析
263
- * @param str
264
- * @param template
350
+ * @param dateString
351
+ * @param formatTemplate
352
+ */
353
+ parser(dateString: string, formatTemplate?: string): Date;
354
+ /**
355
+ * 返回日期格式字符串
356
+ * @param i 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
357
+ * @param startDate 起点日期
358
+ * @param formatTemplate 格式化模版
359
+ * @return '2014-12-31'
360
+ *
265
361
  */
266
- parser(str: string, template: string): Date;
362
+ getDay(i: number, startDate?: Date, formatTemplate?: string): string;
267
363
  /**
268
364
  * 是否为闫年
269
365
  * @return {Boolse} true|false
@@ -273,12 +369,7 @@ export declare const DateUtils: {
273
369
  * 返回星期数
274
370
  * @return {String}
275
371
  */
276
- getWhatDay(year: number, month: number, day: number): string;
277
- /**
278
- * 返回星期数
279
- * @return {Number}
280
- */
281
- getMonthPreDay(year: number, month: number): number;
372
+ getWhatDay(year: number, month: number, day: number): number;
282
373
  /**
283
374
  * 返回月份天数
284
375
  * @return {Number}
@@ -291,66 +382,49 @@ export declare const DateUtils: {
291
382
  getNumTwoBit(n: number): string;
292
383
  /**
293
384
  * 日期对象转成字符串
385
+ * 转换为YYYY-MM-DD格式
294
386
  * @return {string}
295
387
  */
296
388
  date2Str: (date: Date, split?: string) => string;
297
389
  /**
298
- * 返回日期格式字符串
299
- * @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
300
- * @param {Date} 起点日期
301
- * @return {string} '2014-12-31'
302
- */
303
- getDay(i: number, startDate?: Date): string;
304
- /**
305
- * 时间比较
306
- * @return
307
- */
308
- compareDate(date1: string | Date, date2: string | Date): boolean;
309
- /**
310
- * 时间是否相等
311
- * @return
312
- */
313
- isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
314
- /**
315
- * get month week
316
- * @param year
317
- * @param month
318
- * @param date
319
- * @param firstDayOfWeek
390
+ * 对比
391
+ * 0:相等, 1: x > y, -1: x < y
392
+ *
393
+ * @param x
394
+ * @param y
395
+ * @param formatTemplate
320
396
  * @returns
321
397
  */
322
- getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
398
+ compare(x: string | Date, y: string | Date, formatTemplate?: string): number;
323
399
  /**
324
- * get year week
325
- * @param year
326
- * @param month
400
+ * 判断
327
401
  * @param date
328
- * @param firstDayOfWeek
329
- * @returns
330
- */
331
- getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
332
- /**
333
- * get week date
334
- */
335
- getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
336
- /**
337
- * format result date
402
+ * @param startDate 开始日期
403
+ * @param span 允许负数
404
+ * @param dateUint span单位 'year'|'month'|'day'
338
405
  */
339
- formatResultDate: (date: string) => string[];
406
+ between(date: Date, startDate: Date, span: number, dateUint: "year" | "month" | "day"): boolean;
340
407
  /**
341
- * 判断日期是否在范围内
408
+ * 判断日期是否在范围内(day)
342
409
  * @param date
343
410
  * @param startDate
344
411
  * @param span 允许负数
345
412
  */
346
413
  inScope4Day(date: Date, startDate: Date, span: number): boolean;
347
414
  /**
348
- * 判断日期是否在范围内
415
+ * 判断日期是否在范围内(month)
349
416
  * @param date
350
417
  * @param startDate
351
418
  * @param span
352
419
  */
353
420
  inScope4Month(date: Date, startDate: Date, span: number): boolean;
421
+ /**
422
+ * 判断日期是否在范围内(year)
423
+ * @param date
424
+ * @param startDate
425
+ * @param span
426
+ */
427
+ inScope4Year(date: Date, startDate: Date, span: number): boolean;
354
428
  };
355
429
 
356
430
  /**
@@ -377,239 +451,285 @@ export declare function decimalLength(value: string | number): number;
377
451
  declare const _default: FoxUIVue;
378
452
  export default _default;
379
453
 
380
- declare const _default_10: any;
381
- export { _default_10 as FoxHintText }
382
- export { _default_10 as HintText }
454
+ declare const _default_10: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
455
+ export { _default_10 as ButtonsItem }
456
+ export { _default_10 as FoxButtonsItem }
383
457
 
384
- declare const _default_11: any;
458
+ declare const _default_11: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
385
459
  export { _default_11 as FoxInputItem }
386
460
  export { _default_11 as InputItem }
387
461
 
388
- declare const _default_12: any;
462
+ declare const _default_12: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
389
463
  export { _default_12 as FoxSelectItem }
390
464
  export { _default_12 as SelectItem }
391
465
 
392
- declare const _default_13: any;
466
+ declare const _default_13: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
393
467
  export { _default_13 as DateItem }
394
468
  export { _default_13 as FoxDateItem }
395
469
 
396
- declare const _default_14: any;
470
+ declare const _default_14: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
397
471
  export { _default_14 as FoxTimeItem }
398
472
  export { _default_14 as TimeItem }
399
473
 
400
- declare const _default_15: any;
474
+ declare const _default_15: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
401
475
  export { _default_15 as FoxTimeSelectItem }
402
476
  export { _default_15 as TimeSelectItem }
403
477
 
404
- declare const _default_16: any;
478
+ declare const _default_16: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
405
479
  export { _default_16 as FoxMoneyItem }
406
480
  export { _default_16 as MoneyItem }
407
481
 
408
- declare const _default_17: any;
482
+ declare const _default_17: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
409
483
  export { _default_17 as FoxInputNumberItem }
410
484
  export { _default_17 as InputNumberItem }
411
485
 
412
- declare const _default_18: any;
486
+ declare const _default_18: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
413
487
  export { _default_18 as CascaderItem }
414
488
  export { _default_18 as FoxCascaderItem }
415
489
 
416
- declare const _default_19: any;
490
+ declare const _default_19: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
417
491
  export { _default_19 as AutocompleteItem }
418
492
  export { _default_19 as FoxAutocompleteItem }
419
493
 
420
- declare const _default_2: any;
494
+ declare const _default_2: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
421
495
  export { _default_2 as FoxPage }
422
496
  export { _default_2 as Page }
423
497
 
424
- declare const _default_20: any;
498
+ declare const _default_20: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
425
499
  export { _default_20 as FoxTableMappingColumn }
426
500
  export { _default_20 as TableMappingColumn }
427
501
 
428
- declare const _default_21: any;
502
+ declare const _default_21: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
429
503
  export { _default_21 as FoxTableRadioColumn }
430
504
  export { _default_21 as TableRadioColumn }
431
505
 
432
- declare const _default_22: any;
506
+ declare const _default_22: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
433
507
  export { _default_22 as FoxTableSetting }
434
508
  export { _default_22 as TableSetting }
435
509
 
436
- declare const _default_23: any;
510
+ declare const _default_23: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
437
511
  export { _default_23 as FoxTableItem }
438
512
  export { _default_23 as TableItem }
439
513
 
440
- declare const _default_24: any;
514
+ declare const _default_24: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
441
515
  export { _default_24 as FoxRadioItem }
442
516
  export { _default_24 as RadioItem }
443
517
 
444
- declare const _default_25: any;
518
+ declare const _default_25: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
445
519
  export { _default_25 as CheckboxItem }
446
520
  export { _default_25 as FoxCheckboxItem }
447
521
 
448
- declare const _default_26: any;
522
+ declare const _default_26: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
449
523
  export { _default_26 as FoxRateItem }
450
524
  export { _default_26 as RateItem }
451
525
 
452
- declare const _default_27: any;
526
+ declare const _default_27: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
453
527
  export { _default_27 as FoxSwitchItem }
454
528
  export { _default_27 as SwitchItem }
455
529
 
456
- declare const _default_28: any;
530
+ declare const _default_28: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
457
531
  export { _default_28 as FoxTreeSelectItem }
458
532
  export { _default_28 as TreeSelectItem }
459
533
 
460
- declare const _default_29: any;
534
+ declare const _default_29: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
461
535
  export { _default_29 as FoxGroupSetting }
462
536
  export { _default_29 as GroupSetting }
463
537
 
464
- declare const _default_3: any;
538
+ declare const _default_3: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
465
539
  export { _default_3 as FoxHeaderBar }
466
540
  export { _default_3 as HeaderBar }
467
541
 
468
- declare const _default_30: any;
469
- export { _default_30 as FoxTabsBar }
470
- export { _default_30 as TabsBar }
542
+ declare const _default_30: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
543
+ export { _default_30 as FoxTreeItem }
544
+ export { _default_30 as TreeItem }
471
545
 
472
- declare const _default_31: any;
473
- export { _default_31 as FoxTabsContainer }
474
- export { _default_31 as TabsContainer }
546
+ declare const _default_31: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
547
+ export { _default_31 as FoxLinkItem }
548
+ export { _default_31 as LinkItem }
475
549
 
476
- declare const _default_32: any;
477
- export { _default_32 as FoxTabsPane }
478
- export { _default_32 as TabsPane }
550
+ declare const _default_32: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
551
+ export { _default_32 as FoxTabsBar }
552
+ export { _default_32 as TabsBar }
479
553
 
480
- declare const _default_33: any;
481
- export { _default_33 as FoxStepsBar }
482
- export { _default_33 as StepsBar }
554
+ declare const _default_33: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
555
+ export { _default_33 as FoxTabsContainer }
556
+ export { _default_33 as TabsContainer }
483
557
 
484
- declare const _default_34: any;
485
- export { _default_34 as DialogItem }
486
- export { _default_34 as FoxDialogItem }
558
+ declare const _default_34: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
559
+ export { _default_34 as FoxTabsPane }
560
+ export { _default_34 as TabsPane }
487
561
 
488
- declare const _default_35: any;
489
- export { _default_35 as FoxOverLay }
490
- export { _default_35 as OverLay }
562
+ declare const _default_35: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
563
+ export { _default_35 as FoxTabsFrame }
564
+ export { _default_35 as TabsFrame }
491
565
 
492
- declare const _default_36: any;
493
- export { _default_36 as FoxPopup }
494
- export { _default_36 as Popup }
566
+ declare const _default_36: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
567
+ export { _default_36 as FoxStepsBar }
568
+ export { _default_36 as StepsBar }
495
569
 
496
- declare const _default_37: any;
497
- export { _default_37 as FoxToast }
498
- export { _default_37 as Toast }
570
+ declare const _default_37: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
571
+ export { _default_37 as DialogItem }
572
+ export { _default_37 as FoxDialogItem }
499
573
 
500
- declare const _default_38: any;
501
- export { _default_38 as FoxSearchBar }
502
- export { _default_38 as SearchBar }
574
+ declare const _default_38: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
575
+ export { _default_38 as FoxOverLay }
576
+ export { _default_38 as OverLay }
503
577
 
504
- declare const _default_39: any;
505
- export { _default_39 as FoxInfiniteLoading }
506
- export { _default_39 as InfiniteLoading }
578
+ declare const _default_39: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
579
+ export { _default_39 as FoxPopup }
580
+ export { _default_39 as Popup }
507
581
 
508
- declare const _default_4: any;
582
+ declare const _default_4: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
509
583
  export { _default_4 as FooterBar }
510
584
  export { _default_4 as FoxFooterBar }
511
585
 
512
- declare const _default_40: any;
513
- export { _default_40 as FoxPullRefresh }
514
- export { _default_40 as PullRefresh }
586
+ declare const _default_40: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
587
+ export { _default_40 as FoxSearchBar }
588
+ export { _default_40 as SearchBar }
515
589
 
516
- declare const _default_41: any;
517
- export { _default_41 as FoxMapping }
518
- export { _default_41 as Mapping }
590
+ declare const _default_41: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
591
+ export { _default_41 as FoxInfiniteLoading }
592
+ export { _default_41 as InfiniteLoading }
519
593
 
520
- declare const _default_42: any;
521
- export { _default_42 as FoxPrice }
522
- export { _default_42 as Price }
594
+ declare const _default_42: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
595
+ export { _default_42 as FoxPullRefresh }
596
+ export { _default_42 as PullRefresh }
523
597
 
524
- declare const _default_43: any;
525
- export { _default_43 as FoxIndicator }
526
- export { _default_43 as Indicator }
598
+ declare const _default_43: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
599
+ export { _default_43 as FoxMoreButton }
600
+ export { _default_43 as MoreButton }
527
601
 
528
- declare const _default_44: any;
529
- export { _default_44 as FoxText }
530
- export { _default_44 as Text }
602
+ declare const _default_44: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
603
+ export { _default_44 as FloatingButton }
604
+ export { _default_44 as FoxFloatingButton }
531
605
 
532
- declare const _default_45: any;
533
- export { _default_45 as FoxMoreButton }
534
- export { _default_45 as MoreButton }
606
+ declare const _default_45: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
607
+ export { _default_45 as FloatingWindow }
608
+ export { _default_45 as FoxFloatingWindow }
535
609
 
536
- declare const _default_46: any;
537
- export { _default_46 as FoxTour }
538
- export { _default_46 as Tour }
610
+ declare const _default_46: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
611
+ export { _default_46 as FoxPopoverDialog }
612
+ export { _default_46 as PopoverDialog }
539
613
 
540
- declare const _default_47: any;
541
- export { _default_47 as FloatingWindow }
542
- export { _default_47 as FoxFloatingWindow }
614
+ declare const _default_47: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
615
+ export { _default_47 as FoxMapping }
616
+ export { _default_47 as Mapping }
543
617
 
544
- declare const _default_48: any;
545
- export { _default_48 as DomainProvider }
546
- export { _default_48 as FoxDomainProvider }
618
+ declare const _default_48: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
619
+ export { _default_48 as FoxPrice }
620
+ export { _default_48 as Price }
547
621
 
548
- declare const _default_49: any;
549
- export { _default_49 as FoxRollingProvider }
550
- export { _default_49 as RollingProvider }
622
+ declare const _default_49: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
623
+ export { _default_49 as FoxIndicator }
624
+ export { _default_49 as Indicator }
551
625
 
552
- declare const _default_5: any;
626
+ declare const _default_5: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
553
627
  export { _default_5 as Content }
554
628
  export { _default_5 as FoxContent }
555
629
 
556
- declare const _default_6: any;
630
+ declare const _default_50: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
631
+ export { _default_50 as FoxText }
632
+ export { _default_50 as Text }
633
+
634
+ declare const _default_51: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
635
+ export { _default_51 as FoxTour }
636
+ export { _default_51 as Tour }
637
+
638
+ declare const _default_52: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
639
+ export { _default_52 as DomainProvider }
640
+ export { _default_52 as FoxDomainProvider }
641
+
642
+ declare const _default_53: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
643
+ export { _default_53 as FoxRollingProvider }
644
+ export { _default_53 as RollingProvider }
645
+
646
+ declare const _default_6: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
557
647
  export { _default_6 as FoxGroup }
558
648
  export { _default_6 as Group }
559
649
 
560
- declare const _default_7: any;
650
+ declare const _default_7: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
561
651
  export { _default_7 as FoxItem }
562
652
  export { _default_7 as Item }
563
653
 
564
- declare const _default_8: any;
654
+ declare const _default_8: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
565
655
  export { _default_8 as FoxSlotItem }
566
656
  export { _default_8 as SlotItem }
567
657
 
568
- declare const _default_9: any;
658
+ declare const _default_9: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
569
659
  export { _default_9 as FoxRowItem }
570
660
  export { _default_9 as RowItem }
571
661
 
572
- /**
573
- * anyNode
574
- * @param name
575
- * @param callbacks
576
- * @returns
577
- */
578
- export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
579
-
580
662
  /**
581
663
  * 安装config domain
664
+ * @param descriptor domain组件描述
582
665
  * @param name 名称
583
- * @param props 属性
584
- * @param ignores 忽略的属性
585
666
  * @returns
586
667
  */
587
- export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
668
+ export declare function defineConfigDomain(descriptor: DomainComponentDescriptor, name: string | null): {
669
+ domain: Domain;
670
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
671
+ };
588
672
 
589
673
  /**
590
- * 定义domain data item
674
+ * 定义data item
675
+ * @param domain domain
676
+ * @param name 名称
677
+ * @param descriptor 描述
678
+ * @param parentBroadcast parent broadcast
679
+ * @param parentValidateSchema parent validateSchema
591
680
  * @returns
592
681
  */
593
- export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
682
+ export declare function defineDataItem(domain: Domain, name: string, descriptor: ComponentDescriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
594
683
  broadcast: Broadcast;
595
684
  validateSchema: ValidateSchema;
685
+ componentPublicExposed: FoxComponentPublicExposed;
686
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
596
687
  };
597
688
 
598
689
  /**
599
690
  * 安装domain
691
+ * @param descriptor domain组件描述
600
692
  * @param name 名称
601
- * @param props 属性
602
- * @param ignores 忽略的属性
603
- * @param exposes 暴露的方法
693
+ * @param broadcastCallbacks 消息
604
694
  * @returns
605
695
  */
606
- export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
696
+ export declare function defineDomain(descriptor: DomainComponentDescriptor, name: string | null, messageListeners?: Record<string, BroadcastCallback>): {
697
+ domain: Domain;
698
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
699
+ };
700
+
701
+ /**
702
+ * 定义domain item属性
703
+ */
704
+ export declare function defineDomainItemProperty(props: {
705
+ disabled?: boolean | string;
706
+ readonly?: boolean | string;
707
+ browse?: 'off' | 'on';
708
+ }): {
709
+ itemTemplateRef: Ref<any, any>;
710
+ innerDisabled: Ref<boolean, boolean>;
711
+ disabled: Ref<boolean, boolean>;
712
+ innerReadonly: Ref<boolean, boolean>;
713
+ readonly: Ref<boolean, boolean>;
714
+ browse: Ref<"off" | "on", "off" | "on">;
715
+ };
607
716
 
608
717
  /**
609
718
  * 定义domain item
719
+ * @param descriptor 组件描述
720
+ * @param name 名称
721
+ * @param broadcastCallbacks 消息
610
722
  * @returns
611
723
  */
612
- export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
724
+ export declare function defineItem(descriptor: ComponentDescriptor, name?: string, broadcastCallbacks?: Record<string, BroadcastCallback>): {
725
+ broadcast: Broadcast;
726
+ validateSchema: ValidateSchema;
727
+ emitEvent: (type: string, ...args: any[]) => void;
728
+ onEvent: (type: string, listener: EventListener_2) => void;
729
+ offEvent: (type: string, listener: EventListener_2) => void;
730
+ componentPublicExposed: FoxComponentPublicExposed;
731
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
732
+ };
613
733
 
614
734
  /**
615
735
  * 创建page state
@@ -621,12 +741,16 @@ export declare function definePageState(domain: Domain, overrideProps?: Record<s
621
741
 
622
742
  /**
623
743
  * 定义simple item
744
+ * @param descriptor simple组件描述
745
+ * @param name 名称
624
746
  * @returns
625
747
  */
626
- export declare function defineSimpleItem(): {
748
+ export declare function defineSimpleItem(descriptor: SimpleComponentDescriptor, name?: string): {
627
749
  emitEvent: (type: string, ...args: any[]) => void;
628
750
  onEvent: (type: string, listener: EventListener_2) => void;
629
751
  offEvent: (type: string, listener: EventListener_2) => void;
752
+ componentPublicExposed: FoxComponentPublicExposed;
753
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
630
754
  };
631
755
 
632
756
  /**
@@ -635,30 +759,13 @@ export declare function defineSimpleItem(): {
635
759
  */
636
760
  export declare function deleteGlobalValidator(type: string): void;
637
761
 
638
- /**
639
- * 组件描述
640
- */
641
- export declare interface Descriptor {
642
- componentName: string;
643
- fieldName?: string;
644
- valueName?: string;
645
- valueType?: ValueType;
646
- validate?: boolean;
647
- readonly?: boolean;
648
- disabled?: boolean;
649
- pureDataValidate?: boolean;
650
- validateHandler?: ValidateHandler;
651
- validateCheckEvents?: string[];
652
- validateResetEvents?: string[];
653
- }
654
-
655
762
  declare type Direction = '' | 'vertical' | 'horizontal';
656
763
 
657
764
  /**
658
765
  * 禁用属性
659
766
  * @param source
660
767
  */
661
- export declare function disabledProperty(source: Ref): Ref;
768
+ export declare function disabledProperty(source: Ref): Ref<boolean>;
662
769
 
663
770
  export { divide }
664
771
 
@@ -689,10 +796,18 @@ export declare class Domain {
689
796
  private _validateSchema;
690
797
  get validateSchema(): ValidateSchema | null;
691
798
  set validateSchema(val: ValidateSchema | null);
799
+ /**
800
+ * component public expose
801
+ */
802
+ componentPublicExposed: FoxComponentPublicExposed;
692
803
  /**
693
804
  * 属性集合
694
805
  */
695
806
  private _props;
807
+ /**
808
+ * 本地数据集合
809
+ */
810
+ private _datas;
696
811
  /**
697
812
  * 构造函数
698
813
  * @param name
@@ -702,11 +817,34 @@ export declare class Domain {
702
817
  * 销毁
703
818
  */
704
819
  destroy(): void;
820
+ /**
821
+ * 设置数据
822
+ * @param key
823
+ * @param data
824
+ */
825
+ setData(key: string | number | symbol, data: any): void;
826
+ /**
827
+ * 获取本地数据
828
+ * @param key
829
+ */
830
+ getData(key: string | number | symbol): any;
831
+ /**
832
+ * 是否有本地数据
833
+ * @param key
834
+ * @returns
835
+ */
836
+ hasData(key: string | number | symbol): boolean;
837
+ /**
838
+ * 删除本地数据
839
+ * @param key
840
+ * @returns
841
+ */
842
+ deleteData(key: string | number | symbol): boolean;
705
843
  /**
706
844
  * 合并属性
707
845
  * @param props
708
846
  */
709
- merge(props: Record<string | number, any>, ignores?: any[]): void;
847
+ merge(props: Record<string | number, any>, ignores?: string[]): void;
710
848
  /**
711
849
  * 判断是否有属性
712
850
  */
@@ -750,20 +888,15 @@ export declare class Domain {
750
888
  }
751
889
 
752
890
  /**
753
- * domain item
891
+ * Domain组件描述
754
892
  */
755
- export declare interface DomainItem {
756
- broadcast: Broadcast;
757
- validateSchema: ValidateSchema;
758
- emitEvent: {
759
- (type: string, ...args: any[]): void;
760
- };
761
- onEvent: {
762
- (type: string, listener: EventListener_2): void;
763
- };
764
- offEvent: {
765
- (type: string, listener: EventListener_2): void;
893
+ declare interface DomainComponentDescriptor {
894
+ props?: Record<string, any> | {
895
+ (): Record<string, any>;
766
896
  };
897
+ ignorePropKeys?: string[];
898
+ context: FoxSetupContext;
899
+ templateRefProxy?: FoxTemplateRefProxy;
767
900
  }
768
901
 
769
902
  /**
@@ -771,6 +904,11 @@ export declare interface DomainItem {
771
904
  */
772
905
  export declare const DomainKey: unique symbol;
773
906
 
907
+ /**
908
+ * exposed
909
+ */
910
+ declare type EmitFn = (...args: any) => void;
911
+
774
912
  /**
775
913
  * event listener
776
914
  */
@@ -786,6 +924,11 @@ declare interface EventListener_2 {
786
924
  */
787
925
  export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
788
926
 
927
+ /**
928
+ * expose function
929
+ */
930
+ declare type ExposeFn = (exposed?: Record<string, any>) => void;
931
+
789
932
  /**
790
933
  * 继承(是否深度拷贝,dest,src1,src2,src3...)
791
934
  *
@@ -860,6 +1003,21 @@ export { FoxCollapseTransition }
860
1003
 
861
1004
  export { FoxColorPicker }
862
1005
 
1006
+ /**
1007
+ * component public exposed
1008
+ */
1009
+ declare type FoxComponentPublicExposed = Record<string | number | symbol, any>;
1010
+
1011
+ /**
1012
+ * component public exposed
1013
+ */
1014
+ declare type FoxComponentPublicProxy = {
1015
+ exposed: FoxComponentPublicExposed;
1016
+ $el?: HTMLElement;
1017
+ props: Record<string, any>;
1018
+ attrs: Record<string, any>;
1019
+ };
1020
+
863
1021
  export { FoxConfigProvider }
864
1022
 
865
1023
  export { FoxContainer }
@@ -904,10 +1062,14 @@ export { FoxInput }
904
1062
 
905
1063
  export { FoxInputNumber }
906
1064
 
1065
+ export { FoxInputTag }
1066
+
907
1067
  export { FoxLink }
908
1068
 
909
1069
  export { FoxMain }
910
1070
 
1071
+ export { FoxMention }
1072
+
911
1073
  export { FoxMenu }
912
1074
 
913
1075
  export { FoxMenuItem }
@@ -956,6 +1118,15 @@ export { FoxSelect }
956
1118
 
957
1119
  export { FoxSelectV2 }
958
1120
 
1121
+ /**
1122
+ * Fox setup context
1123
+ */
1124
+ declare type FoxSetupContext = {
1125
+ attrs: Record<string, any>;
1126
+ emit: EmitFn;
1127
+ expose: ExposeFn;
1128
+ };
1129
+
959
1130
  export { FoxSkeleton }
960
1131
 
961
1132
  export { FoxSkeletonItem }
@@ -986,6 +1157,11 @@ export { FoxTabs }
986
1157
 
987
1158
  export { FoxTag }
988
1159
 
1160
+ /**
1161
+ * template ref proxy
1162
+ */
1163
+ declare type FoxTemplateRefProxy = any;
1164
+
989
1165
  export { FoxTimeline }
990
1166
 
991
1167
  export { FoxTimelineItem }
@@ -1004,6 +1180,90 @@ export { FoxTreeSelect }
1004
1180
 
1005
1181
  export { FoxTreeV2 }
1006
1182
 
1183
+ /**
1184
+ * Fox UI
1185
+ */
1186
+ declare interface FoxUI {
1187
+ /**
1188
+ * 版本号
1189
+ */
1190
+ version: string;
1191
+ /**
1192
+ * 安装
1193
+ * @param app
1194
+ * @param options
1195
+ */
1196
+ install(app: App, options: FoxUIOptions): any;
1197
+ /**
1198
+ * 卸载
1199
+ */
1200
+ unInstall(): void;
1201
+ /**
1202
+ * 更新Layout
1203
+ *
1204
+ * @param options
1205
+ * @param rootDomain
1206
+ */
1207
+ updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1208
+ /**
1209
+ * 设置scope getter
1210
+ * @param getter
1211
+ */
1212
+ setScopeGetter(getter: ScopeGetter): void;
1213
+ /**
1214
+ * 获取scope getter
1215
+ * @param getter
1216
+ */
1217
+ getScopeGetter(): ScopeGetter | null;
1218
+ /**
1219
+ * 设置API
1220
+ * @param name
1221
+ * @param func
1222
+ * @param scope
1223
+ */
1224
+ setAPI(name: string, func: any, scope?: string): void;
1225
+ /**
1226
+ * 获取API
1227
+ * @param name
1228
+ * @param scope
1229
+ */
1230
+ getAPI(name: string, scope?: string): any | null;
1231
+ /**
1232
+ * 批量增加api
1233
+ * @param apis
1234
+ * @param scope
1235
+ */
1236
+ batchSetAPI(apis: Record<string, any>, scope?: string): void;
1237
+ /**
1238
+ * 清空scope apis
1239
+ * @param scope
1240
+ */
1241
+ clearScopeAPI(scope: string): void;
1242
+ /**
1243
+ * 获取root domain
1244
+ */
1245
+ getRootDomain(): Domain;
1246
+ }
1247
+
1248
+ /**
1249
+ * UI Options
1250
+ */
1251
+ declare interface FoxUIOptions {
1252
+ install?: boolean;
1253
+ componentPrefix?: string;
1254
+ autoAdjustPageLayout?: boolean;
1255
+ resizeDebounceDelay?: number;
1256
+ headerBarHeight?: number;
1257
+ footerBarHeight?: number;
1258
+ safeAreaInset?: SafeAreaInset;
1259
+ pageLayout?: PageLayout;
1260
+ headerPadding?: Rect;
1261
+ contentPadding?: Rect;
1262
+ groupLayout?: GroupLayout;
1263
+ labelWidth?: number | string;
1264
+ [propName: string]: any;
1265
+ }
1266
+
1007
1267
  /**
1008
1268
  * Fox UI vue实例
1009
1269
  */
@@ -1016,6 +1276,14 @@ declare class FoxUIVue implements FoxUI {
1016
1276
  * 安装器
1017
1277
  */
1018
1278
  private installers;
1279
+ /**
1280
+ * resize监听器
1281
+ */
1282
+ private resizeListener;
1283
+ /**
1284
+ * resize observer
1285
+ */
1286
+ private resizeObserver;
1019
1287
  /**
1020
1288
  * version
1021
1289
  */
@@ -1034,17 +1302,25 @@ declare class FoxUIVue implements FoxUI {
1034
1302
  */
1035
1303
  install(app: App, options?: FoxUIOptions): any;
1036
1304
  /**
1037
- * 初始化page Layout
1305
+ * 卸载
1306
+ */
1307
+ unInstall(): void;
1308
+ /**
1309
+ * 更新Layout
1038
1310
  *
1039
1311
  * @param options
1040
1312
  * @param rootDomain
1041
1313
  */
1042
- initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1314
+ updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1043
1315
  /**
1044
1316
  * 设置scope getter
1045
1317
  * @param getter
1046
1318
  */
1047
1319
  setScopeGetter(getter: ScopeGetter): void;
1320
+ /**
1321
+ * 获取scope getter
1322
+ */
1323
+ getScopeGetter(): ScopeGetter | null;
1048
1324
  /**
1049
1325
  * 设置API
1050
1326
  * @param name
@@ -1058,7 +1334,7 @@ declare class FoxUIVue implements FoxUI {
1058
1334
  * @param name
1059
1335
  * @param scope
1060
1336
  */
1061
- getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
1337
+ getAPI(name: string, scope?: string): any | null;
1062
1338
  /**
1063
1339
  * 批量增加api
1064
1340
  * @param apis
@@ -1087,6 +1363,12 @@ export declare interface GenericFunction {
1087
1363
  (...args: any[]): any;
1088
1364
  }
1089
1365
 
1366
+ /**
1367
+ * icons
1368
+ * @returns
1369
+ */
1370
+ export declare function getGlobalIcons(): Icons;
1371
+
1090
1372
  /**
1091
1373
  * 获取公共校验检查事件
1092
1374
  */
@@ -1135,11 +1417,73 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
1135
1417
  */
1136
1418
  export declare function getRootDomain(): Domain;
1137
1419
 
1420
+ /**
1421
+ * Layout信息接口
1422
+ */
1423
+ declare interface GroupLayout {
1424
+ type?: string;
1425
+ width?: number | string;
1426
+ column?: number;
1427
+ gutter?: number | string;
1428
+ }
1429
+
1138
1430
  /**
1139
1431
  * 是否支持symbol
1140
1432
  */
1141
1433
  export declare const hasSymbol: boolean;
1142
1434
 
1435
+ /**
1436
+ * hint text function
1437
+ */
1438
+ declare const HintTextFunction: HintTextTooltip;
1439
+ export { HintTextFunction as FoxHintText }
1440
+ export { HintTextFunction as HintText }
1441
+
1442
+ declare interface HintTextTooltip {
1443
+ /**
1444
+ * 显示
1445
+ * @param reference(引用组件 or 位置区域)
1446
+ * @param message
1447
+ * @param opts
1448
+ * @param only
1449
+ * @returns
1450
+ */
1451
+ show(reference: HTMLElement, message: string, opts: Record<string, any>, only?: boolean): string;
1452
+ /**
1453
+ * 显示(在指定区域显示)
1454
+ * @param referenceRect
1455
+ * @param message
1456
+ * @param opts
1457
+ * @param only
1458
+ * @returns
1459
+ */
1460
+ showInRect(referenceRect: InsetRect, message: string, opts: Record<string, any>, only?: boolean): string;
1461
+ /**
1462
+ * 隐藏
1463
+ * @param id
1464
+ */
1465
+ hide(id?: string): void;
1466
+ /**
1467
+ * 额外属性
1468
+ */
1469
+ [propName: string]: any;
1470
+ }
1471
+
1472
+ declare type Icons = {
1473
+ headerbar: {
1474
+ Left?: any;
1475
+ };
1476
+ radio: {
1477
+ CheckNormal?: any;
1478
+ Checked?: any;
1479
+ };
1480
+ checkbox: {
1481
+ CheckNormal?: any;
1482
+ Checked?: any;
1483
+ Indeterminate?: any;
1484
+ };
1485
+ };
1486
+
1143
1487
  /**
1144
1488
  * 根据包含模版,抽取属性
1145
1489
  * @param src
@@ -1156,6 +1500,51 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
1156
1500
  */
1157
1501
  export declare function indexOf(x: unknown, arr: unknown[]): number;
1158
1502
 
1503
+ /**
1504
+ * 获取是否为虚拟页面范围
1505
+ * @param defaultValue
1506
+ */
1507
+ export declare function injectAbstractPageScope(defaultValue?: boolean): boolean | AbstractPageScope;
1508
+
1509
+ /**
1510
+ * 获取content是否为虚拟页面范围
1511
+ * @param defaultValue
1512
+ * @returns
1513
+ */
1514
+ export declare function injectAbstractPageScopeForContent(defaultValue?: boolean): boolean;
1515
+
1516
+ /**
1517
+ * 获取footerBar是否为虚拟页面范围
1518
+ * @param defaultValue
1519
+ * @returns
1520
+ */
1521
+ export declare function injectAbstractPageScopeForFooterBar(defaultValue?: boolean): boolean;
1522
+
1523
+ /**
1524
+ * 获取headerBar是否为虚拟页面范围
1525
+ * @param defaultValue
1526
+ * @returns
1527
+ */
1528
+ export declare function injectAbstractPageScopeForHeaderBar(defaultValue?: boolean): boolean;
1529
+
1530
+ /**
1531
+ * 获取是否为内部页面范围
1532
+ * @param defaultValue
1533
+ */
1534
+ export declare function injectInnerPageScope(defaultValue?: boolean): boolean;
1535
+
1536
+ /**
1537
+ * inner page scope key(内部页面,默认适配父亲容器尺寸,not watch resize)
1538
+ */
1539
+ export declare const InnerPageScopeKey: unique symbol;
1540
+
1541
+ declare type InsetRect = {
1542
+ top: number | null;
1543
+ right: number | null;
1544
+ bottom: number | null;
1545
+ left: number | null;
1546
+ };
1547
+
1159
1548
  /**
1160
1549
  * 安装函数
1161
1550
  */
@@ -1163,12 +1552,6 @@ declare interface Installer {
1163
1552
  (app: App, options?: any): void;
1164
1553
  }
1165
1554
 
1166
- /**
1167
- * 安装校验规则
1168
- * @param proxy
1169
- */
1170
- export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1171
-
1172
1555
  /**
1173
1556
  * 获取整数长度
1174
1557
  * @param value
@@ -1199,6 +1582,13 @@ export declare const isBrowser: boolean;
1199
1582
  */
1200
1583
  export declare const isDate: (val: unknown) => val is Date;
1201
1584
 
1585
+ /**
1586
+ * 是否display none
1587
+ * @param el
1588
+ * @returns
1589
+ */
1590
+ export declare function isDisplayNone(el: HTMLElement): boolean;
1591
+
1202
1592
  /**
1203
1593
  * 是否空字符串
1204
1594
  * @param v
@@ -1229,20 +1619,14 @@ export declare function isESModule(obj: any): obj is Object;
1229
1619
  export declare const isFunction: (val: unknown) => val is Function;
1230
1620
 
1231
1621
  /**
1232
- * 是否是隐藏element
1233
- * @param el
1622
+ * 是否是隐藏 element(自身或任意父级隐藏)
1623
+ * - display: none
1624
+ * - visibility: hidden
1625
+ * - hidden 属性
1626
+ * - 父级隐藏
1234
1627
  */
1235
1628
  export declare function isHidden(el: any): boolean;
1236
1629
 
1237
- /**
1238
- * 是否为内嵌页面
1239
- * 内嵌页面为内嵌在容器内,如dialog,不需要设置content的高度
1240
- * @param domain
1241
- * @param proxy
1242
- * @returns
1243
- */
1244
- export declare function isInnerPage(domain: Domain, proxy: any): boolean;
1245
-
1246
1630
  /**
1247
1631
  * 是否为Map
1248
1632
  * @param val
@@ -1327,6 +1711,13 @@ export declare function isTouch(): boolean;
1327
1711
  */
1328
1712
  export declare function isWindow(obj: any): boolean;
1329
1713
 
1714
+ /**
1715
+ * 中划线格式转换为大驼峰
1716
+ * @param str
1717
+ * @returns
1718
+ */
1719
+ export declare function kebabToPascal(str: string): string;
1720
+
1330
1721
  /**
1331
1722
  * 获取对应元素的在数组中最后一个匹配的索引
1332
1723
  * @param x
@@ -1350,8 +1741,11 @@ export declare interface Matched {
1350
1741
  name?: string | RegExp | {
1351
1742
  (name: string): boolean;
1352
1743
  };
1353
- maxLevel?: number;
1354
- level?: number;
1744
+ resolve?: Resolve;
1745
+ resolved?: boolean;
1746
+ uniqueId?: string;
1747
+ cachePolicy?: MessageCachePolicy;
1748
+ messagingPolicy?: MessagingPolicy;
1355
1749
  }
1356
1750
 
1357
1751
  /**
@@ -1362,6 +1756,18 @@ export declare interface Matched {
1362
1756
  */
1363
1757
  export declare function merge(first: any[], second: any[]): any[];
1364
1758
 
1759
+ /**
1760
+ * 消息缓存策略
1761
+ * None:不缓存; UnResolved:消息未命中前缓存;Persistant:永久缓存
1762
+ */
1763
+ export declare type MessageCachePolicy = 'None' | 'Unresolved' | 'Persistant';
1764
+
1765
+ /**
1766
+ * 消息传递策略
1767
+ * broadcast
1768
+ */
1769
+ export declare type MessagingPolicy = 'Brodcast' | 'Once';
1770
+
1365
1771
  export { multiply }
1366
1772
 
1367
1773
  export { negate }
@@ -1389,6 +1795,13 @@ export declare const objectToString: () => string;
1389
1795
  */
1390
1796
  export declare function once(func: GenericFunction): GenericFunction;
1391
1797
 
1798
+ /**
1799
+ * 覆盖更新公共Icon
1800
+ * @param icons
1801
+ * @param merge
1802
+ */
1803
+ export declare function overrideGlobalIcons(newIcons: Partial<Icons>): void;
1804
+
1392
1805
  /**
1393
1806
  * 覆盖更新公共的校验处理器
1394
1807
  * @param validateHandler
@@ -1399,25 +1812,33 @@ export declare function overrideGlobalValidateHandler(validateHandler: Partial<V
1399
1812
  * padding
1400
1813
  */
1401
1814
  export declare interface Padding {
1402
- left: number | null;
1403
- top: number | null;
1404
- right: number | null;
1405
- bottom: number | null;
1815
+ left: number | string | null;
1816
+ top: number | string | null;
1817
+ right: number | string | null;
1818
+ bottom: number | string | null;
1406
1819
  }
1407
1820
 
1821
+ /**
1822
+ * pad zero
1823
+ */
1824
+ export declare const padZero: (num: number | string, length?: number) => string;
1825
+
1408
1826
  /**
1409
1827
  * page layout
1410
1828
  */
1411
1829
  export declare interface PageLayout {
1412
- width: number | string;
1413
- height: number | string;
1830
+ width?: number | string;
1831
+ height?: number | string;
1414
1832
  headerHeight?: number | string;
1415
1833
  footerHeight?: number | string;
1416
- headerPadding?: Padding;
1417
- footerPadding?: Padding;
1418
- contentPadding?: Padding;
1834
+ headerPadding?: Partial<Padding>;
1835
+ footerPadding?: Partial<Padding>;
1836
+ contentPadding?: Partial<Padding>;
1419
1837
  }
1420
1838
 
1839
+ /**
1840
+ * page state
1841
+ */
1421
1842
  export declare interface PageState {
1422
1843
  width: number;
1423
1844
  height: number;
@@ -1439,6 +1860,22 @@ export declare interface PageState {
1439
1860
  footerMounted?: boolean;
1440
1861
  }
1441
1862
 
1863
+ /**
1864
+ * 大驼峰转换为中划线
1865
+ * @param str
1866
+ * @returns
1867
+ */
1868
+ export declare function pascalToKebab<T extends string>(str: string): string;
1869
+
1870
+ /**
1871
+ * 持久消息
1872
+ */
1873
+ declare interface PersistantMessage {
1874
+ matched: Matched;
1875
+ action: string;
1876
+ args: any[];
1877
+ }
1878
+
1442
1879
  /**
1443
1880
  * 坐标
1444
1881
  */
@@ -1447,6 +1884,13 @@ export declare interface Point {
1447
1884
  y: number;
1448
1885
  }
1449
1886
 
1887
+ /**
1888
+ * prevent default
1889
+ * @param event
1890
+ * @param isStopPropagation
1891
+ */
1892
+ export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
1893
+
1450
1894
  /**
1451
1895
  * 优先策略
1452
1896
  */
@@ -1462,7 +1906,22 @@ export declare enum PriorityPolicy {
1462
1906
  * @param policy
1463
1907
  * @param filter
1464
1908
  */
1465
- export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
1909
+ export declare function property<T>(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref<T>;
1910
+
1911
+ /**
1912
+ * 设置虚拟页面范围
1913
+ * 虚拟页面,默认情况下不生成page、headerBar、footerBar、content,直接reader content内部组件
1914
+ * 也可以通过AbstractPageScope对象设置选择生成headerBar or footerBar or content 部分结构
1915
+ * @param value
1916
+ */
1917
+ export declare function provideAbstractPageScope(value: boolean | AbstractPageScope): void;
1918
+
1919
+ /**
1920
+ * 设置内部页面范围
1921
+ * 内部页面,默认适配父亲容器尺寸,not watch resize
1922
+ * @param value
1923
+ */
1924
+ export declare function provideInnerPageScope(value: boolean): void;
1466
1925
 
1467
1926
  export declare const raf: any;
1468
1927
 
@@ -1470,9 +1929,19 @@ export declare const raf: any;
1470
1929
  * 只读属性
1471
1930
  * @param source
1472
1931
  */
1473
- export declare function readonlyProperty(source: Ref): Ref;
1932
+ export declare function readonlyProperty(source: Ref): Ref<boolean>;
1474
1933
 
1934
+ /**
1935
+ * Rect类型
1936
+ */
1475
1937
  declare interface Rect {
1938
+ left: number;
1939
+ top: number;
1940
+ right: number;
1941
+ bottom: number;
1942
+ }
1943
+
1944
+ declare interface Rect_2 {
1476
1945
  top: number;
1477
1946
  left: number;
1478
1947
  right: number;
@@ -1481,6 +1950,11 @@ declare interface Rect {
1481
1950
  height: number;
1482
1951
  }
1483
1952
 
1953
+ /**
1954
+ * 消息确认函数
1955
+ */
1956
+ declare type Resolve = (...args: any) => void;
1957
+
1484
1958
  /**
1485
1959
  * 结果类型
1486
1960
  */
@@ -1501,6 +1975,14 @@ export declare interface SafeAreaInset {
1501
1975
  bottom: number | string;
1502
1976
  }
1503
1977
 
1978
+ /**
1979
+ * scope getter
1980
+ * 需要保证该函数能够在 InjectionContext 上下文中允许
1981
+ */
1982
+ declare interface ScopeGetter {
1983
+ (): string | null;
1984
+ }
1985
+
1504
1986
  /**
1505
1987
  * 设置公共校验检查事件
1506
1988
  * @param events
@@ -1531,6 +2013,13 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
1531
2013
  */
1532
2014
  export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
1533
2015
 
2016
+ /**
2017
+ * simple组件描述
2018
+ */
2019
+ declare interface SimpleComponentDescriptor {
2020
+ context: FoxSetupContext;
2021
+ }
2022
+
1534
2023
  /**
1535
2024
  * size
1536
2025
  */
@@ -1547,6 +2036,18 @@ declare interface Size {
1547
2036
  */
1548
2037
  export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
1549
2038
 
2039
+ declare const ToastFunction: {
2040
+ text(msg: string, opts?: {}): /*elided*/ any;
2041
+ success(msg: string, opts?: {}): /*elided*/ any;
2042
+ fail(msg: string, opts?: {}): /*elided*/ any;
2043
+ warn(msg: string, opts?: {}): /*elided*/ any;
2044
+ loading(msg: string, opts?: {}): /*elided*/ any;
2045
+ hide(id?: string): void;
2046
+ install(app: any): void;
2047
+ };
2048
+ export { ToastFunction as FoxToast }
2049
+ export { ToastFunction as Toast }
2050
+
1550
2051
  /**
1551
2052
  * 转换为boolean值
1552
2053
  * @param val
@@ -1573,13 +2074,15 @@ export declare function toPadding(rect: any): Padding;
1573
2074
  */
1574
2075
  export declare function toPx(value: number | string, size?: number): number;
1575
2076
 
2077
+ export declare const toPxDesc: (value: string | number, size?: number) => string;
2078
+
1576
2079
  /**
1577
- * to px desc
2080
+ * to px string
1578
2081
  * @param value
1579
2082
  * @parma size
1580
2083
  * @returns
1581
2084
  */
1582
- export declare const toPxDesc: (value: string | number, size?: number) => string;
2085
+ export declare const toPxString: (value: string | number, size?: number) => string;
1583
2086
 
1584
2087
  export declare const toTypeString: (value: unknown) => string;
1585
2088
 
@@ -1645,8 +2148,8 @@ export { unNumberFormat }
1645
2148
  /**
1646
2149
  * 更新 page state
1647
2150
  * @param state
1648
- * @param pageLayout
1649
- * @param overrideProps
2151
+ * @param pageLayout(领域设置)
2152
+ * @param overrideProps(组件属性)
1650
2153
  * @param root
1651
2154
  * @param rootWidth
1652
2155
  * @param rootHeight
@@ -1657,22 +2160,16 @@ export declare function updatePageState(state: PageState, pageLayout: any, overr
1657
2160
 
1658
2161
  /**
1659
2162
  * 使用broadcast
1660
- * @param proxy
2163
+ * @param expose
1661
2164
  * @returns
1662
2165
  */
1663
- export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
2166
+ export declare function useBroadcast(exposed?: FoxComponentPublicExposed): Broadcast | null;
1664
2167
 
1665
2168
  /**
1666
2169
  * 获取当前domain
1667
2170
  * @returns
1668
2171
  */
1669
- export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
1670
-
1671
- /**
1672
- * use expose
1673
- * @param apis
1674
- */
1675
- export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
2172
+ export declare function useDomain(): Domain | null;
1676
2173
 
1677
2174
  /**
1678
2175
  * 获取内部可用size
@@ -1720,7 +2217,7 @@ export declare function useRawTouch(): {
1720
2217
  };
1721
2218
  };
1722
2219
 
1723
- export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
2220
+ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect_2;
1724
2221
 
1725
2222
  /**
1726
2223
  * 获取size
@@ -1729,6 +2226,15 @@ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Wi
1729
2226
  */
1730
2227
  export declare function useSize(elementRef: Element | Ref<Element>): Size;
1731
2228
 
2229
+ /**
2230
+ * 获取child slot
2231
+ * @param slot
2232
+ * @returns
2233
+ */
2234
+ export declare function useSlotChildren(slot?: () => VNode[]): {
2235
+ getChildren: () => VNode[];
2236
+ };
2237
+
1732
2238
  /**
1733
2239
  * 获取响应式touch对象
1734
2240
  * @returns
@@ -1737,70 +2243,54 @@ export declare function useTouch(): {
1737
2243
  move: EventListener;
1738
2244
  start: EventListener;
1739
2245
  reset: () => void;
1740
- startX: any;
1741
- startY: any;
1742
- startTime: any;
1743
- duration: any;
1744
- moveX: any;
1745
- moveY: any;
1746
- deltaX: any;
1747
- deltaY: any;
1748
- offsetX: any;
1749
- offsetY: any;
1750
- direction: any;
2246
+ startX: Ref<number, number>;
2247
+ startY: Ref<number, number>;
2248
+ startTime: Ref<number, number>;
2249
+ duration: Ref<number, number>;
2250
+ moveX: Ref<number, number>;
2251
+ moveY: Ref<number, number>;
2252
+ deltaX: Ref<number, number>;
2253
+ deltaY: Ref<number, number>;
2254
+ offsetX: Ref<number, number>;
2255
+ offsetY: Ref<number, number>;
2256
+ direction: Ref<Direction, Direction>;
1751
2257
  isVertical: () => boolean;
1752
2258
  isHorizontal: () => boolean;
1753
2259
  };
1754
2260
 
1755
- /**
1756
- * 校验条件
1757
- */
1758
- export declare interface ValidateCondition {
1759
- deep?: boolean;
1760
- include?: string[];
1761
- exclude?: string[];
1762
- ignoreHidden?: boolean;
1763
- ignoreDisabled?: boolean;
1764
- ignoreReadonly?: boolean;
1765
- }
1766
-
1767
2261
  /**
1768
2262
  * 校验器handler
1769
2263
  */
1770
- export declare interface ValidateHandler {
2264
+ declare interface ValidateHandler {
1771
2265
  /**
1772
2266
  * 错误处理
1773
2267
  * @param errorMsg
1774
2268
  * @param proxy
1775
2269
  *
1776
2270
  */
1777
- error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
2271
+ error?(errorMsg: string, proxy: FoxComponentPublicProxy): void;
1778
2272
  /**
1779
2273
  * 重置处理
1780
2274
  * @param proxy
1781
- *
1782
2275
  */
1783
- reset?(proxy: FoxComponentPublicInstance): void;
2276
+ reset?(proxy: FoxComponentPublicProxy): void;
1784
2277
  /**
1785
2278
  * 成功处理
1786
2279
  * @param proxy
1787
- *
1788
2280
  */
1789
- success?(proxy: FoxComponentPublicInstance): void;
2281
+ success?(proxy: FoxComponentPublicProxy): void;
1790
2282
  /**
1791
2283
  * 规则装饰处理
1792
2284
  * @param newRule
1793
2285
  * @param oldRule
1794
2286
  * @param proxy
1795
- *
1796
2287
  */
1797
- decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
2288
+ decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicProxy): void;
1798
2289
  /**
1799
2290
  * 获取value
1800
2291
  * @param proxy
1801
- *
1802
2292
  */
1803
- getValue?(proxy: FoxComponentPublicInstance): any;
2293
+ getValue?(proxy: FoxComponentPublicProxy): any;
1804
2294
  }
1805
2295
 
1806
2296
  /**
@@ -1828,7 +2318,7 @@ export declare class ValidateSchema {
1828
2318
  */
1829
2319
  private descriptor;
1830
2320
  /**
1831
- * 实例
2321
+ * 组件public proxy
1832
2322
  */
1833
2323
  private proxy;
1834
2324
  /**
@@ -1841,7 +2331,7 @@ export declare class ValidateSchema {
1841
2331
  * @param descriptor
1842
2332
  * @param proxy
1843
2333
  */
1844
- constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
2334
+ constructor(parent: ValidateSchema | null, descriptor: ComponentDescriptor, proxy: FoxComponentPublicProxy);
1845
2335
  /**
1846
2336
  * 初始化
1847
2337
  */
@@ -1925,7 +2415,7 @@ export declare class ValidateSchema {
1925
2415
  export declare const ValidateSchemaKey: unique symbol;
1926
2416
 
1927
2417
  /**
1928
- * value 格式话
2418
+ * value 格式化
1929
2419
  */
1930
2420
  export declare interface ValueFormat<T, K> {
1931
2421
  (value: T): K;
@@ -1941,6 +2431,6 @@ export declare function valueLength(val: unknown): number;
1941
2431
  /**
1942
2432
  * value 类型
1943
2433
  */
1944
- export declare type ValueType = 'string' | 'number' | 'date';
2434
+ declare type ValueType = 'string' | 'number' | 'date';
1945
2435
 
1946
2436
  export { }