@fox-js/foxui-pad 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,68 +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
- * @param {formatTemplate} 格式化模版
302
- * @return {string} '2014-12-31'
390
+ * 对比
391
+ * 0:相等, 1: x > y, -1: x < y
303
392
  *
304
- */
305
- getDay(i: number, startDate?: Date, formatTemplate?: string): string;
306
- /**
307
- * 时间比较
308
- * @return
309
- */
310
- compareDate(date1: string | Date, date2: string | Date): boolean;
311
- /**
312
- * 时间是否相等
313
- * @return
314
- */
315
- isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
316
- /**
317
- * get month week
318
- * @param year
319
- * @param month
320
- * @param date
321
- * @param firstDayOfWeek
393
+ * @param x
394
+ * @param y
395
+ * @param formatTemplate
322
396
  * @returns
323
397
  */
324
- getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
398
+ compare(x: string | Date, y: string | Date, formatTemplate?: string): number;
325
399
  /**
326
- * get year week
327
- * @param year
328
- * @param month
400
+ * 判断
329
401
  * @param date
330
- * @param firstDayOfWeek
331
- * @returns
332
- */
333
- getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
334
- /**
335
- * get week date
336
- */
337
- getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
338
- /**
339
- * format result date
402
+ * @param startDate 开始日期
403
+ * @param span 允许负数
404
+ * @param dateUint span单位 'year'|'month'|'day'
340
405
  */
341
- formatResultDate: (date: string) => string[];
406
+ between(date: Date, startDate: Date, span: number, dateUint: "year" | "month" | "day"): boolean;
342
407
  /**
343
- * 判断日期是否在范围内
408
+ * 判断日期是否在范围内(day)
344
409
  * @param date
345
410
  * @param startDate
346
411
  * @param span 允许负数
347
412
  */
348
413
  inScope4Day(date: Date, startDate: Date, span: number): boolean;
349
414
  /**
350
- * 判断日期是否在范围内
415
+ * 判断日期是否在范围内(month)
351
416
  * @param date
352
417
  * @param startDate
353
418
  * @param span
354
419
  */
355
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;
356
428
  };
357
429
 
