@fox-js/foxui-pc 4.1.1-9 → 4.1.1

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
343
+ */
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
+ *
265
352
  */
266
- parser(str: string, template: string): Date;
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,247 +442,289 @@ 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 FoxTimeItem }
400
- export { _default_14 as TimeItem }
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 FoxTimeSelectItem }
404
- export { _default_15 as TimeSelectItem }
465
+ declare const _default_15: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
466
+ export { _default_15 as FoxTimeItem }
467
+ export { _default_15 as TimeItem }
405
468
 
406
- declare const _default_16: any;
407
- export { _default_16 as FoxMoneyItem }
408
- export { _default_16 as MoneyItem }
469
+ declare const _default_16: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
470
+ export { _default_16 as FoxTimeSelectItem }
471
+ export { _default_16 as TimeSelectItem }
409
472
 
410
- declare const _default_17: any;
411
- export { _default_17 as FoxInputNumberItem }
412
- export { _default_17 as InputNumberItem }
473
+ declare const _default_17: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
474
+ export { _default_17 as FoxMoneyItem }
475
+ export { _default_17 as MoneyItem }
413
476
 
414
- declare const _default_18: any;
415
- export { _default_18 as CascaderItem }
416
- export { _default_18 as FoxCascaderItem }
477
+ declare const _default_18: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
478
+ export { _default_18 as FoxInputNumberItem }
479
+ export { _default_18 as InputNumberItem }
417
480
 
418
- declare const _default_19: any;
419
- export { _default_19 as AutocompleteItem }
420
- export { _default_19 as FoxAutocompleteItem }
481
+ declare const _default_19: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
482
+ export { _default_19 as CascaderItem }
483
+ export { _default_19 as FoxCascaderItem }
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 FoxTableMappingColumn }
428
- export { _default_20 as TableMappingColumn }
489
+ declare const _default_20: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
490
+ export { _default_20 as AutocompleteItem }
491
+ export { _default_20 as FoxAutocompleteItem }
429
492
 
430
- declare const _default_21: any;
431
- export { _default_21 as FoxTableRadioColumn }
432
- export { _default_21 as TableRadioColumn }
493
+ declare const _default_21: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
494
+ export { _default_21 as FoxTableMappingColumn }
495
+ export { _default_21 as TableMappingColumn }
433
496
 
434
- declare const _default_22: any;
435
- export { _default_22 as FoxTableSetting }
436
- export { _default_22 as TableSetting }
497
+ declare const _default_22: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
498
+ export { _default_22 as FoxTableRadioColumn }
499
+ export { _default_22 as TableRadioColumn }
437
500
 
438
- declare const _default_23: any;
439
- export { _default_23 as FoxTableItem }
440
- export { _default_23 as TableItem }
501
+ declare const _default_23: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
502
+ export { _default_23 as FoxTableSetting }
503
+ export { _default_23 as TableSetting }
441
504
 
442
- declare const _default_24: any;
443
- export { _default_24 as FoxRadioItem }
444
- export { _default_24 as RadioItem }
505
+ declare const _default_24: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
506
+ export { _default_24 as FoxTableItem }
507
+ export { _default_24 as TableItem }
445
508
 
446
- declare const _default_25: any;
447
- export { _default_25 as CheckboxItem }
448
- export { _default_25 as FoxCheckboxItem }
509
+ declare const _default_25: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
510
+ export { _default_25 as FoxRadioItem }
511
+ export { _default_25 as RadioItem }
449
512
 
450
- declare const _default_26: any;
451
- export { _default_26 as FoxRateItem }
452
- export { _default_26 as RateItem }
513
+ declare const _default_26: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
514
+ export { _default_26 as CheckboxItem }
515
+ export { _default_26 as FoxCheckboxItem }
453
516
 
454
- declare const _default_27: any;
455
- export { _default_27 as FoxSwitchItem }
456
- export { _default_27 as SwitchItem }
517
+ declare const _default_27: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
518
+ export { _default_27 as FoxRateItem }
519
+ export { _default_27 as RateItem }
457
520
 
458
- declare const _default_28: any;
459
- export { _default_28 as FoxTreeSelectItem }
460
- export { _default_28 as TreeSelectItem }
521
+ declare const _default_28: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
522
+ export { _default_28 as FoxSwitchItem }
523
+ export { _default_28 as SwitchItem }
461
524
 
462
- declare const _default_29: any;
463
- export { _default_29 as FoxGroupSetting }
464
- export { _default_29 as GroupSetting }
525
+ declare const _default_29: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
526
+ export { _default_29 as FoxTreeSelectItem }
527
+ export { _default_29 as TreeSelectItem }
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 FoxTabsBar }
472
- export { _default_30 as TabsBar }
533
+ declare const _default_30: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
534
+ export { _default_30 as FoxGroupSetting }
535
+ export { _default_30 as GroupSetting }
473
536
 
474
- declare const _default_31: any;
475
- export { _default_31 as FoxTabsContainer }
476
- export { _default_31 as TabsContainer }
537
+ declare const _default_31: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
538
+ export { _default_31 as FoxTreeItem }
539
+ export { _default_31 as TreeItem }
477
540
 
478
- declare const _default_32: any;
479
- export { _default_32 as FoxTabsPane }
480
- export { _default_32 as TabsPane }
541
+ declare const _default_32: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
542
+ export { _default_32 as FoxLinkItem }
543
+ export { _default_32 as LinkItem }
481
544
 
482
- declare const _default_33: any;
483
- export { _default_33 as FoxStepsBar }
484
- export { _default_33 as StepsBar }
545
+ declare const _default_33: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
546
+ export { _default_33 as FoxTabsBar }
547
+ export { _default_33 as TabsBar }
485
548
 
486
- declare const _default_34: any;
487
- export { _default_34 as DialogItem }
488
- export { _default_34 as FoxDialogItem }
549
+ declare const _default_34: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
550
+ export { _default_34 as FoxTabsContainer }
551
+ export { _default_34 as TabsContainer }
489
552
 
490
- declare const _default_35: any;
491
- export { _default_35 as FoxOverLay }
492
- export { _default_35 as OverLay }
553
+ declare const _default_35: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
554
+ export { _default_35 as FoxTabsPane }
555
+ export { _default_35 as TabsPane }
493
556
 
