@fox-js/foxui-pad 4.1.1-5 → 4.1.1-50

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,130 @@
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
+ * abstract page scope key(虚拟页面,不生成page、headerBar、footerBar、content,直接reader content内部组件)
126
+ */
127
+ export declare const AbstractPageScopeKey: unique symbol;
124
128
 
125
129
  /**
126
130
  * 是否接受value过滤器
@@ -146,20 +150,24 @@ export declare class Broadcast {
146
150
  */
147
151
  private callbacks;
148
152
  /**
149
- * vue proxy
153
+ * vue exposed
150
154
  */
151
- private proxy;
155
+ private exposed;
152
156
  /**
153
157
  * 名称
154
158
  */
155
159
  private name?;
160
+ /**
161
+ * 持久消息注册表
162
+ */
163
+ private persistantMessages;
156
164
  /**
157
165
  * 构造函数
158
166
  * @param parent
159
- * @param proxy
167
+ * @param exposed
160
168
  * @param name
161
169
  */
162
- constructor(parent: Broadcast | null, proxy: FoxComponentPublicInstance, name?: string);
170
+ constructor(parent: Broadcast | null, exposed: FoxComponentPublicExposed, name?: string);
163
171
  /**
164
172
  * 加入孩子节点
165
173
  * @param child
@@ -174,6 +182,46 @@ export declare class Broadcast {
174
182
  * 销毁
175
183
  */
176
184
  destroy(): void;
185
+ /**
186
+ * 设置持久化消息
187
+ * @param matched
188
+ * @param action
189
+ * @param args
190
+ */
191
+ private setPersistantMessage;
192
+ /**
193
+ * 删除持久化消息
194
+ * @param matched
195
+ * @param action
196
+ * @param args
197
+ */
198
+ private deletePersistantMessage;
199
+ /**
200
+ * 获取持久化消息列表
201
+ * @returns
202
+ */
203
+ getPersistantMessages(): PersistantMessage[];
204
+ /**
205
+ * 清空持久化消息列表
206
+ */
207
+ clearPersistantMessage(): void;
208
+ /**
209
+ * 判断是否匹配
210
+ * @param name
211
+ * @param matched
212
+ * @returns
213
+ */
214
+ private isMatched;
215
+ /**
216
+ * 触发函数
217
+ * @param action
218
+ * @param args
219
+ */
220
+ private trigger;
221
+ /**
222
+ * 拉取持久消息
223
+ */
224
+ pull(): void;
177
225
  /**
178
226
  * 发生消息
179
227
  * @param matched
@@ -204,46 +252,76 @@ export declare interface BroadcastCallback {
204
252
  (...args: any[]): Result;
205
253
  }
206
254
 
255
+ /**
256
+ * broadcast key
257
+ */
207
258
  export declare const BroadcastKey: unique symbol;
208
259
 
260
+ /**
261
+ * 浏览模式属性
262
+ * @param source
263
+ * @returns
264
+ */
265
+ export declare function browseProperty(source: Ref): Ref<'on' | 'off'>;
266
+
209
267
  export declare function cancelRaf(id: number): void;
210
268
 
211
269
  /**
212
- * 清理非数字
270
+ * clamp
271
+ * @param num
272
+ * @param min
273
+ * @param max
274
+ * @returns
213
275
  */
214
- export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
276
+ export declare const clamp: (num: number, min: number, max: number) => number;
215
277
 
216
278
  /**
217
- * 克隆对象
218
- * @param target
219
- * @param source
220
- * @param plain
221
- *
222
- * @returns
279
+ * 清理非数字
223
280
  */
224
- export declare function clone(target: any, source: any, plain?: boolean): any;
281
+ export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
225
282
 
226
283
  export { compareTo }
227
284
 
285
+ /**
286
+ * 组件描述
287
+ */
288
+ declare interface ComponentDescriptor {
289
+ componentName: string;
290
+ readonly?: boolean;
291
+ disabled?: boolean;
292
+ props?: Record<string, any>;
293
+ ignorePropKeys?: string[];
294
+ context: FoxSetupContext;
295
+ templateRefProxy?: FoxTemplateRefProxy;
296
+ fieldName?: string;
297
+ valueName?: string;
298
+ valueType?: ValueType;
299
+ validate?: boolean;
300
+ pureDataValidate?: boolean;
301
+ validateHandler?: ValidateHandler;
302
+ validateCheckEvents?: string[];
303
+ validateResetEvents?: string[];
304
+ }
305
+
228
306
  /**
229
307
  * 创建broadcast
230
308
  *
231
- * @param proxy
309
+ * @param expose
232
310
  * @param parent
233
311
  * @param name
234
312
  * @param callbacks
235
313
  * @returns
236
314
  */