358
430
  /**
@@ -379,279 +451,325 @@ export declare function decimalLength(value: string | number): number;
379
451
  declare const _default: FoxUIVue;
380
452
  export default _default;
381
453
 
382
- declare const _default_10: any;
383
- export { _default_10 as FoxHintText }
384
- 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 }
385
457
 
386
- declare const _default_11: any;
458
+ declare const _default_11: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
387
459
  export { _default_11 as FoxInputItem }
388
460
  export { _default_11 as InputItem }
389
461
 
390
- declare const _default_12: any;
462
+ declare const _default_12: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
391
463
  export { _default_12 as FoxSelectItem }
392
464
  export { _default_12 as SelectItem }
393
465
 
394
- declare const _default_13: any;
466
+ declare const _default_13: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
395
467
  export { _default_13 as DateItem }
396
468
  export { _default_13 as FoxDateItem }
397
469
 
398
- declare const _default_14: any;
470
+ declare const _default_14: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
399
471
  export { _default_14 as CalendarItem }
400
472
  export { _default_14 as FoxCalendarItem }
401
473
 
402
- declare const _default_15: any;
474
+ declare const _default_15: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
403
475
  export { _default_15 as FoxTimeItem }
404
476
  export { _default_15 as TimeItem }
405
477
 
406
- declare const _default_16: any;
478
+ declare const _default_16: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
407
479
  export { _default_16 as FoxTimeSelectItem }
408
480
  export { _default_16 as TimeSelectItem }
409
481
 
410
- declare const _default_17: any;
482
+ declare const _default_17: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
411
483
  export { _default_17 as FoxMoneyItem }
412
484
  export { _default_17 as MoneyItem }
413
485
 
414
- declare const _default_18: any;
486
+ declare const _default_18: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
415
487
  export { _default_18 as FoxInputNumberItem }
416
488
  export { _default_18 as InputNumberItem }
417
489
 
418
- declare const _default_19: any;
490
+ declare const _default_19: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
419
491
  export { _default_19 as CascaderItem }
420
492
  export { _default_19 as FoxCascaderItem }
421
493
 
422
- declare const _default_2: any;
494
+ declare const _default_2: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
423
495
  export { _default_2 as FoxPage }
424
496
  export { _default_2 as Page }
425
497
 
426
- declare const _default_20: any;
498
+ declare const _default_20: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
427
499
  export { _default_20 as AutocompleteItem }
428
500
  export { _default_20 as FoxAutocompleteItem }
429
501
 
430
- declare const _default_21: any;
502
+ declare const _default_21: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
431
503
  export { _default_21 as FoxTableMappingColumn }
432
504
  export { _default_21 as TableMappingColumn }
433
505
 
434
- declare const _default_22: any;
506
+ declare const _default_22: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
435
507
  export { _default_22 as FoxTableRadioColumn }
436
508
  export { _default_22 as TableRadioColumn }
437
509
 
438
- declare const _default_23: any;
510
+ declare const _default_23: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
439
511
  export { _default_23 as FoxTableSetting }
440
512
  export { _default_23 as TableSetting }
441
513
 
442
- declare const _default_24: any;
514
+ declare const _default_24: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
443
515
  export { _default_24 as FoxTableItem }
444
516
  export { _default_24 as TableItem }
445
517
 
446
- declare const _default_25: any;
518
+ declare const _default_25: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
447
519
  export { _default_25 as FoxRadioItem }
448
520
  export { _default_25 as RadioItem }
449
521
 
450
- declare const _default_26: any;
522
+ declare const _default_26: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
451
523
  export { _default_26 as CheckboxItem }
452
524
  export { _default_26 as FoxCheckboxItem }
453
525
 
454
- declare const _default_27: any;
526
+ declare const _default_27: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
455
527
  export { _default_27 as FoxRateItem }
456
528
  export { _default_27 as RateItem }
457
529
 
458
- declare const _default_28: any;
530
+ declare const _default_28: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
459
531
  export { _default_28 as FoxSwitchItem }
460
532
  export { _default_28 as SwitchItem }
461
533
 
462
- declare const _default_29: any;
534
+ declare const _default_29: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
463
535
  export { _default_29 as FoxTreeSelectItem }
464
536
  export { _default_29 as TreeSelectItem }
465
537
 
466
- declare const _default_3: any;
538
+ declare const _default_3: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
467
539
  export { _default_3 as FoxHeaderBar }
468
540
  export { _default_3 as HeaderBar }
469
541
 
470
- declare const _default_30: any;
542
+ declare const _default_30: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
471
543
  export { _default_30 as FoxGroupSetting }
472
544
  export { _default_30 as GroupSetting }
473
545
 
474
- declare const _default_31: any;
475
- export { _default_31 as ActionsheetPane }
476
- export { _default_31 as FoxActionsheetPane }
546
+ declare const _default_31: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
547
+ export { _default_31 as FoxTreeItem }
548
+ export { _default_31 as TreeItem }
477
549
 
478
- declare const _default_32: any;
479
- export { _default_32 as ActionsheetItem }
480
- export { _default_32 as FoxActionsheetItem }
550
+ declare const _default_32: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
551
+ export { _default_32 as ActionsheetPane }
552
+ export { _default_32 as FoxActionsheetPane }
481
553
 
482
- declare const _default_33: any;
483
- export { _default_33 as FoxPickerItem }
484
- export { _default_33 as PickerItem }
554
+ declare const _default_33: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
555
+ export { _default_33 as ActionsheetItem }
556
+ export { _default_33 as FoxActionsheetItem }
485
557
 
486
- declare const _default_34: any;
487
- export { _default_34 as FoxTabsBar }
488
- export { _default_34 as TabsBar }
558
+ declare const _default_34: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
559
+ export { _default_34 as FoxPickerItem }
560
+ export { _default_34 as PickerItem }
489
561
 
490
- declare const _default_35: any;
491
- export { _default_35 as FoxTabsContainer }
492
- export { _default_35 as TabsContainer }
562
+ declare const _default_35: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
563
+ export { _default_35 as FoxLinkItem }
564
+ export { _default_35 as LinkItem }
493
565
 
494
- declare const _default_36: any;
495
- export { _default_36 as FoxTabsPane }
496
- export { _default_36 as TabsPane }
566
+ declare const _default_36: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
567
+ export { _default_36 as FoxTabsBar }
568
+ export { _default_36 as TabsBar }
497
569
 
498
- declare const _default_37: any;
499
- export { _default_37 as FoxStepsBar }
500
- export { _default_37 as StepsBar }
570
+ declare const _default_37: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
571
+ export { _default_37 as FoxTabsContainer }
572
+ export { _default_37 as TabsContainer }
501
573
 
502
- declare const _default_38: any;
503
- export { _default_38 as Foxpicker }
504
- export { _default_38 as picker }
574
+ declare const _default_38: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
575
+ export { _default_38 as FoxTabsPane }
576
+ export { _default_38 as TabsPane }
505
577
 
506
- declare const _default_39: any;
507
- export { _default_39 as Foxdatepicker }
508
- export { _default_39 as datepicker }
578
+ declare const _default_39: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
579
+ export { _default_39 as FoxTabsFrame }
580
+ export { _default_39 as TabsFrame }
509
581
 
510
- declare const _default_4: any;
582
+ declare const _default_4: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
511
583
  export { _default_4 as FooterBar }
512
584
  export { _default_4 as FoxFooterBar }
513
585
 
514
- declare const _default_40: any;
515
- export { _default_40 as Foxcalendarpicker }
516
- export { _default_40 as calendarpicker }
586
+ declare const _default_40: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
587
+ export { _default_40 as FoxStepsBar }
588
+ export { _default_40 as StepsBar }
517
589
 
518
- declare const _default_41: any;
519
- export { _default_41 as Foxcascaderpicker }
520
- export { _default_41 as cascaderpicker }
590
+ declare const _default_41: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
591
+ export { _default_41 as FloatingWindow }
592
+ export { _default_41 as FoxFloatingWindow }
521
593
 
522
- declare const _default_42: any;
523
- export { _default_42 as DialogItem }
524
- export { _default_42 as FoxDialogItem }
594
+ declare const _default_42: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
595
+ export { _default_42 as FoxPopoverDialog }
596
+ export { _default_42 as PopoverDialog }
525
597
 
526
- declare const _default_43: any;
527
- export { _default_43 as FoxOverLay }
528
- export { _default_43 as OverLay }
598
+ declare const _default_43: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
599
+ export { _default_43 as Foxpicker }
600
+ export { _default_43 as picker }
529
601
 
530
- declare const _default_44: any;
531
- export { _default_44 as FoxPopup }
532
- export { _default_44 as Popup }
602
+ declare const _default_44: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
603
+ export { _default_44 as Foxcalendarpicker }
604
+ export { _default_44 as calendarpicker }
533
605
 
534
- declare const _default_45: any;
535
- export { _default_45 as FoxToast }
536
- export { _default_45 as Toast }
606
+ declare const _default_45: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
607
+ export { _default_45 as Foxcascaderpicker }
608
+ export { _default_45 as cascaderpicker }
537
609
 
538
- declare const _default_46: any;
539
- export { _default_46 as FoxSearchBar }
540
- export { _default_46 as SearchBar }
610
+ declare const _default_46: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
611
+ export { _default_46 as DialogItem }
612
+ export { _default_46 as FoxDialogItem }
541
613
 
542
- declare const _default_47: any;
543
- export { _default_47 as FoxInfiniteLoading }
544
- export { _default_47 as InfiniteLoading }
614
+ declare const _default_47: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
615
+ export { _default_47 as FoxOverLay }
616
+ export { _default_47 as OverLay }
545
617
 
546
- declare const _default_48: any;
547
- export { _default_48 as FoxPullRefresh }
548
- export { _default_48 as PullRefresh }
618
+ declare const _default_48: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
619
+ export { _default_48 as FoxPopup }
620
+ export { _default_48 as Popup }
549
621
 
550
- declare const _default_49: any;
551
- export { _default_49 as FoxMapping }
552
- export { _default_49 as Mapping }
622
+ declare const _default_49: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
623
+ export { _default_49 as FoxSearchBar }
624
+ export { _default_49 as SearchBar }
553
625
 
554
- declare const _default_5: any;
626
+ declare const _default_5: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
555
627
  export { _default_5 as Content }
556
628
  export { _default_5 as FoxContent }
557
629
 
558
- declare const _default_50: any;
559
- export { _default_50 as FoxPrice }
560
- export { _default_50 as Price }
630
+ declare const _default_50: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
631
+ export { _default_50 as FoxInfiniteLoading }
632
+ export { _default_50 as InfiniteLoading }
561
633
 
562
- declare const _default_51: any;
563
- export { _default_51 as FoxIndicator }
564
- export { _default_51 as Indicator }
634
+ declare const _default_51: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
635
+ export { _default_51 as FoxPullRefresh }
636
+ export { _default_51 as PullRefresh }
565
637
 
566
- declare const _default_52: any;
567
- export { _default_52 as FoxText }
568
- export { _default_52 as Text }
638
+ declare const _default_52: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
639
+ export { _default_52 as FoxMoreButton }
640
+ export { _default_52 as MoreButton }
569
641
 
570
- declare const _default_53: any;
571
- export { _default_53 as FoxMoreButton }
572
- export { _default_53 as MoreButton }
642
+ declare const _default_53: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
643
+ export { _default_53 as FloatingButton }
644
+ export { _default_53 as FoxFloatingButton }
573
645
 
574
- declare const _default_54: any;
575
- export { _default_54 as FloatingButton }
576
- export { _default_54 as FoxFloatingButton }
646
+ declare const _default_54: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
647
+ export { _default_54 as FoxMapping }
648
+ export { _default_54 as Mapping }
577
649
 
578
- declare const _default_55: any;
579
- export { _default_55 as FoxTour }
580
- export { _default_55 as Tour }
650
+ declare const _default_55: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
651
+ export { _default_55 as FoxPrice }
652
+ export { _default_55 as Price }
581
653
 
582
- declare const _default_56: any;
583
- export { _default_56 as FloatingWindow }
584
- export { _default_56 as FoxFloatingWindow }
654
+ declare const _default_56: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
655
+ export { _default_56 as FoxIndicator }
656
+ export { _default_56 as Indicator }
585
657
 
586
- declare const _default_57: any;
587
- export { _default_57 as FoxPopoverDialog }
588
- export { _default_57 as PopoverDialog }
658
+ declare const _default_57: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
659
+ export { _default_57 as FoxText }
660
+ export { _default_57 as Text }
589
661
 
590
- declare const _default_58: any;
591
- export { _default_58 as DomainProvider }
592
- export { _default_58 as FoxDomainProvider }
662
+ declare const _default_58: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
663
+ export { _default_58 as FoxTour }
664
+ export { _default_58 as Tour }
593
665
 
594
- declare const _default_59: any;
595
- export { _default_59 as FoxRollingProvider }
596
- export { _default_59 as RollingProvider }
666
+ declare const _default_59: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
667
+ export { _default_59 as FoxNumberKeyboard }
668
+ export { _default_59 as NumberKeyboard }
597
669
 
598
- declare const _default_6: any;
670
+ declare const _default_6: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
599
671
  export { _default_6 as FoxGroup }
600
672
  export { _default_6 as Group }
601
673
 
602
- declare const _default_7: any;
674
+ declare const _default_60: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
675
+ export { _default_60 as FoxShortPassword }
676
+ export { _default_60 as ShortPassword }
677
+
678
+ declare const _default_61: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
679
+ export { _default_61 as FoxSignature }
680
+ export { _default_61 as Signature }
681
+
682
+ declare const _default_62: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
683
+ export { _default_62 as DomainProvider }
684
+ export { _default_62 as FoxDomainProvider }
685
+
686
+ declare const _default_63: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
687
+ export { _default_63 as FoxRollingProvider }
688
+ export { _default_63 as RollingProvider }
689
+
690
+ declare const _default_7: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
603
691
  export { _default_7 as FoxItem }
604
692
  export { _default_7 as Item }
605
693
 
606
- declare const _default_8: any;
694
+ declare const _default_8: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
607
695
  export { _default_8 as FoxSlotItem }
608
696
  export { _default_8 as SlotItem }
609
697
 
610
- declare const _default_9: any;
698
+ declare const _default_9: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
611
699
  export { _default_9 as FoxRowItem }
612
700
  export { _default_9 as RowItem }
613
701
 
614
- /**
615
- * anyNode
616
- * @param name
617
- * @param callbacks
618
- * @returns
619
- */
620
- export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
621
-
622
702
  /**
623
703
  * 安装config domain
704
+ * @param descriptor domain组件描述
624
705
  * @param name 名称
625
- * @param props 属性
626
- * @param ignores 忽略的属性
627
706
  * @returns
628
707
  */