494
- declare const _default_36: any;
495
- export { _default_36 as FoxPopup }
496
- export { _default_36 as Popup }
557
+ declare const _default_36: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
558
+ export { _default_36 as FoxTabsFrame }
559
+ export { _default_36 as TabsFrame }
497
560
 
498
- declare const _default_37: any;
499
- export { _default_37 as FoxToast }
500
- export { _default_37 as Toast }
561
+ declare const _default_37: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
562
+ export { _default_37 as FoxStepsBar }
563
+ export { _default_37 as StepsBar }
501
564
 
502
- declare const _default_38: any;
503
- export { _default_38 as FoxSearchBar }
504
- export { _default_38 as SearchBar }
565
+ declare const _default_38: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
566
+ export { _default_38 as DialogItem }
567
+ export { _default_38 as FoxDialogItem }
505
568
 
506
- declare const _default_39: any;
507
- export { _default_39 as FoxInfiniteLoading }
508
- export { _default_39 as InfiniteLoading }
569
+ declare const _default_39: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
570
+ export { _default_39 as FoxOverLay }
571
+ export { _default_39 as OverLay }
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 FoxPullRefresh }
516
- export { _default_40 as PullRefresh }
577
+ declare const _default_40: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
578
+ export { _default_40 as FoxPopup }
579
+ export { _default_40 as Popup }
517
580
 
518
- declare const _default_41: any;
519
- export { _default_41 as FoxMapping }
520
- export { _default_41 as Mapping }
581
+ declare const _default_41: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
582
+ export { _default_41 as FoxSearchBar }
583
+ export { _default_41 as SearchBar }
521
584
 
522
- declare const _default_42: any;
523
- export { _default_42 as FoxPrice }
524
- export { _default_42 as Price }
585
+ declare const _default_42: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
586
+ export { _default_42 as FoxInfiniteLoading }
587
+ export { _default_42 as InfiniteLoading }
525
588
 
526
- declare const _default_43: any;
527
- export { _default_43 as FoxIndicator }
528
- export { _default_43 as Indicator }
589
+ declare const _default_43: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
590
+ export { _default_43 as FoxPullRefresh }
591
+ export { _default_43 as PullRefresh }
529
592
 
530
- declare const _default_44: any;
531
- export { _default_44 as FoxText }
532
- export { _default_44 as Text }
593
+ declare const _default_44: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
594
+ export { _default_44 as FoxMoreButton }
595
+ export { _default_44 as MoreButton }
533
596
 
534
- declare const _default_45: any;
535
- export { _default_45 as FoxMoreButton }
536
- export { _default_45 as MoreButton }
597
+ declare const _default_45: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
598
+ export { _default_45 as FloatingButton }
599
+ export { _default_45 as FoxFloatingButton }
537
600
 
538
- declare const _default_46: any;
539
- export { _default_46 as FloatingButton }
540
- export { _default_46 as FoxFloatingButton }
601
+ declare const _default_46: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
602
+ export { _default_46 as FloatingWindow }
603
+ export { _default_46 as FoxFloatingWindow }
541
604
 
542
- declare const _default_47: any;
543
- export { _default_47 as FoxTour }
544
- export { _default_47 as Tour }
605
+ declare const _default_47: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
606
+ export { _default_47 as FoxPopoverDialog }
607
+ export { _default_47 as PopoverDialog }
545
608
 
546
- declare const _default_48: any;
547
- export { _default_48 as FloatingWindow }
548
- export { _default_48 as FoxFloatingWindow }
609
+ declare const _default_48: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
610
+ export { _default_48 as FoxMapping }
611
+ export { _default_48 as Mapping }
549
612
 
550
- declare const _default_49: any;
551
- export { _default_49 as FoxPopoverDialog }
552
- export { _default_49 as PopoverDialog }
613
+ declare const _default_49: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
614
+ export { _default_49 as FoxPrice }
615
+ export { _default_49 as Price }
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 DomainProvider }
560
- export { _default_50 as FoxDomainProvider }
621
+ declare const _default_50: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
622
+ export { _default_50 as FoxIndicator }
623
+ export { _default_50 as Indicator }
624
+
625
+ declare const _default_51: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
626
+ export { _default_51 as FoxText }
627
+ export { _default_51 as Text }
561
628
 
562
- declare const _default_51: any;
563
- export { _default_51 as FoxRollingProvider }
564
- export { _default_51 as RollingProvider }
629
+ declare const _default_52: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
630
+ export { _default_52 as FoxTour }
631
+ export { _default_52 as Tour }
565
632
 
566
- declare const _default_6: any;
633
+ declare const _default_53: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
634
+ export { _default_53 as DomainProvider }
635
+ export { _default_53 as FoxDomainProvider }
636
+
637
+ declare const _default_54: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
638
+ export { _default_54 as FoxRollingProvider }
639
+ export { _default_54 as RollingProvider }
640
+
641
+ declare const _default_6: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
567
642
  export { _default_6 as FoxGroup }
568
643
  export { _default_6 as Group }
569
644
 
570
- declare const _default_7: any;
645
+ declare const _default_7: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
571
646
  export { _default_7 as FoxItem }
572
647
  export { _default_7 as Item }
573
648
 
574
- declare const _default_8: any;
649
+ declare const _default_8: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
575
650
  export { _default_8 as FoxSlotItem }
576
651
  export { _default_8 as SlotItem }
577
652
 
578
- declare const _default_9: any;
653
+ declare const _default_9: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
579
654
  export { _default_9 as FoxRowItem }
580
655
  export { _default_9 as RowItem }
581
656
 
582
- /**
583
- * anyNode
584
- * @param name
585
- * @param callbacks
586
- * @returns
587
- */
588
- export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
589
-
590
657
  /**
591
658
  * 安装config domain
659
+ * @param descriptor domain组件描述
592
660
  * @param name 名称
593
- * @param props 属性
594
- * @param ignores 忽略的属性
595
661
  * @returns
596
662
  */
597
- export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
663
+ export declare function defineConfigDomain(descriptor: DomainComponentDescriptor, name: string | null): {
664
+ domain: Domain;
665
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
666
+ };
598
667
 
599
668
  /**
600
- * 定义domain data item
669
+ * 定义data item
670
+ * @param domain domain
671
+ * @param name 名称
672
+ * @param descriptor 描述
673
+ * @param parentBroadcast parent broadcast
674
+ * @param parentValidateSchema parent validateSchema
601
675
  * @returns
602
676
  */
