@fox-js/foxui-pc 4.1.1-7 → 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,66 +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
- * @return {string} '2014-12-31'
302
- */
303
- getDay(i: number, startDate?: Date): string;
304
- /**
305
- * 时间比较
306
- * @return
307
- */
308
- compareDate(date1: string | Date, date2: string | Date): boolean;
309
- /**
310
- * 时间是否相等
311
- * @return
312
- */
313
- isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
314
- /**
315
- * get month week
316
- * @param year
317
- * @param month
318
- * @param date
319
- * @param firstDayOfWeek
381
+ * 对比
382
+ * 0:相等, 1: x > y, -1: x < y
383
+ *
384
+ * @param x
385
+ * @param y
386
+ * @param formatTemplate
320
387
  * @returns
321
388
  */
322
- getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
389
+ compare(x: string | Date, y: string | Date, formatTemplate?: string): number;
323
390
  /**
324
- * get year week
325
- * @param year
326
- * @param month
391
+ * 判断
327
392
  * @param date
328
- * @param firstDayOfWeek
329
- * @returns
330
- */
331
- getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
332
- /**
333
- * get week date
334
- */
335
- getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
336
- /**
337
- * format result date
393
+ * @param startDate 开始日期
394
+ * @param span 允许负数
395
+ * @param dateUint span单位 'year'|'month'|'day'
338
396
  */
339
- formatResultDate: (date: string) => string[];
397
+ between(date: Date, startDate: Date, span: number, dateUint: "year" | "month" | "day"): boolean;
340
398
  /**
341
- * 判断日期是否在范围内
399
+ * 判断日期是否在范围内(day)
342
400
  * @param date
343
401
  * @param startDate
344
402
  * @param span 允许负数
345
403
  */
346
404
  inScope4Day(date: Date, startDate: Date, span: number): boolean;
347
405
  /**
348
- * 判断日期是否在范围内
406
+ * 判断日期是否在范围内(month)
349
407
  * @param date
350
408
  * @param startDate
351
409
  * @param span
352
410
  */
353
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;
354
419
  };
355
420
 