629
- export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
708
+ export declare function defineConfigDomain(descriptor: DomainComponentDescriptor, name: string | null): {
709
+ domain: Domain;
710
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
711
+ };
630
712
 
631
713
  /**
632
- * 定义domain data item
714
+ * 定义data item
715
+ * @param domain domain
716
+ * @param name 名称
717
+ * @param descriptor 描述
718
+ * @param parentBroadcast parent broadcast
719
+ * @param parentValidateSchema parent validateSchema
633
720
  * @returns
634
721
  */
635
- export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
722
+ export declare function defineDataItem(domain: Domain, name: string, descriptor: ComponentDescriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
636
723
  broadcast: Broadcast;
637
724
  validateSchema: ValidateSchema;
725
+ componentPublicExposed: FoxComponentPublicExposed;
726
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
638
727
  };
639
728
 
640
729
  /**
641
730
  * 安装domain
731
+ * @param descriptor domain组件描述
642
732
  * @param name 名称
643
- * @param props 属性
644
- * @param ignores 忽略的属性
645
- * @param exposes 暴露的方法
733
+ * @param broadcastCallbacks 消息
646
734
  * @returns
647
735
  */
648
- export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
736
+ export declare function defineDomain(descriptor: DomainComponentDescriptor, name: string | null, messageListeners?: Record<string, BroadcastCallback>): {
737
+ domain: Domain;
738
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
739
+ };
740
+
741
+ /**
742
+ * 定义domain item属性
743
+ */
744
+ export declare function defineDomainItemProperty(props: {
745
+ disabled?: boolean | string;
746
+ readonly?: boolean | string;
747
+ browse?: 'off' | 'on';
748
+ }): {
749
+ itemTemplateRef: Ref<any, any>;
750
+ innerDisabled: Ref<boolean, boolean>;
751
+ disabled: Ref<boolean, boolean>;
752
+ innerReadonly: Ref<boolean, boolean>;
753
+ readonly: Ref<boolean, boolean>;
754
+ browse: Ref<"off" | "on", "off" | "on">;
755
+ };
649
756
 
650
757
  /**
651
758
  * 定义domain item
759
+ * @param descriptor 组件描述
760
+ * @param name 名称
761
+ * @param broadcastCallbacks 消息
652
762
  * @returns
653
763
  */
654
- export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
764
+ export declare function defineItem(descriptor: ComponentDescriptor, name?: string, broadcastCallbacks?: Record<string, BroadcastCallback>): {
765
+ broadcast: Broadcast;
766
+ validateSchema: ValidateSchema;
767
+ emitEvent: (type: string, ...args: any[]) => void;
768
+ onEvent: (type: string, listener: EventListener_2) => void;
769
+ offEvent: (type: string, listener: EventListener_2) => void;
770
+ componentPublicExposed: FoxComponentPublicExposed;
771
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
772
+ };
655
773
 
656
774
  /**
657
775
  * 创建page state
@@ -663,12 +781,16 @@ export declare function definePageState(domain: Domain, overrideProps?: Record<s
663
781
 
664
782
  /**
665
783
  * 定义simple item
784
+ * @param descriptor simple组件描述
785
+ * @param name 名称
666
786
  * @returns
667
787
  */
