@fox-js/foxui-pad 4.1.1-3 → 4.1.1-30

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
265
352
  */
266
- parser(str: string, template: string): Date;
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
+ *
361
+ */
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,84 @@ 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
+ * 更新Layout
1239
+ *
1240
+ * @param options
1241
+ * @param rootDomain
1242
+ */
1243
+ updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1244
+ /**
1245
+ * 设置scope getter
1246
+ * @param getter
1247
+ */
1248
+ setScopeGetter(getter: ScopeGetter): void;
1249
+ /**
1250
+ * 获取scope getter
1251
+ * @param getter
1252
+ */
1253
+ getScopeGetter(): ScopeGetter | null;
1254
+ /**
1255
+ * 设置API
1256
+ * @param name
1257
+ * @param func
1258
+ * @param scope
1259
+ */
1260
+ setAPI(name: string, func: any, scope?: string): void;
1261
+ /**
1262
+ * 获取API
1263
+ * @param name
1264
+ * @param scope
1265
+ */
1266
+ getAPI(name: string, scope?: string): any | null;
1267
+ /**
1268
+ * 批量增加api
1269
+ * @param apis
1270
+ * @param scope
1271
+ */
1272
+ batchSetAPI(apis: Record<string, any>, scope?: string): void;
1273
+ /**
1274
+ * 清空scope apis
1275
+ * @param scope
1276
+ */
1277
+ clearScopeAPI(scope: string): void;
1278
+ /**
1279
+ * 获取root domain
1280
+ */
1281
+ getRootDomain(): Domain;
1282
+ }
1283
+
1284
+ /**
1285
+ * UI Options
1286
+ */
1287
+ declare interface FoxUIOptions {
1288
+ install?: boolean;
1289
+ componentPrefix?: string;
1290
+ headerBarHeight?: number;
1291
+ footerBarHeight?: number;
1292
+ safeAreaInset?: SafeAreaInset;
1293
+ pageLayout?: PageLayout;
1294
+ headerPadding?: Rect;
1295
+ contentPadding?: Rect;
1296
+ groupLayout?: GroupLayout;
1297
+ labelWidth?: number | string;
1298
+ [propName: string]: any;
1299
+ }
1300
+
1049
1301
  /**
1050
1302
  * Fox UI vue实例
1051
1303
  */