356
421
  /**
@@ -377,247 +442,289 @@ export declare function decimalLength(value: string | number): number;
377
442
  declare const _default: FoxUIVue;
378
443
  export default _default;
379
444
 
380
- declare const _default_10: any;
381
- export { _default_10 as FoxHintText }
382
- 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 }
383
448
 
384
- declare const _default_11: any;
449
+ declare const _default_11: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
385
450
  export { _default_11 as FoxInputItem }
386
451
  export { _default_11 as InputItem }
387
452
 
388
- declare const _default_12: any;
389
- export { _default_12 as FoxSelectItem }
390
- 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 }
391
456
 
392
- declare const _default_13: any;
393
- export { _default_13 as DateItem }
394
- 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 }
395
460
 
396
- declare const _default_14: any;
397
- export { _default_14 as FoxTimeItem }
398
- 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 }
399
464
 
400
- declare const _default_15: any;
401
- export { _default_15 as FoxTimeSelectItem }
402
- 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 }
403
468
 
404
- declare const _default_16: any;
405
- export { _default_16 as FoxMoneyItem }
406
- 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 }
407
472
 
408
- declare const _default_17: any;
409
- export { _default_17 as FoxInputNumberItem }
410
- 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 }
411
476
 
412
- declare const _default_18: any;
413
- export { _default_18 as CascaderItem }
414
- 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 }
415
480
 
416
- declare const _default_19: any;
417
- export { _default_19 as AutocompleteItem }
418
- 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 }
419
484
 
420
- declare const _default_2: any;
485
+ declare const _default_2: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
421
486
  export { _default_2 as FoxPage }
422
487
  export { _default_2 as Page }
423
488
 
424
- declare const _default_20: any;
425
- export { _default_20 as FoxTableMappingColumn }
426
- 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 }
427
492
 
428
- declare const _default_21: any;
429
- export { _default_21 as FoxTableRadioColumn }
430
- 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 }
431
496
 
432
- declare const _default_22: any;
433
- export { _default_22 as FoxTableSetting }
434
- 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 }
435
500
 
436
- declare const _default_23: any;
437
- export { _default_23 as FoxTableItem }
438
- 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 }
439
504
 
440
- declare const _default_24: any;
441
- export { _default_24 as FoxRadioItem }
442
- 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 }
443
508
 
444
- declare const _default_25: any;
445
- export { _default_25 as CheckboxItem }
446
- 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 }
447
512
 
448
- declare const _default_26: any;
449
- export { _default_26 as FoxRateItem }
450
- 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 }
451
516
 
452
- declare const _default_27: any;
453
- export { _default_27 as FoxSwitchItem }
454
- 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 }
455
520
 
456
- declare const _default_28: any;
457
- export { _default_28 as FoxTreeSelectItem }
458
- 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 }
459
524
 
460
- declare const _default_29: any;
461
- export { _default_29 as FoxGroupSetting }
462
- 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 }
463
528
 
464
- declare const _default_3: any;
529
+ declare const _default_3: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
465
530
  export { _default_3 as FoxHeaderBar }
466
531
  export { _default_3 as HeaderBar }
467
532
 
468
- declare const _default_30: any;
469
- export { _default_30 as FoxTabsBar }
470
- 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 }
471
536
 
472
- declare const _default_31: any;
473
- export { _default_31 as FoxTabsContainer }
474
- 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 }
475
540
 
476
- declare const _default_32: any;
477
- export { _default_32 as FoxTabsPane }
478
- 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 }
479
544
 
480
- declare const _default_33: any;
481
- export { _default_33 as FoxStepsBar }
482
- 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 }
483
548
 
484
- declare const _default_34: any;
485
- export { _default_34 as DialogItem }
486
- 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 }
487
552
 
488
- declare const _default_35: any;
489
- export { _default_35 as FoxOverLay }
490
- 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 }
491
556
 
492
- declare const _default_36: any;
493
- export { _default_36 as FoxPopup }
494
- 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 }
495
560
 
496
- declare const _default_37: any;
497
- export { _default_37 as FoxToast }
498
- 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 }
499
564
 
500
- declare const _default_38: any;
501
- export { _default_38 as FoxSearchBar }
502
- 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 }
503
568
 
504
- declare const _default_39: any;
505
- export { _default_39 as FoxInfiniteLoading }
506
- 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 }
507
572
 
508
- declare const _default_4: any;
573
+ declare const _default_4: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
509
574
  export { _default_4 as FooterBar }
510
575
  export { _default_4 as FoxFooterBar }
511
576
 
512
- declare const _default_40: any;
513
- export { _default_40 as FoxPullRefresh }
514
- 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 }
515
580
 
516
- declare const _default_41: any;
517
- export { _default_41 as FoxMapping }
518
- 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 }
519
584
 
520
- declare const _default_42: any;
521
- export { _default_42 as FoxPrice }
522
- 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 }
523
588
 
524
- declare const _default_43: any;
525
- export { _default_43 as FoxIndicator }
526
- 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 }
527
592
 
528
- declare const _default_44: any;
529
- export { _default_44 as FoxText }
530
- 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 }
531
596
 
532
- declare const _default_45: any;
533
- export { _default_45 as FoxMoreButton }
534
- 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 }
535
600
 
536
- declare const _default_46: any;
537
- export { _default_46 as FloatingButton }
538
- 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 }
539
604
 
540
- declare const _default_47: any;
541
- export { _default_47 as FoxTour }
542
- 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 }
543
608
 
544
- declare const _default_48: any;
545
- export { _default_48 as FloatingWindow }
546
- 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 }
547
612
 
548
- declare const _default_49: any;
549
- export { _default_49 as FoxPopoverDialog }
550
- 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 }
551
616
 
552
- declare const _default_5: any;
617
+ declare const _default_5: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
553
618
  export { _default_5 as Content }
554
619
  export { _default_5 as FoxContent }
555
620
 
556
- declare const _default_50: any;
557
- export { _default_50 as DomainProvider }
558
- 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 }
628
+
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 }
559
632
 
560
- declare const _default_51: any;
561
- export { _default_51 as FoxRollingProvider }
562
- export { _default_51 as RollingProvider }
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 }
563
636
 
564
- declare const _default_6: any;
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>;
565
642
  export { _default_6 as FoxGroup }
566
643
  export { _default_6 as Group }
567
644
 
568
- declare const _default_7: any;
645
+ declare const _default_7: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
569
646
  export { _default_7 as FoxItem }
570
647
  export { _default_7 as Item }
571
648
 
572
- declare const _default_8: any;
649
+ declare const _default_8: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
573
650
  export { _default_8 as FoxSlotItem }
574
651
  export { _default_8 as SlotItem }
575
652
 
576
- declare const _default_9: any;
653
+ declare const _default_9: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
577
654
  export { _default_9 as FoxRowItem }
578
655
  export { _default_9 as RowItem }
579
656
 
580
- /**
581
- * anyNode
582
- * @param name
583
- * @param callbacks
584
- * @returns
585
- */
586
- export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
587
-
588
657
  /**
589
658
  * 安装config domain
659
+ * @param descriptor domain组件描述
590
660
  * @param name 名称
591
- * @param props 属性
592
- * @param ignores 忽略的属性
593
661
  * @returns
594
662
  */