668
- export declare function defineSimpleItem(): {
788
+ export declare function defineSimpleItem(descriptor: SimpleComponentDescriptor, name?: string): {
669
789
  emitEvent: (type: string, ...args: any[]) => void;
670
790
  onEvent: (type: string, listener: EventListener_2) => void;
671
791
  offEvent: (type: string, listener: EventListener_2) => void;
792
+ componentPublicExposed: FoxComponentPublicExposed;
793
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
672
794
  };
673
795
 
674
796
  /**
@@ -677,30 +799,13 @@ export declare function defineSimpleItem(): {
677
799
  */
678
800
  export declare function deleteGlobalValidator(type: string): void;
679
801
 
680
- /**
681
- * 组件描述
682
- */
683
- export declare interface Descriptor {
684
- componentName: string;
685
- fieldName?: string;
686
- valueName?: string;
687
- valueType?: ValueType;
688
- validate?: boolean;
689
- readonly?: boolean;
690
- disabled?: boolean;
691
- pureDataValidate?: boolean;
692
- validateHandler?: ValidateHandler;
693
- validateCheckEvents?: string[];
694
- validateResetEvents?: string[];
695
- }
696
-
697
802
  declare type Direction = '' | 'vertical' | 'horizontal';
698
803
 
699
804
  /**
700
805
  * 禁用属性
701
806
  * @param source
702
807
  */
703
- export declare function disabledProperty(source: Ref): Ref;
808
+ export declare function disabledProperty(source: Ref): Ref<boolean>;
704
809
 
705
810
  export { divide }
706
811
 
@@ -731,10 +836,18 @@ export declare class Domain {
731
836
  private _validateSchema;
732
837
  get validateSchema(): ValidateSchema | null;
733
838
  set validateSchema(val: ValidateSchema | null);
839
+ /**
840
+ * component public expose
841
+ */
842
+ componentPublicExposed: FoxComponentPublicExposed;
734
843
  /**
735
844
  * 属性集合
736
845
  */
737
846
  private _props;
847
+ /**
848
+ * 本地数据集合
849
+ */
850
+ private _datas;
738
851
  /**
739
852
  * 构造函数
740
853
  * @param name
@@ -744,11 +857,34 @@ export declare class Domain {
744
857
  * 销毁
745
858
  */
746
859
  destroy(): void;
860
+ /**
861
+ * 设置数据
862
+ * @param key
863
+ * @param data
864
+ */
865
+ setData(key: string | number | symbol, data: any): void;
866
+ /**
867
+ * 获取本地数据
868
+ * @param key
869
+ */
870
+ getData(key: string | number | symbol): any;
871
+ /**
872
+ * 是否有本地数据
873
+ * @param key
874
+ * @returns
875
+ */
876
+ hasData(key: string | number | symbol): boolean;
877
+ /**
878
+ * 删除本地数据
879
+ * @param key
880
+ * @returns
881
+ */
882
+ deleteData(key: string | number | symbol): boolean;
747
883
  /**
748
884
  * 合并属性
749
885
  * @param props
750
886
  */
751
- merge(props: Record<string | number, any>, ignores?: any[]): void;
887
+ merge(props: Record<string | number, any>, ignores?: string[]): void;
752
888
  /**
753
889
  * 判断是否有属性
754
890
  */
@@ -792,20 +928,15 @@ export declare class Domain {
792
928
  }
793
929
 
794
930
  /**
795
- * domain item
931
+ * Domain组件描述
796
932
  */
797
- export declare interface DomainItem {
798
- broadcast: Broadcast;
799
- validateSchema: ValidateSchema;
800
- emitEvent: {
801
- (type: string, ...args: any[]): void;
802
- };
803
- onEvent: {
804
- (type: string, listener: EventListener_2): void;
805
- };
806
- offEvent: {
807
- (type: string, listener: EventListener_2): void;
933
+ declare interface DomainComponentDescriptor {
934
+ props?: Record<string, any> | {
935
+ (): Record<string, any>;
808
936
  };
937
+ ignorePropKeys?: string[];
938
+ context: FoxSetupContext;
939
+ templateRefProxy?: FoxTemplateRefProxy;
809
940
  }
810
941
 
811
942
  /**
@@ -813,6 +944,11 @@ export declare interface DomainItem {
813
944
  */
814
945
  export declare const DomainKey: unique symbol;
815
946
 
947
+ /**
948
+ * exposed
949
+ */
950
+ declare type EmitFn = (...args: any) => void;
951
+
816
952
  /**
817
953
  * event listener
818
954
  */
@@ -828,6 +964,11 @@ declare interface EventListener_2 {
828
964
  */
829
965
  export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
830
966
 
967
+ /**
968
+ * expose function
969
+ */
970
+ declare type ExposeFn = (exposed?: Record<string, any>) => void;
971
+
831
972
  /**
832
973
  * 继承(是否深度拷贝,dest,src1,src2,src3...)
833
974
  *
@@ -902,6 +1043,21 @@ export { FoxCollapseTransition }
902
1043
 
903
1044
  export { FoxColorPicker }
904
1045
 
1046
+ /**
1047
+ * component public exposed
1048
+ */
1049
+ declare type FoxComponentPublicExposed = Record<string | number | symbol, any>;
1050
+
1051
+ /**
1052
+ * component public exposed
1053
+ */
1054
+ declare type FoxComponentPublicProxy = {
1055
+ exposed: FoxComponentPublicExposed;
1056
+ $el?: HTMLElement;
1057
+ props: Record<string, any>;
1058
+ attrs: Record<string, any>;
1059
+ };
1060
+
905
1061
  export { FoxConfigProvider }
906
1062
 
907
1063
  export { FoxContainer }
@@ -946,10 +1102,14 @@ export { FoxInput }
946
1102
 
947
1103
  export { FoxInputNumber }
948
1104
 
1105
+ export { FoxInputTag }
1106
+
949
1107
  export { FoxLink }
950
1108
 
951
1109
  export { FoxMain }
952
1110
 
1111
+ export { FoxMention }
1112
+
953
1113
  export { FoxMenu }
954
1114
 
955
1115
  export { FoxMenuItem }
@@ -998,6 +1158,15 @@ export { FoxSelect }
998
1158
 
999
1159
  export { FoxSelectV2 }
1000
1160
 
1161
+ /**
1162
+ * Fox setup context
1163
+ */
1164
+ declare type FoxSetupContext = {
1165
+ attrs: Record<string, any>;
1166
+ emit: EmitFn;
1167
+ expose: ExposeFn;
1168
+ };
1169
+
1001
1170
  export { FoxSkeleton }
1002
1171
 
1003
1172
  export { FoxSkeletonItem }
@@ -1028,6 +1197,11 @@ export { FoxTabs }
1028
1197
 
1029
1198
  export { FoxTag }
1030
1199
 
1200
+ /**
1201
+ * template ref proxy
1202
+ */
1203
+ declare type FoxTemplateRefProxy = any;
1204
+
1031
1205
  export { FoxTimeline }
1032
1206
 
1033
1207
  export { FoxTimelineItem }
@@ -1046,6 +1220,90 @@ export { FoxTreeSelect }
1046
1220
 
1047
1221
  export { FoxTreeV2 }
1048
1222
 
1223
+ /**
1224
+ * Fox UI
1225
+ */
1226
+ declare interface FoxUI {
1227
+ /**
1228
+ * 版本号
1229
+ */
1230
+ version: string;
1231
+ /**
1232
+ * 安装
1233
+ * @param app
1234
+ * @param options
1235
+ */
1236
+ install(app: App, options: FoxUIOptions): any;
1237
+ /**
1238
+ * 卸载
1239
+ */
1240
+ unInstall(): void;
1241
+ /**
1242
+ * 更新Layout
1243
+ *
1244
+ * @param options
1245
+ * @param rootDomain
1246
+ */
1247
+ updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1248
+ /**
1249
+ * 设置scope getter
1250
+ * @param getter
1251
+ */
1252
+ setScopeGetter(getter: ScopeGetter): void;
1253
+ /**
1254
+ * 获取scope getter
1255
+ * @param getter
1256
+ */
1257
+ getScopeGetter(): ScopeGetter | null;
1258
+ /**
1259
+ * 设置API
1260
+ * @param name
1261
+ * @param func
1262
+ * @param scope
1263
+ */
1264
+ setAPI(name: string, func: any, scope?: string): void;
1265
+ /**
1266
+ * 获取API
1267
+ * @param name
1268
+ * @param scope
1269
+ */
1270
+ getAPI(name: string, scope?: string): any | null;
1271
+ /**
1272
+ * 批量增加api
1273
+ * @param apis
1274
+ * @param scope
1275
+ */
1276
+ batchSetAPI(apis: Record<string, any>, scope?: string): void;
1277
+ /**
1278
+ * 清空scope apis
1279
+ * @param scope
1280
+ */
1281
+ clearScopeAPI(scope: string): void;
1282
+ /**
1283
+ * 获取root domain
1284
+ */
1285
+ getRootDomain(): Domain;
1286
+ }
1287
+
1288
+ /**
1289
+ * UI Options
1290
+ */
1291
+ declare interface FoxUIOptions {
1292
+ install?: boolean;
1293
+ componentPrefix?: string;
1294
+ autoAdjustPageLayout?: boolean;
1295
+ resizeDebounceDelay?: number;
1296
+ headerBarHeight?: number;
1297
+ footerBarHeight?: number;
1298
+ safeAreaInset?: SafeAreaInset;
1299
+ pageLayout?: PageLayout;
1300
+ headerPadding?: Rect;
1301
+ contentPadding?: Rect;
1302
+ groupLayout?: GroupLayout;
1303
+ labelWidth?: number | string;
1304
+ [propName: string]: any;
1305
+ }
1306
+
1049
1307
  /**
1050
1308
  * Fox UI vue实例
1051
1309
  */
@@ -1058,6 +1316,14 @@ declare class FoxUIVue implements FoxUI {
1058
1316
  * 安装器
1059
1317
  */
1060
1318
  private installers;
1319
+ /**
1320
+ * resize监听器
1321
+ */
1322
+ private resizeListener;
1323
+ /**
1324
+ * resize observer
1325
+ */
1326
+ private resizeObserver;
1061
1327
  /**
1062
1328
  * version
1063
1329
  */
@@ -1076,17 +1342,25 @@ declare class FoxUIVue implements FoxUI {
1076
1342
  */
1077
1343
  install(app: App, options?: FoxUIOptions): any;
1078
1344
  /**
1079
- * 初始化page Layout
1345
+ * 卸载
1346
+ */
1347
+ unInstall(): void;
1348
+ /**
1349
+ * 更新Layout
1080
1350
  *
1081
1351
  * @param options
1082
1352
  * @param rootDomain
1083
1353
  */
1084
- initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1354
+ updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1085
1355
  /**
1086
1356
  * 设置scope getter
1087
1357
  * @param getter
1088
1358
  */
1089
1359
  setScopeGetter(getter: ScopeGetter): void;
1360
+ /**
1361
+ * 获取scope getter
1362
+ */
1363
+ getScopeGetter(): ScopeGetter | null;
1090
1364
  /**
1091
1365
  * 设置API
1092
1366
  * @param name
@@ -1100,7 +1374,7 @@ declare class FoxUIVue implements FoxUI {
1100
1374
  * @param name
1101
1375
  * @param scope
1102
1376
  */
1103
- getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
1377
+ getAPI(name: string, scope?: string): any | null;
1104
1378
  /**
1105
1379
  * 批量增加api
1106
1380
  * @param apis
@@ -1129,6 +1403,12 @@ export declare interface GenericFunction {
1129
1403
  (...args: any[]): any;
1130
1404
  }
1131
1405
 
1406
+ /**
1407
+ * icons
1408
+ * @returns
1409
+ */
1410
+ export declare function getGlobalIcons(): Icons;
1411
+
1132
1412
  /**
1133
1413
  * 获取公共校验检查事件
1134
1414
  */
@@ -1177,11 +1457,67 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
1177
1457
  */
1178
1458
  export declare function getRootDomain(): Domain;
1179
1459
 
1460
+ /**
1461
+ * Layout信息接口
1462
+ */
1463
+ declare interface GroupLayout {
1464
+ type?: string;
1465
+ width?: number | string;
1466
+ column?: number;
1467
+ gutter?: number | string;
1468
+ }
1469
+
1180
1470
  /**
1181
1471
  * 是否支持symbol
1182
1472
  */
1183
1473
  export declare const hasSymbol: boolean;
1184
1474
 
1475
+ /**
1476
+ * hint text function
1477
+ */
1478
+ declare const HintTextFunction: HintTextTooltip;
1479
+ export { HintTextFunction as FoxHintText }
1480
+ export { HintTextFunction as HintText }
1481
+
1482
+ /**
1483
+ * HintTextTooltip
1484
+ */
1485
+ declare interface HintTextTooltip {
1486
+ /**
1487
+ * 显示
1488
+ * @param reference
1489
+ * @param message
1490
+ * @param opts
1491
+ * @param only
1492
+ * @returns
1493
+ */
1494
+ show(reference: HTMLElement, message: string, opts: Record<string, any>, only?: boolean): string;
1495
+ /**
1496
+ * 隐藏
1497
+ * @param id
1498
+ */
1499
+ hide(id?: string): void;
1500
+ /**
1501
+ * 额外属性
1502
+ */
1503
+ [propName: string]: any;
1504
+ }
1505
+
1506
+ declare type Icons = {
1507
+ headerbar: {
1508
+ Left?: any;
1509
+ };
1510
+ radio: {
1511
+ CheckNormal?: any;
1512
+ Checked?: any;
1513
+ };
1514
+ checkbox: {
1515
+ CheckNormal?: any;
1516
+ Checked?: any;
1517
+ Indeterminate?: any;
1518
+ };
1519
+ };
1520
+
1185
1521
  /**
1186
1522
  * 根据包含模版,抽取属性
1187
1523
  * @param src
@@ -1198,6 +1534,44 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
1198
1534
  */
1199
1535
  export declare function indexOf(x: unknown, arr: unknown[]): number;
1200
1536
 
1537
+ /**
1538
+ * 获取是否为虚拟页面范围
1539
+ * @param defaultValue
1540
+ */
1541
+ export declare function injectAbstractPageScope(defaultValue?: boolean): boolean | AbstractPageScope;
1542
+
1543
+ /**
1544
+ * 获取content是否为虚拟页面范围
1545
+ * @param defaultValue
1546
+ * @returns
1547
+ */
1548
+ export declare function injectAbstractPageScopeForContent(defaultValue?: boolean): boolean;
1549
+
1550
+ /**
1551
+ * 获取footerBar是否为虚拟页面范围
1552
+ * @param defaultValue
1553
+ * @returns
1554
+ */
1555
+ export declare function injectAbstractPageScopeForFooterBar(defaultValue?: boolean): boolean;
1556
+
1557
+ /**
1558
+ * 获取headerBar是否为虚拟页面范围
1559
+ * @param defaultValue
1560
+ * @returns
1561
+ */
1562
+ export declare function injectAbstractPageScopeForHeaderBar(defaultValue?: boolean): boolean;
1563
+
1564
+ /**
1565
+ * 获取是否为内部页面范围
1566
+ * @param defaultValue
1567
+ */
1568
+ export declare function injectInnerPageScope(defaultValue?: boolean): boolean;
1569
+
1570
+ /**
1571
+ * inner page scope key(内部页面,默认适配父亲容器尺寸,not watch resize)
1572
+ */
1573
+ export declare const InnerPageScopeKey: unique symbol;
1574
+
1201
1575
  /**
1202
1576
  * 安装函数
1203
1577
  */
@@ -1205,12 +1579,6 @@ declare interface Installer {
1205
1579
  (app: App, options?: any): void;
1206
1580
  }
1207
1581
 
1208
- /**
1209
- * 安装校验规则
1210
- * @param proxy
1211
- */
1212
- export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1213
-
1214
1582
  /**
1215
1583
  * 获取整数长度
1216
1584
  * @param value
@@ -1241,6 +1609,13 @@ export declare const isBrowser: boolean;
1241
1609
  */
1242
1610
  export declare const isDate: (val: unknown) => val is Date;
1243
1611
 
1612
+ /**
1613
+ * 是否display none
1614
+ * @param el
1615
+ * @returns
1616
+ */
1617
+ export declare function isDisplayNone(el: HTMLElement): boolean;
1618
+
1244
1619
  /**
1245
1620
  * 是否空字符串
1246
1621
  * @param v
@@ -1271,20 +1646,14 @@ export declare function isESModule(obj: any): obj is Object;
1271
1646
  export declare const isFunction: (val: unknown) => val is Function;
1272
1647
 
1273
1648
  /**
1274
- * 是否是隐藏element
1275
- * @param el
1649
+ * 是否是隐藏 element(自身或任意父级隐藏)
1650
+ * - display: none
1651
+ * - visibility: hidden
1652
+ * - hidden 属性
1653
+ * - 父级隐藏
1276
1654
  */
1277
1655
  export declare function isHidden(el: any): boolean;
1278
1656
 
1279
- /**
1280
- * 是否为内嵌页面
1281
- * 内嵌页面为内嵌在容器内,如dialog,不需要设置content的高度
1282
- * @param domain
1283
- * @param proxy
1284
- * @returns
1285
- */
1286
- export declare function isInnerPage(domain: Domain, proxy: any): boolean;
1287
-
1288
1657
  /**
1289
1658
  * 是否为Map
1290
1659
  * @param val
@@ -1369,6 +1738,13 @@ export declare function isTouch(): boolean;
1369
1738
  */
1370
1739
  export declare function isWindow(obj: any): boolean;
1371
1740
 
1741
+ /**
1742
+ * 中划线格式转换为大驼峰
1743
+ * @param str
1744
+ * @returns
1745
+ */
1746
+ export declare function kebabToPascal(str: string): string;
1747
+
1372
1748
  /**
1373
1749
  * 获取对应元素的在数组中最后一个匹配的索引
1374
1750
  * @param x
@@ -1392,8 +1768,11 @@ export declare interface Matched {
1392
1768
  name?: string | RegExp | {
1393
1769
  (name: string): boolean;
1394
1770
  };
1395
- maxLevel?: number;
1396
- level?: number;
1771
+ resolve?: Resolve;
1772
+ resolved?: boolean;
1773
+ uniqueId?: string;
1774
+ cachePolicy?: MessageCachePolicy;
1775
+ messagingPolicy?: MessagingPolicy;
1397
1776
  }
1398
1777
 
1399
1778
  /**
@@ -1404,6 +1783,18 @@ export declare interface Matched {
1404
1783
  */
1405
1784
  export declare function merge(first: any[], second: any[]): any[];
1406
1785
 
1786
+ /**
1787
+ * 消息缓存策略
1788
+ * None:不缓存; UnResolved:消息未命中前缓存;Persistant:永久缓存
1789
+ */
1790
+ export declare type MessageCachePolicy = 'None' | 'Unresolved' | 'Persistant';
1791
+
1792
+ /**
1793
+ * 消息传递策略
1794
+ * broadcast
1795
+ */
1796
+ export declare type MessagingPolicy = 'Brodcast' | 'Once';
1797
+
1407
1798
  export { multiply }
1408
1799
 
1409
1800
  export { negate }
@@ -1431,6 +1822,13 @@ export declare const objectToString: () => string;
1431
1822
  */
1432
1823
  export declare function once(func: GenericFunction): GenericFunction;
1433
1824
 
1825
+ /**
1826
+ * 覆盖更新公共Icon
1827
+ * @param icons
1828
+ * @param merge
1829
+ */
1830
+ export declare function overrideGlobalIcons(newIcons: Partial<Icons>): void;
1831
+
1434
1832
  /**
1435
1833
  * 覆盖更新公共的校验处理器
1436
1834
  * @param validateHandler
@@ -1441,12 +1839,17 @@ export declare function overrideGlobalValidateHandler(validateHandler: Partial<V
1441
1839
  * padding
1442
1840
  */
1443
1841
  export declare interface Padding {
1444
- left: number | null;
1445
- top: number | null;
1446
- right: number | null;
1447
- bottom: number | null;
1842
+ left: number | string | null;
1843
+ top: number | string | null;
1844
+ right: number | string | null;
1845
+ bottom: number | string | null;
1448
1846
  }
1449
1847
 
1848
+ /**
1849
+ * pad zero
1850
+ */
1851
+ export declare const padZero: (num: number | string, length?: number) => string;
1852
+
1450
1853
  /**
1451
1854
  * page layout
1452
1855
  */
@@ -1455,11 +1858,14 @@ export declare interface PageLayout {
1455
1858
  height?: number | string;
1456
1859
  headerHeight?: number | string;
1457
1860
  footerHeight?: number | string;
1458
- headerPadding?: Padding;
1459
- footerPadding?: Padding;
1460
- contentPadding?: Padding;
1861
+ headerPadding?: Partial<Padding>;
1862
+ footerPadding?: Partial<Padding>;
1863
+ contentPadding?: Partial<Padding>;
1461
1864
  }
1462
1865
 
1866
+ /**
1867
+ * page state
1868
+ */
1463
1869
  export declare interface PageState {
1464
1870
  width: number;
1465
1871
  height: number;
@@ -1481,6 +1887,22 @@ export declare interface PageState {
1481
1887
  footerMounted?: boolean;
1482
1888
  }
1483
1889
 
1890
+ /**
1891
+ * 大驼峰转换为中划线
1892
+ * @param str
1893
+ * @returns
1894
+ */
1895
+ export declare function pascalToKebab<T extends string>(str: string): string;
1896
+
1897
+ /**
1898
+ * 持久消息
1899
+ */
1900
+ declare interface PersistantMessage {
1901
+ matched: Matched;
1902
+ action: string;
1903
+ args: any[];
1904
+ }
1905
+
1484
1906
  /**
1485
1907
  * 坐标
1486
1908
  */
@@ -1489,6 +1911,13 @@ export declare interface Point {
1489
1911
  y: number;
1490
1912
  }
1491
1913
 
1914
+ /**
1915
+ * prevent default
1916
+ * @param event
1917
+ * @param isStopPropagation
1918
+ */
1919
+ export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
1920
+
1492
1921
  /**
1493
1922
  * 优先策略
1494
1923
  */
@@ -1504,7 +1933,22 @@ export declare enum PriorityPolicy {
1504
1933
  * @param policy
1505
1934
  * @param filter
1506
1935
  */
1507
- export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
1936
+ export declare function property<T>(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref<T>;
1937
+
1938
+ /**
1939
+ * 设置虚拟页面范围
1940
+ * 虚拟页面,默认情况下不生成page、headerBar、footerBar、content,直接reader content内部组件
1941
+ * 也可以通过AbstractPageScope对象设置选择生成headerBar or footerBar or content 部分结构
1942
+ * @param value
1943
+ */
1944
+ export declare function provideAbstractPageScope(value: boolean | AbstractPageScope): void;
1945
+
1946
+ /**
1947
+ * 设置内部页面范围
1948
+ * 内部页面,默认适配父亲容器尺寸,not watch resize
1949
+ * @param value
1950
+ */
1951
+ export declare function provideInnerPageScope(value: boolean): void;
1508
1952
 
1509
1953
  export declare const raf: any;
1510
1954
 
@@ -1512,9 +1956,19 @@ export declare const raf: any;
1512
1956
  * 只读属性
1513
1957
  * @param source
1514
1958
  */
1515
- export declare function readonlyProperty(source: Ref): Ref;
1959
+ export declare function readonlyProperty(source: Ref): Ref<boolean>;
1516
1960
 
1961
+ /**
1962
+ * Rect类型
1963
+ */
1517
1964
  declare interface Rect {
1965
+ left: number;
1966
+ top: number;
1967
+ right: number;
1968
+ bottom: number;
1969
+ }
1970
+
1971
+ declare interface Rect_2 {
1518
1972
  top: number;
1519
1973
  left: number;
1520
1974
  right: number;
@@ -1523,6 +1977,11 @@ declare interface Rect {
1523
1977
  height: number;
1524
1978
  }
1525
1979
 
1980
+ /**
1981
+ * 消息确认函数
1982
+ */
1983
+ declare type Resolve = (...args: any) => void;
1984
+
1526
1985
  /**
1527
1986
  * 结果类型
1528
1987
  */
@@ -1543,6 +2002,14 @@ export declare interface SafeAreaInset {
1543
2002
  bottom: number | string;
1544
2003
  }
1545
2004
 
2005
+ /**
2006
+ * scope getter
2007
+ * 需要保证该函数能够在 InjectionContext 上下文中允许
2008
+ */
2009
+ declare interface ScopeGetter {
2010
+ (): string | null;
2011
+ }
2012
+
1546
2013
  /**
1547
2014
  * 设置公共校验检查事件
1548
2015
  * @param events
@@ -1573,6 +2040,13 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
1573
2040
  */
1574
2041
  export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
1575
2042
 
2043
+ /**
2044
+ * simple组件描述
2045
+ */
2046
+ declare interface SimpleComponentDescriptor {
2047
+ context: FoxSetupContext;
2048
+ }
2049
+
1576
2050
  /**
1577
2051
  * size
1578
2052
  */
@@ -1589,6 +2063,18 @@ declare interface Size {
1589
2063
  */
1590
2064
  export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
1591
2065
 
2066
+ declare const ToastFunction: {
2067
+ text(msg: string, opts?: {}): /*elided*/ any;
2068
+ success(msg: string, opts?: {}): /*elided*/ any;
2069
+ fail(msg: string, opts?: {}): /*elided*/ any;
2070
+ warn(msg: string, opts?: {}): /*elided*/ any;
2071
+ loading(msg: string, opts?: {}): /*elided*/ any;
2072
+ hide(id?: string): void;
2073
+ install(app: any): void;
2074
+ };
2075
+ export { ToastFunction as FoxToast }
2076
+ export { ToastFunction as Toast }
2077
+
1592
2078
  /**
1593
2079
  * 转换为boolean值
1594
2080
  * @param val
@@ -1615,13 +2101,15 @@ export declare function toPadding(rect: any): Padding;
1615
2101
  */
1616
2102
  export declare function toPx(value: number | string, size?: number): number;
1617
2103
 
2104
+ export declare const toPxDesc: (value: string | number, size?: number) => string;
2105
+
1618
2106
  /**
1619
- * to px desc
2107
+ * to px string
1620
2108
  * @param value
1621
2109
  * @parma size
1622
2110
  * @returns
1623
2111
  */
1624
- export declare const toPxDesc: (value: string | number, size?: number) => string;
2112
+ export declare const toPxString: (value: string | number, size?: number) => string;
1625
2113
 
1626
2114
  export declare const toTypeString: (value: unknown) => string;
1627
2115
 
@@ -1687,8 +2175,8 @@ export { unNumberFormat }
1687
2175
  /**
1688
2176
  * 更新 page state
1689
2177
  * @param state
1690
- * @param pageLayout
1691
- * @param overrideProps
2178
+ * @param pageLayout(领域设置)
2179
+ * @param overrideProps(组件属性)
1692
2180
  * @param root
1693
2181
  * @param rootWidth
1694
2182
  * @param rootHeight
@@ -1699,22 +2187,16 @@ export declare function updatePageState(state: PageState, pageLayout: any, overr
1699
2187
 
1700
2188
  /**
1701
2189
  * 使用broadcast
1702
- * @param proxy
2190
+ * @param expose
1703
2191
  * @returns
1704
2192
  */
1705
- export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
2193
+ export declare function useBroadcast(exposed?: FoxComponentPublicExposed): Broadcast | null;
1706
2194
 
1707
2195
  /**
1708
2196
  * 获取当前domain
1709
2197
  * @returns
1710
2198
  */
1711
- export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
1712
-
1713
- /**
1714
- * use expose
1715
- * @param apis
1716
- */
1717
- export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
2199
+ export declare function useDomain(): Domain | null;
1718
2200
 
1719
2201
  /**
1720
2202
  * 获取内部可用size
@@ -1762,7 +2244,7 @@ export declare function useRawTouch(): {
1762
2244
  };
1763
2245
  };
1764
2246
 
1765
- export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
2247
+ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect_2;
1766
2248
 
1767
2249
  /**
1768
2250
  * 获取size
@@ -1771,6 +2253,15 @@ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Wi
1771
2253
  */
1772
2254
  export declare function useSize(elementRef: Element | Ref<Element>): Size;
1773
2255
 
2256
+ /**
2257
+ * 获取child slot
2258
+ * @param slot
2259
+ * @returns
2260
+ */
2261
+ export declare function useSlotChildren(slot?: () => VNode[]): {
2262
+ getChildren: () => VNode[];
2263
+ };
2264
+
1774
2265
  /**
1775
2266
  * 获取响应式touch对象
1776
2267
  * @returns
@@ -1779,70 +2270,54 @@ export declare function useTouch(): {
1779
2270
  move: EventListener;
1780
2271
  start: EventListener;
1781
2272
  reset: () => void;
1782
- startX: any;
1783
- startY: any;
1784
- startTime: any;
1785
- duration: any;
1786
- moveX: any;
1787
- moveY: any;
1788
- deltaX: any;
1789
- deltaY: any;
1790
- offsetX: any;
1791
- offsetY: any;
1792
- direction: any;
2273
+ startX: Ref<number, number>;
2274
+ startY: Ref<number, number>;
2275
+ startTime: Ref<number, number>;
2276
+ duration: Ref<number, number>;
2277
+ moveX: Ref<number, number>;
2278
+ moveY: Ref<number, number>;
2279
+ deltaX: Ref<number, number>;
2280
+ deltaY: Ref<number, number>;
2281
+ offsetX: Ref<number, number>;
2282
+ offsetY: Ref<number, number>;
2283
+ direction: Ref<Direction, Direction>;
1793
2284
  isVertical: () => boolean;
1794
2285
  isHorizontal: () => boolean;
1795
2286
  };
1796
2287
 
1797
- /**
1798
- * 校验条件
1799
- */
1800
- export declare interface ValidateCondition {
1801
- deep?: boolean;
1802
- include?: string[];
1803
- exclude?: string[];
1804
- ignoreHidden?: boolean;
1805
- ignoreDisabled?: boolean;
1806
- ignoreReadonly?: boolean;
1807
- }
1808
-
1809
2288
  /**
1810
2289
  * 校验器handler
1811
2290
  */
1812
- export declare interface ValidateHandler {
2291
+ declare interface ValidateHandler {
1813
2292
  /**
1814
2293
  * 错误处理
1815
2294
  * @param errorMsg
1816
2295
  * @param proxy
1817
2296
  *
1818
2297
  */
1819
- error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
2298
+ error?(errorMsg: string, proxy: FoxComponentPublicProxy): void;
1820
2299
  /**
1821
2300
  * 重置处理
1822
2301
  * @param proxy
1823
- *
1824
2302
  */
1825
- reset?(proxy: FoxComponentPublicInstance): void;
2303
+ reset?(proxy: FoxComponentPublicProxy): void;
1826
2304
  /**
1827
2305
  * 成功处理
1828
2306
  * @param proxy
1829
- *
1830
2307
  */
1831
- success?(proxy: FoxComponentPublicInstance): void;
2308
+ success?(proxy: FoxComponentPublicProxy): void;
1832
2309
  /**
1833
2310
  * 规则装饰处理
1834
2311
  * @param newRule
1835
2312
  * @param oldRule
1836
2313
  * @param proxy
1837
- *
1838
2314
  */
1839
- decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
2315
+ decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicProxy): void;
1840
2316
  /**
1841
2317
  * 获取value
1842
2318
  * @param proxy
1843
- *
1844
2319
  */
1845
- getValue?(proxy: FoxComponentPublicInstance): any;
2320
+ getValue?(proxy: FoxComponentPublicProxy): any;
1846
2321
  }
1847
2322
 
1848
2323
  /**
@@ -1870,7 +2345,7 @@ export declare class ValidateSchema {
1870
2345
  */
1871
2346
  private descriptor;
1872
2347
  /**
1873
- * 实例
2348
+ * 组件public proxy
1874
2349
  */
1875
2350
  private proxy;
1876
2351
  /**
@@ -1883,7 +2358,7 @@ export declare class ValidateSchema {
1883
2358
  * @param descriptor
1884
2359
  * @param proxy
1885
2360
  */
1886
- constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
2361
+ constructor(parent: ValidateSchema | null, descriptor: ComponentDescriptor, proxy: FoxComponentPublicProxy);
1887
2362
  /**
1888
2363
  * 初始化
1889
2364
  */
@@ -1967,7 +2442,7 @@ export declare class ValidateSchema {
1967
2442
  export declare const ValidateSchemaKey: unique symbol;
1968
2443
 
1969
2444
  /**
1970
- * value 格式话
2445
+ * value 格式化
1971
2446
  */
1972
2447
  export declare interface ValueFormat<T, K> {
1973
2448
  (value: T): K;
@@ -1983,6 +2458,6 @@ export declare function valueLength(val: unknown): number;
1983
2458
  /**
1984
2459
  * value 类型
1985
2460
  */
1986
- export declare type ValueType = 'string' | 'number' | 'date';
2461
+ declare type ValueType = 'string' | 'number' | 'date';
1987
2462
 
1988
2463
  export { }