@fox-js/foxui-pc 4.0.1-8 → 4.0.1-81
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 +8662 -4004
- package/dist/index.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +516 -278
- package/package.json +16 -8
package/dist/types/index.d.ts
CHANGED
|
@@ -1,137 +1,117 @@
|
|
|
1
|
-
import type { AllowedComponentProps } from 'vue';
|
|
2
1
|
import { App } from 'vue';
|
|
3
|
-
import { clone } from '@fox-js/fox';
|
|
4
2
|
import { compareTo } from '@fox-js/big-decimal';
|
|
5
|
-
import type { ComponentCustomProps } from 'vue';
|
|
6
3
|
import { ComponentInternalInstance } from 'vue';
|
|
7
|
-
import type { ComponentOptionsMixin } from 'vue';
|
|
8
4
|
import { ComponentPublicInstance } from 'vue';
|
|
9
|
-
import type { ComputedOptions } from 'vue';
|
|
10
|
-
import type { DefineComponent } from 'vue';
|
|
11
5
|
import { divide } from '@fox-js/big-decimal';
|
|
12
6
|
import { ExecuteValidator } from '@fox-js/validator';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import { ElConfigProvider as FoxConfigProvider } from '
|
|
42
|
-
import { ElContainer as FoxContainer } from '
|
|
43
|
-
import { ElDatePicker as FoxDatePicker } from '
|
|
44
|
-
import { ElDescriptions as FoxDescriptions } from '
|
|
45
|
-
import { ElDescriptionsItem as FoxDescriptionsItem } from '
|
|
46
|
-
import { ElDialog as FoxDialog } from '
|
|
47
|
-
import { ElDivider as FoxDivider } from '
|
|
48
|
-
import { ElDrawer as FoxDrawer } from '
|
|
49
|
-
import { ElDropdown as FoxDropdown } from '
|
|
50
|
-
import { ElDropdownItem as FoxDropdownItem } from '
|
|
51
|
-
import { ElDropdownMenu as FoxDropdownMenu } from '
|
|
52
|
-
import { ElEmpty as FoxEmpty } from '
|
|
53
|
-
import { ElFooter as FoxFooter } from '
|
|
54
|
-
import { ElForm as FoxForm } from '
|
|
55
|
-
import { ElFormItem as FoxFormItem } from '
|
|
56
|
-
import { ElHeader as FoxHeader } from '
|
|
57
|
-
import { ElIcon as FoxIcon } from '
|
|
58
|
-
import { ElImage as FoxImage } from '
|
|
59
|
-
import { ElImageViewer as FoxImageViewer } from '
|
|
60
|
-
import { ElInput as FoxInput } from '
|
|
61
|
-
import { ElInputNumber as FoxInputNumber } from '
|
|
62
|
-
import { ElLink as FoxLink } from '
|
|
63
|
-
import { ElMain as FoxMain } from '
|
|
64
|
-
import { ElMenu as FoxMenu } from '
|
|
65
|
-
import { ElMenuItem as FoxMenuItem } from '
|
|
66
|
-
import { ElMenuItemGroup as FoxMenuItemGroup } from '
|
|
67
|
-
import { ElOption as FoxOption } from '
|
|
68
|
-
import { ElOptionGroup as FoxOptionGroup } from '
|
|
69
|
-
import { ElPageHeader as FoxPageHeader } from '
|
|
70
|
-
import { ElPagination as FoxPagination } from '
|
|
71
|
-
import { ElPopconfirm as FoxPopconfirm } from '
|
|
72
|
-
import { ElPopover as FoxPopover } from '
|
|
73
|
-
import { ElPopper as FoxPopper } from '
|
|
74
|
-
import { ElProgress as FoxProgress } from '
|
|
75
|
-
import { ElRadio as FoxRadio } from '
|
|
76
|
-
import { ElRadioButton as FoxRadioButton } from '
|
|
77
|
-
import { ElRadioGroup as FoxRadioGroup } from '
|
|
78
|
-
import { ElRate as FoxRate } from '
|
|
79
|
-
import { ElResult as FoxResult } from '
|
|
80
|
-
import { ElRow as FoxRow } from '
|
|
81
|
-
import { ElScrollbar as FoxScrollbar } from '
|
|
82
|
-
import { ElSelect as FoxSelect } from '
|
|
83
|
-
import { ElSelectV2 as FoxSelectV2 } from '
|
|
84
|
-
import { ElSkeleton as FoxSkeleton } from '
|
|
85
|
-
import { ElSkeletonItem as FoxSkeletonItem } from '
|
|
86
|
-
import { ElSlider as FoxSlider } from '
|
|
87
|
-
import { ElSpace as FoxSpace } from '
|
|
88
|
-
import { ElStep as FoxStep } from '
|
|
89
|
-
import { ElSteps as FoxSteps } from '
|
|
90
|
-
import { ElSubMenu as FoxSubMenu } from '
|
|
91
|
-
import { ElSwitch as FoxSwitch } from '
|
|
92
|
-
import { ElTable as FoxTable } from '
|
|
93
|
-
import { ElTableColumn as FoxTableColumn } from '
|
|
94
|
-
import { ElTableV2 as FoxTableV2 } from '
|
|
95
|
-
import { ElTabPane as FoxTabPane } from '
|
|
96
|
-
import { ElTabs as FoxTabs } from '
|
|
97
|
-
import { ElTag as FoxTag } from '
|
|
98
|
-
import { ElTimeline as FoxTimeline } from '
|
|
99
|
-
import { ElTimelineItem as FoxTimelineItem } from '
|
|
100
|
-
import { ElTimePicker as FoxTimePicker } from '
|
|
101
|
-
import { ElTimeSelect as FoxTimeSelect } from '
|
|
102
|
-
import { ElTooltip as FoxTooltip } from '
|
|
103
|
-
import { ElTransfer as FoxTransfer } from '
|
|
104
|
-
import { ElTree as FoxTree } from '
|
|
105
|
-
import { ElTreeSelect as FoxTreeSelect } from '
|
|
106
|
-
import { ElTreeV2 as FoxTreeV2 } from '
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import { isEqual } from '@fox-js/fox';
|
|
111
|
-
import { isESModule } from '@fox-js/fox';
|
|
112
|
-
import { isFunction } from '@fox-js/fox';
|
|
113
|
-
import { isMap } from '@fox-js/fox';
|
|
114
|
-
import { isObject } from '@fox-js/fox';
|
|
115
|
-
import { isPlainObject } from '@fox-js/fox';
|
|
116
|
-
import { isPromise } from '@fox-js/fox';
|
|
117
|
-
import { isSet } from '@fox-js/fox';
|
|
118
|
-
import { isString } from '@fox-js/fox';
|
|
119
|
-
import { isSymbol } from '@fox-js/fox';
|
|
120
|
-
import type { MethodOptions } from 'vue';
|
|
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';
|
|
121
104
|
import { multiply } from '@fox-js/big-decimal';
|
|
122
105
|
import { negate } from '@fox-js/big-decimal';
|
|
123
106
|
import { numberFormat } from '@fox-js/big-decimal';
|
|
124
107
|
import { Ref } from 'vue';
|
|
125
108
|
import { Rule } from '@fox-js/validator';
|
|
126
|
-
import {
|
|
127
|
-
import { toNumber } from '@fox-js/fox';
|
|
128
|
-
import { toTypeString } from '@fox-js/fox';
|
|
109
|
+
import { ScopeGetter } from './api';
|
|
129
110
|
import { unNumberFormat } from '@fox-js/big-decimal';
|
|
130
111
|
import { UnwrapNestedRefs } from 'vue';
|
|
131
112
|
import { UnwrapRef } from 'vue';
|
|
132
113
|
import { ValidateMessages } from '@fox-js/validator';
|
|
133
114
|
import { ValidateResult } from '@fox-js/validator';
|
|
134
|
-
import type { VNodeProps } from 'vue';
|
|
135
115
|
|
|
136
116
|
/**
|
|
137
117
|
* 是否接受value过滤器
|
|
@@ -140,7 +120,7 @@ export declare interface AcceptFilter {
|
|
|
140
120
|
(value: any): boolean;
|
|
141
121
|
}
|
|
142
122
|
|
|
143
|
-
export declare const AutocompleteItem:
|
|
123
|
+
export declare const AutocompleteItem: any;
|
|
144
124
|
|
|
145
125
|
/**
|
|
146
126
|
* 广播类
|
|
@@ -219,20 +199,30 @@ export declare interface BroadcastCallback {
|
|
|
219
199
|
|
|
220
200
|
export declare const BroadcastKey: unique symbol;
|
|
221
201
|
|
|
222
|
-
export declare
|
|
202
|
+
export declare function cancelRaf(id: number): void;
|
|
223
203
|
|
|
224
|
-
export declare const
|
|
204
|
+
export declare const CascaderItem: any;
|
|
205
|
+
|
|
206
|
+
export declare const CheckboxItem: any;
|
|
225
207
|
|
|
226
208
|
/**
|
|
227
209
|
* 清理非数字
|
|
228
210
|
*/
|
|
229
211
|
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
230
212
|
|
|
231
|
-
|
|
213
|
+
/**
|
|
214
|
+
* 克隆对象
|
|
215
|
+
* @param target
|
|
216
|
+
* @param source
|
|
217
|
+
* @param plain
|
|
218
|
+
*
|
|
219
|
+
* @returns
|
|
220
|
+
*/
|
|
221
|
+
export declare function clone(target: any, source: any, plain?: boolean): any;
|
|
232
222
|
|
|
233
223
|
export { compareTo }
|
|
234
224
|
|
|
235
|
-
export declare const Content:
|
|
225
|
+
export declare const Content: any;
|
|
236
226
|
|
|
237
227
|
/**
|
|
238
228
|
* 创建broadcast
|
|
@@ -259,15 +249,125 @@ export declare function createValidateSchema(proxy: FoxComponentPublicInstance,
|
|
|
259
249
|
*/
|
|
260
250
|
export declare const DataItemsKey: unique symbol;
|
|
261
251
|
|
|
262
|
-
export declare const DateItem:
|
|
252
|
+
export declare const DateItem: any;
|
|
253
|
+
|
|
254
|
+
export declare const DateUtils: {
|
|
255
|
+
/**
|
|
256
|
+
* 格式化
|
|
257
|
+
* @param date
|
|
258
|
+
* @param template
|
|
259
|
+
* @returns
|
|
260
|
+
*/
|
|
261
|
+
format(date: Date, template: string): string;
|
|
262
|
+
/**
|
|
263
|
+
* 解析
|
|
264
|
+
* @param str
|
|
265
|
+
* @param template
|
|
266
|
+
*/
|
|
267
|
+
parser(str: string, template: string): Date;
|
|
268
|
+
/**
|
|
269
|
+
* 是否为闫年
|
|
270
|
+
* @return {Boolse} true|false
|
|
271
|
+
*/
|
|
272
|
+
isLeapYear(y: number): boolean;
|
|
273
|
+
/**
|
|
274
|
+
* 返回星期数
|
|
275
|
+
* @return {String}
|
|
276
|
+
*/
|
|
277
|
+
getWhatDay(year: number, month: number, day: number): string;
|
|
278
|
+
/**
|
|
279
|
+
* 返回星期数
|
|
280
|
+
* @return {Number}
|
|
281
|
+
*/
|
|
282
|
+
getMonthPreDay(year: number, month: number): number;
|
|
283
|
+
/**
|
|
284
|
+
* 返回月份天数
|
|
285
|
+
* @return {Number}
|
|
286
|
+
*/
|
|
287
|
+
getMonthDays(year: string, month: string): number;
|
|
288
|
+
/**
|
|
289
|
+
* 补齐数字位数
|
|
290
|
+
* @return {string}
|
|
291
|
+
*/
|
|
292
|
+
getNumTwoBit(n: number): string;
|
|
293
|
+
/**
|
|
294
|
+
* 日期对象转成字符串
|
|
295
|
+
* @return {string}
|
|
296
|
+
*/
|
|
297
|
+
date2Str: (date: Date, split?: string) => string;
|
|
298
|
+
/**
|
|
299
|
+
* 返回日期格式字符串
|
|
300
|
+
* @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
301
|
+
* @param {Date} 起点日期
|
|
302
|
+
* @return {string} '2014-12-31'
|
|
303
|
+
*/
|
|
304
|
+
getDay(i: number, startDate?: Date): string;
|
|
305
|
+
/**
|
|
306
|
+
* 时间比较
|
|
307
|
+
* @return
|
|
308
|
+
*/
|
|
309
|
+
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
310
|
+
/**
|
|
311
|
+
* 时间是否相等
|
|
312
|
+
* @return
|
|
313
|
+
*/
|
|
314
|
+
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
315
|
+
/**
|
|
316
|
+
* get month week
|
|
317
|
+
* @param year
|
|
318
|
+
* @param month
|
|
319
|
+
* @param date
|
|
320
|
+
* @param firstDayOfWeek
|
|
321
|
+
* @returns
|
|
322
|
+
*/
|
|
323
|
+
getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
324
|
+
/**
|
|
325
|
+
* get year week
|
|
326
|
+
* @param year
|
|
327
|
+
* @param month
|
|
328
|
+
* @param date
|
|
329
|
+
* @param firstDayOfWeek
|
|
330
|
+
* @returns
|
|
331
|
+
*/
|
|
332
|
+
getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
333
|
+
/**
|
|
334
|
+
* get week date
|
|
335
|
+
*/
|
|
336
|
+
getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
|
|
337
|
+
/**
|
|
338
|
+
* format result date
|
|
339
|
+
*/
|
|
340
|
+
formatResultDate: (date: string) => string[];
|
|
341
|
+
/**
|
|
342
|
+
* 判断日期是否在范围内
|
|
343
|
+
* @param date
|
|
344
|
+
* @param startDate
|
|
345
|
+
* @param span 允许负数
|
|
346
|
+
*/
|
|
347
|
+
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
348
|
+
/**
|
|
349
|
+
* 判断日期是否在范围内
|
|
350
|
+
* @param date
|
|
351
|
+
* @param startDate
|
|
352
|
+
* @param span
|
|
353
|
+
*/
|
|
354
|
+
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
355
|
+
};
|
|
263
356
|
|
|
264
357
|
/**
|
|
265
|
-
* 防抖函数
|
|
358
|
+
* 防抖函数(执行时间范围内的最后一次)
|
|
266
359
|
* @param func 函数
|
|
267
|
-
* @param
|
|
360
|
+
* @param delay 防止抖动毫秒数
|
|
268
361
|
* @returns
|
|
269
362
|
*/
|
|
270
|
-
export declare function debounce(func: GenericFunction,
|
|
363
|
+
export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* 防抖Ref
|
|
367
|
+
* @param value
|
|
368
|
+
* @param delay
|
|
369
|
+
*/
|
|
370
|
+
export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
|
|
271
371
|
|
|
272
372
|
/**
|
|
273
373
|
* 获取小数长度
|
|
@@ -286,6 +386,15 @@ export default _default;
|
|
|
286
386
|
*/
|
|
287
387
|
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
|
|
288
388
|
|
|
389
|
+
/**
|
|
390
|
+
* 安装config domain
|
|
391
|
+
* @param name 名称
|
|
392
|
+
* @param props 属性
|
|
393
|
+
* @param ignores 忽略的属性
|
|
394
|
+
* @returns
|
|
395
|
+
*/
|
|
396
|
+
export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
|
|
397
|
+
|
|
289
398
|
/**
|
|
290
399
|
* 定义domain data item
|
|
291
400
|
* @returns
|
|
@@ -340,7 +449,7 @@ export declare interface Descriptor {
|
|
|
340
449
|
validateResetEvents?: string[];
|
|
341
450
|
}
|
|
342
451
|
|
|
343
|
-
export declare const DialogItem:
|
|
452
|
+
export declare const DialogItem: any;
|
|
344
453
|
|
|
345
454
|
/**
|
|
346
455
|
* 禁用属性
|
|
@@ -459,6 +568,8 @@ export declare interface DomainItem {
|
|
|
459
568
|
*/
|
|
460
569
|
export declare const DomainKey: unique symbol;
|
|
461
570
|
|
|
571
|
+
export declare const DomainProvider: any;
|
|
572
|
+
|
|
462
573
|
/**
|
|
463
574
|
* event listener
|
|
464
575
|
*/
|
|
@@ -474,13 +585,18 @@ declare interface EventListener_2 {
|
|
|
474
585
|
*/
|
|
475
586
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
476
587
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
588
|
+
/**
|
|
589
|
+
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
590
|
+
*
|
|
591
|
+
* @returns
|
|
592
|
+
*/
|
|
593
|
+
export declare function extend(...args: any[]): any;
|
|
480
594
|
|
|
481
595
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
482
596
|
|
|
483
|
-
export declare const
|
|
597
|
+
export declare const FloatingWindow: any;
|
|
598
|
+
|
|
599
|
+
export declare const FooterBar: any;
|
|
484
600
|
|
|
485
601
|
export { FoxAffix }
|
|
486
602
|
|
|
@@ -536,8 +652,6 @@ export { FoxCollapseTransition }
|
|
|
536
652
|
|
|
537
653
|
export { FoxColorPicker }
|
|
538
654
|
|
|
539
|
-
declare type FoxComponentPublicInstance = any;
|
|
540
|
-
|
|
541
655
|
export { FoxConfigProvider }
|
|
542
656
|
|
|
543
657
|
export { FoxContainer }
|
|
@@ -670,78 +784,6 @@ export { FoxTreeSelect }
|
|
|
670
784
|
|
|
671
785
|
export { FoxTreeV2 }
|
|
672
786
|
|
|
673
|
-
/**
|
|
674
|
-
* Fox UI
|
|
675
|
-
*/
|
|
676
|
-
declare interface FoxUI {
|
|
677
|
-
/**
|
|
678
|
-
* 版本号
|
|
679
|
-
*/
|
|
680
|
-
version: string;
|
|
681
|
-
/**
|
|
682
|
-
* 安装
|
|
683
|
-
* @param app
|
|
684
|
-
* @param options
|
|
685
|
-
*/
|
|
686
|
-
install(app: App, options: FoxUIOptions): any;
|
|
687
|
-
/**
|
|
688
|
-
* 初始化page Layout
|
|
689
|
-
*
|
|
690
|
-
* @param options
|
|
691
|
-
* @param rootDomain
|
|
692
|
-
*/
|
|
693
|
-
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
694
|
-
/**
|
|
695
|
-
* 设置scope getter
|
|
696
|
-
* @param getter
|
|
697
|
-
*/
|
|
698
|
-
setScopeGetter(getter: ScopeGetter): void;
|
|
699
|
-
/**
|
|
700
|
-
* 设置API
|
|
701
|
-
* @param name
|
|
702
|
-
* @param func
|
|
703
|
-
* @param scope
|
|
704
|
-
*/
|
|
705
|
-
setAPI(name: string, func: any, scope?: string): void;
|
|
706
|
-
/**
|
|
707
|
-
* 获取API
|
|
708
|
-
* @param proxy
|
|
709
|
-
* @param name
|
|
710
|
-
* @param scope
|
|
711
|
-
*/
|
|
712
|
-
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
713
|
-
/**
|
|
714
|
-
* 批量增加api
|
|
715
|
-
* @param apis
|
|
716
|
-
* @param scope
|
|
717
|
-
*/
|
|
718
|
-
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
719
|
-
/**
|
|
720
|
-
* 清空scope apis
|
|
721
|
-
* @param scope
|
|
722
|
-
*/
|
|
723
|
-
clearScopeAPI(scope: string): void;
|
|
724
|
-
/**
|
|
725
|
-
* 获取root domain
|
|
726
|
-
*/
|
|
727
|
-
getRootDomain(): Domain;
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
/**
|
|
731
|
-
* UI Options
|
|
732
|
-
*/
|
|
733
|
-
declare interface FoxUIOptions {
|
|
734
|
-
headerBarHeight?: number;
|
|
735
|
-
footerBarHeight?: number;
|
|
736
|
-
safeAreaInset?: SafeAreaInset;
|
|
737
|
-
pageLayout?: PageLayout;
|
|
738
|
-
headerPadding?: Rect;
|
|
739
|
-
contentPadding?: Rect;
|
|
740
|
-
groupLayout?: GroupLayout;
|
|
741
|
-
labelWidth?: number | string;
|
|
742
|
-
[propName: string]: any;
|
|
743
|
-
}
|
|
744
|
-
|
|
745
787
|
/**
|
|
746
788
|
* Fox UI vue实例
|
|
747
789
|
*/
|
|
@@ -871,21 +913,16 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
|
|
|
871
913
|
*/
|
|
872
914
|
export declare function getRootDomain(): Domain;
|
|
873
915
|
|
|
874
|
-
export declare const Group:
|
|
916
|
+
export declare const Group: any;
|
|
875
917
|
|
|
876
918
|
/**
|
|
877
|
-
*
|
|
919
|
+
* 是否支持symbol
|
|
878
920
|
*/
|
|
879
|
-
declare
|
|
880
|
-
type: string;
|
|
881
|
-
width: number;
|
|
882
|
-
column: number;
|
|
883
|
-
gutter: number;
|
|
884
|
-
}
|
|
921
|
+
export declare const hasSymbol: boolean;
|
|
885
922
|
|
|
886
|
-
export declare const HeaderBar:
|
|
923
|
+
export declare const HeaderBar: any;
|
|
887
924
|
|
|
888
|
-
export declare const HintText:
|
|
925
|
+
export declare const HintText: any;
|
|
889
926
|
|
|
890
927
|
/**
|
|
891
928
|
* 根据包含模版,抽取属性
|
|
@@ -903,11 +940,11 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
|
|
|
903
940
|
*/
|
|
904
941
|
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
905
942
|
|
|
906
|
-
export declare const Indicator:
|
|
943
|
+
export declare const Indicator: any;
|
|
907
944
|
|
|
908
|
-
export declare const InputItem:
|
|
945
|
+
export declare const InputItem: any;
|
|
909
946
|
|
|
910
|
-
export declare const InputNumberItem:
|
|
947
|
+
export declare const InputNumberItem: any;
|
|
911
948
|
|
|
912
949
|
/**
|
|
913
950
|
* 安装函数
|
|
@@ -916,33 +953,76 @@ declare interface Installer {
|
|
|
916
953
|
(app: App, options?: any): void;
|
|
917
954
|
}
|
|
918
955
|
|
|
956
|
+
/**
|
|
957
|
+
* 安装校验规则
|
|
958
|
+
* @param proxy
|
|
959
|
+
*/
|
|
960
|
+
export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
|
|
961
|
+
|
|
919
962
|
/**
|
|
920
963
|
* 获取整数长度
|
|
921
964
|
* @param value
|
|
922
965
|
*/
|
|
923
|
-
export declare function integerLength(
|
|
966
|
+
export declare function integerLength(v: string | number): number;
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* 是否数组
|
|
970
|
+
*/
|
|
971
|
+
export declare const isArray: (arg: any) => arg is any[];
|
|
924
972
|
|
|
925
|
-
|
|
973
|
+
/**
|
|
974
|
+
* 是否为类数组
|
|
975
|
+
* @param obj
|
|
976
|
+
* @returns {boolean}
|
|
977
|
+
*/
|
|
978
|
+
export declare function isArrayLike(obj: any): boolean;
|
|
926
979
|
|
|
927
980
|
/**
|
|
928
981
|
* 是否为浏览器环境
|
|
929
982
|
*/
|
|
930
983
|
export declare const isBrowser: boolean;
|
|
931
984
|
|
|
932
|
-
|
|
985
|
+
/**
|
|
986
|
+
* 是否为Date
|
|
987
|
+
* @param val
|
|
988
|
+
* @returns
|
|
989
|
+
*/
|
|
990
|
+
export declare const isDate: (val: unknown) => val is Date;
|
|
933
991
|
|
|
934
992
|
/**
|
|
935
993
|
* 是否空字符串
|
|
936
994
|
* @param v
|
|
937
995
|
* @returns
|
|
938
996
|
*/
|
|
939
|
-
export declare const isEmptyString: (v: unknown) =>
|
|
997
|
+
export declare const isEmptyString: (v: unknown) => v is "";
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* 判断两个对象是否一致
|
|
1001
|
+
* @param x
|
|
1002
|
+
* @param y
|
|
1003
|
+
* @return
|
|
1004
|
+
*/
|
|
1005
|
+
export declare function isEqual(x: any, y: any): boolean;
|
|
940
1006
|
|
|
941
|
-
|
|
1007
|
+
/**
|
|
1008
|
+
* 是否为es module
|
|
1009
|
+
* @param obj
|
|
1010
|
+
* @returns
|
|
1011
|
+
*/
|
|
1012
|
+
export declare function isESModule(obj: any): obj is Object;
|
|
942
1013
|
|
|
943
|
-
|
|
1014
|
+
/**
|
|
1015
|
+
* 是否为函数
|
|
1016
|
+
* @param val
|
|
1017
|
+
* @returns
|
|
1018
|
+
*/
|
|
1019
|
+
export declare const isFunction: (val: unknown) => val is Function;
|
|
944
1020
|
|
|
945
|
-
|
|
1021
|
+
/**
|
|
1022
|
+
* 是否是隐藏element
|
|
1023
|
+
* @param el
|
|
1024
|
+
*/
|
|
1025
|
+
export declare function isHidden(el: any): boolean;
|
|
946
1026
|
|
|
947
1027
|
/**
|
|
948
1028
|
* 是否为内嵌页面
|
|
@@ -953,20 +1033,43 @@ export { isFunction }
|
|
|
953
1033
|
*/
|
|
954
1034
|
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
955
1035
|
|
|
956
|
-
|
|
1036
|
+
/**
|
|
1037
|
+
* 是否为Map
|
|
1038
|
+
* @param val
|
|
1039
|
+
* @returns
|
|
1040
|
+
*/
|
|
1041
|
+
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* 是否null/undefined对象
|
|
1045
|
+
*/
|
|
1046
|
+
export declare function isNil(v: unknown): v is null | undefined;
|
|
957
1047
|
|
|
958
1048
|
/**
|
|
959
1049
|
* 是否为数字字符串
|
|
960
1050
|
* @param value
|
|
961
1051
|
* @returns
|
|
962
1052
|
*/
|
|
963
|
-
export declare function isNumberString(
|
|
1053
|
+
export declare function isNumberString(v: string): v is string;
|
|
964
1054
|
|
|
965
|
-
|
|
1055
|
+
/**
|
|
1056
|
+
* 是否为object
|
|
1057
|
+
*/
|
|
1058
|
+
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
966
1059
|
|
|
967
|
-
|
|
1060
|
+
/**
|
|
1061
|
+
* 是否为plain对象
|
|
1062
|
+
* @param val
|
|
1063
|
+
* @returns
|
|
1064
|
+
*/
|
|
1065
|
+
export declare const isPlainObject: (val: unknown) => val is object;
|
|
968
1066
|
|
|
969
|
-
|
|
1067
|
+
/**
|
|
1068
|
+
* 是否为promise
|
|
1069
|
+
* @param val
|
|
1070
|
+
* @returns
|
|
1071
|
+
*/
|
|
1072
|
+
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
970
1073
|
|
|
971
1074
|
/**
|
|
972
1075
|
* 判断是否为正则表达式
|
|
@@ -975,9 +1078,19 @@ export { isPromise }
|
|
|
975
1078
|
*/
|
|
976
1079
|
export declare function isRegExp(v: unknown): v is RegExp;
|
|
977
1080
|
|
|
978
|
-
|
|
1081
|
+
/**
|
|
1082
|
+
* 是否为Set
|
|
1083
|
+
* @param val
|
|
1084
|
+
* @returns
|
|
1085
|
+
*/
|
|
1086
|
+
export declare const isSet: (val: unknown) => val is Set<any>;
|
|
979
1087
|
|
|
980
|
-
|
|
1088
|
+
/**
|
|
1089
|
+
* 是否为字符串
|
|
1090
|
+
* @param val
|
|
1091
|
+
* @returns
|
|
1092
|
+
*/
|
|
1093
|
+
export declare const isString: (val: unknown) => val is string;
|
|
981
1094
|
|
|
982
1095
|
/**
|
|
983
1096
|
* 是否子页面
|
|
@@ -985,9 +1098,20 @@ export { isString }
|
|
|
985
1098
|
*/
|
|
986
1099
|
export declare function isSubPage(domain: Domain): boolean;
|
|
987
1100
|
|
|
988
|
-
|
|
1101
|
+
/**
|
|
1102
|
+
* 是否为symbol
|
|
1103
|
+
* @param val
|
|
1104
|
+
* @returns
|
|
1105
|
+
*/
|
|
1106
|
+
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* 是否是window对象
|
|
1110
|
+
* @param obj
|
|
1111
|
+
*/
|
|
1112
|
+
export declare function isWindow(obj: any): boolean;
|
|
989
1113
|
|
|
990
|
-
export declare const Item:
|
|
1114
|
+
export declare const Item: any;
|
|
991
1115
|
|
|
992
1116
|
/**
|
|
993
1117
|
* 获取对应元素的在数组中最后一个匹配的索引
|
|
@@ -997,7 +1121,15 @@ export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
997
1121
|
*/
|
|
998
1122
|
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
999
1123
|
|
|
1000
|
-
|
|
1124
|
+
/**
|
|
1125
|
+
* 创建数组
|
|
1126
|
+
* @param arr
|
|
1127
|
+
* @param results
|
|
1128
|
+
* @return
|
|
1129
|
+
*/
|
|
1130
|
+
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
1131
|
+
|
|
1132
|
+
export declare const Mapping: any;
|
|
1001
1133
|
|
|
1002
1134
|
/**
|
|
1003
1135
|
* 匹配条件
|
|
@@ -1010,14 +1142,45 @@ export declare interface Matched {
|
|
|
1010
1142
|
level?: number;
|
|
1011
1143
|
}
|
|
1012
1144
|
|
|
1013
|
-
|
|
1145
|
+
/**
|
|
1146
|
+
* 合并数组
|
|
1147
|
+
* @param first
|
|
1148
|
+
* @param second
|
|
1149
|
+
* @return
|
|
1150
|
+
*/
|
|
1151
|
+
export declare function merge(first: any[], second: any[]): any[];
|
|
1152
|
+
|
|
1153
|
+
export declare const MoneyItem: any;
|
|
1154
|
+
|
|
1155
|
+
export declare const MoreButton: any;
|
|
1014
1156
|
|
|
1015
1157
|
export { multiply }
|
|
1016
1158
|
|
|
1017
1159
|
export { negate }
|
|
1018
1160
|
|
|
1161
|
+
/**
|
|
1162
|
+
* 下一个事件周期中执行函数
|
|
1163
|
+
* @param fn
|
|
1164
|
+
* @param args
|
|
1165
|
+
*/
|
|
1166
|
+
export declare function nextTick(fn: {
|
|
1167
|
+
(...args: any[]): void;
|
|
1168
|
+
}, ...args: any[]): void;
|
|
1169
|
+
|
|
1019
1170
|
export { numberFormat }
|
|
1020
1171
|
|
|
1172
|
+
/**
|
|
1173
|
+
* 对象类型
|
|
1174
|
+
*/
|
|
1175
|
+
export declare const objectToString: () => string;
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* 只执行一次函数
|
|
1179
|
+
* @param func
|
|
1180
|
+
* @returns
|
|
1181
|
+
*/
|
|
1182
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
1183
|
+
|
|
1021
1184
|
/**
|
|
1022
1185
|
* padding
|
|
1023
1186
|
*/
|
|
@@ -1028,7 +1191,7 @@ export declare interface Padding {
|
|
|
1028
1191
|
bottom: number | null;
|
|
1029
1192
|
}
|
|
1030
1193
|
|
|
1031
|
-
export declare const Page:
|
|
1194
|
+
export declare const Page: any;
|
|
1032
1195
|
|
|
1033
1196
|
/**
|
|
1034
1197
|
* page layout
|
|
@@ -1048,10 +1211,14 @@ export declare interface PageState {
|
|
|
1048
1211
|
height: number;
|
|
1049
1212
|
headerHeight: number;
|
|
1050
1213
|
headerPadding: Padding;
|
|
1214
|
+
headerAllHeight?: number;
|
|
1051
1215
|
footerHeight: number;
|
|
1052
1216
|
footerPadding: Padding;
|
|
1217
|
+
footerAllHeight?: number;
|
|
1053
1218
|
contentHeight: number | string | null;
|
|
1054
1219
|
contentPadding: Padding;
|
|
1220
|
+
contentInnerHeight?: number;
|
|
1221
|
+
contentInnerWidth?: number;
|
|
1055
1222
|
safeAreaTop: number;
|
|
1056
1223
|
safeAreaBottom: number;
|
|
1057
1224
|
safeAreaLeft: number;
|
|
@@ -1068,7 +1235,7 @@ export declare interface Point {
|
|
|
1068
1235
|
y: number;
|
|
1069
1236
|
}
|
|
1070
1237
|
|
|
1071
|
-
export declare const Price:
|
|
1238
|
+
export declare const Price: any;
|
|
1072
1239
|
|
|
1073
1240
|
/**
|
|
1074
1241
|
* 优先策略
|
|
@@ -1087,14 +1254,11 @@ export declare enum PriorityPolicy {
|
|
|
1087
1254
|
*/
|
|
1088
1255
|
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
1089
1256
|
|
|
1090
|
-
export declare const RadioItem:
|
|
1257
|
+
export declare const RadioItem: any;
|
|
1091
1258
|
|
|
1092
|
-
/**
|
|
1093
|
-
* 动画
|
|
1094
|
-
*/
|
|
1095
1259
|
export declare const raf: any;
|
|
1096
1260
|
|
|
1097
|
-
export declare const RateItem:
|
|
1261
|
+
export declare const RateItem: any;
|
|
1098
1262
|
|
|
1099
1263
|
/**
|
|
1100
1264
|
* 只读属性
|
|
@@ -1102,17 +1266,7 @@ export declare const RateItem: DefineComponent<unknown, object, {}, ComputedOpti
|
|
|
1102
1266
|
*/
|
|
1103
1267
|
export declare function readonlyProperty(source: Ref): Ref;
|
|
1104
1268
|
|
|
1105
|
-
/**
|
|
1106
|
-
* Rect类型
|
|
1107
|
-
*/
|
|
1108
1269
|
declare interface Rect {
|
|
1109
|
-
left: number;
|
|
1110
|
-
top: number;
|
|
1111
|
-
right: number;
|
|
1112
|
-
bottom: number;
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
declare interface Rect_2 {
|
|
1116
1270
|
top: number;
|
|
1117
1271
|
left: number;
|
|
1118
1272
|
right: number;
|
|
@@ -1131,7 +1285,9 @@ export declare type Result = Promise<any> | any;
|
|
|
1131
1285
|
*/
|
|
1132
1286
|
export declare type Results = Result[];
|
|
1133
1287
|
|
|
1134
|
-
export declare const
|
|
1288
|
+
export declare const RollingProvider: any;
|
|
1289
|
+
|
|
1290
|
+
export declare const RowItem: any;
|
|
1135
1291
|
|
|
1136
1292
|
/**
|
|
1137
1293
|
* 安全区域
|
|
@@ -1143,14 +1299,7 @@ export declare interface SafeAreaInset {
|
|
|
1143
1299
|
bottom: number | string;
|
|
1144
1300
|
}
|
|
1145
1301
|
|
|
1146
|
-
|
|
1147
|
-
* scope getter
|
|
1148
|
-
*/
|
|
1149
|
-
declare interface ScopeGetter {
|
|
1150
|
-
(proxy: ComponentPublicInstance): string | null;
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
export declare const SelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1302
|
+
export declare const SelectItem: any;
|
|
1154
1303
|
|
|
1155
1304
|
/**
|
|
1156
1305
|
* 设置公共校验检查事件
|
|
@@ -1182,29 +1331,54 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
|
1182
1331
|
*/
|
|
1183
1332
|
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
1184
1333
|
|
|
1185
|
-
|
|
1334
|
+
/**
|
|
1335
|
+
* size
|
|
1336
|
+
*/
|
|
1337
|
+
declare interface Size {
|
|
1338
|
+
width: number;
|
|
1339
|
+
height: number;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
export declare const SlotItem: any;
|
|
1343
|
+
|
|
1344
|
+
export declare const SwitchItem: any;
|
|
1186
1345
|
|
|
1187
|
-
export declare const
|
|
1346
|
+
export declare const TableItem: any;
|
|
1188
1347
|
|
|
1189
|
-
export declare const
|
|
1348
|
+
export declare const TableMappingColumn: any;
|
|
1190
1349
|
|
|
1191
|
-
export declare const
|
|
1350
|
+
export declare const TableRadioColumn: any;
|
|
1351
|
+
|
|
1352
|
+
export declare const TableSetting: any;
|
|
1353
|
+
|
|
1354
|
+
declare const Text_2: any;
|
|
1355
|
+
export { Text_2 as Text }
|
|
1192
1356
|
|
|
1193
1357
|
/**
|
|
1194
|
-
* 节流函数
|
|
1358
|
+
* 节流函数(执行时间范围内的第一次)
|
|
1195
1359
|
* @param func 函数
|
|
1196
|
-
* @param
|
|
1360
|
+
* @param delay 延迟执行毫秒数
|
|
1197
1361
|
* @returns
|
|
1198
1362
|
*/
|
|
1199
|
-
export declare function throttle(func: GenericFunction,
|
|
1363
|
+
export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
|
|
1200
1364
|
|
|
1201
|
-
export declare const TimeItem:
|
|
1365
|
+
export declare const TimeItem: any;
|
|
1202
1366
|
|
|
1203
|
-
export declare const TimeSelectItem:
|
|
1367
|
+
export declare const TimeSelectItem: any;
|
|
1204
1368
|
|
|
1205
|
-
|
|
1369
|
+
/**
|
|
1370
|
+
* 转换为boolean值
|
|
1371
|
+
* @param val
|
|
1372
|
+
* @returns
|
|
1373
|
+
*/
|
|
1374
|
+
export declare function toBoolean(val: unknown): boolean;
|
|
1206
1375
|
|
|
1207
|
-
|
|
1376
|
+
/**
|
|
1377
|
+
* 转换为number值
|
|
1378
|
+
* @param val
|
|
1379
|
+
* @returns
|
|
1380
|
+
*/
|
|
1381
|
+
export declare function toNumber(val: unknown): number;
|
|
1208
1382
|
|
|
1209
1383
|
/**
|
|
1210
1384
|
* 转换为number rect
|
|
@@ -1226,7 +1400,9 @@ export declare function toPx(value: number | string, size?: number): number;
|
|
|
1226
1400
|
*/
|
|
1227
1401
|
export declare const toPxDesc: (value: string | number, size?: number) => string;
|
|
1228
1402
|
|
|
1229
|
-
export
|
|
1403
|
+
export declare const toTypeString: (value: unknown) => string;
|
|
1404
|
+
|
|
1405
|
+
export declare const Tour: any;
|
|
1230
1406
|
|
|
1231
1407
|
/**
|
|
1232
1408
|
* to model value
|
|
@@ -1236,6 +1412,33 @@ export { toTypeString }
|
|
|
1236
1412
|
*/
|
|
1237
1413
|
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
1238
1414
|
|
|
1415
|
+
export declare const TreeSelectItem: any;
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* 尝试执行多次函数
|
|
1419
|
+
* @param func 执行函数
|
|
1420
|
+
* @param milliseconds 执行间隔
|
|
1421
|
+
* @param maxLimit 最大尝试次数
|
|
1422
|
+
* @param step 间隔增加步长
|
|
1423
|
+
* @param immediately 是否立刻执行
|
|
1424
|
+
*/
|
|
1425
|
+
export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean): void;
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* 尝试多次函数
|
|
1429
|
+
* 返回true,代表执行完成,不在需要重试
|
|
1430
|
+
*/
|
|
1431
|
+
export declare interface TryTimesFunction {
|
|
1432
|
+
(): boolean;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* 判断类型
|
|
1437
|
+
* @param obj
|
|
1438
|
+
* @returns any
|
|
1439
|
+
*/
|
|
1440
|
+
export declare function typeOf(obj: any): string;
|
|
1441
|
+
|
|
1239
1442
|
export declare class UniqueID {
|
|
1240
1443
|
/**
|
|
1241
1444
|
* seed id
|
|
@@ -1274,7 +1477,7 @@ export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null):
|
|
|
1274
1477
|
* 获取当前domain
|
|
1275
1478
|
* @returns
|
|
1276
1479
|
*/
|
|
1277
|
-
export declare function useDomain(
|
|
1480
|
+
export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
|
|
1278
1481
|
|
|
1279
1482
|
/**
|
|
1280
1483
|
* use expose
|
|
@@ -1282,6 +1485,13 @@ export declare function useDomain(instance?: ComponentInternalInstance | null):
|
|
|
1282
1485
|
*/
|
|
1283
1486
|
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
1284
1487
|
|
|
1488
|
+
/**
|
|
1489
|
+
* 获取内部可用size
|
|
1490
|
+
* @param elementRef
|
|
1491
|
+
* @returns
|
|
1492
|
+
*/
|
|
1493
|
+
export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
|
|
1494
|
+
|
|
1285
1495
|
/**
|
|
1286
1496
|
* 获取page state
|
|
1287
1497
|
* @param domain
|
|
@@ -1296,14 +1506,42 @@ export declare function usePageState(domain: Domain): PageState | null;
|
|
|
1296
1506
|
*/
|
|
1297
1507
|
export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
|
|
1298
1508
|
|
|
1299
|
-
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) =>
|
|
1509
|
+
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* 获取size
|
|
1513
|
+
* @param elementRef
|
|
1514
|
+
* @returns
|
|
1515
|
+
*/
|
|
1516
|
+
export declare function useSize(elementRef: Element | Ref<Element>): Size;
|
|
1517
|
+
|
|
1518
|
+
export declare function useTouch(): {
|
|
1519
|
+
move: EventListener;
|
|
1520
|
+
start: EventListener;
|
|
1521
|
+
reset: () => void;
|
|
1522
|
+
startX: any;
|
|
1523
|
+
startY: any;
|
|
1524
|
+
startTime: any;
|
|
1525
|
+
duration: any;
|
|
1526
|
+
moveX: any;
|
|
1527
|
+
moveY: any;
|
|
1528
|
+
deltaX: any;
|
|
1529
|
+
deltaY: any;
|
|
1530
|
+
offsetX: any;
|
|
1531
|
+
offsetY: any;
|
|
1532
|
+
direction: any;
|
|
1533
|
+
isVertical: () => boolean;
|
|
1534
|
+
isHorizontal: () => boolean;
|
|
1535
|
+
};
|
|
1300
1536
|
|
|
1301
1537
|
/**
|
|
1302
1538
|
* 校验条件
|
|
1303
1539
|
*/
|
|
1304
1540
|
export declare interface ValidateCondition {
|
|
1305
|
-
|
|
1541
|
+
deep?: boolean;
|
|
1306
1542
|
include?: string[];
|
|
1543
|
+
exclude?: string[];
|
|
1544
|
+
ignoreHidden?: boolean;
|
|
1307
1545
|
}
|
|
1308
1546
|
|
|
1309
1547
|
/**
|