@fox-js/foxui-pc 4.0.1-9 → 4.0.1-90
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 +8739 -4041
- 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 +523 -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,25 @@ 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
|
|
|
595
|
+
/**
|
|
596
|
+
* float data
|
|
597
|
+
* @param format
|
|
598
|
+
* @param dataOp
|
|
599
|
+
* @param mapOps
|
|
600
|
+
* @returns
|
|
601
|
+
*/
|
|
481
602
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
482
603
|
|
|
483
|
-
export declare const
|
|
604
|
+
export declare const FloatingWindow: any;
|
|
605
|
+
|
|
606
|
+
export declare const FooterBar: any;
|
|
484
607
|
|
|
485
608
|
export { FoxAffix }
|
|
486
609
|
|
|
@@ -536,8 +659,6 @@ export { FoxCollapseTransition }
|
|
|
536
659
|
|
|
537
660
|
export { FoxColorPicker }
|
|
538
661
|
|
|
539
|
-
declare type FoxComponentPublicInstance = any;
|
|
540
|
-
|
|
541
662
|
export { FoxConfigProvider }
|
|
542
663
|
|
|
543
664
|
export { FoxContainer }
|
|
@@ -670,78 +791,6 @@ export { FoxTreeSelect }
|
|
|
670
791
|
|
|
671
792
|
export { FoxTreeV2 }
|
|
672
793
|
|
|
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
794
|
/**
|
|
746
795
|
* Fox UI vue实例
|
|
747
796
|
*/
|
|
@@ -871,21 +920,16 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
|
|
|
871
920
|
*/
|
|
872
921
|
export declare function getRootDomain(): Domain;
|
|
873
922
|
|
|
874
|
-
export declare const Group:
|
|
923
|
+
export declare const Group: any;
|
|
875
924
|
|
|
876
925
|
/**
|
|
877
|
-
*
|
|
926
|
+
* 是否支持symbol
|
|
878
927
|
*/
|
|
879
|
-
declare
|
|
880
|
-
type: string;
|
|
881
|
-
width: number;
|
|
882
|
-
column: number;
|
|
883
|
-
gutter: number;
|
|
884
|
-
}
|
|
928
|
+
export declare const hasSymbol: boolean;
|
|
885
929
|
|
|
886
|
-
export declare const HeaderBar:
|
|
930
|
+
export declare const HeaderBar: any;
|
|
887
931
|
|
|
888
|
-
export declare const HintText:
|
|
932
|
+
export declare const HintText: any;
|
|
889
933
|
|
|
890
934
|
/**
|
|
891
935
|
* 根据包含模版,抽取属性
|
|
@@ -903,11 +947,11 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
|
|
|
903
947
|
*/
|
|
904
948
|
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
905
949
|
|
|
906
|
-
export declare const Indicator:
|
|
950
|
+
export declare const Indicator: any;
|
|
907
951
|
|
|
908
|
-
export declare const InputItem:
|
|
952
|
+
export declare const InputItem: any;
|
|
909
953
|
|
|
910
|
-
export declare const InputNumberItem:
|
|
954
|
+
export declare const InputNumberItem: any;
|
|
911
955
|
|
|
912
956
|
/**
|
|
913
957
|
* 安装函数
|
|
@@ -916,33 +960,76 @@ declare interface Installer {
|
|
|
916
960
|
(app: App, options?: any): void;
|
|
917
961
|
}
|
|
918
962
|
|
|
963
|
+
/**
|
|
964
|
+
* 安装校验规则
|
|
965
|
+
* @param proxy
|
|
966
|
+
*/
|
|
967
|
+
export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
|
|
968
|
+
|
|
919
969
|
/**
|
|
920
970
|
* 获取整数长度
|
|
921
971
|
* @param value
|
|
922
972
|
*/
|
|
923
|
-
export declare function integerLength(
|
|
973
|
+
export declare function integerLength(v: string | number): number;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* 是否数组
|
|
977
|
+
*/
|
|
978
|
+
export declare const isArray: (arg: any) => arg is any[];
|
|
924
979
|
|
|
925
|
-
|
|
980
|
+
/**
|
|
981
|
+
* 是否为类数组
|
|
982
|
+
* @param obj
|
|
983
|
+
* @returns {boolean}
|
|
984
|
+
*/
|
|
985
|
+
export declare function isArrayLike(obj: any): boolean;
|
|
926
986
|
|
|
927
987
|
/**
|
|
928
988
|
* 是否为浏览器环境
|
|
929
989
|
*/
|
|
930
990
|
export declare const isBrowser: boolean;
|
|
931
991
|
|
|
932
|
-
|
|
992
|
+
/**
|
|
993
|
+
* 是否为Date
|
|
994
|
+
* @param val
|
|
995
|
+
* @returns
|
|
996
|
+
*/
|
|
997
|
+
export declare const isDate: (val: unknown) => val is Date;
|
|
933
998
|
|
|
934
999
|
/**
|
|
935
1000
|
* 是否空字符串
|
|
936
1001
|
* @param v
|
|
937
1002
|
* @returns
|
|
938
1003
|
*/
|
|
939
|
-
export declare const isEmptyString: (v: unknown) =>
|
|
1004
|
+
export declare const isEmptyString: (v: unknown) => v is "";
|
|
940
1005
|
|
|
941
|
-
|
|
1006
|
+
/**
|
|
1007
|
+
* 判断两个对象是否一致
|
|
1008
|
+
* @param x
|
|
1009
|
+
* @param y
|
|
1010
|
+
* @return
|
|
1011
|
+
*/
|
|
1012
|
+
export declare function isEqual(x: any, y: any): boolean;
|
|
942
1013
|
|
|
943
|
-
|
|
1014
|
+
/**
|
|
1015
|
+
* 是否为es module
|
|
1016
|
+
* @param obj
|
|
1017
|
+
* @returns
|
|
1018
|
+
*/
|
|
1019
|
+
export declare function isESModule(obj: any): obj is Object;
|
|
944
1020
|
|
|
945
|
-
|
|
1021
|
+
/**
|
|
1022
|
+
* 是否为函数
|
|
1023
|
+
* @param val
|
|
1024
|
+
* @returns
|
|
1025
|
+
*/
|
|
1026
|
+
export declare const isFunction: (val: unknown) => val is Function;
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* 是否是隐藏element
|
|
1030
|
+
* @param el
|
|
1031
|
+
*/
|
|
1032
|
+
export declare function isHidden(el: any): boolean;
|
|
946
1033
|
|
|
947
1034
|
/**
|
|
948
1035
|
* 是否为内嵌页面
|
|
@@ -953,20 +1040,43 @@ export { isFunction }
|
|
|
953
1040
|
*/
|
|
954
1041
|
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
955
1042
|
|
|
956
|
-
|
|
1043
|
+
/**
|
|
1044
|
+
* 是否为Map
|
|
1045
|
+
* @param val
|
|
1046
|
+
* @returns
|
|
1047
|
+
*/
|
|
1048
|
+
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* 是否null/undefined对象
|
|
1052
|
+
*/
|
|
1053
|
+
export declare function isNil(v: unknown): v is null | undefined;
|
|
957
1054
|
|
|
958
1055
|
/**
|
|
959
1056
|
* 是否为数字字符串
|
|
960
1057
|
* @param value
|
|
961
1058
|
* @returns
|
|
962
1059
|
*/
|
|
963
|
-
export declare function isNumberString(
|
|
1060
|
+
export declare function isNumberString(v: string): v is string;
|
|
964
1061
|
|
|
965
|
-
|
|
1062
|
+
/**
|
|
1063
|
+
* 是否为object
|
|
1064
|
+
*/
|
|
1065
|
+
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
966
1066
|
|
|
967
|
-
|
|
1067
|
+
/**
|
|
1068
|
+
* 是否为plain对象
|
|
1069
|
+
* @param val
|
|
1070
|
+
* @returns
|
|
1071
|
+
*/
|
|
1072
|
+
export declare const isPlainObject: (val: unknown) => val is object;
|
|
968
1073
|
|
|
969
|
-
|
|
1074
|
+
/**
|
|
1075
|
+
* 是否为promise
|
|
1076
|
+
* @param val
|
|
1077
|
+
* @returns
|
|
1078
|
+
*/
|
|
1079
|
+
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
970
1080
|
|
|
971
1081
|
/**
|
|
972
1082
|
* 判断是否为正则表达式
|
|
@@ -975,9 +1085,19 @@ export { isPromise }
|
|
|
975
1085
|
*/
|
|
976
1086
|
export declare function isRegExp(v: unknown): v is RegExp;
|
|
977
1087
|
|
|
978
|
-
|
|
1088
|
+
/**
|
|
1089
|
+
* 是否为Set
|
|
1090
|
+
* @param val
|
|
1091
|
+
* @returns
|
|
1092
|
+
*/
|
|
1093
|
+
export declare const isSet: (val: unknown) => val is Set<any>;
|
|
979
1094
|
|
|
980
|
-
|
|
1095
|
+
/**
|
|
1096
|
+
* 是否为字符串
|
|
1097
|
+
* @param val
|
|
1098
|
+
* @returns
|
|
1099
|
+
*/
|
|
1100
|
+
export declare const isString: (val: unknown) => val is string;
|
|
981
1101
|
|
|
982
1102
|
/**
|
|
983
1103
|
* 是否子页面
|
|
@@ -985,9 +1105,20 @@ export { isString }
|
|
|
985
1105
|
*/
|
|
986
1106
|
export declare function isSubPage(domain: Domain): boolean;
|
|
987
1107
|
|
|
988
|
-
|
|
1108
|
+
/**
|
|
1109
|
+
* 是否为symbol
|
|
1110
|
+
* @param val
|
|
1111
|
+
* @returns
|
|
1112
|
+
*/
|
|
1113
|
+
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* 是否是window对象
|
|
1117
|
+
* @param obj
|
|
1118
|
+
*/
|
|
1119
|
+
export declare function isWindow(obj: any): boolean;
|
|
989
1120
|
|
|
990
|
-
export declare const Item:
|
|
1121
|
+
export declare const Item: any;
|
|
991
1122
|
|
|
992
1123
|
/**
|
|
993
1124
|
* 获取对应元素的在数组中最后一个匹配的索引
|
|
@@ -997,7 +1128,15 @@ export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
997
1128
|
*/
|
|
998
1129
|
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
999
1130
|
|
|
1000
|
-
|
|
1131
|
+
/**
|
|
1132
|
+
* 创建数组
|
|
1133
|
+
* @param arr
|
|
1134
|
+
* @param results
|
|
1135
|
+
* @return
|
|
1136
|
+
*/
|
|
1137
|
+
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
1138
|
+
|
|
1139
|
+
export declare const Mapping: any;
|
|
1001
1140
|
|
|
1002
1141
|
/**
|
|
1003
1142
|
* 匹配条件
|
|
@@ -1010,14 +1149,45 @@ export declare interface Matched {
|
|
|
1010
1149
|
level?: number;
|
|
1011
1150
|
}
|
|
1012
1151
|
|
|
1013
|
-
|
|
1152
|
+
/**
|
|
1153
|
+
* 合并数组
|
|
1154
|
+
* @param first
|
|
1155
|
+
* @param second
|
|
1156
|
+
* @return
|
|
1157
|
+
*/
|
|
1158
|
+
export declare function merge(first: any[], second: any[]): any[];
|
|
1159
|
+
|
|
1160
|
+
export declare const MoneyItem: any;
|
|
1161
|
+
|
|
1162
|
+
export declare const MoreButton: any;
|
|
1014
1163
|
|
|
1015
1164
|
export { multiply }
|
|
1016
1165
|
|
|
1017
1166
|
export { negate }
|
|
1018
1167
|
|
|
1168
|
+
/**
|
|
1169
|
+
* 下一个事件周期中执行函数
|
|
1170
|
+
* @param fn
|
|
1171
|
+
* @param args
|
|
1172
|
+
*/
|
|
1173
|
+
export declare function nextTick(fn: {
|
|
1174
|
+
(...args: any[]): void;
|
|
1175
|
+
}, ...args: any[]): void;
|
|
1176
|
+
|
|
1019
1177
|
export { numberFormat }
|
|
1020
1178
|
|
|
1179
|
+
/**
|
|
1180
|
+
* 对象类型
|
|
1181
|
+
*/
|
|
1182
|
+
export declare const objectToString: () => string;
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* 只执行一次函数
|
|
1186
|
+
* @param func
|
|
1187
|
+
* @returns
|
|
1188
|
+
*/
|
|
1189
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
1190
|
+
|
|
1021
1191
|
/**
|
|
1022
1192
|
* padding
|
|
1023
1193
|
*/
|
|
@@ -1028,7 +1198,7 @@ export declare interface Padding {
|
|
|
1028
1198
|
bottom: number | null;
|
|
1029
1199
|
}
|
|
1030
1200
|
|
|
1031
|
-
export declare const Page:
|
|
1201
|
+
export declare const Page: any;
|
|
1032
1202
|
|
|
1033
1203
|
/**
|
|
1034
1204
|
* page layout
|
|
@@ -1048,10 +1218,14 @@ export declare interface PageState {
|
|
|
1048
1218
|
height: number;
|
|
1049
1219
|
headerHeight: number;
|
|
1050
1220
|
headerPadding: Padding;
|
|
1221
|
+
headerAllHeight?: number;
|
|
1051
1222
|
footerHeight: number;
|
|
1052
1223
|
footerPadding: Padding;
|
|
1224
|
+
footerAllHeight?: number;
|
|
1053
1225
|
contentHeight: number | string | null;
|
|
1054
1226
|
contentPadding: Padding;
|
|
1227
|
+
contentInnerHeight?: number;
|
|
1228
|
+
contentInnerWidth?: number;
|
|
1055
1229
|
safeAreaTop: number;
|
|
1056
1230
|
safeAreaBottom: number;
|
|
1057
1231
|
safeAreaLeft: number;
|
|
@@ -1068,7 +1242,7 @@ export declare interface Point {
|
|
|
1068
1242
|
y: number;
|
|
1069
1243
|
}
|
|
1070
1244
|
|
|
1071
|
-
export declare const Price:
|
|
1245
|
+
export declare const Price: any;
|
|
1072
1246
|
|
|
1073
1247
|
/**
|
|
1074
1248
|
* 优先策略
|
|
@@ -1087,14 +1261,11 @@ export declare enum PriorityPolicy {
|
|
|
1087
1261
|
*/
|
|
1088
1262
|
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
1089
1263
|
|
|
1090
|
-
export declare const RadioItem:
|
|
1264
|
+
export declare const RadioItem: any;
|
|
1091
1265
|
|
|
1092
|
-
/**
|
|
1093
|
-
* 动画
|
|
1094
|
-
*/
|
|
1095
1266
|
export declare const raf: any;
|
|
1096
1267
|
|
|
1097
|
-
export declare const RateItem:
|
|
1268
|
+
export declare const RateItem: any;
|
|
1098
1269
|
|
|
1099
1270
|
/**
|
|
1100
1271
|
* 只读属性
|
|
@@ -1102,17 +1273,7 @@ export declare const RateItem: DefineComponent<unknown, object, {}, ComputedOpti
|
|
|
1102
1273
|
*/
|
|
1103
1274
|
export declare function readonlyProperty(source: Ref): Ref;
|
|
1104
1275
|
|
|
1105
|
-
/**
|
|
1106
|
-
* Rect类型
|
|
1107
|
-
*/
|
|
1108
1276
|
declare interface Rect {
|
|
1109
|
-
left: number;
|
|
1110
|
-
top: number;
|
|
1111
|
-
right: number;
|
|
1112
|
-
bottom: number;
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
declare interface Rect_2 {
|
|
1116
1277
|
top: number;
|
|
1117
1278
|
left: number;
|
|
1118
1279
|
right: number;
|
|
@@ -1131,7 +1292,9 @@ export declare type Result = Promise<any> | any;
|
|
|
1131
1292
|
*/
|
|
1132
1293
|
export declare type Results = Result[];
|
|
1133
1294
|
|
|
1134
|
-
export declare const
|
|
1295
|
+
export declare const RollingProvider: any;
|
|
1296
|
+
|
|
1297
|
+
export declare const RowItem: any;
|
|
1135
1298
|
|
|
1136
1299
|
/**
|
|
1137
1300
|
* 安全区域
|
|
@@ -1143,14 +1306,7 @@ export declare interface SafeAreaInset {
|
|
|
1143
1306
|
bottom: number | string;
|
|
1144
1307
|
}
|
|
1145
1308
|
|
|
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>, {}>;
|
|
1309
|
+
export declare const SelectItem: any;
|
|
1154
1310
|
|
|
1155
1311
|
/**
|
|
1156
1312
|
* 设置公共校验检查事件
|
|
@@ -1182,29 +1338,54 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
|
1182
1338
|
*/
|
|
1183
1339
|
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
1184
1340
|
|
|
1185
|
-
|
|
1341
|
+
/**
|
|
1342
|
+
* size
|
|
1343
|
+
*/
|
|
1344
|
+
declare interface Size {
|
|
1345
|
+
width: number;
|
|
1346
|
+
height: number;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
export declare const SlotItem: any;
|
|
1186
1350
|
|
|
1187
|
-
export declare const SwitchItem:
|
|
1351
|
+
export declare const SwitchItem: any;
|
|
1188
1352
|
|
|
1189
|
-
export declare const TableItem:
|
|
1353
|
+
export declare const TableItem: any;
|
|
1190
1354
|
|
|
1191
|
-
export declare const TableMappingColumn:
|
|
1355
|
+
export declare const TableMappingColumn: any;
|
|
1356
|
+
|
|
1357
|
+
export declare const TableRadioColumn: any;
|
|
1358
|
+
|
|
1359
|
+
export declare const TableSetting: any;
|
|
1360
|
+
|
|
1361
|
+
declare const Text_2: any;
|
|
1362
|
+
export { Text_2 as Text }
|
|
1192
1363
|
|
|
1193
1364
|
/**
|
|
1194
|
-
* 节流函数
|
|
1365
|
+
* 节流函数(执行时间范围内的第一次)
|
|
1195
1366
|
* @param func 函数
|
|
1196
|
-
* @param
|
|
1367
|
+
* @param delay 延迟执行毫秒数
|
|
1197
1368
|
* @returns
|
|
1198
1369
|
*/
|
|
1199
|
-
export declare function throttle(func: GenericFunction,
|
|
1370
|
+
export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
|
|
1200
1371
|
|
|
1201
|
-
export declare const TimeItem:
|
|
1372
|
+
export declare const TimeItem: any;
|
|
1202
1373
|
|
|
1203
|
-
export declare const TimeSelectItem:
|
|
1374
|
+
export declare const TimeSelectItem: any;
|
|
1204
1375
|
|
|
1205
|
-
|
|
1376
|
+
/**
|
|
1377
|
+
* 转换为boolean值
|
|
1378
|
+
* @param val
|
|
1379
|
+
* @returns
|
|
1380
|
+
*/
|
|
1381
|
+
export declare function toBoolean(val: unknown): boolean;
|
|
1206
1382
|
|
|
1207
|
-
|
|
1383
|
+
/**
|
|
1384
|
+
* 转换为number值
|
|
1385
|
+
* @param val
|
|
1386
|
+
* @returns
|
|
1387
|
+
*/
|
|
1388
|
+
export declare function toNumber(val: unknown): number;
|
|
1208
1389
|
|
|
1209
1390
|
/**
|
|
1210
1391
|
* 转换为number rect
|
|
@@ -1226,7 +1407,9 @@ export declare function toPx(value: number | string, size?: number): number;
|
|
|
1226
1407
|
*/
|
|
1227
1408
|
export declare const toPxDesc: (value: string | number, size?: number) => string;
|
|
1228
1409
|
|
|
1229
|
-
export
|
|
1410
|
+
export declare const toTypeString: (value: unknown) => string;
|
|
1411
|
+
|
|
1412
|
+
export declare const Tour: any;
|
|
1230
1413
|
|
|
1231
1414
|
/**
|
|
1232
1415
|
* to model value
|
|
@@ -1236,6 +1419,33 @@ export { toTypeString }
|
|
|
1236
1419
|
*/
|
|
1237
1420
|
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
1238
1421
|
|
|
1422
|
+
export declare const TreeSelectItem: any;
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* 尝试执行多次函数
|
|
1426
|
+
* @param func 执行函数
|
|
1427
|
+
* @param milliseconds 执行间隔
|
|
1428
|
+
* @param maxLimit 最大尝试次数
|
|
1429
|
+
* @param step 间隔增加步长
|
|
1430
|
+
* @param immediately 是否立刻执行
|
|
1431
|
+
*/
|
|
1432
|
+
export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean): void;
|
|
1433
|
+
|
|
1434
|
+
/**
|
|
1435
|
+
* 尝试多次函数
|
|
1436
|
+
* 返回true,代表执行完成,不在需要重试
|
|
1437
|
+
*/
|
|
1438
|
+
export declare interface TryTimesFunction {
|
|
1439
|
+
(): boolean;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* 判断类型
|
|
1444
|
+
* @param obj
|
|
1445
|
+
* @returns any
|
|
1446
|
+
*/
|
|
1447
|
+
export declare function typeOf(obj: any): string;
|
|
1448
|
+
|
|
1239
1449
|
export declare class UniqueID {
|
|
1240
1450
|
/**
|
|
1241
1451
|
* seed id
|
|
@@ -1274,7 +1484,7 @@ export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null):
|
|
|
1274
1484
|
* 获取当前domain
|
|
1275
1485
|
* @returns
|
|
1276
1486
|
*/
|
|
1277
|
-
export declare function useDomain(
|
|
1487
|
+
export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
|
|
1278
1488
|
|
|
1279
1489
|
/**
|
|
1280
1490
|
* use expose
|
|
@@ -1282,6 +1492,13 @@ export declare function useDomain(instance?: ComponentInternalInstance | null):
|
|
|
1282
1492
|
*/
|
|
1283
1493
|
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
1284
1494
|
|
|
1495
|
+
/**
|
|
1496
|
+
* 获取内部可用size
|
|
1497
|
+
* @param elementRef
|
|
1498
|
+
* @returns
|
|
1499
|
+
*/
|
|
1500
|
+
export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
|
|
1501
|
+
|
|
1285
1502
|
/**
|
|
1286
1503
|
* 获取page state
|
|
1287
1504
|
* @param domain
|
|
@@ -1296,14 +1513,42 @@ export declare function usePageState(domain: Domain): PageState | null;
|
|
|
1296
1513
|
*/
|
|
1297
1514
|
export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
|
|
1298
1515
|
|
|
1299
|
-
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) =>
|
|
1516
|
+
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* 获取size
|
|
1520
|
+
* @param elementRef
|
|
1521
|
+
* @returns
|
|
1522
|
+
*/
|
|
1523
|
+
export declare function useSize(elementRef: Element | Ref<Element>): Size;
|
|
1524
|
+
|
|
1525
|
+
export declare function useTouch(): {
|
|
1526
|
+
move: EventListener;
|
|
1527
|
+
start: EventListener;
|
|
1528
|
+
reset: () => void;
|
|
1529
|
+
startX: any;
|
|
1530
|
+
startY: any;
|
|
1531
|
+
startTime: any;
|
|
1532
|
+
duration: any;
|
|
1533
|
+
moveX: any;
|
|
1534
|
+
moveY: any;
|
|
1535
|
+
deltaX: any;
|
|
1536
|
+
deltaY: any;
|
|
1537
|
+
offsetX: any;
|
|
1538
|
+
offsetY: any;
|
|
1539
|
+
direction: any;
|
|
1540
|
+
isVertical: () => boolean;
|
|
1541
|
+
isHorizontal: () => boolean;
|
|
1542
|
+
};
|
|
1300
1543
|
|
|
1301
1544
|
/**
|
|
1302
1545
|
* 校验条件
|
|
1303
1546
|
*/
|
|
1304
1547
|
export declare interface ValidateCondition {
|
|
1305
|
-
|
|
1548
|
+
deep?: boolean;
|
|
1306
1549
|
include?: string[];
|
|
1550
|
+
exclude?: string[];
|
|
1551
|
+
ignoreHidden?: boolean;
|
|
1307
1552
|
}
|
|
1308
1553
|
|
|
1309
1554
|
/**
|