@@ -1076,17 +1328,21 @@ declare class FoxUIVue implements FoxUI {
1076
1328
  */
1077
1329
  install(app: App, options?: FoxUIOptions): any;
1078
1330
  /**
1079
- * 初始化page Layout
1331
+ * 更新Layout
1080
1332
  *
1081
1333
  * @param options
1082
1334
  * @param rootDomain
1083
1335
  */
1084
- initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1336
+ updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1085
1337
  /**
1086
1338
  * 设置scope getter
1087
1339
  * @param getter
1088
1340
  */
1089
1341
  setScopeGetter(getter: ScopeGetter): void;
1342
+ /**
1343
+ * 获取scope getter
1344
+ */
1345
+ getScopeGetter(): ScopeGetter | null;
1090
1346
  /**
1091
1347
  * 设置API
1092
1348
  * @param name
@@ -1100,7 +1356,7 @@ declare class FoxUIVue implements FoxUI {
1100
1356
  * @param name
1101
1357
  * @param scope
1102
1358
  */
1103
- getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
1359
+ getAPI(name: string, scope?: string): any | null;
1104
1360
  /**
1105
1361
  * 批量增加api
1106
1362
  * @param apis
@@ -1129,6 +1385,12 @@ export declare interface GenericFunction {
1129
1385
  (...args: any[]): any;
1130
1386
  }
1131
1387
 
1388
+ /**
1389
+ * icons
1390
+ * @returns
1391
+ */
1392
+ export declare function getGlobalIcons(): Icons;
1393
+
1132
1394
  /**
1133
1395
  * 获取公共校验检查事件
1134
1396
  */
@@ -1177,11 +1439,67 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
1177
1439
  */
1178
1440
  export declare function getRootDomain(): Domain;
1179
1441
 
1442
+ /**
1443
+ * Layout信息接口
1444
+ */
1445
+ declare interface GroupLayout {
1446
+ type?: string;
1447
+ width?: number | string;
1448
+ column?: number;
1449
+ gutter?: number | string;
1450
+ }
1451
+
1180
1452
  /**
1181
1453
  * 是否支持symbol
1182
1454
  */
1183
1455
  export declare const hasSymbol: boolean;
1184
1456
 
1457
+ /**
1458
+ * hint text function
1459
+ */
1460
+ declare const HintTextFunction: HintTextTooltip;
1461
+ export { HintTextFunction as FoxHintText }
1462
+ export { HintTextFunction as HintText }
1463
+
1464
+ /**
1465
+ * HintTextTooltip
1466
+ */
1467
+ declare interface HintTextTooltip {
1468
+ /**
1469
+ * 显示
1470
+ * @param reference
1471
+ * @param message
1472
+ * @param opts
1473
+ * @param only
1474
+ * @returns
1475
+ */
1476
+ show(reference: HTMLElement, message: string, opts: Record<string, any>, only?: boolean): string;
1477
+ /**
1478
+ * 隐藏
1479
+ * @param id
1480
+ */
1481
+ hide(id?: string): void;
1482
+ /**
1483
+ * 额外属性
1484
+ */
1485
+ [propName: string]: any;
1486
+ }
1487
+
1488
+ declare type Icons = {
1489
+ headerbar: {
1490
+ Left?: any;
1491
+ };
1492
+ radio: {
1493
+ CheckNormal?: any;
1494
+ Checked?: any;
1495
+ };
1496
+ checkbox: {
1497
+ CheckNormal?: any;
1498
+ Checked?: any;
1499
+ Indeterminate?: any;
1500
+ };
1501
+ };
1502
+
1185
1503
  /**
1186
1504
  * 根据包含模版,抽取属性
1187
1505
  * @param src
@@ -1198,6 +1516,44 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
1198
1516
  */
1199
1517
  export declare function indexOf(x: unknown, arr: unknown[]): number;
1200
1518
 
1519
+ /**
1520
+ * 获取是否为虚拟页面范围
1521
+ * @param defaultValue
1522
+ */
1523
+ export declare function injectAbstractPageScope(defaultValue?: boolean): boolean | AbstractPageScope;
1524
+
1525
+ /**
1526
+ * 获取content是否为虚拟页面范围
1527
+ * @param defaultValue
1528
+ * @returns
1529
+ */
1530
+ export declare function injectAbstractPageScopeForContent(defaultValue?: boolean): boolean;
1531
+
1532
+ /**
1533
+ * 获取footerBar是否为虚拟页面范围
1534
+ * @param defaultValue
1535
+ * @returns
1536
+ */
1537
+ export declare function injectAbstractPageScopeForFooterBar(defaultValue?: boolean): boolean;
1538
+
1539
+ /**
1540
+ * 获取headerBar是否为虚拟页面范围
1541
+ * @param defaultValue
1542
+ * @returns
1543
+ */
1544
+ export declare function injectAbstractPageScopeForHeaderBar(defaultValue?: boolean): boolean;
1545
+
1546
+ /**
1547
+ * 获取是否为内部页面范围
1548
+ * @param defaultValue
1549
+ */
1550
+ export declare function injectInnerPageScope(defaultValue?: boolean): boolean;
1551
+
1552
+ /**
1553
+ * inner page scope key(内部页面,默认适配父亲容器尺寸,not watch resize)
1554
+ */
1555
+ export declare const InnerPageScopeKey: unique symbol;
1556
+
1201
1557
  /**
1202
1558
  * 安装函数
1203
1559
  */
@@ -1205,12 +1561,6 @@ declare interface Installer {
1205
1561
  (app: App, options?: any): void;
1206
1562
  }
1207
1563
 
1208
- /**
1209
- * 安装校验规则
1210
- * @param proxy
1211
- */
1212
- export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1213
-
1214
1564
  /**
1215
1565
  * 获取整数长度
1216
1566
  * @param value
@@ -1241,6 +1591,13 @@ export declare const isBrowser: boolean;
1241
1591
  */
1242
1592
  export declare const isDate: (val: unknown) => val is Date;
1243
1593
 
1594
+ /**
1595
+ * 是否display none
1596
+ * @param el
1597
+ * @returns
1598
+ */
1599
+ export declare function isDisplayNone(el: HTMLElement): boolean;
1600
+
1244
1601
  /**
1245
1602
  * 是否空字符串
1246
1603
  * @param v
@@ -1271,20 +1628,14 @@ export declare function isESModule(obj: any): obj is Object;
1271
1628
  export declare const isFunction: (val: unknown) => val is Function;
1272
1629
 
1273
1630
  /**
1274
- * 是否是隐藏element
1275
- * @param el
1631
+ * 是否是隐藏 element(自身或任意父级隐藏)
1632
+ * - display: none
1633
+ * - visibility: hidden
1634
+ * - hidden 属性
1635
+ * - 父级隐藏
1276
1636
  */
1277
1637
  export declare function isHidden(el: any): boolean;
1278
1638
 
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
1639
  /**
1289
1640
  * 是否为Map
1290
1641
  * @param val
@@ -1369,6 +1720,13 @@ export declare function isTouch(): boolean;
1369
1720
  */
1370
1721
  export declare function isWindow(obj: any): boolean;
1371
1722
 
1723
+ /**
1724
+ * 中划线格式转换为大驼峰
1725
+ * @param str
1726
+ * @returns
1727
+ */
1728
+ export declare function kebabToPascal(str: string): string;
1729
+
1372
1730
  /**
1373
1731
  * 获取对应元素的在数组中最后一个匹配的索引
1374
1732
  * @param x
@@ -1392,8 +1750,11 @@ export declare interface Matched {
1392
1750
  name?: string | RegExp | {
1393
1751
  (name: string): boolean;
1394
1752
  };
1395
- maxLevel?: number;
1396
- level?: number;
1753
+ resolve?: Resolve;
1754
+ resolved?: boolean;
1755
+ uniqueId?: string;
1756
+ cachePolicy?: MessageCachePolicy;
1757
+ messagingPolicy?: MessagingPolicy;
1397
1758
  }
1398
1759
 
1399
1760
  /**
@@ -1404,6 +1765,18 @@ export declare interface Matched {
1404
1765
  */
1405
1766
  export declare function merge(first: any[], second: any[]): any[];
1406
1767
 
1768
+ /**
1769
+ * 消息缓存策略
1770
+ * None:不缓存; UnResolved:消息未命中前缓存;Persistant:永久缓存
1771
+ */
1772
+ export declare type MessageCachePolicy = 'None' | 'Unresolved' | 'Persistant';
1773
+
1774
+ /**
1775
+ * 消息传递策略
1776
+ * broadcast
1777
+ */
1778
+ export declare type MessagingPolicy = 'Brodcast' | 'Once';
1779
+
1407
1780
  export { multiply }
1408
1781
 
1409
1782
  export { negate }
@@ -1431,6 +1804,13 @@ export declare const objectToString: () => string;
1431
1804
  */
1432
1805
  export declare function once(func: GenericFunction): GenericFunction;
1433
1806
 
1807
+ /**
1808
+ * 覆盖更新公共Icon
1809
+ * @param icons
1810
+ * @param merge
1811
+ */
1812
+ export declare function overrideGlobalIcons(newIcons: Partial<Icons>): void;
1813
+
1434
1814
  /**
1435
1815
  * 覆盖更新公共的校验处理器
1436
1816
  * @param validateHandler
@@ -1441,12 +1821,17 @@ export declare function overrideGlobalValidateHandler(validateHandler: Partial<V
1441
1821
  * padding
1442
1822
  */
1443
1823
  export declare interface Padding {
1444
- left: number | null;
1445
- top: number | null;
1446
- right: number | null;
1447
- bottom: number | null;
1824
+ left: number | string | null;
1825
+ top: number | string | null;
1826
+ right: number | string | null;
1827
+ bottom: number | string | null;
1448
1828
  }
1449
1829
 
1830
+ /**
1831
+ * pad zero
1832
+ */
1833
+ export declare const padZero: (num: number | string, length?: number) => string;
1834
+
1450
1835
  /**
1451
1836
  * page layout
1452
1837
  */
@@ -1455,11 +1840,14 @@ export declare interface PageLayout {
1455
1840
  height?: number | string;
1456
1841
  headerHeight?: number | string;
1457
1842
  footerHeight?: number | string;
1458
- headerPadding?: Padding;
1459
- footerPadding?: Padding;
1460
- contentPadding?: Padding;
1843
+ headerPadding?: Partial<Padding>;
1844
+ footerPadding?: Partial<Padding>;
1845
+ contentPadding?: Partial<Padding>;
1461
1846
  }
1462
1847
 
1848
+ /**
1849
+ * page state
1850
+ */
1463
1851
  export declare interface PageState {
1464
1852
  width: number;
1465
1853
  height: number;
@@ -1481,6 +1869,22 @@ export declare interface PageState {
1481
1869
  footerMounted?: boolean;
1482
1870
  }
1483
1871
 
1872
+ /**
1873
+ * 大驼峰转换为中划线
1874
+ * @param str
1875
+ * @returns
1876
+ */
1877
+ export declare function pascalToKebab<T extends string>(str: string): string;
1878
+
1879
+ /**
1880
+ * 持久消息
1881
+ */
1882
+ declare interface PersistantMessage {
1883
+ matched: Matched;
1884
+ action: string;
1885
+ args: any[];
1886
+ }
1887
+
1484
1888
  /**
1485
1889
  * 坐标
1486
1890
  */
@@ -1489,6 +1893,13 @@ export declare interface Point {
1489
1893
  y: number;
1490
1894
  }
1491
1895
 
1896
+ /**
1897
+ * prevent default
1898
+ * @param event
1899
+ * @param isStopPropagation
1900
+ */
1901
+ export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
1902
+
1492
1903
  /**
1493
1904
  * 优先策略
1494
1905
  */
@@ -1504,7 +1915,22 @@ export declare enum PriorityPolicy {
1504
1915
  * @param policy
1505
1916
  * @param filter
1506
1917
  */
1507
- export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
1918
+ export declare function property<T>(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref<T>;
1919
+
1920
+ /**
1921
+ * 设置虚拟页面范围
1922
+ * 虚拟页面,默认情况下不生成page、headerBar、footerBar、content,直接reader content内部组件
1923
+ * 也可以通过AbstractPageScope对象设置选择生成headerBar or footerBar or content 部分结构
1924
+ * @param value
1925
+ */
1926
+ export declare function provideAbstractPageScope(value: boolean | AbstractPageScope): void;
1927
+
1928
+ /**
1929
+ * 设置内部页面范围
1930
+ * 内部页面,默认适配父亲容器尺寸,not watch resize
1931
+ * @param value
1932
+ */
1933
+ export declare function provideInnerPageScope(value: boolean): void;
1508
1934
 
1509
1935
  export declare const raf: any;
1510
1936
 
@@ -1512,9 +1938,19 @@ export declare const raf: any;
1512
1938
  * 只读属性
1513
1939
  * @param source
1514
1940
  */
1515
- export declare function readonlyProperty(source: Ref): Ref;
1941
+ export declare function readonlyProperty(source: Ref): Ref<boolean>;
1516
1942
 
1943
+ /**
1944
+ * Rect类型
1945
+ */
1517
1946
  declare interface Rect {
1947
+ left: number;
1948
+ top: number;
1949
+ right: number;
1950
+ bottom: number;
1951
+ }
1952
+
1953
+ declare interface Rect_2 {
1518
1954
  top: number;
1519
1955
  left: number;
1520
1956
  right: number;
@@ -1523,6 +1959,11 @@ declare interface Rect {
1523
1959
  height: number;
1524
1960
  }
1525
1961
 
1962
+ /**
1963
+ * 消息确认函数
1964
+ */
1965
+ declare type Resolve = (...args: any) => void;
1966
+
1526
1967
  /**
1527
1968
  * 结果类型
1528
1969
  */
@@ -1543,6 +1984,14 @@ export declare interface SafeAreaInset {
1543
1984
  bottom: number | string;
1544
1985
  }
1545
1986
 
1987
+ /**
1988
+ * scope getter
1989
+ * 需要保证该函数能够在 InjectionContext 上下文中允许
1990
+ */
1991
+ declare interface ScopeGetter {
1992
+ (): string | null;
1993
+ }
1994
+
1546
1995
  /**
1547
1996
  * 设置公共校验检查事件
1548
1997
  * @param events
@@ -1573,6 +2022,13 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
1573
2022
  */
1574
2023
  export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
1575
2024
 
2025
+ /**
2026
+ * simple组件描述
2027
+ */
2028
+ declare interface SimpleComponentDescriptor {
2029
+ context: FoxSetupContext;
2030
+ }
2031
+
1576
2032
  /**
1577
2033
  * size
1578
2034
  */
@@ -1589,6 +2045,18 @@ declare interface Size {
1589
2045
  */
1590
2046
  export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
1591
2047
 
2048
+ declare const ToastFunction: {
2049
+ text(msg: string, opts?: {}): /*elided*/ any;
2050
+ success(msg: string, opts?: {}): /*elided*/ any;
2051
+ fail(msg: string, opts?: {}): /*elided*/ any;
2052
+ warn(msg: string, opts?: {}): /*elided*/ any;
2053
+ loading(msg: string, opts?: {}): /*elided*/ any;
2054
+ hide(id?: string): void;
2055
+ install(app: any): void;
2056
+ };
2057
+ export { ToastFunction as FoxToast }
2058
+ export { ToastFunction as Toast }
2059
+
1592
2060
  /**
1593
2061
  * 转换为boolean值
1594
2062
  * @param val
@@ -1615,13 +2083,15 @@ export declare function toPadding(rect: any): Padding;
1615
2083
  */
1616
2084
  export declare function toPx(value: number | string, size?: number): number;
1617
2085
 
2086
+ export declare const toPxDesc: (value: string | number, size?: number) => string;
2087
+
1618
2088
  /**
1619
- * to px desc
2089
+ * to px string
1620
2090
  * @param value
1621
2091
  * @parma size
1622
2092
  * @returns
1623
2093
  */
1624
- export declare const toPxDesc: (value: string | number, size?: number) => string;
2094
+ export declare const toPxString: (value: string | number, size?: number) => string;
1625
2095
 
1626
2096
  export declare const toTypeString: (value: unknown) => string;
1627
2097
 
@@ -1687,8 +2157,8 @@ export { unNumberFormat }
1687
2157
  /**
1688
2158
  * 更新 page state
1689
2159
  * @param state
1690
- * @param pageLayout
1691
- * @param overrideProps
2160
+ * @param pageLayout(领域设置)
2161
+ * @param overrideProps(组件属性)
1692
2162
  * @param root
1693
2163
  * @param rootWidth
1694
2164
  * @param rootHeight
@@ -1699,22 +2169,16 @@ export declare function updatePageState(state: PageState, pageLayout: any, overr
1699
2169
 
1700
2170
  /**
1701
2171
  * 使用broadcast
1702
- * @param proxy
2172
+ * @param expose
1703
2173
  * @returns
1704
2174
  */
1705
- export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
2175
+ export declare function useBroadcast(exposed?: FoxComponentPublicExposed): Broadcast | null;
1706
2176
 
1707
2177
  /**
1708
2178
  * 获取当前domain
1709
2179
  * @returns
1710
2180
  */
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;
2181
+ export declare function useDomain(): Domain | null;
1718
2182
 
1719
2183
  /**
1720
2184
  * 获取内部可用size
@@ -1762,7 +2226,7 @@ export declare function useRawTouch(): {
1762
2226
  };
1763
2227
  };
1764
2228
 
1765
- export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
2229
+ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect_2;
1766
2230
 
1767
2231
  /**
1768
2232
  * 获取size
@@ -1771,6 +2235,15 @@ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Wi
1771
2235
  */
1772
2236
  export declare function useSize(elementRef: Element | Ref<Element>): Size;
1773
2237
 
2238
+ /**
2239
+ * 获取child slot
2240
+ * @param slot
2241
+ * @returns
2242
+ */
2243
+ export declare function useSlotChildren(slot?: () => VNode[]): {
2244
+ getChildren: () => VNode[];
2245
+ };
2246
+
1774
2247
  /**
1775
2248
  * 获取响应式touch对象
1776
2249
  * @returns
@@ -1779,70 +2252,54 @@ export declare function useTouch(): {
1779
2252
  move: EventListener;
1780
2253
  start: EventListener;
1781
2254
  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;
2255
+ startX: Ref<number, number>;
2256
+ startY: Ref<number, number>;
2257
+ startTime: Ref<number, number>;
2258
+ duration: Ref<number, number>;
2259
+ moveX: Ref<number, number>;
2260
+ moveY: Ref<number, number>;
2261
+ deltaX: Ref<number, number>;
2262
+ deltaY: Ref<number, number>;
2263
+ offsetX: Ref<number, number>;
2264
+ offsetY: Ref<number, number>;
2265
+ direction: Ref<Direction, Direction>;
1793
2266
  isVertical: () => boolean;
1794
2267
  isHorizontal: () => boolean;
1795
2268
  };
1796
2269
 
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
2270
  /**
1810
2271
  * 校验器handler
1811
2272
  */
1812
- export declare interface ValidateHandler {
2273
+ declare interface ValidateHandler {
1813
2274
  /**
1814
2275
  * 错误处理
1815
2276
  * @param errorMsg
1816
2277
  * @param proxy
1817
2278
  *
1818
2279
  */
1819
- error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
2280
+ error?(errorMsg: string, proxy: FoxComponentPublicProxy): void;
1820
2281
  /**
1821
2282
  * 重置处理
1822
2283
  * @param proxy
1823
- *
1824
2284
  */
1825
- reset?(proxy: FoxComponentPublicInstance): void;
2285
+ reset?(proxy: FoxComponentPublicProxy): void;
1826
2286
  /**
1827
2287
  * 成功处理
1828
2288
  * @param proxy
1829
- *
1830
2289
  */
1831
- success?(proxy: FoxComponentPublicInstance): void;
2290
+ success?(proxy: FoxComponentPublicProxy): void;
1832
2291
  /**
1833
2292
  * 规则装饰处理
1834
2293
  * @param newRule
1835
2294
  * @param oldRule
1836
2295
  * @param proxy
1837
- *
1838
2296
  */
1839
- decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
2297
+ decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicProxy): void;
1840
2298
  /**
1841
2299
  * 获取value
1842
2300
  * @param proxy
1843
- *
1844
2301
  */
1845
- getValue?(proxy: FoxComponentPublicInstance): any;
2302
+ getValue?(proxy: FoxComponentPublicProxy): any;
1846
2303
  }
1847
2304
 
1848
2305
  /**
@@ -1870,7 +2327,7 @@ export declare class ValidateSchema {
1870
2327
  */
1871
2328
  private descriptor;
1872
2329
  /**
1873
- * 实例
2330
+ * 组件public proxy
1874
2331
  */
1875
2332
  private proxy;
1876
2333
  /**
@@ -1883,7 +2340,7 @@ export declare class ValidateSchema {
1883
2340
  * @param descriptor
1884
2341
  * @param proxy
1885
2342
  */
1886
- constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
2343
+ constructor(parent: ValidateSchema | null, descriptor: ComponentDescriptor, proxy: FoxComponentPublicProxy);
1887
2344
  /**
1888
2345
  * 初始化
1889
2346
  */
@@ -1967,7 +2424,7 @@ export declare class ValidateSchema {
1967
2424
  export declare const ValidateSchemaKey: unique symbol;
1968
2425
 
1969
2426
  /**
1970
- * value 格式话
2427
+ * value 格式化
1971
2428
  */
1972
2429
  export declare interface ValueFormat<T, K> {
1973
2430
  (value: T): K;
@@ -1983,6 +2440,6 @@ export declare function valueLength(val: unknown): number;
1983
2440
  /**
1984
2441
  * value 类型
1985
2442
  */
1986
- export declare type ValueType = 'string' | 'number' | 'date';
2443
+ declare type ValueType = 'string' | 'number' | 'date';
1987
2444
 
1988
2445
  export { }