603
- export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
677
+ export declare function defineDataItem(domain: Domain, name: string, descriptor: ComponentDescriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
604
678
  broadcast: Broadcast;
605
679
  validateSchema: ValidateSchema;
680
+ componentPublicExposed: FoxComponentPublicExposed;
681
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
606
682
  };
607
683
 
608
684
  /**
609
685
  * 安装domain
686
+ * @param descriptor domain组件描述
610
687
  * @param name 名称
611
- * @param props 属性
612
- * @param ignores 忽略的属性
613
- * @param exposes 暴露的方法
688
+ * @param broadcastCallbacks 消息
614
689
  * @returns
615
690
  */
616
- export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
691
+ export declare function defineDomain(descriptor: DomainComponentDescriptor, name: string | null, messageListeners?: Record<string, BroadcastCallback>): {
692
+ domain: Domain;
693
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
694
+ };
695
+
696
+ /**
697
+ * 定义domain item属性
698
+ */
699
+ export declare function defineDomainItemProperty(props: {
700
+ disabled?: boolean | string;
701
+ readonly?: boolean | string;
702
+ browse?: 'off' | 'on';
703
+ }): {
704
+ itemTemplateRef: Ref<any, any>;
705
+ innerDisabled: Ref<boolean, boolean>;
706
+ disabled: Ref<boolean, boolean>;
707
+ innerReadonly: Ref<boolean, boolean>;
708
+ readonly: Ref<boolean, boolean>;
709
+ browse: Ref<"off" | "on", "off" | "on">;
710
+ };
617
711
 
618
712
  /**
619
713
  * 定义domain item
714
+ * @param descriptor 组件描述
715
+ * @param name 名称
716
+ * @param broadcastCallbacks 消息
620
717
  * @returns
621
718
  */
622
- export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
719
+ export declare function defineItem(descriptor: ComponentDescriptor, name?: string, broadcastCallbacks?: Record<string, BroadcastCallback>): {
720
+ broadcast: Broadcast;
721
+ validateSchema: ValidateSchema;
722
+ emitEvent: (type: string, ...args: any[]) => void;
723
+ onEvent: (type: string, listener: EventListener_2) => void;
724
+ offEvent: (type: string, listener: EventListener_2) => void;
725
+ componentPublicExposed: FoxComponentPublicExposed;
726
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
727
+ };
623
728
 
624
729
  /**
625
730
  * 创建page state
@@ -631,12 +736,16 @@ export declare function definePageState(domain: Domain, overrideProps?: Record<s
631
736
 
632
737
  /**
633
738
  * 定义simple item
739
+ * @param descriptor simple组件描述
740
+ * @param name 名称
634
741
  * @returns
635
742
  */