595
- 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
+ };
596
667
 
597
668
  /**
598
- * 定义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
599
675
  * @returns
600
676
  */
601
- 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): {
602
678
  broadcast: Broadcast;
603
679
  validateSchema: ValidateSchema;
680
+ componentPublicExposed: FoxComponentPublicExposed;
681
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
604
682
  };
605
683
 
606
684
  /**
607
685
  * 安装domain
686
+ * @param descriptor domain组件描述
608
687
  * @param name 名称
609
- * @param props 属性
610
- * @param ignores 忽略的属性
611
- * @param exposes 暴露的方法
688
+ * @param broadcastCallbacks 消息
612
689
  * @returns
613
690
  */
614
- 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
+ };
615
711
 
616
712
  /**
617
713
  * 定义domain item
714
+ * @param descriptor 组件描述
715
+ * @param name 名称
716
+ * @param broadcastCallbacks 消息
618
717
  * @returns
619
718
  */
620
- 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
+ };
621
728
 
622
729
  /**
623
730
  * 创建page state
@@ -629,12 +736,16 @@ export declare function definePageState(domain: Domain, overrideProps?: Record<s
629
736
 
630
737
  /**
631
738
  * 定义simple item
739
+ * @param descriptor simple组件描述
740
+ * @param name 名称
632
741
  * @returns
633
742
  */