237
- export declare function createBroadcast(proxy: FoxComponentPublicInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
315
+ export declare function createBroadcast(exposed: FoxComponentPublicExposed, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
238
316
 
239
317
  /**
240
318
  * 创建校验schema
241
- * @param proxy
319
+ * @param exposed
242
320
  * @param parent
243
321
  * @param descriptor
244
322
  * @returns
245
323
  */
246
- export declare function createValidateSchema(proxy: FoxComponentPublicInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
324
+ export declare function createValidateSchema(exposed: FoxComponentPublicExposed, parent: ValidateSchema | null, descriptor: ComponentDescriptor): ValidateSchema;
247
325
 
248
326
  /**
249
327
  * data items key
@@ -254,16 +332,25 @@ export declare const DateUtils: {
254
332
  /**
255
333
  * 格式化
256
334
  * @param date
257
- * @param template
335
+ * @param formatTemplate
258
336
  * @returns
259
337
  */
260
- format(date: Date, template: string): string;
338
+ format(date: Date, formatTemplate?: string): string;
261
339
  /**
262
340
  * 解析
263
- * @param str
264
- * @param template
341
+ * @param dateString
342
+ * @param formatTemplate
265
343
  */
266
- parser(str: string, template: string): Date;
344
+ parser(dateString: string, formatTemplate?: string): Date;
345
+ /**
346
+ * 返回日期格式字符串
347
+ * @param i 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
348
+ * @param startDate 起点日期
349
+ * @param formatTemplate 格式化模版
350
+ * @return '2014-12-31'
351
+ *
352
+ */
353
+ getDay(i: number, startDate?: Date, formatTemplate?: string): string;
267
354
  /**
268
355
  * 是否为闫年
269
356
  * @return {Boolse} true|false
@@ -273,12 +360,7 @@ export declare const DateUtils: {
273
360
  * 返回星期数
274
361
  * @return {String}
275
362
  */
276
- getWhatDay(year: number, month: number, day: number): string;
277
- /**
278
- * 返回星期数
279
- * @return {Number}
280
- */
281
- getMonthPreDay(year: number, month: number): number;
363
+ getWhatDay(year: number, month: number, day: number): number;
282
364
  /**
283
365
  * 返回月份天数
284
366
  * @return {Number}
@@ -291,68 +373,49 @@ export declare const DateUtils: {
291
373
  getNumTwoBit(n: number): string;
292
374
  /**
293
375
  * 日期对象转成字符串
376
+ * 转换为YYYY-MM-DD格式
294
377
  * @return {string}
295
378
  */
296
379
  date2Str: (date: Date, split?: string) => string;
297
380
  /**
298
- * 返回日期格式字符串
299
- * @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
300
- * @param {Date} 起点日期
301
- * @param {formatTemplate} 格式化模版
302
- * @return {string} '2014-12-31'
381
+ * 对比
382
+ * 0:相等, 1: x > y, -1: x < y
303
383
  *
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
384
+ * @param x
385
+ * @param y
386
+ * @param formatTemplate
322
387
  * @returns
323
388
  */
324
- getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
389
+ compare(x: string | Date, y: string | Date, formatTemplate?: string): number;
325
390
  /**
326
- * get year week
327
- * @param year
328
- * @param month
391
+ * 判断
329
392
  * @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
393
+ * @param startDate 开始日期
394
+ * @param span 允许负数
395
+ * @param dateUint span单位 'year'|'month'|'day'
340
396
  */
341
- formatResultDate: (date: string) => string[];
397
+ between(date: Date, startDate: Date, span: number, dateUint: "year" | "month" | "day"): boolean;
342
398
  /**
343
- * 判断日期是否在范围内
399
+ * 判断日期是否在范围内(day)
344
400
  * @param date
345
401
  * @param startDate
346
402
  * @param span 允许负数
347
403
  */
348
404
  inScope4Day(date: Date, startDate: Date, span: number): boolean;
349
405
  /**
350
- * 判断日期是否在范围内
406
+ * 判断日期是否在范围内(month)
351
407
  * @param date
352
408
  * @param startDate
353
409
  * @param span
354
410
  */
355
411
  inScope4Month(date: Date, startDate: Date, span: number): boolean;
412
+ /**
413
+ * 判断日期是否在范围内(year)
414
+ * @param date
415
+ * @param startDate
416
+ * @param span
417
+ */
418
+ inScope4Year(date: Date, startDate: Date, span: number): boolean;
356
419
  };
357
420
 
358
421
  /**
@@ -379,279 +442,329 @@ export declare function decimalLength(value: string | number): number;
379
442
  declare const _default: FoxUIVue;
380
443
  export default _default;
381
444
 
382
- declare const _default_10: any;
383
- export { _default_10 as FoxHintText }
384
- export { _default_10 as HintText }
445
+ declare const _default_10: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
446
+ export { _default_10 as ButtonsItem }
447
+ export { _default_10 as FoxButtonsItem }
385
448
 
386
- declare const _default_11: any;
449
+ declare const _default_11: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
387
450
  export { _default_11 as FoxInputItem }
388
451
  export { _default_11 as InputItem }
389
452
 
390
- declare const _default_12: any;
391
- export { _default_12 as FoxSelectItem }
392
- export { _default_12 as SelectItem }
453
+ declare const _default_12: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
454
+ export { _default_12 as FoxTextareaItem }
455
+ export { _default_12 as TextareaItem }
393
456
 
394
- declare const _default_13: any;
395
- export { _default_13 as DateItem }
396
- export { _default_13 as FoxDateItem }
457
+ declare const _default_13: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
458
+ export { _default_13 as FoxSelectItem }
459
+ export { _default_13 as SelectItem }
397
460
 
398
- declare const _default_14: any;
399
- export { _default_14 as CalendarItem }
400
- export { _default_14 as FoxCalendarItem }
461
+ declare const _default_14: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
462
+ export { _default_14 as DateItem }
463
+ export { _default_14 as FoxDateItem }
401
464
 
402
- declare const _default_15: any;
403
- export { _default_15 as FoxTimeItem }
404
- export { _default_15 as TimeItem }
465
+ declare const _default_15: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
466
+ export { _default_15 as CalendarItem }
467
+ export { _default_15 as FoxCalendarItem }
405
468
 
406
- declare const _default_16: any;
407
- export { _default_16 as FoxTimeSelectItem }
408
- export { _default_16 as TimeSelectItem }
469
+ declare const _default_16: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
470
+ export { _default_16 as FoxTimeItem }
471
+ export { _default_16 as TimeItem }
409
472
 
410
- declare const _default_17: any;
411
- export { _default_17 as FoxMoneyItem }
412
- export { _default_17 as MoneyItem }
473
+ declare const _default_17: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
474
+ export { _default_17 as FoxTimeSelectItem }
475
+ export { _default_17 as TimeSelectItem }
413
476
 
414
- declare const _default_18: any;
415
- export { _default_18 as FoxInputNumberItem }
416
- export { _default_18 as InputNumberItem }
477
+ declare const _default_18: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
478
+ export { _default_18 as FoxMoneyItem }
479
+ export { _default_18 as MoneyItem }
417
480
 
418
- declare const _default_19: any;
419
- export { _default_19 as CascaderItem }
420
- export { _default_19 as FoxCascaderItem }
481
+ declare const _default_19: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
482
+ export { _default_19 as FoxInputNumberItem }
483
+ export { _default_19 as InputNumberItem }
421
484
 
422
- declare const _default_2: any;
485
+ declare const _default_2: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
423
486
  export { _default_2 as FoxPage }
424
487
  export { _default_2 as Page }
425
488
 
426
- declare const _default_20: any;
427
- export { _default_20 as AutocompleteItem }
428
- export { _default_20 as FoxAutocompleteItem }
489
+ declare const _default_20: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
490
+ export { _default_20 as CascaderItem }
491
+ export { _default_20 as FoxCascaderItem }
429
492
 
430
- declare const _default_21: any;
431
- export { _default_21 as FoxTableMappingColumn }
432
- export { _default_21 as TableMappingColumn }
493
+ declare const _default_21: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
494
+ export { _default_21 as AutocompleteItem }
495
+ export { _default_21 as FoxAutocompleteItem }
433
496
 
434
- declare const _default_22: any;
435
- export { _default_22 as FoxTableRadioColumn }
436
- export { _default_22 as TableRadioColumn }
497
+ declare const _default_22: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
498
+ export { _default_22 as FoxTableMappingColumn }
499
+ export { _default_22 as TableMappingColumn }
437
500
 
438
- declare const _default_23: any;
439
- export { _default_23 as FoxTableSetting }
440
- export { _default_23 as TableSetting }
501
+ declare const _default_23: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
502
+ export { _default_23 as FoxTableRadioColumn }
503
+ export { _default_23 as TableRadioColumn }
441
504
 
442
- declare const _default_24: any;
443
- export { _default_24 as FoxTableItem }
444
- export { _default_24 as TableItem }
505
+ declare const _default_24: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
506
+ export { _default_24 as FoxTableSetting }
507
+ export { _default_24 as TableSetting }
445
508
 
446
- declare const _default_25: any;
447
- export { _default_25 as FoxRadioItem }
448
- export { _default_25 as RadioItem }
509
+ declare const _default_25: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
510
+ export { _default_25 as FoxTableItem }
511
+ export { _default_25 as TableItem }
449
512
 
450
- declare const _default_26: any;
451
- export { _default_26 as CheckboxItem }
452
- export { _default_26 as FoxCheckboxItem }
513
+ declare const _default_26: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
514
+ export { _default_26 as FoxRadioItem }
515
+ export { _default_26 as RadioItem }
453
516
 
454
- declare const _default_27: any;
455
- export { _default_27 as FoxRateItem }
456
- export { _default_27 as RateItem }
517
+ declare const _default_27: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
518
+ export { _default_27 as CheckboxItem }
519
+ export { _default_27 as FoxCheckboxItem }
457
520
 
458
- declare const _default_28: any;
459
- export { _default_28 as FoxSwitchItem }
460
- export { _default_28 as SwitchItem }
521
+ declare const _default_28: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
522
+ export { _default_28 as FoxRateItem }
523
+ export { _default_28 as RateItem }
461
524
 
462
- declare const _default_29: any;
463
- export { _default_29 as FoxTreeSelectItem }
464
- export { _default_29 as TreeSelectItem }
525
+ declare const _default_29: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
526
+ export { _default_29 as FoxSwitchItem }
527
+ export { _default_29 as SwitchItem }
465
528
 
466
- declare const _default_3: any;
529
+ declare const _default_3: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
467
530
  export { _default_3 as FoxHeaderBar }
468
531
  export { _default_3 as HeaderBar }
469
532
 
470
- declare const _default_30: any;
471
- export { _default_30 as FoxGroupSetting }
472
- export { _default_30 as GroupSetting }
533
+ declare const _default_30: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
534
+ export { _default_30 as FoxTreeSelectItem }
535
+ export { _default_30 as TreeSelectItem }
473
536
 
474
- declare const _default_31: any;
475
- export { _default_31 as ActionsheetPane }
476
- export { _default_31 as FoxActionsheetPane }
537
+ declare const _default_31: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
538
+ export { _default_31 as FoxGroupSetting }
539
+ export { _default_31 as GroupSetting }
477
540
 
478
- declare const _default_32: any;
479
- export { _default_32 as ActionsheetItem }
480
- export { _default_32 as FoxActionsheetItem }
541
+ declare const _default_32: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
542
+ export { _default_32 as FoxTreeItem }
543
+ export { _default_32 as TreeItem }
481
544
 
482
- declare const _default_33: any;
483
- export { _default_33 as FoxPickerItem }
484
- export { _default_33 as PickerItem }
545
+ declare const _default_33: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
546
+ export { _default_33 as ActionsheetPane }
547
+ export { _default_33 as FoxActionsheetPane }
485
548
 
486
- declare const _default_34: any;
487
- export { _default_34 as FoxTabsBar }
488
- export { _default_34 as TabsBar }
549
+ declare const _default_34: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
550
+ export { _default_34 as ActionsheetItem }
551
+ export { _default_34 as FoxActionsheetItem }
489
552
 
490
- declare const _default_35: any;
491
- export { _default_35 as FoxTabsContainer }
492
- export { _default_35 as TabsContainer }
553
+ declare const _default_35: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
554
+ export { _default_35 as FoxPickerItem }
555
+ export { _default_35 as PickerItem }
493
556
 
494
- declare const _default_36: any;
495
- export { _default_36 as FoxTabsPane }
496
- export { _default_36 as TabsPane }
557
+ declare const _default_36: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
558
+ export { _default_36 as FoxLinkItem }
559
+ export { _default_36 as LinkItem }
497
560
 
498
- declare const _default_37: any;
499
- export { _default_37 as FoxStepsBar }
500
- export { _default_37 as StepsBar }
561
+ declare const _default_37: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
562
+ export { _default_37 as FoxTabsBar }
563
+ export { _default_37 as TabsBar }
501
564
 
502
- declare const _default_38: any;
503
- export { _default_38 as Foxpicker }
504
- export { _default_38 as picker }
565
+ declare const _default_38: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
566
+ export { _default_38 as FoxTabsContainer }
567
+ export { _default_38 as TabsContainer }
505
568
 
506
- declare const _default_39: any;
507
- export { _default_39 as Foxdatepicker }
508
- export { _default_39 as datepicker }
569
+ declare const _default_39: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
570
+ export { _default_39 as FoxTabsPane }
571
+ export { _default_39 as TabsPane }
509
572
 
510
- declare const _default_4: any;
573
+ declare const _default_4: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
511
574
  export { _default_4 as FooterBar }
512
575
  export { _default_4 as FoxFooterBar }
513
576
 
514
- declare const _default_40: any;
515
- export { _default_40 as Foxcalendarpicker }
516
- export { _default_40 as calendarpicker }
577
+ declare const _default_40: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
578
+ export { _default_40 as FoxTabsFrame }
579
+ export { _default_40 as TabsFrame }
517
580
 
518
- declare const _default_41: any;
519
- export { _default_41 as Foxcascaderpicker }
520
- export { _default_41 as cascaderpicker }
581
+ declare const _default_41: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
582
+ export { _default_41 as FoxStepsBar }
583
+ export { _default_41 as StepsBar }
521
584
 
522
- declare const _default_42: any;
523
- export { _default_42 as DialogItem }
524
- export { _default_42 as FoxDialogItem }
585
+ declare const _default_42: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
586
+ export { _default_42 as FloatingWindow }
587
+ export { _default_42 as FoxFloatingWindow }
525
588
 
526
- declare const _default_43: any;
527
- export { _default_43 as FoxOverLay }
528
- export { _default_43 as OverLay }
589
+ declare const _default_43: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
590
+ export { _default_43 as FoxPopoverDialog }
591
+ export { _default_43 as PopoverDialog }
529
592
 
530
- declare const _default_44: any;
531
- export { _default_44 as FoxPopup }
532
- export { _default_44 as Popup }
593
+ declare const _default_44: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
594
+ export { _default_44 as Foxpicker }
595
+ export { _default_44 as picker }
533
596
 
534
- declare const _default_45: any;
535
- export { _default_45 as FoxToast }
536
- export { _default_45 as Toast }
597
+ declare const _default_45: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
598
+ export { _default_45 as Foxcalendarpicker }
599
+ export { _default_45 as calendarpicker }
537
600
 
538
- declare const _default_46: any;
539
- export { _default_46 as FoxSearchBar }
540
- export { _default_46 as SearchBar }
601
+ declare const _default_46: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
602
+ export { _default_46 as Foxcascaderpicker }
603
+ export { _default_46 as cascaderpicker }
541
604
 
542
- declare const _default_47: any;
543
- export { _default_47 as FoxInfiniteLoading }
544
- export { _default_47 as InfiniteLoading }
605
+ declare const _default_47: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
606
+ export { _default_47 as DialogItem }
607
+ export { _default_47 as FoxDialogItem }
545
608
 
546
- declare const _default_48: any;
547
- export { _default_48 as FoxPullRefresh }
548
- export { _default_48 as PullRefresh }
609
+ declare const _default_48: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
610
+ export { _default_48 as FoxOverLay }
611
+ export { _default_48 as OverLay }
549
612
 
550
- declare const _default_49: any;
551
- export { _default_49 as FoxMapping }
552
- export { _default_49 as Mapping }
613
+ declare const _default_49: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
614
+ export { _default_49 as FoxPopup }
615
+ export { _default_49 as Popup }
553
616
 
554
- declare const _default_5: any;
617
+ declare const _default_5: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
555
618
  export { _default_5 as Content }
556
619
  export { _default_5 as FoxContent }
557
620
 
558
- declare const _default_50: any;
559
- export { _default_50 as FoxPrice }
560
- export { _default_50 as Price }
621
+ declare const _default_50: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
622
+ export { _default_50 as FoxSearchBar }
623
+ export { _default_50 as SearchBar }
561
624
 
562
- declare const _default_51: any;
563
- export { _default_51 as FoxIndicator }
564
- export { _default_51 as Indicator }
625
+ declare const _default_51: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
626
+ export { _default_51 as FoxInfiniteLoading }
627
+ export { _default_51 as InfiniteLoading }
565
628
 
566
- declare const _default_52: any;
567
- export { _default_52 as FoxText }
568
- export { _default_52 as Text }
629
+ declare const _default_52: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
630
+ export { _default_52 as FoxPullRefresh }
631
+ export { _default_52 as PullRefresh }
569
632
 
570
- declare const _default_53: any;
633
+ declare const _default_53: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
571
634
  export { _default_53 as FoxMoreButton }
572
635
  export { _default_53 as MoreButton }
573
636
 
574
- declare const _default_54: any;
637
+ declare const _default_54: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
575
638
  export { _default_54 as FloatingButton }
576
639
  export { _default_54 as FoxFloatingButton }
577
640
 
578
- declare const _default_55: any;
579
- export { _default_55 as FoxTour }
580
- export { _default_55 as Tour }
641
+ declare const _default_55: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
642
+ export { _default_55 as FoxMapping }
643
+ export { _default_55 as Mapping }
581
644
 
582
- declare const _default_56: any;
583
- export { _default_56 as FloatingWindow }
584
- export { _default_56 as FoxFloatingWindow }
645
+ declare const _default_56: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
646
+ export { _default_56 as FoxPrice }
647
+ export { _default_56 as Price }
585
648
 
586
- declare const _default_57: any;
587
- export { _default_57 as FoxPopoverDialog }
588
- export { _default_57 as PopoverDialog }
649
+ declare const _default_57: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
650
+ export { _default_57 as FoxIndicator }
651
+ export { _default_57 as Indicator }
589
652
 
590
- declare const _default_58: any;
591
- export { _default_58 as DomainProvider }
592
- export { _default_58 as FoxDomainProvider }
653
+ declare const _default_58: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
654
+ export { _default_58 as FoxText }
655
+ export { _default_58 as Text }
593
656
 
594
- declare const _default_59: any;
595
- export { _default_59 as FoxRollingProvider }
596
- export { _default_59 as RollingProvider }
657
+ declare const _default_59: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
658
+ export { _default_59 as FoxTour }
659
+ export { _default_59 as Tour }
597
660
 
598
- declare const _default_6: any;
661
+ declare const _default_6: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
599
662
  export { _default_6 as FoxGroup }
600
663
  export { _default_6 as Group }
601
664
 
602
- declare const _default_7: any;
665
+ declare const _default_60: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
666
+ export { _default_60 as FoxNumberKeyboard }
667
+ export { _default_60 as NumberKeyboard }
668
+
669
+ declare const _default_61: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
670
+ export { _default_61 as FoxShortPassword }
671
+ export { _default_61 as ShortPassword }
672
+
673
+ declare const _default_62: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
674
+ export { _default_62 as FoxSignature }
675
+ export { _default_62 as Signature }
676
+
677
+ declare const _default_63: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
678
+ export { _default_63 as DomainProvider }
679
+ export { _default_63 as FoxDomainProvider }
680
+
681
+ declare const _default_64: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
682
+ export { _default_64 as FoxRollingProvider }
683
+ export { _default_64 as RollingProvider }
684
+
685
+ declare const _default_7: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
603
686
  export { _default_7 as FoxItem }
604
687
  export { _default_7 as Item }
605
688
 
606
- declare const _default_8: any;
689
+ declare const _default_8: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
607
690
  export { _default_8 as FoxSlotItem }
608
691
  export { _default_8 as SlotItem }
609
692
 
610
- declare const _default_9: any;
693
+ declare const _default_9: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
611
694
  export { _default_9 as FoxRowItem }
612
695
  export { _default_9 as RowItem }
613
696
 
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
697
  /**
623
698
  * 安装config domain
699
+ * @param descriptor domain组件描述
624
700
  * @param name 名称
625
- * @param props 属性
626
- * @param ignores 忽略的属性
627
701
  * @returns
628
702
  */
629
- export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
703
+ export declare function defineConfigDomain(descriptor: DomainComponentDescriptor, name: string | null): {
704
+ domain: Domain;
705
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
706
+ };
630
707
 
631
708
  /**
632
- * 定义domain data item
709
+ * 定义data item
710
+ * @param domain domain
711
+ * @param name 名称
712
+ * @param descriptor 描述
713
+ * @param parentBroadcast parent broadcast
714
+ * @param parentValidateSchema parent validateSchema
633
715
  * @returns
634
716
  */
635
- export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
717
+ export declare function defineDataItem(domain: Domain, name: string, descriptor: ComponentDescriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
636
718
  broadcast: Broadcast;
637
719
  validateSchema: ValidateSchema;
720
+ componentPublicExposed: FoxComponentPublicExposed;
721
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
638
722
  };
639
723
 
640
724
  /**
641
725
  * 安装domain
726
+ * @param descriptor domain组件描述
642
727
  * @param name 名称
643
- * @param props 属性
644
- * @param ignores 忽略的属性
645
- * @param exposes 暴露的方法
728
+ * @param broadcastCallbacks 消息
646
729
  * @returns
647
730
  */
648
- export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
731
+ export declare function defineDomain(descriptor: DomainComponentDescriptor, name: string | null, messageListeners?: Record<string, BroadcastCallback>): {
732
+ domain: Domain;
733
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
734
+ };
735
+
736
+ /**
737
+ * 定义domain item属性
738
+ */
739
+ export declare function defineDomainItemProperty(props: {
740
+ disabled?: boolean | string;
741
+ readonly?: boolean | string;
742
+ browse?: 'off' | 'on';
743
+ }): {
744
+ itemTemplateRef: Ref<any, any>;
745
+ innerDisabled: Ref<boolean, boolean>;
746
+ disabled: Ref<boolean, boolean>;
747
+ innerReadonly: Ref<boolean, boolean>;
748
+ readonly: Ref<boolean, boolean>;
749
+ browse: Ref<"off" | "on", "off" | "on">;
750
+ };
649
751
 
650
752
  /**
651
753
  * 定义domain item
754
+ * @param descriptor 组件描述
755
+ * @param name 名称
756
+ * @param broadcastCallbacks 消息
652
757
  * @returns
653
758
  */
654
- export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
759
+ export declare function defineItem(descriptor: ComponentDescriptor, name?: string, broadcastCallbacks?: Record<string, BroadcastCallback>): {
760
+ broadcast: Broadcast;
761
+ validateSchema: ValidateSchema;
762
+ emitEvent: (type: string, ...args: any[]) => void;
763
+ onEvent: (type: string, listener: EventListener_2) => void;
764
+ offEvent: (type: string, listener: EventListener_2) => void;
765
+ componentPublicExposed: FoxComponentPublicExposed;
766
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
767
+ };
655
768
 
656
769
  /**
657
770
  * 创建page state
@@ -663,12 +776,16 @@ export declare function definePageState(domain: Domain, overrideProps?: Record<s
663
776
 
664
777
  /**
665
778
  * 定义simple item
779
+ * @param descriptor simple组件描述
780
+ * @param name 名称
666
781
  * @returns
667
782
  */
668
- export declare function defineSimpleItem(): {
783
+ export declare function defineSimpleItem(descriptor: SimpleComponentDescriptor, name?: string): {
669
784
  emitEvent: (type: string, ...args: any[]) => void;
670
785
  onEvent: (type: string, listener: EventListener_2) => void;
671
786
  offEvent: (type: string, listener: EventListener_2) => void;
787
+ componentPublicExposed: FoxComponentPublicExposed;
788
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
672
789
  };
673
790
 
674
791
  /**
@@ -677,30 +794,13 @@ export declare function defineSimpleItem(): {
677
794
  */
678
795
  export declare function deleteGlobalValidator(type: string): void;
679
796
 
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
797
  declare type Direction = '' | 'vertical' | 'horizontal';
698
798
 
699
799
  /**
700
800
  * 禁用属性
701
801
  * @param source
702
802
  */
703
- export declare function disabledProperty(source: Ref): Ref;
803
+ export declare function disabledProperty(source: Ref): Ref<boolean>;
704
804
 
705
805
  export { divide }
706
806
 
@@ -731,10 +831,18 @@ export declare class Domain {
731
831
  private _validateSchema;
732
832
  get validateSchema(): ValidateSchema | null;
733
833
  set validateSchema(val: ValidateSchema | null);
834
+ /**
835
+ * component public expose
836
+ */
837
+ componentPublicExposed: FoxComponentPublicExposed;
734
838
  /**
735
839
  * 属性集合
736
840
  */
737
841
  private _props;
842
+ /**
843
+ * 本地数据集合
844
+ */
845
+ private _datas;
738
846
  /**
739
847
  * 构造函数
740
848
  * @param name
@@ -744,11 +852,34 @@ export declare class Domain {
744
852
  * 销毁
745
853
  */
746
854
  destroy(): void;
855
+ /**
856
+ * 设置数据
857
+ * @param key
858
+ * @param data
859
+ */
860
+ setData(key: string | number | symbol, data: any): void;
861
+ /**
862
+ * 获取本地数据
863
+ * @param key
864
+ */
865
+ getData(key: string | number | symbol): any;
866
+ /**
867
+ * 是否有本地数据
868
+ * @param key
869
+ * @returns
870
+ */
871
+ hasData(key: string | number | symbol): boolean;
872
+ /**
873
+ * 删除本地数据
874
+ * @param key
875
+ * @returns
876
+ */
877
+ deleteData(key: string | number | symbol): boolean;
747
878
  /**
748
879
  * 合并属性
749
880
  * @param props
750
881
  */
751
- merge(props: Record<string | number, any>, ignores?: any[]): void;
882
+ merge(props: Record<string | number, any>, ignores?: string[]): void;
752
883
  /**
753
884
  * 判断是否有属性
754
885
  */
@@ -792,20 +923,15 @@ export declare class Domain {
792
923
  }
793
924
 
794
925
  /**
795
- * domain item
926
+ * Domain组件描述
796
927
  */
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;
928
+ declare interface DomainComponentDescriptor {
929
+ props?: Record<string, any> | {
930
+ (): Record<string, any>;
808
931
  };
932
+ ignorePropKeys?: string[];
933
+ context: FoxSetupContext;
934
+ templateRefProxy?: FoxTemplateRefProxy;
809
935
  }
810
936
 
811
937
  /**
@@ -813,6 +939,39 @@ export declare interface DomainItem {
813
939
  */
814
940
  export declare const DomainKey: unique symbol;
815
941
 
942
+ /**
943
+ * element padding
944
+ */
945
+ export declare interface ElementPadding {
946
+ top: number;
947
+ right: number;
948
+ bottom: number;
949
+ left: number;
950
+ }
951
+
952
+ /**
953
+ * element size
954
+ */
955
+ export declare interface ElementSize {
956
+ /**
957
+ * 元素可见区域大小(clientSize,包含 padding)
958
+ */
959
+ outer: Size;
960
+ /**
961
+ * 内容区域大小(去掉 padding)
962
+ */
963
+ inner: Size;
964
+ /**
965
+ * padding 信息
966
+ */
967
+ padding: ElementPadding;
968
+ }
969
+
970
+ /**
971
+ * exposed
972
+ */
973
+ declare type EmitFn = (...args: any) => void;
974
+
816
975
  /**
817
976
  * event listener
818
977
  */
@@ -828,6 +987,11 @@ declare interface EventListener_2 {
828
987
  */
829
988
  export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
830
989
 
990
+ /**
991
+ * expose function
992
+ */
993
+ declare type ExposeFn = (exposed?: Record<string, any>) => void;
994
+
831
995
  /**
832
996
  * 继承(是否深度拷贝,dest,src1,src2,src3...)
833
997
  *
@@ -902,6 +1066,21 @@ export { FoxCollapseTransition }
902
1066
 
903
1067
  export { FoxColorPicker }
904
1068
 
1069
+ /**
1070
+ * component public exposed
1071
+ */
1072
+ declare type FoxComponentPublicExposed = Record<string | number | symbol, any>;
1073
+
1074
+ /**
1075
+ * component public exposed
1076
+ */
1077
+ declare type FoxComponentPublicProxy = {
1078
+ exposed: FoxComponentPublicExposed;
1079
+ $el?: HTMLElement;
1080
+ props: Record<string, any>;
1081
+ attrs: Record<string, any>;
1082
+ };
1083
+
905
1084
  export { FoxConfigProvider }
906
1085
 
907
1086
  export { FoxContainer }
@@ -946,10 +1125,14 @@ export { FoxInput }
946
1125
 
947
1126
  export { FoxInputNumber }
948
1127
 
1128
+ export { FoxInputTag }
1129
+
949
1130
  export { FoxLink }
950
1131
 
951
1132
  export { FoxMain }
952
1133
 
1134
+ export { FoxMention }
1135
+
953
1136
  export { FoxMenu }
954
1137
 
955
1138
  export { FoxMenuItem }
@@ -998,6 +1181,15 @@ export { FoxSelect }
998
1181
 
999
1182
  export { FoxSelectV2 }
1000
1183
 
1184
+ /**
1185
+ * Fox setup context
1186
+ */
1187
+ declare type FoxSetupContext = {
1188
+ attrs: Record<string, any>;
1189
+ emit: EmitFn;
1190
+ expose: ExposeFn;
1191
+ };
1192
+
1001
1193
  export { FoxSkeleton }
1002
1194
 
1003
1195
  export { FoxSkeletonItem }
@@ -1028,6 +1220,11 @@ export { FoxTabs }
1028
1220
 
1029
1221
  export { FoxTag }
1030
1222
 
1223
+ /**
1224
+ * template ref proxy
1225
+ */
1226
+ declare type FoxTemplateRefProxy = any;
1227
+
1031
1228
  export { FoxTimeline }
1032
1229
 
1033
1230
  export { FoxTimelineItem }
@@ -1046,6 +1243,90 @@ export { FoxTreeSelect }
1046
1243
 
1047
1244
  export { FoxTreeV2 }
1048
1245
 
1246
+ /**
1247
+ * Fox UI
1248
+ */
1249
+ declare interface FoxUI {
1250
+ /**
1251
+ * 版本号
1252
+ */
1253
+ version: string;
1254
+ /**
1255
+ * 安装
1256
+ * @param app
1257
+ * @param options
1258
+ */
1259
+ install(app: App, options: FoxUIOptions): any;
1260
+ /**
1261
+ * 卸载
1262
+ */
1263
+ unInstall(): void;
1264
+ /**
1265
+ * 更新Layout
1266
+ *
1267
+ * @param options
1268
+ * @param rootDomain
1269
+ */
1270
+ updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1271
+ /**
1272
+ * 设置scope getter
1273
+ * @param getter
1274
+ */
1275
+ setScopeGetter(getter: ScopeGetter): void;
1276
+ /**
1277
+ * 获取scope getter
1278
+ * @param getter
1279
+ */
1280
+ getScopeGetter(): ScopeGetter | null;
1281
+ /**
1282
+ * 设置API
1283
+ * @param name
1284
+ * @param func
1285
+ * @param scope
1286
+ */
1287
+ setAPI(name: string, func: any, scope?: string): void;
1288
+ /**
1289
+ * 获取API
1290
+ * @param name
1291
+ * @param scope
1292
+ */
1293
+ getAPI(name: string, scope?: string): any | null;
1294
+ /**
1295
+ * 批量增加api
1296
+ * @param apis
1297
+ * @param scope
1298
+ */
1299
+ batchSetAPI(apis: Record<string, any>, scope?: string): void;
1300
+ /**
1301
+ * 清空scope apis
1302
+ * @param scope
1303
+ */
1304
+ clearScopeAPI(scope: string): void;
1305
+ /**
1306
+ * 获取root domain
1307
+ */
1308
+ getRootDomain(): Domain;
1309
+ }
1310
+
1311
+ /**
1312
+ * UI Options
1313
+ */
1314
+ declare interface FoxUIOptions {
1315
+ install?: boolean;
1316
+ componentPrefix?: string;
1317
+ autoAdjustPageLayout?: boolean;
1318
+ resizeDebounceDelay?: number;
1319
+ headerBarHeight?: number;
1320
+ footerBarHeight?: number;
1321
+ safeAreaInset?: SafeAreaInset;
1322
+ pageLayout?: PageLayout;
1323
+ headerPadding?: Rect;
1324
+ contentPadding?: Rect;
1325
+ groupLayout?: GroupLayout;
1326
+ labelWidth?: number | string;
1327
+ [propName: string]: any;
1328
+ }
1329
+
1049
1330
  /**
1050
1331
  * Fox UI vue实例
1051
1332
  */
@@ -1058,6 +1339,14 @@ declare class FoxUIVue implements FoxUI {
1058
1339
  * 安装器
1059
1340
  */
1060
1341
  private installers;
1342
+ /**
1343
+ * resize监听器
1344
+ */
1345
+ private resizeListener;
1346
+ /**
1347
+ * resize observer
1348
+ */
1349
+ private resizeObserver;
1061
1350
  /**
1062
1351
  * version
1063
1352
  */
@@ -1076,17 +1365,25 @@ declare class FoxUIVue implements FoxUI {
1076
1365
  */
1077
1366
  install(app: App, options?: FoxUIOptions): any;
1078
1367
  /**
1079
- * 初始化page Layout
1368
+ * 卸载
1369
+ */
1370
+ unInstall(): void;
1371
+ /**
1372
+ * 更新Layout
1080
1373
  *
1081
1374
  * @param options
1082
1375
  * @param rootDomain
1083
1376
  */
1084
- initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1377
+ updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1085
1378
  /**
1086
1379
  * 设置scope getter
1087
1380
  * @param getter
1088
1381
  */
1089
1382
  setScopeGetter(getter: ScopeGetter): void;
1383
+ /**
1384
+ * 获取scope getter
1385
+ */
1386
+ getScopeGetter(): ScopeGetter | null;
1090
1387
  /**
1091
1388
  * 设置API
1092
1389
  * @param name
@@ -1100,7 +1397,7 @@ declare class FoxUIVue implements FoxUI {
1100
1397
  * @param name
1101
1398
  * @param scope
1102
1399
  */
1103
- getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
1400
+ getAPI(name: string, scope?: string): any | null;
1104
1401
  /**
1105
1402
  * 批量增加api
1106
1403
  * @param apis
@@ -1129,6 +1426,12 @@ export declare interface GenericFunction {
1129
1426
  (...args: any[]): any;
1130
1427
  }
1131
1428
 
1429
+ /**
1430
+ * icons
1431
+ * @returns
1432
+ */
1433
+ export declare function getGlobalIcons(): Icons;
1434
+
1132
1435
  /**
1133
1436
  * 获取公共校验检查事件
1134
1437
  */
@@ -1177,11 +1480,73 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
1177
1480
  */
1178
1481
  export declare function getRootDomain(): Domain;
1179
1482
 
1483
+ /**
1484
+ * Layout信息接口
1485
+ */
1486
+ declare interface GroupLayout {
1487
+ type?: string;
1488
+ width?: number | string;
1489
+ column?: number;
1490
+ gutter?: number | string;
1491
+ }
1492
+
1180
1493
  /**
1181
1494
  * 是否支持symbol
1182
1495
  */
1183
1496
  export declare const hasSymbol: boolean;
1184
1497
 
1498
+ /**
1499
+ * hint text function
1500
+ */
1501
+ declare const HintTextFunction: HintTextTooltip;
1502
+ export { HintTextFunction as FoxHintText }
1503
+ export { HintTextFunction as HintText }
1504
+
1505
+ declare interface HintTextTooltip {
1506
+ /**
1507
+ * 显示
1508
+ * @param reference(引用组件 or 位置区域)
1509
+ * @param message
1510
+ * @param opts
1511
+ * @param only
1512
+ * @returns
1513
+ */
1514
+ show(reference: HTMLElement, message: string, opts: Record<string, any>, only?: boolean): string;
1515
+ /**
1516
+ * 显示(在指定区域显示)
1517
+ * @param referenceRect
1518
+ * @param message
1519
+ * @param opts
1520
+ * @param only
1521
+ * @returns
1522
+ */
1523
+ showInRect(referenceRect: InsetRect, message: string, opts: Record<string, any>, only?: boolean): string;
1524
+ /**
1525
+ * 隐藏
1526
+ * @param id
1527
+ */
1528
+ hide(id?: string): void;
1529
+ /**
1530
+ * 额外属性
1531
+ */
1532
+ [propName: string]: any;
1533
+ }
1534
+
1535
+ declare type Icons = {
1536
+ headerbar: {
1537
+ Left?: any;
1538
+ };
1539
+ radio: {
1540
+ CheckNormal?: any;
1541
+ Checked?: any;
1542
+ };
1543
+ checkbox: {
1544
+ CheckNormal?: any;
1545
+ Checked?: any;
1546
+ Indeterminate?: any;
1547
+ };
1548
+ };
1549
+
1185
1550
  /**
1186
1551
  * 根据包含模版,抽取属性
1187
1552
  * @param src
@@ -1198,6 +1563,24 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
1198
1563
  */
1199
1564
  export declare function indexOf(x: unknown, arr: unknown[]): number;
1200
1565
 
1566
+ /**
1567
+ * 获取是否为虚拟页面范围
1568
+ * @param defaultValue
1569
+ */
1570
+ export declare function injectPageScopeState(): PageScopeState;
1571
+
1572
+ /**
1573
+ * inner page scope key(内部页面,默认适配父亲容器尺寸,not watch resize)
1574
+ */
1575
+ export declare const InnerPageScopeKey: unique symbol;
1576
+
1577
+ declare type InsetRect = {
1578
+ top: number | null;
1579
+ right: number | null;
1580
+ bottom: number | null;
1581
+ left: number | null;
1582
+ };
1583
+
1201
1584
  /**
1202
1585
  * 安装函数
1203
1586
  */
@@ -1205,12 +1588,6 @@ declare interface Installer {
1205
1588
  (app: App, options?: any): void;
1206
1589
  }
1207
1590
 
1208
- /**
1209
- * 安装校验规则
1210
- * @param proxy
1211
- */
1212
- export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1213
-
1214
1591
  /**
1215
1592
  * 获取整数长度
1216
1593
  * @param value
@@ -1241,6 +1618,13 @@ export declare const isBrowser: boolean;
1241
1618
  */
1242
1619
  export declare const isDate: (val: unknown) => val is Date;
1243
1620
 
1621
+ /**
1622
+ * 是否display none
1623
+ * @param el
1624
+ * @returns
1625
+ */
1626
+ export declare function isDisplayNone(el: HTMLElement): boolean;
1627
+
1244
1628
  /**
1245
1629
  * 是否空字符串
1246
1630
  * @param v
@@ -1271,20 +1655,14 @@ export declare function isESModule(obj: any): obj is Object;
1271
1655
  export declare const isFunction: (val: unknown) => val is Function;
1272
1656
 
1273
1657
  /**
1274
- * 是否是隐藏element
1275
- * @param el
1658
+ * 是否是隐藏 element(自身或任意父级隐藏)
1659
+ * - display: none
1660
+ * - visibility: hidden
1661
+ * - hidden 属性
1662
+ * - 父级隐藏
1276
1663
  */
1277
1664
  export declare function isHidden(el: any): boolean;
1278
1665
 
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
1666
  /**
1289
1667
  * 是否为Map
1290
1668
  * @param val
@@ -1369,6 +1747,13 @@ export declare function isTouch(): boolean;
1369
1747
  */
1370
1748
  export declare function isWindow(obj: any): boolean;
1371
1749
 
1750
+ /**
1751
+ * 中划线格式转换为大驼峰
1752
+ * @param str
1753
+ * @returns
1754
+ */
1755
+ export declare function kebabToPascal(str: string): string;
1756
+
1372
1757
  /**
1373
1758
  * 获取对应元素的在数组中最后一个匹配的索引
1374
1759
  * @param x
@@ -1392,8 +1777,11 @@ export declare interface Matched {
1392
1777
  name?: string | RegExp | {
1393
1778
  (name: string): boolean;
1394
1779
  };
1395
- maxLevel?: number;
1396
- level?: number;
1780
+ resolve?: Resolve;
1781
+ resolved?: boolean;
1782
+ uniqueId?: string;
1783
+ cachePolicy?: MessageCachePolicy;
1784
+ messagingPolicy?: MessagingPolicy;
1397
1785
  }
1398
1786
 
1399
1787
  /**
@@ -1404,6 +1792,18 @@ export declare interface Matched {
1404
1792
  */
1405
1793
  export declare function merge(first: any[], second: any[]): any[];
1406
1794
 
1795
+ /**
1796
+ * 消息缓存策略
1797
+ * None:不缓存; UnResolved:消息未命中前缓存;Persistant:永久缓存
1798
+ */
1799
+ export declare type MessageCachePolicy = 'None' | 'Unresolved' | 'Persistant';
1800
+
1801
+ /**
1802
+ * 消息传递策略
1803
+ * broadcast
1804
+ */
1805
+ export declare type MessagingPolicy = 'Brodcast' | 'Once';
1806
+
1407
1807
  export { multiply }
1408
1808
 
1409
1809
  export { negate }
@@ -1431,6 +1831,13 @@ export declare const objectToString: () => string;
1431
1831
  */
1432
1832
  export declare function once(func: GenericFunction): GenericFunction;
1433
1833
 
1834
+ /**
1835
+ * 覆盖更新公共Icon
1836
+ * @param icons
1837
+ * @param merge
1838
+ */
1839
+ export declare function overrideGlobalIcons(newIcons: Partial<Icons>): void;
1840
+
1434
1841
  /**
1435
1842
  * 覆盖更新公共的校验处理器
1436
1843
  * @param validateHandler
@@ -1441,12 +1848,17 @@ export declare function overrideGlobalValidateHandler(validateHandler: Partial<V
1441
1848
  * padding
1442
1849
  */
1443
1850
  export declare interface Padding {
1444
- left: number | null;
1445
- top: number | null;
1446
- right: number | null;
1447
- bottom: number | null;
1851
+ left: number | string | null;
1852
+ top: number | string | null;
1853
+ right: number | string | null;
1854
+ bottom: number | string | null;
1448
1855
  }
1449
1856
 
1857
+ /**
1858
+ * pad zero
1859
+ */
1860
+ export declare const padZero: (num: number | string, length?: number) => string;
1861
+
1450
1862
  /**
1451
1863
  * page layout
1452
1864
  */
@@ -1455,11 +1867,22 @@ export declare interface PageLayout {
1455
1867
  height?: number | string;
1456
1868
  headerHeight?: number | string;
1457
1869
  footerHeight?: number | string;
1458
- headerPadding?: Padding;
1459
- footerPadding?: Padding;
1460
- contentPadding?: Padding;
1870
+ headerPadding?: Partial<Padding>;
1871
+ footerPadding?: Partial<Padding>;
1872
+ contentPadding?: Partial<Padding>;
1461
1873
  }
1462
1874
 
1875
+ /**
1876
+ * 页面scope状态
1877
+ */
1878
+ export declare type PageScopeState = PageStructure & {
1879
+ isAbstractPage: boolean;
1880
+ isInnerPage: boolean;
1881
+ };
1882
+
1883
+ /**
1884
+ * page state
1885
+ */
1463
1886
  export declare interface PageState {
1464
1887
  width: number;
1465
1888
  height: number;
@@ -1481,6 +1904,31 @@ export declare interface PageState {
1481
1904
  footerMounted?: boolean;
1482
1905
  }
1483
1906
 
1907
+ /**
1908
+ * 页面结构
1909
+ */
1910
+ export declare type PageStructure = {
1911
+ hasHeaderBar?: boolean;
1912
+ hasFooterBar?: boolean;
1913
+ hasContent?: boolean;
1914
+ };
1915
+
1916
+ /**
1917
+ * 大驼峰转换为中划线
1918
+ * @param str
1919
+ * @returns
1920
+ */
1921
+ export declare function pascalToKebab<T extends string>(str: string): string;
1922
+
1923
+ /**
1924
+ * 持久消息
1925
+ */
1926
+ declare interface PersistantMessage {
1927
+ matched: Matched;
1928
+ action: string;
1929
+ args: any[];
1930
+ }
1931
+
1484
1932
  /**
1485
1933
  * 坐标
1486
1934
  */
@@ -1489,6 +1937,13 @@ export declare interface Point {
1489
1937
  y: number;
1490
1938
  }
1491
1939
 
1940
+ /**
1941
+ * prevent default
1942
+ * @param event
1943
+ * @param isStopPropagation
1944
+ */
1945
+ export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
1946
+
1492
1947
  /**
1493
1948
  * 优先策略
1494
1949
  */
@@ -1504,7 +1959,22 @@ export declare enum PriorityPolicy {
1504
1959
  * @param policy
1505
1960
  * @param filter
1506
1961
  */
1507
- export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
1962
+ export declare function property<T>(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref<T>;
1963
+
1964
+ /**
1965
+ * 设置虚拟页面范围
1966
+ * 虚拟页面,默认情况下不生成page、headerBar、footerBar、content,直接reader content内部组件
1967
+ * 也可以通过AbstractPageScope对象设置选择生成headerBar or footerBar or content 部分结构
1968
+ * @param value
1969
+ */
1970
+ export declare function provideAbstractPageScope(value: boolean | PageStructure): void;
1971
+
1972
+ /**
1973
+ * 设置内部页面范围
1974
+ * 内部页面,默认适配父亲容器尺寸,not watch resize
1975
+ * @param value
1976
+ */
1977
+ export declare function provideInnerPageScope(value: boolean | PageStructure): void;
1508
1978
 
1509
1979
  export declare const raf: any;
1510
1980
 
@@ -1512,9 +1982,19 @@ export declare const raf: any;
1512
1982
  * 只读属性
1513
1983
  * @param source
1514
1984
  */
1515
- export declare function readonlyProperty(source: Ref): Ref;
1985
+ export declare function readonlyProperty(source: Ref): Ref<boolean>;
1516
1986
 
1987
+ /**
1988
+ * Rect类型
1989
+ */
1517
1990
  declare interface Rect {
1991
+ left: number;
1992
+ top: number;
1993
+ right: number;
1994
+ bottom: number;
1995
+ }
1996
+
1997
+ declare interface Rect_2 {
1518
1998
  top: number;
1519
1999
  left: number;
1520
2000
  right: number;
@@ -1523,6 +2003,11 @@ declare interface Rect {
1523
2003
  height: number;
1524
2004
  }
1525
2005
 
2006
+ /**
2007
+ * 消息确认函数
2008
+ */
2009
+ declare type Resolve = (...args: any) => void;
2010
+
1526
2011
  /**
1527
2012
  * 结果类型
1528
2013
  */
@@ -1543,6 +2028,14 @@ export declare interface SafeAreaInset {
1543
2028
  bottom: number | string;
1544
2029
  }
1545
2030
 
2031
+ /**
2032
+ * scope getter
2033
+ * 需要保证该函数能够在 InjectionContext 上下文中允许
2034
+ */
2035
+ declare interface ScopeGetter {
2036
+ (): string | null;
2037
+ }
2038
+
1546
2039
  /**
1547
2040
  * 设置公共校验检查事件
1548
2041
  * @param events
@@ -1573,6 +2066,13 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
1573
2066
  */
1574
2067
  export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
1575
2068
 
2069
+ /**
2070
+ * simple组件描述
2071
+ */
2072
+ declare interface SimpleComponentDescriptor {
2073
+ context: FoxSetupContext;
2074
+ }
2075
+
1576
2076
  /**
1577
2077
  * size
1578
2078
  */
@@ -1589,6 +2089,18 @@ declare interface Size {
1589
2089
  */
1590
2090
  export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
1591
2091
 
2092
+ declare const ToastFunction: {
2093
+ text(msg: string, opts?: {}): /*elided*/ any;
2094
+ success(msg: string, opts?: {}): /*elided*/ any;
2095
+ fail(msg: string, opts?: {}): /*elided*/ any;
2096
+ warn(msg: string, opts?: {}): /*elided*/ any;
2097
+ loading(msg: string, opts?: {}): /*elided*/ any;
2098
+ hide(id?: string): void;
2099
+ install(app: any): void;
2100
+ };
2101
+ export { ToastFunction as FoxToast }
2102
+ export { ToastFunction as Toast }
2103
+
1592
2104
  /**
1593
2105
  * 转换为boolean值
1594
2106
  * @param val
@@ -1615,13 +2127,15 @@ export declare function toPadding(rect: any): Padding;
1615
2127
  */
1616
2128
  export declare function toPx(value: number | string, size?: number): number;
1617
2129
 
2130
+ export declare const toPxDesc: (value: string | number, size?: number) => string;
2131
+
1618
2132
  /**
1619
- * to px desc
2133
+ * to px string
1620
2134
  * @param value
1621
2135
  * @parma size
1622
2136
  * @returns
1623
2137
  */
1624
- export declare const toPxDesc: (value: string | number, size?: number) => string;
2138
+ export declare const toPxString: (value: string | number, size?: number) => string;
1625
2139
 
1626
2140
  export declare const toTypeString: (value: unknown) => string;
1627
2141
 
@@ -1687,8 +2201,8 @@ export { unNumberFormat }
1687
2201
  /**
1688
2202
  * 更新 page state
1689
2203
  * @param state
1690
- * @param pageLayout
1691
- * @param overrideProps
2204
+ * @param pageLayout(领域设置)
2205
+ * @param overrideProps(组件属性)
1692
2206
  * @param root
1693
2207
  * @param rootWidth
1694
2208
  * @param rootHeight
@@ -1699,25 +2213,27 @@ export declare function updatePageState(state: PageState, pageLayout: any, overr
1699
2213
 
1700
2214
  /**
1701
2215
  * 使用broadcast
1702
- * @param proxy
2216
+ * @param expose
1703
2217
  * @returns
1704
2218
  */
1705
- export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
2219
+ export declare function useBroadcast(exposed?: FoxComponentPublicExposed): Broadcast | null;
1706
2220
 
1707
2221
  /**
1708
2222
  * 获取当前domain
1709
2223
  * @returns
1710
2224
  */
1711
- export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
2225
+ export declare function useDomain(): Domain | null;
1712
2226
 
1713
2227
  /**
1714
- * use expose
1715
- * @param apis
2228
+ * 获取元素尺寸信息
2229
+ *
2230
+ * outer = clientWidth/clientHeight(包含 padding)
2231
+ * inner = client - padding
1716
2232
  */
1717
- export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
2233
+ export declare function useElementSize(elementRef: Element | Ref<Element>): ElementSize;
1718
2234
 
1719
2235
  /**
1720
- * 获取内部可用size
2236
+ * 获取内部可用size(inner size)
1721
2237
  * @param elementRef
1722
2238
  * @returns
1723
2239
  */
@@ -1762,15 +2278,24 @@ export declare function useRawTouch(): {
1762
2278
  };
1763
2279
  };
1764
2280
 
1765
- export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
2281
+ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect_2;
1766
2282
 
1767
2283
  /**
1768
- * 获取size
2284
+ * 获取size(outer size)
1769
2285
  * @param elementRef
1770
2286
  * @returns
1771
2287
  */
1772
2288
  export declare function useSize(elementRef: Element | Ref<Element>): Size;
1773
2289
 
2290
+ /**
2291
+ * 获取child slot
2292
+ * @param slot
2293
+ * @returns
2294
+ */
2295
+ export declare function useSlotChildren(slot?: () => VNode[]): {
2296
+ getChildren: () => VNode[];
2297
+ };
2298
+
1774
2299
  /**
1775
2300
  * 获取响应式touch对象
1776
2301
  * @returns
@@ -1779,70 +2304,54 @@ export declare function useTouch(): {
1779
2304
  move: EventListener;
1780
2305
  start: EventListener;
1781
2306
  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;
2307
+ startX: Ref<number, number>;
2308
+ startY: Ref<number, number>;
2309
+ startTime: Ref<number, number>;
2310
+ duration: Ref<number, number>;
2311
+ moveX: Ref<number, number>;
2312
+ moveY: Ref<number, number>;
2313
+ deltaX: Ref<number, number>;
2314
+ deltaY: Ref<number, number>;
2315
+ offsetX: Ref<number, number>;
2316
+ offsetY: Ref<number, number>;
2317
+ direction: Ref<Direction, Direction>;
1793
2318
  isVertical: () => boolean;
1794
2319
  isHorizontal: () => boolean;
1795
2320
  };
1796
2321
 
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
2322
  /**
1810
2323
  * 校验器handler
1811
2324
  */
1812
- export declare interface ValidateHandler {
2325
+ declare interface ValidateHandler {
1813
2326
  /**
1814
2327
  * 错误处理
1815
2328
  * @param errorMsg
1816
2329
  * @param proxy
1817
2330
  *
1818
2331
  */
1819
- error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
2332
+ error?(errorMsg: string, proxy: FoxComponentPublicProxy): void;
1820
2333
  /**
1821
2334
  * 重置处理
1822
2335
  * @param proxy
1823
- *
1824
2336
  */
1825
- reset?(proxy: FoxComponentPublicInstance): void;
2337
+ reset?(proxy: FoxComponentPublicProxy): void;
1826
2338
  /**
1827
2339
  * 成功处理
1828
2340
  * @param proxy
1829
- *
1830
2341
  */
1831
- success?(proxy: FoxComponentPublicInstance): void;
2342
+ success?(proxy: FoxComponentPublicProxy): void;
1832
2343
  /**
1833
2344
  * 规则装饰处理
1834
2345
  * @param newRule
1835
2346
  * @param oldRule
1836
2347
  * @param proxy
1837
- *
1838
2348
  */
1839
- decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
2349
+ decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicProxy): void;
1840
2350
  /**
1841
2351
  * 获取value
1842
2352
  * @param proxy
1843
- *
1844
2353
  */
1845
- getValue?(proxy: FoxComponentPublicInstance): any;
2354
+ getValue?(proxy: FoxComponentPublicProxy): any;
1846
2355
  }
1847
2356
 
1848
2357
  /**
@@ -1870,7 +2379,7 @@ export declare class ValidateSchema {
1870
2379
  */
1871
2380
  private descriptor;
1872
2381
  /**
1873
- * 实例
2382
+ * 组件public proxy
1874
2383
  */
1875
2384
  private proxy;
1876
2385
  /**
@@ -1883,7 +2392,7 @@ export declare class ValidateSchema {
1883
2392
  * @param descriptor
1884
2393
  * @param proxy
1885
2394
  */
1886
- constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
2395
+ constructor(parent: ValidateSchema | null, descriptor: ComponentDescriptor, proxy: FoxComponentPublicProxy);
1887
2396
  /**
1888
2397
  * 初始化
1889
2398
  */
@@ -1967,7 +2476,7 @@ export declare class ValidateSchema {
1967
2476
  export declare const ValidateSchemaKey: unique symbol;
1968
2477
 
1969
2478
  /**
1970
- * value 格式话
2479
+ * value 格式化
1971
2480
  */
1972
2481
  export declare interface ValueFormat<T, K> {
1973
2482
  (value: T): K;
@@ -1983,6 +2492,6 @@ export declare function valueLength(val: unknown): number;
1983
2492
  /**
1984
2493
  * value 类型
1985
2494
  */
1986
- export declare type ValueType = 'string' | 'number' | 'date';
2495
+ declare type ValueType = 'string' | 'number' | 'date';
1987
2496
 
1988
2497
  export { }