636
- export declare function defineSimpleItem(): {
743
+ export declare function defineSimpleItem(descriptor: SimpleComponentDescriptor, name?: string): {
637
744
  emitEvent: (type: string, ...args: any[]) => void;
638
745
  onEvent: (type: string, listener: EventListener_2) => void;
639
746
  offEvent: (type: string, listener: EventListener_2) => void;
747
+ componentPublicExposed: FoxComponentPublicExposed;
748
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
640
749
  };
641
750
 
642
751
  /**
@@ -645,30 +754,13 @@ export declare function defineSimpleItem(): {
645
754
  */
646
755
  export declare function deleteGlobalValidator(type: string): void;
647
756
 
648
- /**
649
- * 组件描述
650
- */
651
- export declare interface Descriptor {
652
- componentName: string;
653
- fieldName?: string;
654
- valueName?: string;
655
- valueType?: ValueType;
656
- validate?: boolean;
657
- readonly?: boolean;
658
- disabled?: boolean;
659
- pureDataValidate?: boolean;
660
- validateHandler?: ValidateHandler;
661
- validateCheckEvents?: string[];
662
- validateResetEvents?: string[];
663
- }
664
-
665
757
  declare type Direction = '' | 'vertical' | 'horizontal';
666
758
 
667
759
  /**
668
760
  * 禁用属性
669
761
  * @param source
670
762
  */
671
- export declare function disabledProperty(source: Ref): Ref;
763
+ export declare function disabledProperty(source: Ref): Ref<boolean>;
672
764
 
673
765
  export { divide }
674
766
 
@@ -699,10 +791,18 @@ export declare class Domain {
699
791
  private _validateSchema;
700
792
  get validateSchema(): ValidateSchema | null;
701
793
  set validateSchema(val: ValidateSchema | null);
794
+ /**
795
+ * component public expose
796
+ */
797
+ componentPublicExposed: FoxComponentPublicExposed;
702
798
  /**
703
799
  * 属性集合
704
800
  */
705
801
  private _props;
802
+ /**
803
+ * 本地数据集合
804
+ */
805
+ private _datas;
706
806
  /**
707
807
  * 构造函数
708
808
  * @param name
@@ -712,11 +812,34 @@ export declare class Domain {
712
812
  * 销毁
713
813
  */
714
814
  destroy(): void;
815
+ /**
816
+ * 设置数据
817
+ * @param key
818
+ * @param data
819
+ */
820
+ setData(key: string | number | symbol, data: any): void;
821
+ /**
822
+ * 获取本地数据
823
+ * @param key
824
+ */
825
+ getData(key: string | number | symbol): any;
826
+ /**
827
+ * 是否有本地数据
828
+ * @param key
829
+ * @returns
830
+ */
831
+ hasData(key: string | number | symbol): boolean;
832
+ /**
833
+ * 删除本地数据
834
+ * @param key
835
+ * @returns
836
+ */
837
+ deleteData(key: string | number | symbol): boolean;
715
838
  /**
716
839
  * 合并属性
717
840
  * @param props
718
841
  */
719
- merge(props: Record<string | number, any>, ignores?: any[]): void;
842
+ merge(props: Record<string | number, any>, ignores?: string[]): void;
720
843
  /**
721
844
  * 判断是否有属性
722
845
  */
@@ -760,20 +883,15 @@ export declare class Domain {
760
883
  }
761
884
 
762
885
  /**
763
- * domain item
886
+ * Domain组件描述
764
887
  */
765
- export declare interface DomainItem {
766
- broadcast: Broadcast;
767
- validateSchema: ValidateSchema;
768
- emitEvent: {
769
- (type: string, ...args: any[]): void;
770
- };
771
- onEvent: {
772
- (type: string, listener: EventListener_2): void;
773
- };
774
- offEvent: {
775
- (type: string, listener: EventListener_2): void;
888
+ declare interface DomainComponentDescriptor {
889
+ props?: Record<string, any> | {
890
+ (): Record<string, any>;
776
891
  };
892
+ ignorePropKeys?: string[];
893
+ context: FoxSetupContext;
894
+ templateRefProxy?: FoxTemplateRefProxy;
777
895
  }
778
896
 
779
897
  /**
@@ -781,6 +899,39 @@ export declare interface DomainItem {
781
899
  */
782
900
  export declare const DomainKey: unique symbol;
783
901
 
902
+ /**
903
+ * element padding
904
+ */
905
+ export declare interface ElementPadding {
906
+ top: number;
907
+ right: number;
908
+ bottom: number;
909
+ left: number;
910
+ }
911
+
912
+ /**
913
+ * element size
914
+ */
915
+ export declare interface ElementSize {
916
+ /**
917
+ * 元素可见区域大小(clientSize,包含 padding)
918
+ */
919
+ outer: Size;
920
+ /**
921
+ * 内容区域大小(去掉 padding)
922
+ */
923
+ inner: Size;
924
+ /**
925
+ * padding 信息
926
+ */
927
+ padding: ElementPadding;
928
+ }
929
+
930
+ /**
931
+ * exposed
932
+ */
933
+ declare type EmitFn = (...args: any) => void;
934
+
784
935
  /**
785
936
  * event listener
786
937
  */
@@ -796,6 +947,11 @@ declare interface EventListener_2 {
796
947
  */
797
948
  export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
798
949
 
950
+ /**
951
+ * expose function
952
+ */
953
+ declare type ExposeFn = (exposed?: Record<string, any>) => void;
954
+
799
955
  /**
800
956
  * 继承(是否深度拷贝,dest,src1,src2,src3...)
801
957
  *
@@ -870,6 +1026,21 @@ export { FoxCollapseTransition }
870
1026
 
871
1027
  export { FoxColorPicker }
872
1028
 
1029
+ /**
1030
+ * component public exposed
1031
+ */
1032
+ declare type FoxComponentPublicExposed = Record<string | number | symbol, any>;
1033
+
1034
+ /**
1035
+ * component public exposed
1036
+ */
1037
+ declare type FoxComponentPublicProxy = {
1038
+ exposed: FoxComponentPublicExposed;
1039
+ $el?: HTMLElement;
1040
+ props: Record<string, any>;
1041
+ attrs: Record<string, any>;
1042
+ };
1043
+
873
1044
  export { FoxConfigProvider }
874
1045
 
875
1046
  export { FoxContainer }
@@ -914,10 +1085,14 @@ export { FoxInput }
914
1085
 
915
1086
  export { FoxInputNumber }
916
1087
 
1088
+ export { FoxInputTag }
1089
+
917
1090
  export { FoxLink }
918
1091
 
919
1092
  export { FoxMain }
920
1093
 
1094
+ export { FoxMention }
1095
+
921
1096
  export { FoxMenu }
922
1097
 
923
1098
  export { FoxMenuItem }
@@ -966,6 +1141,15 @@ export { FoxSelect }
966
1141
 
967
1142
  export { FoxSelectV2 }
968
1143
 
1144
+ /**
1145
+ * Fox setup context
1146
+ */
1147
+ declare type FoxSetupContext = {
1148
+ attrs: Record<string, any>;
1149
+ emit: EmitFn;
1150
+ expose: ExposeFn;
1151
+ };
1152
+
969
1153
  export { FoxSkeleton }
970
1154
 
971
1155
  export { FoxSkeletonItem }
@@ -996,6 +1180,11 @@ export { FoxTabs }
996
1180
 
997
1181
  export { FoxTag }
998
1182
 
1183
+ /**
1184
+ * template ref proxy
1185
+ */
1186
+ declare type FoxTemplateRefProxy = any;
1187
+
999
1188
  export { FoxTimeline }
1000
1189
 
1001
1190
  export { FoxTimelineItem }
@@ -1014,6 +1203,90 @@ export { FoxTreeSelect }
1014
1203
 
1015
1204
  export { FoxTreeV2 }
1016
1205
 
1206
+ /**
1207
+ * Fox UI
1208
+ */
1209
+ declare interface FoxUI {
1210
+ /**
1211
+ * 版本号
1212
+ */
1213
+ version: string;
1214
+ /**
1215
+ * 安装
1216
+ * @param app
1217
+ * @param options
1218
+ */
1219
+ install(app: App, options: FoxUIOptions): any;
1220
+ /**
1221
+ * 卸载
1222
+ */
1223
+ unInstall(): void;
1224
+ /**
1225
+ * 更新Layout
1226
+ *
1227
+ * @param options
1228
+ * @param rootDomain
1229
+ */
1230
+ updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1231
+ /**
1232
+ * 设置scope getter
1233
+ * @param getter
1234
+ */
1235
+ setScopeGetter(getter: ScopeGetter): void;
1236
+ /**
1237
+ * 获取scope getter
1238
+ * @param getter
1239
+ */
1240
+ getScopeGetter(): ScopeGetter | null;
1241
+ /**
1242
+ * 设置API
1243
+ * @param name
1244
+ * @param func
1245
+ * @param scope
1246
+ */
1247
+ setAPI(name: string, func: any, scope?: string): void;
1248
+ /**
1249
+ * 获取API
1250
+ * @param name
1251
+ * @param scope
1252
+ */
1253
+ getAPI(name: string, scope?: string): any | null;
1254
+ /**
1255
+ * 批量增加api
1256
+ * @param apis
1257
+ * @param scope
1258
+ */
1259
+ batchSetAPI(apis: Record<string, any>, scope?: string): void;
1260
+ /**
1261
+ * 清空scope apis
1262
+ * @param scope
1263
+ */
1264
+ clearScopeAPI(scope: string): void;
1265
+ /**
1266
+ * 获取root domain
1267
+ */
1268
+ getRootDomain(): Domain;
1269
+ }
1270
+
1271
+ /**
1272
+ * UI Options
1273
+ */
1274
+ declare interface FoxUIOptions {
1275
+ install?: boolean;
1276
+ componentPrefix?: string;
1277
+ autoAdjustPageLayout?: boolean;
1278
+ resizeDebounceDelay?: number;
1279
+ headerBarHeight?: number;
1280
+ footerBarHeight?: number;
1281
+ safeAreaInset?: SafeAreaInset;
1282
+ pageLayout?: PageLayout;
1283
+ headerPadding?: Rect;
1284
+ contentPadding?: Rect;
1285
+ groupLayout?: GroupLayout;
1286
+ labelWidth?: number | string;
1287
+ [propName: string]: any;
1288
+ }
1289
+
1017
1290
  /**
1018
1291
  * Fox UI vue实例
1019
1292
  */
@@ -1026,6 +1299,14 @@ declare class FoxUIVue implements FoxUI {
1026
1299
  * 安装器
1027
1300
  */
1028
1301
  private installers;
1302
+ /**
1303
+ * resize监听器
1304
+ */
1305
+ private resizeListener;
1306
+ /**
1307
+ * resize observer
1308
+ */
1309
+ private resizeObserver;
1029
1310
  /**
1030
1311
  * version
1031
1312
  */
@@ -1044,17 +1325,25 @@ declare class FoxUIVue implements FoxUI {
1044
1325
  */
1045
1326
  install(app: App, options?: FoxUIOptions): any;
1046
1327
  /**
1047
- * 初始化page Layout
1328
+ * 卸载
1329
+ */
1330
+ unInstall(): void;
1331
+ /**
1332
+ * 更新Layout
1048
1333
  *
1049
1334
  * @param options
1050
1335
  * @param rootDomain
1051
1336
  */
1052
- initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1337
+ updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1053
1338
  /**
1054
1339
  * 设置scope getter
1055
1340
  * @param getter
1056
1341
  */
1057
1342
  setScopeGetter(getter: ScopeGetter): void;
1343
+ /**
1344
+ * 获取scope getter
1345
+ */
1346
+ getScopeGetter(): ScopeGetter | null;
1058
1347
  /**
1059
1348
  * 设置API
1060
1349
  * @param name
@@ -1068,7 +1357,7 @@ declare class FoxUIVue implements FoxUI {
1068
1357
  * @param name
1069
1358
  * @param scope
1070
1359
  */
1071
- getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
1360
+ getAPI(name: string, scope?: string): any | null;
1072
1361
  /**
1073
1362
  * 批量增加api
1074
1363
  * @param apis
@@ -1097,6 +1386,12 @@ export declare interface GenericFunction {
1097
1386
  (...args: any[]): any;
1098
1387
  }
1099
1388
 
1389
+ /**
1390
+ * icons
1391
+ * @returns
1392
+ */
1393
+ export declare function getGlobalIcons(): Icons;
1394
+
1100
1395
  /**
1101
1396
  * 获取公共校验检查事件
1102
1397
  */
@@ -1145,11 +1440,73 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
1145
1440
  */
1146
1441
  export declare function getRootDomain(): Domain;
1147
1442
 
1443
+ /**
1444
+ * Layout信息接口
1445
+ */
1446
+ declare interface GroupLayout {
1447
+ type?: string;
1448
+ width?: number | string;
1449
+ column?: number;
1450
+ gutter?: number | string;
1451
+ }
1452
+
1148
1453
  /**
1149
1454
  * 是否支持symbol
1150
1455
  */
1151
1456
  export declare const hasSymbol: boolean;
1152
1457
 
1458
+ /**
1459
+ * hint text function
1460
+ */
1461
+ declare const HintTextFunction: HintTextTooltip;
1462
+ export { HintTextFunction as FoxHintText }
1463
+ export { HintTextFunction as HintText }
1464
+
1465
+ declare interface HintTextTooltip {
1466
+ /**
1467
+ * 显示
1468
+ * @param reference(引用组件 or 位置区域)
1469
+ * @param message
1470
+ * @param opts
1471
+ * @param only
1472
+ * @returns
1473
+ */
1474
+ show(reference: HTMLElement, message: string, opts: Record<string, any>, only?: boolean): string;
1475
+ /**
1476
+ * 显示(在指定区域显示)
1477
+ * @param referenceRect
1478
+ * @param message
1479
+ * @param opts
1480
+ * @param only
1481
+ * @returns
1482
+ */
1483
+ showInRect(referenceRect: InsetRect, message: string, opts: Record<string, any>, only?: boolean): string;
1484
+ /**
1485
+ * 隐藏
1486
+ * @param id
1487
+ */
1488
+ hide(id?: string): void;
1489
+ /**
1490
+ * 额外属性
1491
+ */
1492
+ [propName: string]: any;
1493
+ }
1494
+
1495
+ declare type Icons = {
1496
+ headerbar: {
1497
+ Left?: any;
1498
+ };
1499
+ radio: {
1500
+ CheckNormal?: any;
1501
+ Checked?: any;
1502
+ };
1503
+ checkbox: {
1504
+ CheckNormal?: any;
1505
+ Checked?: any;
1506
+ Indeterminate?: any;
1507
+ };
1508
+ };
1509
+
1153
1510
  /**
1154
1511
  * 根据包含模版,抽取属性
1155
1512
  * @param src
@@ -1166,6 +1523,24 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
1166
1523
  */
1167
1524
  export declare function indexOf(x: unknown, arr: unknown[]): number;
1168
1525
 
1526
+ /**
1527
+ * 获取是否为虚拟页面范围
1528
+ * @param defaultValue
1529
+ */
1530
+ export declare function injectPageScopeState(): PageScopeState;
1531
+
1532
+ /**
1533
+ * inner page scope key(内部页面,默认适配父亲容器尺寸,not watch resize)
1534
+ */
1535
+ export declare const InnerPageScopeKey: unique symbol;
1536
+
1537
+ declare type InsetRect = {
1538
+ top: number | null;
1539
+ right: number | null;
1540
+ bottom: number | null;
1541
+ left: number | null;
1542
+ };
1543
+
1169
1544
  /**
1170
1545
  * 安装函数
1171
1546
  */
@@ -1173,12 +1548,6 @@ declare interface Installer {
1173
1548
  (app: App, options?: any): void;
1174
1549
  }
1175
1550
 
1176
- /**
1177
- * 安装校验规则
1178
- * @param proxy
1179
- */
1180
- export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1181
-
1182
1551
  /**
1183
1552
  * 获取整数长度
1184
1553
  * @param value
@@ -1209,6 +1578,13 @@ export declare const isBrowser: boolean;
1209
1578
  */
1210
1579
  export declare const isDate: (val: unknown) => val is Date;
1211
1580
 
1581
+ /**
1582
+ * 是否display none
1583
+ * @param el
1584
+ * @returns
1585
+ */
1586
+ export declare function isDisplayNone(el: HTMLElement): boolean;
1587
+
1212
1588
  /**
1213
1589
  * 是否空字符串
1214
1590
  * @param v
@@ -1239,20 +1615,14 @@ export declare function isESModule(obj: any): obj is Object;
1239
1615
  export declare const isFunction: (val: unknown) => val is Function;
1240
1616
 
1241
1617
  /**
1242
- * 是否是隐藏element
1243
- * @param el
1618
+ * 是否是隐藏 element(自身或任意父级隐藏)
1619
+ * - display: none
1620
+ * - visibility: hidden
1621
+ * - hidden 属性
1622
+ * - 父级隐藏
1244
1623
  */
1245
1624
  export declare function isHidden(el: any): boolean;
1246
1625
 
1247
- /**
1248
- * 是否为内嵌页面
1249
- * 内嵌页面为内嵌在容器内,如dialog,不需要设置content的高度
1250
- * @param domain
1251
- * @param proxy
1252
- * @returns
1253
- */
1254
- export declare function isInnerPage(domain: Domain, proxy: any): boolean;
1255
-
1256
1626
  /**
1257
1627
  * 是否为Map
1258
1628
  * @param val
@@ -1337,6 +1707,13 @@ export declare function isTouch(): boolean;
1337
1707
  */
1338
1708
  export declare function isWindow(obj: any): boolean;
1339
1709
 
1710
+ /**
1711
+ * 中划线格式转换为大驼峰
1712
+ * @param str
1713
+ * @returns
1714
+ */
1715
+ export declare function kebabToPascal(str: string): string;
1716
+
1340
1717
  /**
1341
1718
  * 获取对应元素的在数组中最后一个匹配的索引
1342
1719
  * @param x
@@ -1360,8 +1737,11 @@ export declare interface Matched {
1360
1737
  name?: string | RegExp | {
1361
1738
  (name: string): boolean;
1362
1739
  };
1363
- maxLevel?: number;
1364
- level?: number;
1740
+ resolve?: Resolve;
1741
+ resolved?: boolean;
1742
+ uniqueId?: string;
1743
+ cachePolicy?: MessageCachePolicy;
1744
+ messagingPolicy?: MessagingPolicy;
1365
1745
  }
1366
1746
 
1367
1747
  /**
@@ -1372,6 +1752,18 @@ export declare interface Matched {
1372
1752
  */
1373
1753
  export declare function merge(first: any[], second: any[]): any[];
1374
1754
 
1755
+ /**
1756
+ * 消息缓存策略
1757
+ * None:不缓存; UnResolved:消息未命中前缓存;Persistant:永久缓存
1758
+ */
1759
+ export declare type MessageCachePolicy = 'None' | 'Unresolved' | 'Persistant';
1760
+
1761
+ /**
1762
+ * 消息传递策略
1763
+ * broadcast
1764
+ */
1765
+ export declare type MessagingPolicy = 'Brodcast' | 'Once';
1766
+
1375
1767
  export { multiply }
1376
1768
 
1377
1769
  export { negate }
@@ -1399,6 +1791,13 @@ export declare const objectToString: () => string;
1399
1791
  */
1400
1792
  export declare function once(func: GenericFunction): GenericFunction;
1401
1793
 
1794
+ /**
1795
+ * 覆盖更新公共Icon
1796
+ * @param icons
1797
+ * @param merge
1798
+ */
1799
+ export declare function overrideGlobalIcons(newIcons: Partial<Icons>): void;
1800
+
1402
1801
  /**
1403
1802
  * 覆盖更新公共的校验处理器
1404
1803
  * @param validateHandler
@@ -1409,12 +1808,17 @@ export declare function overrideGlobalValidateHandler(validateHandler: Partial<V
1409
1808
  * padding
1410
1809
  */
1411
1810
  export declare interface Padding {
1412
- left: number | null;
1413
- top: number | null;
1414
- right: number | null;
1415
- bottom: number | null;
1811
+ left: number | string | null;
1812
+ top: number | string | null;
1813
+ right: number | string | null;
1814
+ bottom: number | string | null;
1416
1815
  }
1417
1816
 
1817
+ /**
1818
+ * pad zero
1819
+ */
1820
+ export declare const padZero: (num: number | string, length?: number) => string;
1821
+
1418
1822
  /**
1419
1823
  * page layout
1420
1824
  */
@@ -1423,11 +1827,22 @@ export declare interface PageLayout {
1423
1827
  height?: number | string;
1424
1828
  headerHeight?: number | string;
1425
1829
  footerHeight?: number | string;
1426
- headerPadding?: Padding;
1427
- footerPadding?: Padding;
1428
- contentPadding?: Padding;
1830
+ headerPadding?: Partial<Padding>;
1831
+ footerPadding?: Partial<Padding>;
1832
+ contentPadding?: Partial<Padding>;
1429
1833
  }
1430
1834
 
1835
+ /**
1836
+ * 页面scope状态
1837
+ */
1838
+ export declare type PageScopeState = PageStructure & {
1839
+ isAbstractPage: boolean;
1840
+ isInnerPage: boolean;
1841
+ };
1842
+
1843
+ /**
1844
+ * page state
1845
+ */
1431
1846
  export declare interface PageState {
1432
1847
  width: number;
1433
1848
  height: number;
@@ -1449,6 +1864,31 @@ export declare interface PageState {
1449
1864
  footerMounted?: boolean;
1450
1865
  }
1451
1866
 
1867
+ /**
1868
+ * 页面结构
1869
+ */
1870
+ export declare type PageStructure = {
1871
+ hasHeaderBar?: boolean;
1872
+ hasFooterBar?: boolean;
1873
+ hasContent?: boolean;
1874
+ };
1875
+
1876
+ /**
1877
+ * 大驼峰转换为中划线
1878
+ * @param str
1879
+ * @returns
1880
+ */
1881
+ export declare function pascalToKebab<T extends string>(str: string): string;
1882
+
1883
+ /**
1884
+ * 持久消息
1885
+ */
1886
+ declare interface PersistantMessage {
1887
+ matched: Matched;
1888
+ action: string;
1889
+ args: any[];
1890
+ }
1891
+
1452
1892
  /**
1453
1893
  * 坐标
1454
1894
  */
@@ -1457,6 +1897,13 @@ export declare interface Point {
1457
1897
  y: number;
1458
1898
  }
1459
1899
 
1900
+ /**
1901
+ * prevent default
1902
+ * @param event
1903
+ * @param isStopPropagation
1904
+ */
1905
+ export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
1906
+
1460
1907
  /**
1461
1908
  * 优先策略
1462
1909
  */
@@ -1472,7 +1919,22 @@ export declare enum PriorityPolicy {
1472
1919
  * @param policy
1473
1920
  * @param filter
1474
1921
  */
1475
- export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
1922
+ export declare function property<T>(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref<T>;
1923
+
1924
+ /**
1925
+ * 设置虚拟页面范围
1926
+ * 虚拟页面,默认情况下不生成page、headerBar、footerBar、content,直接reader content内部组件
1927
+ * 也可以通过AbstractPageScope对象设置选择生成headerBar or footerBar or content 部分结构
1928
+ * @param value
1929
+ */
1930
+ export declare function provideAbstractPageScope(value: boolean | PageStructure): void;
1931
+
1932
+ /**
1933
+ * 设置内部页面范围
1934
+ * 内部页面,默认适配父亲容器尺寸,not watch resize
1935
+ * @param value
1936
+ */
1937
+ export declare function provideInnerPageScope(value: boolean | PageStructure): void;
1476
1938
 
1477
1939
  export declare const raf: any;
1478
1940
 
@@ -1480,9 +1942,19 @@ export declare const raf: any;
1480
1942
  * 只读属性
1481
1943
  * @param source
1482
1944
  */
1483
- export declare function readonlyProperty(source: Ref): Ref;
1945
+ export declare function readonlyProperty(source: Ref): Ref<boolean>;
1484
1946
 
1947
+ /**
1948
+ * Rect类型
1949
+ */
1485
1950
  declare interface Rect {
1951
+ left: number;
1952
+ top: number;
1953
+ right: number;
1954
+ bottom: number;
1955
+ }
1956
+
1957
+ declare interface Rect_2 {
1486
1958
  top: number;
1487
1959
  left: number;
1488
1960
  right: number;
@@ -1491,6 +1963,11 @@ declare interface Rect {
1491
1963
  height: number;
1492
1964
  }
1493
1965
 
1966
+ /**
1967
+ * 消息确认函数
1968
+ */
1969
+ declare type Resolve = (...args: any) => void;
1970
+
1494
1971
  /**
1495
1972
  * 结果类型
1496
1973
  */
@@ -1511,6 +1988,14 @@ export declare interface SafeAreaInset {
1511
1988
  bottom: number | string;
1512
1989
  }
1513
1990
 
1991
+ /**
1992
+ * scope getter
1993
+ * 需要保证该函数能够在 InjectionContext 上下文中允许
1994
+ */
1995
+ declare interface ScopeGetter {
1996
+ (): string | null;
1997
+ }
1998
+
1514
1999
  /**
1515
2000
  * 设置公共校验检查事件
1516
2001
  * @param events
@@ -1541,6 +2026,13 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
1541
2026
  */
1542
2027
  export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
1543
2028
 
2029
+ /**
2030
+ * simple组件描述
2031
+ */
2032
+ declare interface SimpleComponentDescriptor {
2033
+ context: FoxSetupContext;
2034
+ }
2035
+
1544
2036
  /**
1545
2037
  * size
1546
2038
  */
@@ -1557,6 +2049,18 @@ declare interface Size {
1557
2049
  */
1558
2050
  export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
1559
2051
 
2052
+ declare const ToastFunction: {
2053
+ text(msg: string, opts?: {}): /*elided*/ any;
2054
+ success(msg: string, opts?: {}): /*elided*/ any;
2055
+ fail(msg: string, opts?: {}): /*elided*/ any;
2056
+ warn(msg: string, opts?: {}): /*elided*/ any;
2057
+ loading(msg: string, opts?: {}): /*elided*/ any;
2058
+ hide(id?: string): void;
2059
+ install(app: any): void;
2060
+ };
2061
+ export { ToastFunction as FoxToast }
2062
+ export { ToastFunction as Toast }
2063
+
1560
2064
  /**
1561
2065
  * 转换为boolean值
1562
2066
  * @param val
@@ -1583,13 +2087,15 @@ export declare function toPadding(rect: any): Padding;
1583
2087
  */
1584
2088
  export declare function toPx(value: number | string, size?: number): number;
1585
2089
 
2090
+ export declare const toPxDesc: (value: string | number, size?: number) => string;
2091
+
1586
2092
  /**
1587
- * to px desc
2093
+ * to px string
1588
2094
  * @param value
1589
2095
  * @parma size
1590
2096
  * @returns
1591
2097
  */
1592
- export declare const toPxDesc: (value: string | number, size?: number) => string;
2098
+ export declare const toPxString: (value: string | number, size?: number) => string;
1593
2099
 
1594
2100
  export declare const toTypeString: (value: unknown) => string;
1595
2101
 
@@ -1655,8 +2161,8 @@ export { unNumberFormat }
1655
2161
  /**
1656
2162
  * 更新 page state
1657
2163
  * @param state
1658
- * @param pageLayout
1659
- * @param overrideProps
2164
+ * @param pageLayout(领域设置)
2165
+ * @param overrideProps(组件属性)
1660
2166
  * @param root
1661
2167
  * @param rootWidth
1662
2168
  * @param rootHeight
@@ -1667,25 +2173,27 @@ export declare function updatePageState(state: PageState, pageLayout: any, overr
1667
2173
 
1668
2174
  /**
1669
2175
  * 使用broadcast
1670
- * @param proxy
2176
+ * @param expose
1671
2177
  * @returns
1672
2178
  */
1673
- export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
2179
+ export declare function useBroadcast(exposed?: FoxComponentPublicExposed): Broadcast | null;
1674
2180
 
1675
2181
  /**
1676
2182
  * 获取当前domain
1677
2183
  * @returns
1678
2184
  */
1679
- export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
2185
+ export declare function useDomain(): Domain | null;
1680
2186
 
1681
2187
  /**
1682
- * use expose
1683
- * @param apis
2188
+ * 获取元素尺寸信息
2189
+ *
2190
+ * outer = clientWidth/clientHeight(包含 padding)
2191
+ * inner = client - padding
1684
2192
  */
1685
- export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
2193
+ export declare function useElementSize(elementRef: Element | Ref<Element>): ElementSize;
1686
2194
 
1687
2195
  /**
1688
- * 获取内部可用size
2196
+ * 获取内部可用size(inner size)
1689
2197
  * @param elementRef
1690
2198
  * @returns
1691
2199
  */
@@ -1730,15 +2238,24 @@ export declare function useRawTouch(): {
1730
2238
  };
1731
2239
  };
1732
2240
 
1733
- export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
2241
+ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect_2;
1734
2242
 
1735
2243
  /**
1736
- * 获取size
2244
+ * 获取size(outer size)
1737
2245
  * @param elementRef
1738
2246
  * @returns
1739
2247
  */
1740
2248
  export declare function useSize(elementRef: Element | Ref<Element>): Size;
1741
2249
 
2250
+ /**
2251
+ * 获取child slot
2252
+ * @param slot
2253
+ * @returns
2254
+ */
2255
+ export declare function useSlotChildren(slot?: () => VNode[]): {
2256
+ getChildren: () => VNode[];
2257
+ };
2258
+
1742
2259
  /**
1743
2260
  * 获取响应式touch对象
1744
2261
  * @returns
@@ -1747,70 +2264,54 @@ export declare function useTouch(): {
1747
2264
  move: EventListener;
1748
2265
  start: EventListener;
1749
2266
  reset: () => void;
1750
- startX: any;
1751
- startY: any;
1752
- startTime: any;
1753
- duration: any;
1754
- moveX: any;
1755
- moveY: any;
1756
- deltaX: any;
1757
- deltaY: any;
1758
- offsetX: any;
1759
- offsetY: any;
1760
- direction: any;
2267
+ startX: Ref<number, number>;
2268
+ startY: Ref<number, number>;
2269
+ startTime: Ref<number, number>;
2270
+ duration: Ref<number, number>;
2271
+ moveX: Ref<number, number>;
2272
+ moveY: Ref<number, number>;
2273
+ deltaX: Ref<number, number>;
2274
+ deltaY: Ref<number, number>;
2275
+ offsetX: Ref<number, number>;
2276
+ offsetY: Ref<number, number>;
2277
+ direction: Ref<Direction, Direction>;
1761
2278
  isVertical: () => boolean;
1762
2279
  isHorizontal: () => boolean;
1763
2280
  };
1764
2281
 
1765
- /**
1766
- * 校验条件
1767
- */
1768
- export declare interface ValidateCondition {
1769
- deep?: boolean;
1770
- include?: string[];
1771
- exclude?: string[];
1772
- ignoreHidden?: boolean;
1773
- ignoreDisabled?: boolean;
1774
- ignoreReadonly?: boolean;
1775
- }
1776
-
1777
2282
  /**
1778
2283
  * 校验器handler
1779
2284
  */
1780
- export declare interface ValidateHandler {
2285
+ declare interface ValidateHandler {
1781
2286
  /**
1782
2287
  * 错误处理
1783
2288
  * @param errorMsg
1784
2289
  * @param proxy
1785
2290
  *
1786
2291
  */
1787
- error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
2292
+ error?(errorMsg: string, proxy: FoxComponentPublicProxy): void;
1788
2293
  /**
1789
2294
  * 重置处理
1790
2295
  * @param proxy
1791
- *
1792
2296
  */
1793
- reset?(proxy: FoxComponentPublicInstance): void;
2297
+ reset?(proxy: FoxComponentPublicProxy): void;
1794
2298
  /**
1795
2299
  * 成功处理
1796
2300
  * @param proxy
1797
- *
1798
2301
  */
1799
- success?(proxy: FoxComponentPublicInstance): void;
2302
+ success?(proxy: FoxComponentPublicProxy): void;
1800
2303
  /**
1801
2304
  * 规则装饰处理
1802
2305
  * @param newRule
1803
2306
  * @param oldRule
1804
2307
  * @param proxy
1805
- *
1806
2308
  */
1807
- decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
2309
+ decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicProxy): void;
1808
2310
  /**
1809
2311
  * 获取value
1810
2312
  * @param proxy
1811
- *
1812
2313
  */
1813
- getValue?(proxy: FoxComponentPublicInstance): any;
2314
+ getValue?(proxy: FoxComponentPublicProxy): any;
1814
2315
  }
1815
2316
 
1816
2317
  /**
@@ -1838,7 +2339,7 @@ export declare class ValidateSchema {
1838
2339
  */
1839
2340
  private descriptor;
1840
2341
  /**
1841
- * 实例
2342
+ * 组件public proxy
1842
2343
  */
1843
2344
  private proxy;
1844
2345
  /**
@@ -1851,7 +2352,7 @@ export declare class ValidateSchema {
1851
2352
  * @param descriptor
1852
2353
  * @param proxy
1853
2354
  */
1854
- constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
2355
+ constructor(parent: ValidateSchema | null, descriptor: ComponentDescriptor, proxy: FoxComponentPublicProxy);
1855
2356
  /**
1856
2357
  * 初始化
1857
2358
  */
@@ -1935,7 +2436,7 @@ export declare class ValidateSchema {
1935
2436
  export declare const ValidateSchemaKey: unique symbol;
1936
2437
 
1937
2438
  /**
1938
- * value 格式话
2439
+ * value 格式化
1939
2440
  */
1940
2441
  export declare interface ValueFormat<T, K> {
1941
2442
  (value: T): K;
@@ -1951,6 +2452,6 @@ export declare function valueLength(val: unknown): number;
1951
2452
  /**
1952
2453
  * value 类型
1953
2454
  */
1954
- export declare type ValueType = 'string' | 'number' | 'date';
2455
+ declare type ValueType = 'string' | 'number' | 'date';
1955
2456
 
1956
2457
  export { }