634
- export declare function defineSimpleItem(): {
743
+ export declare function defineSimpleItem(descriptor: SimpleComponentDescriptor, name?: string): {
635
744
  emitEvent: (type: string, ...args: any[]) => void;
636
745
  onEvent: (type: string, listener: EventListener_2) => void;
637
746
  offEvent: (type: string, listener: EventListener_2) => void;
747
+ componentPublicExposed: FoxComponentPublicExposed;
748
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
638
749
  };
639
750
 
640
751
  /**
@@ -643,30 +754,13 @@ export declare function defineSimpleItem(): {
643
754
  */
644
755
  export declare function deleteGlobalValidator(type: string): void;
645
756
 
646
- /**
647
- * 组件描述
648
- */
649
- export declare interface Descriptor {
650
- componentName: string;
651
- fieldName?: string;
652
- valueName?: string;
653
- valueType?: ValueType;
654
- validate?: boolean;
655
- readonly?: boolean;
656
- disabled?: boolean;
657
- pureDataValidate?: boolean;
658
- validateHandler?: ValidateHandler;
659
- validateCheckEvents?: string[];
660
- validateResetEvents?: string[];
661
- }
662
-
663
757
  declare type Direction = '' | 'vertical' | 'horizontal';
664
758
 
665
759
  /**
666
760
  * 禁用属性
667
761
  * @param source
668
762
  */
669
- export declare function disabledProperty(source: Ref): Ref;
763
+ export declare function disabledProperty(source: Ref): Ref<boolean>;
670
764
 
671
765
  export { divide }
672
766
 
@@ -697,10 +791,18 @@ export declare class Domain {
697
791
  private _validateSchema;
698
792
  get validateSchema(): ValidateSchema | null;
699
793
  set validateSchema(val: ValidateSchema | null);
794
+ /**
795
+ * component public expose
796
+ */
797
+ componentPublicExposed: FoxComponentPublicExposed;
700
798
  /**
701
799
  * 属性集合
702
800
  */
703
801
  private _props;
802
+ /**
803
+ * 本地数据集合
804
+ */
805
+ private _datas;
704
806
  /**
705
807
  * 构造函数
706
808
  * @param name
@@ -710,11 +812,34 @@ export declare class Domain {
710
812
  * 销毁
711
813
  */
712
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;
713
838
  /**
714
839
  * 合并属性
715
840
  * @param props
716
841
  */
717
- merge(props: Record<string | number, any>, ignores?: any[]): void;
842
+ merge(props: Record<string | number, any>, ignores?: string[]): void;
718
843
  /**
719
844
  * 判断是否有属性
720
845
  */
@@ -758,20 +883,15 @@ export declare class Domain {
758
883
  }
759
884
 
760
885
  /**
761
- * domain item
886
+ * Domain组件描述
762
887
  */
763
- export declare interface DomainItem {
764
- broadcast: Broadcast;
765
- validateSchema: ValidateSchema;
766
- emitEvent: {
767
- (type: string, ...args: any[]): void;
768
- };
769
- onEvent: {
770
- (type: string, listener: EventListener_2): void;
771
- };
772
- offEvent: {
773
- (type: string, listener: EventListener_2): void;
888
+ declare interface DomainComponentDescriptor {
889
+ props?: Record<string, any> | {
890
+ (): Record<string, any>;
774
891
  };
892
+ ignorePropKeys?: string[];
893
+ context: FoxSetupContext;
894
+ templateRefProxy?: FoxTemplateRefProxy;
775
895
  }
776
896
 
777
897
  /**
@@ -779,6 +899,39 @@ export declare interface DomainItem {
779
899
  */
780
900
  export declare const DomainKey: unique symbol;
781
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
+
782
935
  /**
783
936
  * event listener
784
937
  */
@@ -794,6 +947,11 @@ declare interface EventListener_2 {
794
947
  */
795
948
  export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
796
949
 
950
+ /**
951
+ * expose function
952
+ */
953
+ declare type ExposeFn = (exposed?: Record<string, any>) => void;
954
+
797
955
  /**
798
956
  * 继承(是否深度拷贝,dest,src1,src2,src3...)
799
957
  *
@@ -868,6 +1026,21 @@ export { FoxCollapseTransition }
868
1026
 
869
1027
  export { FoxColorPicker }
870
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
+
871
1044
  export { FoxConfigProvider }
872
1045
 
873
1046
  export { FoxContainer }
@@ -912,10 +1085,14 @@ export { FoxInput }
912
1085
 
913
1086
  export { FoxInputNumber }
914
1087
 
1088
+ export { FoxInputTag }
1089
+
915
1090
  export { FoxLink }
916
1091
 
917
1092
  export { FoxMain }
918
1093
 
1094
+ export { FoxMention }
1095
+
919
1096
  export { FoxMenu }
920
1097
 
921
1098
  export { FoxMenuItem }
@@ -964,6 +1141,15 @@ export { FoxSelect }
964
1141
 
965
1142
  export { FoxSelectV2 }
966
1143
 
1144
+ /**
1145
+ * Fox setup context
1146
+ */
1147
+ declare type FoxSetupContext = {
1148
+ attrs: Record<string, any>;
1149
+ emit: EmitFn;
1150
+ expose: ExposeFn;
1151
+ };
1152
+
967
1153
  export { FoxSkeleton }
968
1154
 
969
1155
  export { FoxSkeletonItem }
@@ -994,6 +1180,11 @@ export { FoxTabs }
994
1180
 
995
1181
  export { FoxTag }
996
1182
 
1183
+ /**
1184
+ * template ref proxy
1185
+ */
1186
+ declare type FoxTemplateRefProxy = any;
1187
+
997
1188
  export { FoxTimeline }
998
1189
 
999
1190
  export { FoxTimelineItem }
@@ -1012,6 +1203,90 @@ export { FoxTreeSelect }
1012
1203
 
1013
1204
  export { FoxTreeV2 }
1014
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
+
1015
1290
  /**
1016
1291
  * Fox UI vue实例
1017
1292
  */
@@ -1024,6 +1299,14 @@ declare class FoxUIVue implements FoxUI {
1024
1299
  * 安装器
1025
1300
  */
1026
1301
  private installers;
1302
+ /**
1303
+ * resize监听器
1304
+ */
1305
+ private resizeListener;
1306
+ /**
1307
+ * resize observer
1308
+ */
1309
+ private resizeObserver;
1027
1310
  /**
1028
1311
  * version
1029
1312
  */
@@ -1042,17 +1325,25 @@ declare class FoxUIVue implements FoxUI {
1042
1325
  */
1043
1326
  install(app: App, options?: FoxUIOptions): any;
1044
1327
  /**
1045
- * 初始化page Layout
1328
+ * 卸载
1329
+ */
1330
+ unInstall(): void;
1331
+ /**
1332
+ * 更新Layout
1046
1333
  *
1047
1334
  * @param options
1048
1335
  * @param rootDomain
1049
1336
  */
1050
- initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1337
+ updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1051
1338
  /**
1052
1339
  * 设置scope getter
1053
1340
  * @param getter
1054
1341
  */
1055
1342
  setScopeGetter(getter: ScopeGetter): void;
1343
+ /**
1344
+ * 获取scope getter
1345
+ */
1346
+ getScopeGetter(): ScopeGetter | null;
1056
1347
  /**
1057
1348
  * 设置API
1058
1349
  * @param name
@@ -1066,7 +1357,7 @@ declare class FoxUIVue implements FoxUI {
1066
1357
  * @param name
1067
1358
  * @param scope
1068
1359
  */
1069
- getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
1360
+ getAPI(name: string, scope?: string): any | null;
1070
1361
  /**
1071
1362
  * 批量增加api
1072
1363
  * @param apis
@@ -1095,6 +1386,12 @@ export declare interface GenericFunction {
1095
1386
  (...args: any[]): any;
1096
1387
  }
1097
1388
 
1389
+ /**
1390
+ * icons
1391
+ * @returns
1392
+ */
1393
+ export declare function getGlobalIcons(): Icons;
1394
+
1098
1395
  /**
1099
1396
  * 获取公共校验检查事件
1100
1397
  */
@@ -1143,11 +1440,73 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
1143
1440
  */
1144
1441
  export declare function getRootDomain(): Domain;
1145
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
+
1146
1453
  /**
1147
1454
  * 是否支持symbol
1148
1455
  */
1149
1456
  export declare const hasSymbol: boolean;
1150
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
+
1151
1510
  /**
1152
1511
  * 根据包含模版,抽取属性
1153
1512
  * @param src
@@ -1164,6 +1523,24 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
1164
1523
  */
1165
1524
  export declare function indexOf(x: unknown, arr: unknown[]): number;
1166
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
+
1167
1544
  /**
1168
1545
  * 安装函数
1169
1546
  */
@@ -1171,12 +1548,6 @@ declare interface Installer {
1171
1548
  (app: App, options?: any): void;
1172
1549
  }
1173
1550
 
1174
- /**
1175
- * 安装校验规则
1176
- * @param proxy
1177
- */
1178
- export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1179
-
1180
1551
  /**
1181
1552
  * 获取整数长度
1182
1553
  * @param value
@@ -1207,6 +1578,13 @@ export declare const isBrowser: boolean;
1207
1578
  */
1208
1579
  export declare const isDate: (val: unknown) => val is Date;
1209
1580
 
1581
+ /**
1582
+ * 是否display none
1583
+ * @param el
1584
+ * @returns
1585
+ */
1586
+ export declare function isDisplayNone(el: HTMLElement): boolean;
1587
+
1210
1588
  /**
1211
1589
  * 是否空字符串
1212
1590
  * @param v
@@ -1237,20 +1615,14 @@ export declare function isESModule(obj: any): obj is Object;
1237
1615
  export declare const isFunction: (val: unknown) => val is Function;
1238
1616
 
1239
1617
  /**
1240
- * 是否是隐藏element
1241
- * @param el
1618
+ * 是否是隐藏 element(自身或任意父级隐藏)
1619
+ * - display: none
1620
+ * - visibility: hidden
1621
+ * - hidden 属性
1622
+ * - 父级隐藏
1242
1623
  */
1243
1624
  export declare function isHidden(el: any): boolean;
1244
1625
 
1245
- /**
1246
- * 是否为内嵌页面
1247
- * 内嵌页面为内嵌在容器内,如dialog,不需要设置content的高度
1248
- * @param domain
1249
- * @param proxy
1250
- * @returns
1251
- */
1252
- export declare function isInnerPage(domain: Domain, proxy: any): boolean;
1253
-
1254
1626
  /**
1255
1627
  * 是否为Map
1256
1628
  * @param val
@@ -1335,6 +1707,13 @@ export declare function isTouch(): boolean;
1335
1707
  */
1336
1708
  export declare function isWindow(obj: any): boolean;
1337
1709
 
1710
+ /**
1711
+ * 中划线格式转换为大驼峰
1712
+ * @param str
1713
+ * @returns
1714
+ */
1715
+ export declare function kebabToPascal(str: string): string;
1716
+
1338
1717
  /**
1339
1718
  * 获取对应元素的在数组中最后一个匹配的索引
1340
1719
  * @param x
@@ -1358,8 +1737,11 @@ export declare interface Matched {
1358
1737
  name?: string | RegExp | {
1359
1738
  (name: string): boolean;
1360
1739
  };
1361
- maxLevel?: number;
1362
- level?: number;
1740
+ resolve?: Resolve;
1741
+ resolved?: boolean;
1742
+ uniqueId?: string;
1743
+ cachePolicy?: MessageCachePolicy;
1744
+ messagingPolicy?: MessagingPolicy;
1363
1745
  }
1364
1746
 
1365
1747
  /**
@@ -1370,6 +1752,18 @@ export declare interface Matched {
1370
1752
  */
1371
1753
  export declare function merge(first: any[], second: any[]): any[];
1372
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
+
1373
1767
  export { multiply }
1374
1768
 
1375
1769
  export { negate }
@@ -1397,6 +1791,13 @@ export declare const objectToString: () => string;
1397
1791
  */
1398
1792
  export declare function once(func: GenericFunction): GenericFunction;
1399
1793
 
1794
+ /**
1795
+ * 覆盖更新公共Icon
1796
+ * @param icons
1797
+ * @param merge
1798
+ */
1799
+ export declare function overrideGlobalIcons(newIcons: Partial<Icons>): void;
1800
+
1400
1801
  /**
1401
1802
  * 覆盖更新公共的校验处理器
1402
1803
  * @param validateHandler
@@ -1407,12 +1808,17 @@ export declare function overrideGlobalValidateHandler(validateHandler: Partial<V
1407
1808
  * padding
1408
1809
  */
1409
1810
  export declare interface Padding {
1410
- left: number | null;
1411
- top: number | null;
1412
- right: number | null;
1413
- bottom: number | null;
1811
+ left: number | string | null;
1812
+ top: number | string | null;
1813
+ right: number | string | null;
1814
+ bottom: number | string | null;
1414
1815
  }
1415
1816
 
1817
+ /**
1818
+ * pad zero
1819
+ */
1820
+ export declare const padZero: (num: number | string, length?: number) => string;
1821
+
1416
1822
  /**
1417
1823
  * page layout
1418
1824
  */
@@ -1421,11 +1827,22 @@ export declare interface PageLayout {
1421
1827
  height?: number | string;
1422
1828
  headerHeight?: number | string;
1423
1829
  footerHeight?: number | string;
1424
- headerPadding?: Padding;
1425
- footerPadding?: Padding;
1426
- contentPadding?: Padding;
1830
+ headerPadding?: Partial<Padding>;
1831
+ footerPadding?: Partial<Padding>;
1832
+ contentPadding?: Partial<Padding>;
1427
1833
  }
1428
1834
 
1835
+ /**
1836
+ * 页面scope状态
1837
+ */
1838
+ export declare type PageScopeState = PageStructure & {
1839
+ isAbstractPage: boolean;
1840
+ isInnerPage: boolean;
1841
+ };
1842
+
1843
+ /**
1844
+ * page state
1845
+ */
1429
1846
  export declare interface PageState {
1430
1847
  width: number;
1431
1848
  height: number;
@@ -1447,6 +1864,31 @@ export declare interface PageState {
1447
1864
  footerMounted?: boolean;
1448
1865
  }
1449
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
+
1450
1892
  /**
1451
1893
  * 坐标
1452
1894
  */
@@ -1455,6 +1897,13 @@ export declare interface Point {
1455
1897
  y: number;
1456
1898
  }
1457
1899
 
1900
+ /**
1901
+ * prevent default
1902
+ * @param event
1903
+ * @param isStopPropagation
1904
+ */
1905
+ export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
1906
+
1458
1907
  /**
1459
1908
  * 优先策略
1460
1909
  */
@@ -1470,7 +1919,22 @@ export declare enum PriorityPolicy {
1470
1919
  * @param policy
1471
1920
  * @param filter
1472
1921
  */
1473
- 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;
1474
1938
 
1475
1939
  export declare const raf: any;
1476
1940
 
@@ -1478,9 +1942,19 @@ export declare const raf: any;
1478
1942
  * 只读属性
1479
1943
  * @param source
1480
1944
  */
1481
- export declare function readonlyProperty(source: Ref): Ref;
1945
+ export declare function readonlyProperty(source: Ref): Ref<boolean>;
1482
1946
 
1947
+ /**
1948
+ * Rect类型
1949
+ */
1483
1950
  declare interface Rect {
1951
+ left: number;
1952
+ top: number;
1953
+ right: number;
1954
+ bottom: number;
1955
+ }
1956
+
1957
+ declare interface Rect_2 {
1484
1958
  top: number;
1485
1959
  left: number;
1486
1960
  right: number;
@@ -1489,6 +1963,11 @@ declare interface Rect {
1489
1963
  height: number;
1490
1964
  }
1491
1965
 
1966
+ /**
1967
+ * 消息确认函数
1968
+ */
1969
+ declare type Resolve = (...args: any) => void;
1970
+
1492
1971
  /**
1493
1972
  * 结果类型
1494
1973
  */
@@ -1509,6 +1988,14 @@ export declare interface SafeAreaInset {
1509
1988
  bottom: number | string;
1510
1989
  }
1511
1990
 
1991
+ /**
1992
+ * scope getter
1993
+ * 需要保证该函数能够在 InjectionContext 上下文中允许
1994
+ */
1995
+ declare interface ScopeGetter {
1996
+ (): string | null;
1997
+ }
1998
+
1512
1999
  /**
1513
2000
  * 设置公共校验检查事件
1514
2001
  * @param events
@@ -1539,6 +2026,13 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
1539
2026
  */
1540
2027
  export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
1541
2028
 
2029
+ /**
2030
+ * simple组件描述
2031
+ */
2032
+ declare interface SimpleComponentDescriptor {
2033
+ context: FoxSetupContext;
2034
+ }
2035
+
1542
2036
  /**
1543
2037
  * size
1544
2038
  */
@@ -1555,6 +2049,18 @@ declare interface Size {
1555
2049
  */
1556
2050
  export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
1557
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
+
1558
2064
  /**
1559
2065
  * 转换为boolean值
1560
2066
  * @param val
@@ -1581,13 +2087,15 @@ export declare function toPadding(rect: any): Padding;
1581
2087
  */
1582
2088
  export declare function toPx(value: number | string, size?: number): number;
1583
2089
 
2090
+ export declare const toPxDesc: (value: string | number, size?: number) => string;
2091
+
1584
2092
  /**
1585
- * to px desc
2093
+ * to px string
1586
2094
  * @param value
1587
2095
  * @parma size
1588
2096
  * @returns
1589
2097
  */
1590
- export declare const toPxDesc: (value: string | number, size?: number) => string;
2098
+ export declare const toPxString: (value: string | number, size?: number) => string;
1591
2099
 
1592
2100
  export declare const toTypeString: (value: unknown) => string;
1593
2101
 
@@ -1653,8 +2161,8 @@ export { unNumberFormat }
1653
2161
  /**
1654
2162
  * 更新 page state
1655
2163
  * @param state
1656
- * @param pageLayout
1657
- * @param overrideProps
2164
+ * @param pageLayout(领域设置)
2165
+ * @param overrideProps(组件属性)
1658
2166
  * @param root
1659
2167
  * @param rootWidth
1660
2168
  * @param rootHeight
@@ -1665,25 +2173,27 @@ export declare function updatePageState(state: PageState, pageLayout: any, overr
1665
2173
 
1666
2174
  /**
1667
2175
  * 使用broadcast
1668
- * @param proxy
2176
+ * @param expose
1669
2177
  * @returns
1670
2178
  */
1671
- export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
2179
+ export declare function useBroadcast(exposed?: FoxComponentPublicExposed): Broadcast | null;
1672
2180
 
1673
2181
  /**
1674
2182
  * 获取当前domain
1675
2183
  * @returns
1676
2184
  */
1677
- export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
2185
+ export declare function useDomain(): Domain | null;
1678
2186
 
1679
2187
  /**
1680
- * use expose
1681
- * @param apis
2188
+ * 获取元素尺寸信息
2189
+ *
2190
+ * outer = clientWidth/clientHeight(包含 padding)
2191
+ * inner = client - padding
1682
2192
  */
1683
- export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
2193
+ export declare function useElementSize(elementRef: Element | Ref<Element>): ElementSize;
1684
2194
 
1685
2195
  /**
1686
- * 获取内部可用size
2196
+ * 获取内部可用size(inner size)
1687
2197
  * @param elementRef
1688
2198
  * @returns
1689
2199
  */
@@ -1728,15 +2238,24 @@ export declare function useRawTouch(): {
1728
2238
  };
1729
2239
  };
1730
2240
 
1731
- 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;
1732
2242
 
1733
2243
  /**
1734
- * 获取size
2244
+ * 获取size(outer size)
1735
2245
  * @param elementRef
1736
2246
  * @returns
1737
2247
  */
1738
2248
  export declare function useSize(elementRef: Element | Ref<Element>): Size;
1739
2249
 
2250
+ /**
2251
+ * 获取child slot
2252
+ * @param slot
2253
+ * @returns
2254
+ */
2255
+ export declare function useSlotChildren(slot?: () => VNode[]): {
2256
+ getChildren: () => VNode[];
2257
+ };
2258
+
1740
2259
  /**
1741
2260
  * 获取响应式touch对象
1742
2261
  * @returns
@@ -1745,70 +2264,54 @@ export declare function useTouch(): {
1745
2264
  move: EventListener;
1746
2265
  start: EventListener;
1747
2266
  reset: () => void;
1748
- startX: any;
1749
- startY: any;
1750
- startTime: any;
1751
- duration: any;
1752
- moveX: any;
1753
- moveY: any;
1754
- deltaX: any;
1755
- deltaY: any;
1756
- offsetX: any;
1757
- offsetY: any;
1758
- 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>;
1759
2278
  isVertical: () => boolean;
1760
2279
  isHorizontal: () => boolean;
1761
2280
  };
1762
2281
 
1763
- /**
1764
- * 校验条件
1765
- */
1766
- export declare interface ValidateCondition {
1767
- deep?: boolean;
1768
- include?: string[];
1769
- exclude?: string[];
1770
- ignoreHidden?: boolean;
1771
- ignoreDisabled?: boolean;
1772
- ignoreReadonly?: boolean;
1773
- }
1774
-
1775
2282
  /**
1776
2283
  * 校验器handler
1777
2284
  */
1778
- export declare interface ValidateHandler {
2285
+ declare interface ValidateHandler {
1779
2286
  /**
1780
2287
  * 错误处理
1781
2288
  * @param errorMsg
1782
2289
  * @param proxy
1783
2290
  *
1784
2291
  */
1785
- error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
2292
+ error?(errorMsg: string, proxy: FoxComponentPublicProxy): void;
1786
2293
  /**
1787
2294
  * 重置处理
1788
2295
  * @param proxy
1789
- *
1790
2296
  */
1791
- reset?(proxy: FoxComponentPublicInstance): void;
2297
+ reset?(proxy: FoxComponentPublicProxy): void;
1792
2298
  /**
1793
2299
  * 成功处理
1794
2300
  * @param proxy
1795
- *
1796
2301
  */
1797
- success?(proxy: FoxComponentPublicInstance): void;
2302
+ success?(proxy: FoxComponentPublicProxy): void;
1798
2303
  /**
1799
2304
  * 规则装饰处理
1800
2305
  * @param newRule
1801
2306
  * @param oldRule
1802
2307
  * @param proxy
1803
- *
1804
2308
  */
1805
- decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
2309
+ decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicProxy): void;
1806
2310
  /**
1807
2311
  * 获取value
1808
2312
  * @param proxy
1809
- *
1810
2313
  */
1811
- getValue?(proxy: FoxComponentPublicInstance): any;
2314
+ getValue?(proxy: FoxComponentPublicProxy): any;
1812
2315
  }
1813
2316
 
1814
2317
  /**
@@ -1836,7 +2339,7 @@ export declare class ValidateSchema {
1836
2339
  */
1837
2340
  private descriptor;
1838
2341
  /**
1839
- * 实例
2342
+ * 组件public proxy
1840
2343
  */
1841
2344
  private proxy;
1842
2345
  /**
@@ -1849,7 +2352,7 @@ export declare class ValidateSchema {
1849
2352
  * @param descriptor
1850
2353
  * @param proxy
1851
2354
  */
1852
- constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
2355
+ constructor(parent: ValidateSchema | null, descriptor: ComponentDescriptor, proxy: FoxComponentPublicProxy);
1853
2356
  /**
1854
2357
  * 初始化
1855
2358
  */
@@ -1933,7 +2436,7 @@ export declare class ValidateSchema {
1933
2436
  export declare const ValidateSchemaKey: unique symbol;
1934
2437
 
1935
2438
  /**
1936
- * value 格式话
2439
+ * value 格式化
1937
2440
  */
1938
2441
  export declare interface ValueFormat<T, K> {
1939
2442
  (value: T): K;
@@ -1949,6 +2452,6 @@ export declare function valueLength(val: unknown): number;
1949
2452
  /**
1950
2453
  * value 类型
1951
2454
  */
1952
- export declare type ValueType = 'string' | 'number' | 'date';
2455
+ declare type ValueType = 'string' | 'number' | 'date';
1953
2456
 
1954
2457
  export { }