@fox-js/foxui-pad 4.0.1-11 → 4.0.1-13
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.
- package/dist/index.cjs.js +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +6873 -5287
- package/dist/index.umd.js +5 -5
- package/dist/locale/index.esm.js +4 -4
- package/dist/locale/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +301 -267
- package/package.json +13 -15
- package/dist/locale/index.d.ts +0 -398
package/dist/types/index.d.ts
CHANGED
|
@@ -1,120 +1,117 @@
|
|
|
1
|
-
import type { AllowedComponentProps } from 'vue';
|
|
2
1
|
import { App } from 'vue';
|
|
3
2
|
import { compareTo } from '@fox-js/big-decimal';
|
|
4
|
-
import type { ComponentCustomProps } from 'vue';
|
|
5
3
|
import { ComponentInternalInstance } from 'vue';
|
|
6
|
-
import type { ComponentOptionsMixin } from 'vue';
|
|
7
4
|
import { ComponentPublicInstance } from 'vue';
|
|
8
|
-
import type { ComputedOptions } from 'vue';
|
|
9
|
-
import type { DefineComponent } from 'vue';
|
|
10
5
|
import { divide } from '@fox-js/big-decimal';
|
|
11
6
|
import { ExecuteValidator } from '@fox-js/validator';
|
|
12
|
-
import { ElAffix as FoxAffix } from '
|
|
13
|
-
import { ElAlert as FoxAlert } from '
|
|
14
|
-
import { ElAside as FoxAside } from '
|
|
15
|
-
import { ElAutocomplete as FoxAutocomplete } from '
|
|
16
|
-
import { ElAutoResizer as FoxAutoResizer } from '
|
|
17
|
-
import { ElAvatar as FoxAvatar } from '
|
|
18
|
-
import { ElBacktop as FoxBacktop } from '
|
|
19
|
-
import { ElBadge as FoxBadge } from '
|
|
20
|
-
import { ElBreadcrumb as FoxBreadcrumb } from '
|
|
21
|
-
import { ElBreadcrumbItem as FoxBreadcrumbItem } from '
|
|
22
|
-
import { ElButton as FoxButton } from '
|
|
23
|
-
import { ElButtonGroup as FoxButtonGroup } from '
|
|
24
|
-
import { ElCalendar as FoxCalendar } from '
|
|
25
|
-
import { ElCard as FoxCard } from '
|
|
26
|
-
import { ElCarousel as FoxCarousel } from '
|
|
27
|
-
import { ElCarouselItem as FoxCarouselItem } from '
|
|
28
|
-
import { ElCascader as FoxCascader } from '
|
|
29
|
-
import { ElCascaderPanel as FoxCascaderPanel } from '
|
|
30
|
-
import { ElCheckbox as FoxCheckbox } from '
|
|
31
|
-
import { ElCheckboxButton as FoxCheckboxButton } from '
|
|
32
|
-
import { ElCheckboxGroup as FoxCheckboxGroup } from '
|
|
33
|
-
import { ElCheckTag as FoxCheckTag } from '
|
|
34
|
-
import { ElCol as FoxCol } from '
|
|
35
|
-
import { ElCollapse as FoxCollapse } from '
|
|
36
|
-
import { ElCollapseItem as FoxCollapseItem } from '
|
|
37
|
-
import { ElCollapseTransition as FoxCollapseTransition } from '
|
|
38
|
-
import { ElColorPicker as FoxColorPicker } from '
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import
|
|
7
|
+
import { ElAffix as FoxAffix } from './base';
|
|
8
|
+
import { ElAlert as FoxAlert } from './base';
|
|
9
|
+
import { ElAside as FoxAside } from './base';
|
|
10
|
+
import { ElAutocomplete as FoxAutocomplete } from './base';
|
|
11
|
+
import { ElAutoResizer as FoxAutoResizer } from './base';
|
|
12
|
+
import { ElAvatar as FoxAvatar } from './base';
|
|
13
|
+
import { ElBacktop as FoxBacktop } from './base';
|
|
14
|
+
import { ElBadge as FoxBadge } from './base';
|
|
15
|
+
import { ElBreadcrumb as FoxBreadcrumb } from './base';
|
|
16
|
+
import { ElBreadcrumbItem as FoxBreadcrumbItem } from './base';
|
|
17
|
+
import { ElButton as FoxButton } from './base';
|
|
18
|
+
import { ElButtonGroup as FoxButtonGroup } from './base';
|
|
19
|
+
import { ElCalendar as FoxCalendar } from './base';
|
|
20
|
+
import { ElCard as FoxCard } from './base';
|
|
21
|
+
import { ElCarousel as FoxCarousel } from './base';
|
|
22
|
+
import { ElCarouselItem as FoxCarouselItem } from './base';
|
|
23
|
+
import { ElCascader as FoxCascader } from './base';
|
|
24
|
+
import { ElCascaderPanel as FoxCascaderPanel } from './base';
|
|
25
|
+
import { ElCheckbox as FoxCheckbox } from './base';
|
|
26
|
+
import { ElCheckboxButton as FoxCheckboxButton } from './base';
|
|
27
|
+
import { ElCheckboxGroup as FoxCheckboxGroup } from './base';
|
|
28
|
+
import { ElCheckTag as FoxCheckTag } from './base';
|
|
29
|
+
import { ElCol as FoxCol } from './base';
|
|
30
|
+
import { ElCollapse as FoxCollapse } from './base';
|
|
31
|
+
import { ElCollapseItem as FoxCollapseItem } from './base';
|
|
32
|
+
import { ElCollapseTransition as FoxCollapseTransition } from './base';
|
|
33
|
+
import { ElColorPicker as FoxColorPicker } from './base';
|
|
34
|
+
import { FoxComponentPublicInstance } from './types';
|
|
35
|
+
import { ElConfigProvider as FoxConfigProvider } from './base';
|
|
36
|
+
import { ElContainer as FoxContainer } from './base';
|
|
37
|
+
import { ElDatePicker as FoxDatePicker } from './base';
|
|
38
|
+
import { ElDescriptions as FoxDescriptions } from './base';
|
|
39
|
+
import { ElDescriptionsItem as FoxDescriptionsItem } from './base';
|
|
40
|
+
import { ElDialog as FoxDialog } from './base';
|
|
41
|
+
import { ElDivider as FoxDivider } from './base';
|
|
42
|
+
import { ElDrawer as FoxDrawer } from './base';
|
|
43
|
+
import { ElDropdown as FoxDropdown } from './base';
|
|
44
|
+
import { ElDropdownItem as FoxDropdownItem } from './base';
|
|
45
|
+
import { ElDropdownMenu as FoxDropdownMenu } from './base';
|
|
46
|
+
import { ElEmpty as FoxEmpty } from './base';
|
|
47
|
+
import { ElFooter as FoxFooter } from './base';
|
|
48
|
+
import { ElForm as FoxForm } from './base';
|
|
49
|
+
import { ElFormItem as FoxFormItem } from './base';
|
|
50
|
+
import { ElHeader as FoxHeader } from './base';
|
|
51
|
+
import { ElIcon as FoxIcon } from './base';
|
|
52
|
+
import { ElImage as FoxImage } from './base';
|
|
53
|
+
import { ElImageViewer as FoxImageViewer } from './base';
|
|
54
|
+
import { ElInput as FoxInput } from './base';
|
|
55
|
+
import { ElInputNumber as FoxInputNumber } from './base';
|
|
56
|
+
import { ElLink as FoxLink } from './base';
|
|
57
|
+
import { ElMain as FoxMain } from './base';
|
|
58
|
+
import { ElMenu as FoxMenu } from './base';
|
|
59
|
+
import { ElMenuItem as FoxMenuItem } from './base';
|
|
60
|
+
import { ElMenuItemGroup as FoxMenuItemGroup } from './base';
|
|
61
|
+
import { ElOption as FoxOption } from './base';
|
|
62
|
+
import { ElOptionGroup as FoxOptionGroup } from './base';
|
|
63
|
+
import { ElPageHeader as FoxPageHeader } from './base';
|
|
64
|
+
import { ElPagination as FoxPagination } from './base';
|
|
65
|
+
import { ElPopconfirm as FoxPopconfirm } from './base';
|
|
66
|
+
import { ElPopover as FoxPopover } from './base';
|
|
67
|
+
import { ElPopper as FoxPopper } from './base';
|
|
68
|
+
import { ElProgress as FoxProgress } from './base';
|
|
69
|
+
import { ElRadio as FoxRadio } from './base';
|
|
70
|
+
import { ElRadioButton as FoxRadioButton } from './base';
|
|
71
|
+
import { ElRadioGroup as FoxRadioGroup } from './base';
|
|
72
|
+
import { ElRate as FoxRate } from './base';
|
|
73
|
+
import { ElResult as FoxResult } from './base';
|
|
74
|
+
import { ElRow as FoxRow } from './base';
|
|
75
|
+
import { ElScrollbar as FoxScrollbar } from './base';
|
|
76
|
+
import { ElSelect as FoxSelect } from './base';
|
|
77
|
+
import { ElSelectV2 as FoxSelectV2 } from './base';
|
|
78
|
+
import { ElSkeleton as FoxSkeleton } from './base';
|
|
79
|
+
import { ElSkeletonItem as FoxSkeletonItem } from './base';
|
|
80
|
+
import { ElSlider as FoxSlider } from './base';
|
|
81
|
+
import { ElSpace as FoxSpace } from './base';
|
|
82
|
+
import { ElStep as FoxStep } from './base';
|
|
83
|
+
import { ElSteps as FoxSteps } from './base';
|
|
84
|
+
import { ElSubMenu as FoxSubMenu } from './base';
|
|
85
|
+
import { ElSwitch as FoxSwitch } from './base';
|
|
86
|
+
import { ElTable as FoxTable } from './base';
|
|
87
|
+
import { ElTableColumn as FoxTableColumn } from './base';
|
|
88
|
+
import { ElTableV2 as FoxTableV2 } from './base';
|
|
89
|
+
import { ElTabPane as FoxTabPane } from './base';
|
|
90
|
+
import { ElTabs as FoxTabs } from './base';
|
|
91
|
+
import { ElTag as FoxTag } from './base';
|
|
92
|
+
import { ElTimeline as FoxTimeline } from './base';
|
|
93
|
+
import { ElTimelineItem as FoxTimelineItem } from './base';
|
|
94
|
+
import { ElTimePicker as FoxTimePicker } from './base';
|
|
95
|
+
import { ElTimeSelect as FoxTimeSelect } from './base';
|
|
96
|
+
import { ElTooltip as FoxTooltip } from './base';
|
|
97
|
+
import { ElTransfer as FoxTransfer } from './base';
|
|
98
|
+
import { ElTree as FoxTree } from './base';
|
|
99
|
+
import { ElTreeSelect as FoxTreeSelect } from './base';
|
|
100
|
+
import { ElTreeV2 as FoxTreeV2 } from './base';
|
|
101
|
+
import { FoxUI } from './interface';
|
|
102
|
+
import { FoxUIOptions } from './interface';
|
|
103
|
+
import { ElUpload as FoxUpload } from './base';
|
|
107
104
|
import { multiply } from '@fox-js/big-decimal';
|
|
108
105
|
import { negate } from '@fox-js/big-decimal';
|
|
109
106
|
import { numberFormat } from '@fox-js/big-decimal';
|
|
110
107
|
import { Ref } from 'vue';
|
|
111
108
|
import { Rule } from '@fox-js/validator';
|
|
109
|
+
import { ScopeGetter } from './api';
|
|
112
110
|
import { unNumberFormat } from '@fox-js/big-decimal';
|
|
113
111
|
import { UnwrapNestedRefs } from 'vue';
|
|
114
112
|
import { UnwrapRef } from 'vue';
|
|
115
113
|
import { ValidateMessages } from '@fox-js/validator';
|
|
116
114
|
import { ValidateResult } from '@fox-js/validator';
|
|
117
|
-
import type { VNodeProps } from 'vue';
|
|
118
115
|
|
|
119
116
|
/**
|
|
120
117
|
* 是否接受value过滤器
|
|
@@ -123,7 +120,7 @@ export declare interface AcceptFilter {
|
|
|
123
120
|
(value: any): boolean;
|
|
124
121
|
}
|
|
125
122
|
|
|
126
|
-
export declare const AutocompleteItem:
|
|
123
|
+
export declare const AutocompleteItem: any;
|
|
127
124
|
|
|
128
125
|
/**
|
|
129
126
|
* 广播类
|
|
@@ -202,15 +199,17 @@ export declare interface BroadcastCallback {
|
|
|
202
199
|
|
|
203
200
|
export declare const BroadcastKey: unique symbol;
|
|
204
201
|
|
|
205
|
-
export declare const CalendarItem:
|
|
202
|
+
export declare const CalendarItem: any;
|
|
206
203
|
|
|
207
|
-
export declare const CalendarPicker:
|
|
204
|
+
export declare const CalendarPicker: any;
|
|
208
205
|
|
|
209
|
-
export declare
|
|
206
|
+
export declare function cancelRaf(id: number): void;
|
|
210
207
|
|
|
211
|
-
export declare const
|
|
208
|
+
export declare const CascaderItem: any;
|
|
212
209
|
|
|
213
|
-
export declare const
|
|
210
|
+
export declare const CascaderPicker: any;
|
|
211
|
+
|
|
212
|
+
export declare const CheckboxItem: any;
|
|
214
213
|
|
|
215
214
|
/**
|
|
216
215
|
* 清理非数字
|
|
@@ -229,7 +228,7 @@ export declare function clone(target: any, source: any, plain?: boolean): any;
|
|
|
229
228
|
|
|
230
229
|
export { compareTo }
|
|
231
230
|
|
|
232
|
-
export declare const Content:
|
|
231
|
+
export declare const Content: any;
|
|
233
232
|
|
|
234
233
|
/**
|
|
235
234
|
* 创建broadcast
|
|
@@ -256,12 +255,115 @@ export declare function createValidateSchema(proxy: FoxComponentPublicInstance,
|
|
|
256
255
|
*/
|
|
257
256
|
export declare const DataItemsKey: unique symbol;
|
|
258
257
|
|
|
259
|
-
export declare const DateItem:
|
|
258
|
+
export declare const DateItem: any;
|
|
259
|
+
|
|
260
|
+
export declare const DatePicker: any;
|
|
260
261
|
|
|
261
|
-
export declare const
|
|
262
|
+
export declare const DateUtils: {
|
|
263
|
+
/**
|
|
264
|
+
* 格式化
|
|
265
|
+
* @param date
|
|
266
|
+
* @param template
|
|
267
|
+
* @returns
|
|
268
|
+
*/
|
|
269
|
+
format(date: Date, template: string): string;
|
|
270
|
+
/**
|
|
271
|
+
* 解析
|
|
272
|
+
* @param str
|
|
273
|
+
* @param template
|
|
274
|
+
*/
|
|
275
|
+
parser(str: string, template: string): Date;
|
|
276
|
+
/**
|
|
277
|
+
* 是否为闫年
|
|
278
|
+
* @return {Boolse} true|false
|
|
279
|
+
*/
|
|
280
|
+
isLeapYear(y: number): boolean;
|
|
281
|
+
/**
|
|
282
|
+
* 返回星期数
|
|
283
|
+
* @return {String}
|
|
284
|
+
*/
|
|
285
|
+
getWhatDay(year: number, month: number, day: number): string;
|
|
286
|
+
/**
|
|
287
|
+
* 返回星期数
|
|
288
|
+
* @return {Number}
|
|
289
|
+
*/
|
|
290
|
+
getMonthPreDay(year: number, month: number): number;
|
|
291
|
+
/**
|
|
292
|
+
* 返回月份天数
|
|
293
|
+
* @return {Number}
|
|
294
|
+
*/
|
|
295
|
+
getMonthDays(year: string, month: string): number;
|
|
296
|
+
/**
|
|
297
|
+
* 补齐数字位数
|
|
298
|
+
* @return {string}
|
|
299
|
+
*/
|
|
300
|
+
getNumTwoBit(n: number): string;
|
|
301
|
+
/**
|
|
302
|
+
* 日期对象转成字符串
|
|
303
|
+
* @return {string}
|
|
304
|
+
*/
|
|
305
|
+
date2Str: (date: Date, split?: string) => string;
|
|
306
|
+
/**
|
|
307
|
+
* 返回日期格式字符串
|
|
308
|
+
* @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
309
|
+
* @param {Date} 起点日期
|
|
310
|
+
* @return {string} '2014-12-31'
|
|
311
|
+
*/
|
|
312
|
+
getDay(i: number, startDate?: Date): string;
|
|
313
|
+
/**
|
|
314
|
+
* 时间比较
|
|
315
|
+
* @return
|
|
316
|
+
*/
|
|
317
|
+
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
318
|
+
/**
|
|
319
|
+
* 时间是否相等
|
|
320
|
+
* @return
|
|
321
|
+
*/
|
|
322
|
+
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
323
|
+
/**
|
|
324
|
+
* get month week
|
|
325
|
+
* @param year
|
|
326
|
+
* @param month
|
|
327
|
+
* @param date
|
|
328
|
+
* @param firstDayOfWeek
|
|
329
|
+
* @returns
|
|
330
|
+
*/
|
|
331
|
+
getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
332
|
+
/**
|
|
333
|
+
* get year week
|
|
334
|
+
* @param year
|
|
335
|
+
* @param month
|
|
336
|
+
* @param date
|
|
337
|
+
* @param firstDayOfWeek
|
|
338
|
+
* @returns
|
|
339
|
+
*/
|
|
340
|
+
getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
341
|
+
/**
|
|
342
|
+
* get week date
|
|
343
|
+
*/
|
|
344
|
+
getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
|
|
345
|
+
/**
|
|
346
|
+
* format result date
|
|
347
|
+
*/
|
|
348
|
+
formatResultDate: (date: string) => string[];
|
|
349
|
+
/**
|
|
350
|
+
* 判断日期是否在范围内
|
|
351
|
+
* @param date
|
|
352
|
+
* @param startDate
|
|
353
|
+
* @param span 允许负数
|
|
354
|
+
*/
|
|
355
|
+
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
356
|
+
/**
|
|
357
|
+
* 判断日期是否在范围内
|
|
358
|
+
* @param date
|
|
359
|
+
* @param startDate
|
|
360
|
+
* @param span
|
|
361
|
+
*/
|
|
362
|
+
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
363
|
+
};
|
|
262
364
|
|
|
263
365
|
/**
|
|
264
|
-
* 防抖函数
|
|
366
|
+
* 防抖函数(执行时间范围内的最后一次)
|
|
265
367
|
* @param func 函数
|
|
266
368
|
* @param delay 防止抖动毫秒数
|
|
267
369
|
* @returns
|
|
@@ -355,9 +457,7 @@ export declare interface Descriptor {
|
|
|
355
457
|
validateResetEvents?: string[];
|
|
356
458
|
}
|
|
357
459
|
|
|
358
|
-
export declare const DialogItem:
|
|
359
|
-
|
|
360
|
-
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
460
|
+
export declare const DialogItem: any;
|
|
361
461
|
|
|
362
462
|
/**
|
|
363
463
|
* 禁用属性
|
|
@@ -476,7 +576,7 @@ export declare interface DomainItem {
|
|
|
476
576
|
*/
|
|
477
577
|
export declare const DomainKey: unique symbol;
|
|
478
578
|
|
|
479
|
-
export declare const DomainProvider:
|
|
579
|
+
export declare const DomainProvider: any;
|
|
480
580
|
|
|
481
581
|
/**
|
|
482
582
|
* event listener
|
|
@@ -500,15 +600,13 @@ export declare function excludeProps(src: Record<string, any>, ...excludeTemplat
|
|
|
500
600
|
*/
|
|
501
601
|
export declare function extend(...args: any[]): any;
|
|
502
602
|
|
|
503
|
-
export declare const
|
|
504
|
-
|
|
505
|
-
export declare const ExtTabPane: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
603
|
+
export declare const ExtTabPane: any;
|
|
506
604
|
|
|
507
|
-
export declare const ExtTabs:
|
|
605
|
+
export declare const ExtTabs: any;
|
|
508
606
|
|
|
509
607
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
510
608
|
|
|
511
|
-
export declare const FooterBar:
|
|
609
|
+
export declare const FooterBar: any;
|
|
512
610
|
|
|
513
611
|
export { FoxAffix }
|
|
514
612
|
|
|
@@ -564,8 +662,6 @@ export { FoxCollapseTransition }
|
|
|
564
662
|
|
|
565
663
|
export { FoxColorPicker }
|
|
566
664
|
|
|
567
|
-
declare type FoxComponentPublicInstance = any;
|
|
568
|
-
|
|
569
665
|
export { FoxConfigProvider }
|
|
570
666
|
|
|
571
667
|
export { FoxContainer }
|
|
@@ -698,79 +794,6 @@ export { FoxTreeSelect }
|
|
|
698
794
|
|
|
699
795
|
export { FoxTreeV2 }
|
|
700
796
|
|
|
701
|
-
/**
|
|
702
|
-
* Fox UI
|
|
703
|
-
*/
|
|
704
|
-
declare interface FoxUI {
|
|
705
|
-
/**
|
|
706
|
-
* 版本号
|
|
707
|
-
*/
|
|
708
|
-
version: string;
|
|
709
|
-
/**
|
|
710
|
-
* 安装
|
|
711
|
-
* @param app
|
|
712
|
-
* @param options
|
|
713
|
-
*/
|
|
714
|
-
install(app: App, options: FoxUIOptions): any;
|
|
715
|
-
/**
|
|
716
|
-
* 初始化page Layout
|
|
717
|
-
*
|
|
718
|
-
* @param options
|
|
719
|
-
* @param rootDomain
|
|
720
|
-
*/
|
|
721
|
-
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
722
|
-
/**
|
|
723
|
-
* 设置scope getter
|
|
724
|
-
* @param getter
|
|
725
|
-
*/
|
|
726
|
-
setScopeGetter(getter: ScopeGetter): void;
|
|
727
|
-
/**
|
|
728
|
-
* 设置API
|
|
729
|
-
* @param name
|
|
730
|
-
* @param func
|
|
731
|
-
* @param scope
|
|
732
|
-
*/
|
|
733
|
-
setAPI(name: string, func: any, scope?: string): void;
|
|
734
|
-
/**
|
|
735
|
-
* 获取API
|
|
736
|
-
* @param proxy
|
|
737
|
-
* @param name
|
|
738
|
-
* @param scope
|
|
739
|
-
*/
|
|
740
|
-
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
741
|
-
/**
|
|
742
|
-
* 批量增加api
|
|
743
|
-
* @param apis
|
|
744
|
-
* @param scope
|
|
745
|
-
*/
|
|
746
|
-
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
747
|
-
/**
|
|
748
|
-
* 清空scope apis
|
|
749
|
-
* @param scope
|
|
750
|
-
*/
|
|
751
|
-
clearScopeAPI(scope: string): void;
|
|
752
|
-
/**
|
|
753
|
-
* 获取root domain
|
|
754
|
-
*/
|
|
755
|
-
getRootDomain(): Domain;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
/**
|
|
759
|
-
* UI Options
|
|
760
|
-
*/
|
|
761
|
-
declare interface FoxUIOptions {
|
|
762
|
-
install?: boolean;
|
|
763
|
-
headerBarHeight?: number;
|
|
764
|
-
footerBarHeight?: number;
|
|
765
|
-
safeAreaInset?: SafeAreaInset;
|
|
766
|
-
pageLayout?: PageLayout;
|
|
767
|
-
headerPadding?: Rect;
|
|
768
|
-
contentPadding?: Rect;
|
|
769
|
-
groupLayout?: GroupLayout;
|
|
770
|
-
labelWidth?: number | string;
|
|
771
|
-
[propName: string]: any;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
797
|
/**
|
|
775
798
|
* Fox UI vue实例
|
|
776
799
|
*/
|
|
@@ -900,26 +923,16 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
|
|
|
900
923
|
*/
|
|
901
924
|
export declare function getRootDomain(): Domain;
|
|
902
925
|
|
|
903
|
-
export declare const Group:
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* Layout信息接口
|
|
907
|
-
*/
|
|
908
|
-
declare interface GroupLayout {
|
|
909
|
-
type: string;
|
|
910
|
-
width: number;
|
|
911
|
-
column: number;
|
|
912
|
-
gutter: number;
|
|
913
|
-
}
|
|
926
|
+
export declare const Group: any;
|
|
914
927
|
|
|
915
928
|
/**
|
|
916
929
|
* 是否支持symbol
|
|
917
930
|
*/
|
|
918
931
|
export declare const hasSymbol: boolean;
|
|
919
932
|
|
|
920
|
-
export declare const HeaderBar:
|
|
933
|
+
export declare const HeaderBar: any;
|
|
921
934
|
|
|
922
|
-
export declare const HintText:
|
|
935
|
+
export declare const HintText: any;
|
|
923
936
|
|
|
924
937
|
/**
|
|
925
938
|
* 根据包含模版,抽取属性
|
|
@@ -937,11 +950,11 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
|
|
|
937
950
|
*/
|
|
938
951
|
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
939
952
|
|
|
940
|
-
export declare const Indicator:
|
|
953
|
+
export declare const Indicator: any;
|
|
941
954
|
|
|
942
|
-
export declare const InputItem:
|
|
955
|
+
export declare const InputItem: any;
|
|
943
956
|
|
|
944
|
-
export declare const InputNumberItem:
|
|
957
|
+
export declare const InputNumberItem: any;
|
|
945
958
|
|
|
946
959
|
/**
|
|
947
960
|
* 安装函数
|
|
@@ -1103,7 +1116,7 @@ export declare const isSymbol: (val: unknown) => val is symbol;
|
|
|
1103
1116
|
*/
|
|
1104
1117
|
export declare function isWindow(obj: any): boolean;
|
|
1105
1118
|
|
|
1106
|
-
export declare const Item:
|
|
1119
|
+
export declare const Item: any;
|
|
1107
1120
|
|
|
1108
1121
|
/**
|
|
1109
1122
|
* 获取对应元素的在数组中最后一个匹配的索引
|
|
@@ -1121,7 +1134,7 @@ export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
|
1121
1134
|
*/
|
|
1122
1135
|
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
1123
1136
|
|
|
1124
|
-
export declare const Mapping:
|
|
1137
|
+
export declare const Mapping: any;
|
|
1125
1138
|
|
|
1126
1139
|
/**
|
|
1127
1140
|
* 匹配条件
|
|
@@ -1142,9 +1155,9 @@ export declare interface Matched {
|
|
|
1142
1155
|
*/
|
|
1143
1156
|
export declare function merge(first: any[], second: any[]): any[];
|
|
1144
1157
|
|
|
1145
|
-
export declare const MoneyItem:
|
|
1158
|
+
export declare const MoneyItem: any;
|
|
1146
1159
|
|
|
1147
|
-
export declare const MoreButton:
|
|
1160
|
+
export declare const MoreButton: any;
|
|
1148
1161
|
|
|
1149
1162
|
export { multiply }
|
|
1150
1163
|
|
|
@@ -1166,7 +1179,14 @@ export { numberFormat }
|
|
|
1166
1179
|
*/
|
|
1167
1180
|
export declare const objectToString: () => string;
|
|
1168
1181
|
|
|
1169
|
-
|
|
1182
|
+
/**
|
|
1183
|
+
* 只执行一次函数
|
|
1184
|
+
* @param func
|
|
1185
|
+
* @returns
|
|
1186
|
+
*/
|
|
1187
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
1188
|
+
|
|
1189
|
+
export declare const Overlay: any;
|
|
1170
1190
|
|
|
1171
1191
|
/**
|
|
1172
1192
|
* padding
|
|
@@ -1178,14 +1198,14 @@ export declare interface Padding {
|
|
|
1178
1198
|
bottom: number | null;
|
|
1179
1199
|
}
|
|
1180
1200
|
|
|
1181
|
-
export declare const Page:
|
|
1201
|
+
export declare const Page: any;
|
|
1182
1202
|
|
|
1183
1203
|
/**
|
|
1184
1204
|
* page layout
|
|
1185
1205
|
*/
|
|
1186
1206
|
export declare interface PageLayout {
|
|
1187
1207
|
width: number | string;
|
|
1188
|
-
height
|
|
1208
|
+
height: number | string;
|
|
1189
1209
|
headerHeight: number | string;
|
|
1190
1210
|
footerHeight: number | string;
|
|
1191
1211
|
headerPadding?: Padding;
|
|
@@ -1198,10 +1218,14 @@ export declare interface PageState {
|
|
|
1198
1218
|
height: number;
|
|
1199
1219
|
headerHeight: number;
|
|
1200
1220
|
headerPadding: Padding;
|
|
1221
|
+
headerAllHeight?: number;
|
|
1201
1222
|
footerHeight: number;
|
|
1202
1223
|
footerPadding: Padding;
|
|
1224
|
+
footerAllHeight?: number;
|
|
1203
1225
|
contentHeight: number | string | null;
|
|
1204
1226
|
contentPadding: Padding;
|
|
1227
|
+
contentInnerHeight?: number;
|
|
1228
|
+
contentInnerWidth?: number;
|
|
1205
1229
|
safeAreaTop: number;
|
|
1206
1230
|
safeAreaBottom: number;
|
|
1207
1231
|
safeAreaLeft: number;
|
|
@@ -1210,7 +1234,7 @@ export declare interface PageState {
|
|
|
1210
1234
|
footerMounted?: boolean;
|
|
1211
1235
|
}
|
|
1212
1236
|
|
|
1213
|
-
export declare const Picker:
|
|
1237
|
+
export declare const Picker: any;
|
|
1214
1238
|
|
|
1215
1239
|
/**
|
|
1216
1240
|
* 坐标
|
|
@@ -1220,9 +1244,9 @@ export declare interface Point {
|
|
|
1220
1244
|
y: number;
|
|
1221
1245
|
}
|
|
1222
1246
|
|
|
1223
|
-
export declare const Popup:
|
|
1247
|
+
export declare const Popup: any;
|
|
1224
1248
|
|
|
1225
|
-
export declare const Price:
|
|
1249
|
+
export declare const Price: any;
|
|
1226
1250
|
|
|
1227
1251
|
/**
|
|
1228
1252
|
* 优先策略
|
|
@@ -1241,14 +1265,11 @@ export declare enum PriorityPolicy {
|
|
|
1241
1265
|
*/
|
|
1242
1266
|
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
1243
1267
|
|
|
1244
|
-
export declare const RadioItem:
|
|
1268
|
+
export declare const RadioItem: any;
|
|
1245
1269
|
|
|
1246
|
-
/**
|
|
1247
|
-
* 动画
|
|
1248
|
-
*/
|
|
1249
1270
|
export declare const raf: any;
|
|
1250
1271
|
|
|
1251
|
-
export declare const RateItem:
|
|
1272
|
+
export declare const RateItem: any;
|
|
1252
1273
|
|
|
1253
1274
|
/**
|
|
1254
1275
|
* 只读属性
|
|
@@ -1256,17 +1277,7 @@ export declare const RateItem: DefineComponent<unknown, object, {}, ComputedOpti
|
|
|
1256
1277
|
*/
|
|
1257
1278
|
export declare function readonlyProperty(source: Ref): Ref;
|
|
1258
1279
|
|
|
1259
|
-
/**
|
|
1260
|
-
* Rect类型
|
|
1261
|
-
*/
|
|
1262
1280
|
declare interface Rect {
|
|
1263
|
-
left: number;
|
|
1264
|
-
top: number;
|
|
1265
|
-
right: number;
|
|
1266
|
-
bottom: number;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
declare interface Rect_2 {
|
|
1270
1281
|
top: number;
|
|
1271
1282
|
left: number;
|
|
1272
1283
|
right: number;
|
|
@@ -1285,7 +1296,7 @@ export declare type Result = Promise<any> | any;
|
|
|
1285
1296
|
*/
|
|
1286
1297
|
export declare type Results = Result[];
|
|
1287
1298
|
|
|
1288
|
-
export declare const RowItem:
|
|
1299
|
+
export declare const RowItem: any;
|
|
1289
1300
|
|
|
1290
1301
|
/**
|
|
1291
1302
|
* 安全区域
|
|
@@ -1297,14 +1308,7 @@ export declare interface SafeAreaInset {
|
|
|
1297
1308
|
bottom: number | string;
|
|
1298
1309
|
}
|
|
1299
1310
|
|
|
1300
|
-
|
|
1301
|
-
* scope getter
|
|
1302
|
-
*/
|
|
1303
|
-
declare interface ScopeGetter {
|
|
1304
|
-
(proxy: ComponentPublicInstance): string | null;
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
export declare const SelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1311
|
+
export declare const SelectItem: any;
|
|
1308
1312
|
|
|
1309
1313
|
/**
|
|
1310
1314
|
* 设置公共校验检查事件
|
|
@@ -1336,30 +1340,44 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
|
1336
1340
|
*/
|
|
1337
1341
|
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
1338
1342
|
|
|
1339
|
-
|
|
1343
|
+
/**
|
|
1344
|
+
* size
|
|
1345
|
+
*/
|
|
1346
|
+
declare interface Size {
|
|
1347
|
+
width: number;
|
|
1348
|
+
height: number;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
export declare const SlotItem: any;
|
|
1352
|
+
|
|
1353
|
+
export declare const sticky: any;
|
|
1354
|
+
|
|
1355
|
+
export declare const SwitchItem: any;
|
|
1340
1356
|
|
|
1341
|
-
export declare const
|
|
1357
|
+
export declare const TableItem: any;
|
|
1342
1358
|
|
|
1343
|
-
export declare const
|
|
1359
|
+
export declare const TableMappingColumn: any;
|
|
1344
1360
|
|
|
1345
|
-
export declare const
|
|
1361
|
+
export declare const TableRadioColumn: any;
|
|
1346
1362
|
|
|
1347
|
-
declare const
|
|
1363
|
+
export declare const TableSetting: any;
|
|
1364
|
+
|
|
1365
|
+
declare const Text_2: any;
|
|
1348
1366
|
export { Text_2 as Text }
|
|
1349
1367
|
|
|
1350
1368
|
/**
|
|
1351
|
-
* 节流函数
|
|
1369
|
+
* 节流函数(执行时间范围内的第一次)
|
|
1352
1370
|
* @param func 函数
|
|
1353
1371
|
* @param delay 延迟执行毫秒数
|
|
1354
1372
|
* @returns
|
|
1355
1373
|
*/
|
|
1356
1374
|
export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
|
|
1357
1375
|
|
|
1358
|
-
export declare const TimeItem:
|
|
1376
|
+
export declare const TimeItem: any;
|
|
1359
1377
|
|
|
1360
|
-
export declare const TimeSelectItem:
|
|
1378
|
+
export declare const TimeSelectItem: any;
|
|
1361
1379
|
|
|
1362
|
-
export declare const Toast:
|
|
1380
|
+
export declare const Toast: any;
|
|
1363
1381
|
|
|
1364
1382
|
/**
|
|
1365
1383
|
* 转换为boolean值
|
|
@@ -1397,7 +1415,7 @@ export declare const toPxDesc: (value: string | number, size?: number) => string
|
|
|
1397
1415
|
|
|
1398
1416
|
export declare const toTypeString: (value: unknown) => string;
|
|
1399
1417
|
|
|
1400
|
-
export declare const Tour:
|
|
1418
|
+
export declare const Tour: any;
|
|
1401
1419
|
|
|
1402
1420
|
/**
|
|
1403
1421
|
* to model value
|
|
@@ -1407,6 +1425,8 @@ export declare const Tour: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
1407
1425
|
*/
|
|
1408
1426
|
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
1409
1427
|
|
|
1428
|
+
export declare const TreeSelectItem: any;
|
|
1429
|
+
|
|
1410
1430
|
/**
|
|
1411
1431
|
* 判断类型
|
|
1412
1432
|
* @param obj
|
|
@@ -1460,6 +1480,13 @@ export declare function useDomain(proxy?: ComponentPublicInstance | null): Domai
|
|
|
1460
1480
|
*/
|
|
1461
1481
|
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
1462
1482
|
|
|
1483
|
+
/**
|
|
1484
|
+
* 获取内部可用size
|
|
1485
|
+
* @param elementRef
|
|
1486
|
+
* @returns
|
|
1487
|
+
*/
|
|
1488
|
+
export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
|
|
1489
|
+
|
|
1463
1490
|
/**
|
|
1464
1491
|
* 获取page state
|
|
1465
1492
|
* @param domain
|
|
@@ -1474,23 +1501,30 @@ export declare function usePageState(domain: Domain): PageState | null;
|
|
|
1474
1501
|
*/
|
|
1475
1502
|
export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
|
|
1476
1503
|
|
|
1477
|
-
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) =>
|
|
1504
|
+
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* 获取size
|
|
1508
|
+
* @param elementRef
|
|
1509
|
+
* @returns
|
|
1510
|
+
*/
|
|
1511
|
+
export declare function useSize(elementRef: Element | Ref<Element>): Size;
|
|
1478
1512
|
|
|
1479
1513
|
export declare function useTouch(): {
|
|
1480
1514
|
move: EventListener;
|
|
1481
1515
|
start: EventListener;
|
|
1482
1516
|
reset: () => void;
|
|
1483
|
-
startX:
|
|
1484
|
-
startY:
|
|
1485
|
-
startTime:
|
|
1486
|
-
duration:
|
|
1487
|
-
moveX:
|
|
1488
|
-
moveY:
|
|
1489
|
-
deltaX:
|
|
1490
|
-
deltaY:
|
|
1491
|
-
offsetX:
|
|
1492
|
-
offsetY:
|
|
1493
|
-
direction:
|
|
1517
|
+
startX: any;
|
|
1518
|
+
startY: any;
|
|
1519
|
+
startTime: any;
|
|
1520
|
+
duration: any;
|
|
1521
|
+
moveX: any;
|
|
1522
|
+
moveY: any;
|
|
1523
|
+
deltaX: any;
|
|
1524
|
+
deltaY: any;
|
|
1525
|
+
offsetX: any;
|
|
1526
|
+
offsetY: any;
|
|
1527
|
+
direction: any;
|
|
1494
1528
|
isVertical: () => boolean;
|
|
1495
1529
|
isHorizontal: () => boolean;
|
|
1496
1530
|
};
|