@fox-js/foxui-pc 4.0.1-11 → 4.0.1-110
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 +11960 -4290
- package/dist/index.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -5
- package/dist/types/index.d.ts +699 -313
- 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,8 +120,6 @@ export declare interface AcceptFilter {
|
|
|
140
120
|
(value: any): boolean;
|
|
141
121
|
}
|
|
142
122
|
|
|
143
|
-
export declare const AutocompleteItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
144
|
-
|
|
145
123
|
/**
|
|
146
124
|
* 广播类
|
|
147
125
|
*/
|
|
@@ -219,21 +197,25 @@ export declare interface BroadcastCallback {
|
|
|
219
197
|
|
|
220
198
|
export declare const BroadcastKey: unique symbol;
|
|
221
199
|
|
|
222
|
-
export declare
|
|
223
|
-
|
|
224
|
-
export declare const CheckboxItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
200
|
+
export declare function cancelRaf(id: number): void;
|
|
225
201
|
|
|
226
202
|
/**
|
|
227
203
|
* 清理非数字
|
|
228
204
|
*/
|
|
229
205
|
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
230
206
|
|
|
231
|
-
|
|
207
|
+
/**
|
|
208
|
+
* 克隆对象
|
|
209
|
+
* @param target
|
|
210
|
+
* @param source
|
|
211
|
+
* @param plain
|
|
212
|
+
*
|
|
213
|
+
* @returns
|
|
214
|
+
*/
|
|
215
|
+
export declare function clone(target: any, source: any, plain?: boolean): any;
|
|
232
216
|
|
|
233
217
|
export { compareTo }
|
|
234
218
|
|
|
235
|
-
export declare const Content: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
236
|
-
|
|
237
219
|
/**
|
|
238
220
|
* 创建broadcast
|
|
239
221
|
*
|
|
@@ -259,15 +241,123 @@ export declare function createValidateSchema(proxy: FoxComponentPublicInstance,
|
|
|
259
241
|
*/
|
|
260
242
|
export declare const DataItemsKey: unique symbol;
|
|
261
243
|
|
|
262
|
-
export declare const
|
|
244
|
+
export declare const DateUtils: {
|
|
245
|
+
/**
|
|
246
|
+
* 格式化
|
|
247
|
+
* @param date
|
|
248
|
+
* @param template
|
|
249
|
+
* @returns
|
|
250
|
+
*/
|
|
251
|
+
format(date: Date, template: string): string;
|
|
252
|
+
/**
|
|
253
|
+
* 解析
|
|
254
|
+
* @param str
|
|
255
|
+
* @param template
|
|
256
|
+
*/
|
|
257
|
+
parser(str: string, template: string): Date;
|
|
258
|
+
/**
|
|
259
|
+
* 是否为闫年
|
|
260
|
+
* @return {Boolse} true|false
|
|
261
|
+
*/
|
|
262
|
+
isLeapYear(y: number): boolean;
|
|
263
|
+
/**
|
|
264
|
+
* 返回星期数
|
|
265
|
+
* @return {String}
|
|
266
|
+
*/
|
|
267
|
+
getWhatDay(year: number, month: number, day: number): string;
|
|
268
|
+
/**
|
|
269
|
+
* 返回星期数
|
|
270
|
+
* @return {Number}
|
|
271
|
+
*/
|
|
272
|
+
getMonthPreDay(year: number, month: number): number;
|
|
273
|
+
/**
|
|
274
|
+
* 返回月份天数
|
|
275
|
+
* @return {Number}
|
|
276
|
+
*/
|
|
277
|
+
getMonthDays(year: string, month: string): number;
|
|
278
|
+
/**
|
|
279
|
+
* 补齐数字位数
|
|
280
|
+
* @return {string}
|
|
281
|
+
*/
|
|
282
|
+
getNumTwoBit(n: number): string;
|
|
283
|
+
/**
|
|
284
|
+
* 日期对象转成字符串
|
|
285
|
+
* @return {string}
|
|
286
|
+
*/
|
|
287
|
+
date2Str: (date: Date, split?: string) => string;
|
|
288
|
+
/**
|
|
289
|
+
* 返回日期格式字符串
|
|
290
|
+
* @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
291
|
+
* @param {Date} 起点日期
|
|
292
|
+
* @return {string} '2014-12-31'
|
|
293
|
+
*/
|
|
294
|
+
getDay(i: number, startDate?: Date): string;
|
|
295
|
+
/**
|
|
296
|
+
* 时间比较
|
|
297
|
+
* @return
|
|
298
|
+
*/
|
|
299
|
+
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
300
|
+
/**
|
|
301
|
+
* 时间是否相等
|
|
302
|
+
* @return
|
|
303
|
+
*/
|
|
304
|
+
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
305
|
+
/**
|
|
306
|
+
* get month week
|
|
307
|
+
* @param year
|
|
308
|
+
* @param month
|
|
309
|
+
* @param date
|
|
310
|
+
* @param firstDayOfWeek
|
|
311
|
+
* @returns
|
|
312
|
+
*/
|
|
313
|
+
getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
314
|
+
/**
|
|
315
|
+
* get year week
|
|
316
|
+
* @param year
|
|
317
|
+
* @param month
|
|
318
|
+
* @param date
|
|
319
|
+
* @param firstDayOfWeek
|
|
320
|
+
* @returns
|
|
321
|
+
*/
|
|
322
|
+
getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
323
|
+
/**
|
|
324
|
+
* get week date
|
|
325
|
+
*/
|
|
326
|
+
getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
|
|
327
|
+
/**
|
|
328
|
+
* format result date
|
|
329
|
+
*/
|
|
330
|
+
formatResultDate: (date: string) => string[];
|
|
331
|
+
/**
|
|
332
|
+
* 判断日期是否在范围内
|
|
333
|
+
* @param date
|
|
334
|
+
* @param startDate
|
|
335
|
+
* @param span 允许负数
|
|
336
|
+
*/
|
|
337
|
+
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
338
|
+
/**
|
|
339
|
+
* 判断日期是否在范围内
|
|
340
|
+
* @param date
|
|
341
|
+
* @param startDate
|
|
342
|
+
* @param span
|
|
343
|
+
*/
|
|
344
|
+
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
345
|
+
};
|
|
263
346
|
|
|
264
347
|
/**
|
|
265
|
-
* 防抖函数
|
|
348
|
+
* 防抖函数(执行时间范围内的最后一次)
|
|
266
349
|
* @param func 函数
|
|
267
|
-
* @param
|
|
350
|
+
* @param delay 防止抖动毫秒数
|
|
268
351
|
* @returns
|
|
269
352
|
*/
|
|
270
|
-
export declare function debounce(func: GenericFunction,
|
|
353
|
+
export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* 防抖Ref
|
|
357
|
+
* @param value
|
|
358
|
+
* @param delay
|
|
359
|
+
*/
|
|
360
|
+
export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
|
|
271
361
|
|
|
272
362
|
/**
|
|
273
363
|
* 获取小数长度
|
|
@@ -278,6 +368,198 @@ export declare function decimalLength(value: string | number): number;
|
|
|
278
368
|
declare const _default: FoxUIVue;
|
|
279
369
|
export default _default;
|
|
280
370
|
|
|
371
|
+
declare const _default_10: any;
|
|
372
|
+
export { _default_10 as FoxHintText }
|
|
373
|
+
export { _default_10 as HintText }
|
|
374
|
+
|
|
375
|
+
declare const _default_11: any;
|
|
376
|
+
export { _default_11 as FoxInputItem }
|
|
377
|
+
export { _default_11 as InputItem }
|
|
378
|
+
|
|
379
|
+
declare const _default_12: any;
|
|
380
|
+
export { _default_12 as FoxSelectItem }
|
|
381
|
+
export { _default_12 as SelectItem }
|
|
382
|
+
|
|
383
|
+
declare const _default_13: any;
|
|
384
|
+
export { _default_13 as DateItem }
|
|
385
|
+
export { _default_13 as FoxDateItem }
|
|
386
|
+
|
|
387
|
+
declare const _default_14: any;
|
|
388
|
+
export { _default_14 as FoxTimeItem }
|
|
389
|
+
export { _default_14 as TimeItem }
|
|
390
|
+
|
|
391
|
+
declare const _default_15: any;
|
|
392
|
+
export { _default_15 as FoxTimeSelectItem }
|
|
393
|
+
export { _default_15 as TimeSelectItem }
|
|
394
|
+
|
|
395
|
+
declare const _default_16: any;
|
|
396
|
+
export { _default_16 as FoxMoneyItem }
|
|
397
|
+
export { _default_16 as MoneyItem }
|
|
398
|
+
|
|
399
|
+
declare const _default_17: any;
|
|
400
|
+
export { _default_17 as FoxInputNumberItem }
|
|
401
|
+
export { _default_17 as InputNumberItem }
|
|
402
|
+
|
|
403
|
+
declare const _default_18: any;
|
|
404
|
+
export { _default_18 as CascaderItem }
|
|
405
|
+
export { _default_18 as FoxCascaderItem }
|
|
406
|
+
|
|
407
|
+
declare const _default_19: any;
|
|
408
|
+
export { _default_19 as AutocompleteItem }
|
|
409
|
+
export { _default_19 as FoxAutocompleteItem }
|
|
410
|
+
|
|
411
|
+
declare const _default_2: any;
|
|
412
|
+
export { _default_2 as FoxPage }
|
|
413
|
+
export { _default_2 as Page }
|
|
414
|
+
|
|
415
|
+
declare const _default_20: any;
|
|
416
|
+
export { _default_20 as FoxTableMappingColumn }
|
|
417
|
+
export { _default_20 as TableMappingColumn }
|
|
418
|
+
|
|
419
|
+
declare const _default_21: any;
|
|
420
|
+
export { _default_21 as FoxTableRadioColumn }
|
|
421
|
+
export { _default_21 as TableRadioColumn }
|
|
422
|
+
|
|
423
|
+
declare const _default_22: any;
|
|
424
|
+
export { _default_22 as FoxTableSetting }
|
|
425
|
+
export { _default_22 as TableSetting }
|
|
426
|
+
|
|
427
|
+
declare const _default_23: any;
|
|
428
|
+
export { _default_23 as FoxTableItem }
|
|
429
|
+
export { _default_23 as TableItem }
|
|
430
|
+
|
|
431
|
+
declare const _default_24: any;
|
|
432
|
+
export { _default_24 as FoxRadioItem }
|
|
433
|
+
export { _default_24 as RadioItem }
|
|
434
|
+
|
|
435
|
+
declare const _default_25: any;
|
|
436
|
+
export { _default_25 as CheckboxItem }
|
|
437
|
+
export { _default_25 as FoxCheckboxItem }
|
|
438
|
+
|
|
439
|
+
declare const _default_26: any;
|
|
440
|
+
export { _default_26 as FoxRateItem }
|
|
441
|
+
export { _default_26 as RateItem }
|
|
442
|
+
|
|
443
|
+
declare const _default_27: any;
|
|
444
|
+
export { _default_27 as FoxSwitchItem }
|
|
445
|
+
export { _default_27 as SwitchItem }
|
|
446
|
+
|
|
447
|
+
declare const _default_28: any;
|
|
448
|
+
export { _default_28 as FoxTreeSelectItem }
|
|
449
|
+
export { _default_28 as TreeSelectItem }
|
|
450
|
+
|
|
451
|
+
declare const _default_29: any;
|
|
452
|
+
export { _default_29 as FoxGroupSetting }
|
|
453
|
+
export { _default_29 as GroupSetting }
|
|
454
|
+
|
|
455
|
+
declare const _default_3: any;
|
|
456
|
+
export { _default_3 as FoxHeaderBar }
|
|
457
|
+
export { _default_3 as HeaderBar }
|
|
458
|
+
|
|
459
|
+
declare const _default_30: any;
|
|
460
|
+
export { _default_30 as FoxTabsBar }
|
|
461
|
+
export { _default_30 as TabsBar }
|
|
462
|
+
|
|
463
|
+
declare const _default_31: any;
|
|
464
|
+
export { _default_31 as FoxTabsContainer }
|
|
465
|
+
export { _default_31 as TabsContainer }
|
|
466
|
+
|
|
467
|
+
declare const _default_32: any;
|
|
468
|
+
export { _default_32 as FoxTabsPane }
|
|
469
|
+
export { _default_32 as TabsPane }
|
|
470
|
+
|
|
471
|
+
declare const _default_33: any;
|
|
472
|
+
export { _default_33 as FoxStepsBar }
|
|
473
|
+
export { _default_33 as StepsBar }
|
|
474
|
+
|
|
475
|
+
declare const _default_34: any;
|
|
476
|
+
export { _default_34 as DialogItem }
|
|
477
|
+
export { _default_34 as FoxDialogItem }
|
|
478
|
+
|
|
479
|
+
declare const _default_35: any;
|
|
480
|
+
export { _default_35 as FoxOverLay }
|
|
481
|
+
export { _default_35 as OverLay }
|
|
482
|
+
|
|
483
|
+
declare const _default_36: any;
|
|
484
|
+
export { _default_36 as FoxPopup }
|
|
485
|
+
export { _default_36 as Popup }
|
|
486
|
+
|
|
487
|
+
declare const _default_37: any;
|
|
488
|
+
export { _default_37 as FoxToast }
|
|
489
|
+
export { _default_37 as Toast }
|
|
490
|
+
|
|
491
|
+
declare const _default_38: any;
|
|
492
|
+
export { _default_38 as FoxSearchBar }
|
|
493
|
+
export { _default_38 as SearchBar }
|
|
494
|
+
|
|
495
|
+
declare const _default_39: any;
|
|
496
|
+
export { _default_39 as FoxInfiniteLoading }
|
|
497
|
+
export { _default_39 as InfiniteLoading }
|
|
498
|
+
|
|
499
|
+
declare const _default_4: any;
|
|
500
|
+
export { _default_4 as FooterBar }
|
|
501
|
+
export { _default_4 as FoxFooterBar }
|
|
502
|
+
|
|
503
|
+
declare const _default_40: any;
|
|
504
|
+
export { _default_40 as FoxPullRefresh }
|
|
505
|
+
export { _default_40 as PullRefresh }
|
|
506
|
+
|
|
507
|
+
declare const _default_41: any;
|
|
508
|
+
export { _default_41 as FoxMapping }
|
|
509
|
+
export { _default_41 as Mapping }
|
|
510
|
+
|
|
511
|
+
declare const _default_42: any;
|
|
512
|
+
export { _default_42 as FoxPrice }
|
|
513
|
+
export { _default_42 as Price }
|
|
514
|
+
|
|
515
|
+
declare const _default_43: any;
|
|
516
|
+
export { _default_43 as FoxIndicator }
|
|
517
|
+
export { _default_43 as Indicator }
|
|
518
|
+
|
|
519
|
+
declare const _default_44: any;
|
|
520
|
+
export { _default_44 as FoxText }
|
|
521
|
+
export { _default_44 as Text }
|
|
522
|
+
|
|
523
|
+
declare const _default_45: any;
|
|
524
|
+
export { _default_45 as FoxMoreButton }
|
|
525
|
+
export { _default_45 as MoreButton }
|
|
526
|
+
|
|
527
|
+
declare const _default_46: any;
|
|
528
|
+
export { _default_46 as FoxTour }
|
|
529
|
+
export { _default_46 as Tour }
|
|
530
|
+
|
|
531
|
+
declare const _default_47: any;
|
|
532
|
+
export { _default_47 as FloatingWindow }
|
|
533
|
+
export { _default_47 as FoxFloatingWindow }
|
|
534
|
+
|
|
535
|
+
declare const _default_48: any;
|
|
536
|
+
export { _default_48 as DomainProvider }
|
|
537
|
+
export { _default_48 as FoxDomainProvider }
|
|
538
|
+
|
|
539
|
+
declare const _default_49: any;
|
|
540
|
+
export { _default_49 as FoxRollingProvider }
|
|
541
|
+
export { _default_49 as RollingProvider }
|
|
542
|
+
|
|
543
|
+
declare const _default_5: any;
|
|
544
|
+
export { _default_5 as Content }
|
|
545
|
+
export { _default_5 as FoxContent }
|
|
546
|
+
|
|
547
|
+
declare const _default_6: any;
|
|
548
|
+
export { _default_6 as FoxGroup }
|
|
549
|
+
export { _default_6 as Group }
|
|
550
|
+
|
|
551
|
+
declare const _default_7: any;
|
|
552
|
+
export { _default_7 as FoxItem }
|
|
553
|
+
export { _default_7 as Item }
|
|
554
|
+
|
|
555
|
+
declare const _default_8: any;
|
|
556
|
+
export { _default_8 as FoxSlotItem }
|
|
557
|
+
export { _default_8 as SlotItem }
|
|
558
|
+
|
|
559
|
+
declare const _default_9: any;
|
|
560
|
+
export { _default_9 as FoxRowItem }
|
|
561
|
+
export { _default_9 as RowItem }
|
|
562
|
+
|
|
281
563
|
/**
|
|
282
564
|
* anyNode
|
|
283
565
|
* @param name
|
|
@@ -286,6 +568,15 @@ export default _default;
|
|
|
286
568
|
*/
|
|
287
569
|
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
|
|
288
570
|
|
|
571
|
+
/**
|
|
572
|
+
* 安装config domain
|
|
573
|
+
* @param name 名称
|
|
574
|
+
* @param props 属性
|
|
575
|
+
* @param ignores 忽略的属性
|
|
576
|
+
* @returns
|
|
577
|
+
*/
|
|
578
|
+
export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
|
|
579
|
+
|
|
289
580
|
/**
|
|
290
581
|
* 定义domain data item
|
|
291
582
|
* @returns
|
|
@@ -340,8 +631,6 @@ export declare interface Descriptor {
|
|
|
340
631
|
validateResetEvents?: string[];
|
|
341
632
|
}
|
|
342
633
|
|
|
343
|
-
export declare const DialogItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
344
|
-
|
|
345
634
|
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
346
635
|
|
|
347
636
|
/**
|
|
@@ -476,14 +765,22 @@ declare interface EventListener_2 {
|
|
|
476
765
|
*/
|
|
477
766
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
478
767
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
768
|
+
/**
|
|
769
|
+
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
770
|
+
*
|
|
771
|
+
* @returns
|
|
772
|
+
*/
|
|
773
|
+
export declare function extend(...args: any[]): any;
|
|
482
774
|
|
|
775
|
+
/**
|
|
776
|
+
* float data
|
|
777
|
+
* @param format
|
|
778
|
+
* @param dataOp
|
|
779
|
+
* @param mapOps
|
|
780
|
+
* @returns
|
|
781
|
+
*/
|
|
483
782
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
484
783
|
|
|
485
|
-
export declare const FooterBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
486
|
-
|
|
487
784
|
export { FoxAffix }
|
|
488
785
|
|
|
489
786
|
export { FoxAlert }
|
|
@@ -538,8 +835,6 @@ export { FoxCollapseTransition }
|
|
|
538
835
|
|
|
539
836
|
export { FoxColorPicker }
|
|
540
837
|
|
|
541
|
-
declare type FoxComponentPublicInstance = any;
|
|
542
|
-
|
|
543
838
|
export { FoxConfigProvider }
|
|
544
839
|
|
|
545
840
|
export { FoxContainer }
|
|
@@ -672,78 +967,6 @@ export { FoxTreeSelect }
|
|
|
672
967
|
|
|
673
968
|
export { FoxTreeV2 }
|
|
674
969
|
|
|
675
|
-
/**
|
|
676
|
-
* Fox UI
|
|
677
|
-
*/
|
|
678
|
-
declare interface FoxUI {
|
|
679
|
-
/**
|
|
680
|
-
* 版本号
|
|
681
|
-
*/
|
|
682
|
-
version: string;
|
|
683
|
-
/**
|
|
684
|
-
* 安装
|
|
685
|
-
* @param app
|
|
686
|
-
* @param options
|
|
687
|
-
*/
|
|
688
|
-
install(app: App, options: FoxUIOptions): any;
|
|
689
|
-
/**
|
|
690
|
-
* 初始化page Layout
|
|
691
|
-
*
|
|
692
|
-
* @param options
|
|
693
|
-
* @param rootDomain
|
|
694
|
-
*/
|
|
695
|
-
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
696
|
-
/**
|
|
697
|
-
* 设置scope getter
|
|
698
|
-
* @param getter
|
|
699
|
-
*/
|
|
700
|
-
setScopeGetter(getter: ScopeGetter): void;
|
|
701
|
-
/**
|
|
702
|
-
* 设置API
|
|
703
|
-
* @param name
|
|
704
|
-
* @param func
|
|
705
|
-
* @param scope
|
|
706
|
-
*/
|
|
707
|
-
setAPI(name: string, func: any, scope?: string): void;
|
|
708
|
-
/**
|
|
709
|
-
* 获取API
|
|
710
|
-
* @param proxy
|
|
711
|
-
* @param name
|
|
712
|
-
* @param scope
|
|
713
|
-
*/
|
|
714
|
-
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
715
|
-
/**
|
|
716
|
-
* 批量增加api
|
|
717
|
-
* @param apis
|
|
718
|
-
* @param scope
|
|
719
|
-
*/
|
|
720
|
-
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
721
|
-
/**
|
|
722
|
-
* 清空scope apis
|
|
723
|
-
* @param scope
|
|
724
|
-
*/
|
|
725
|
-
clearScopeAPI(scope: string): void;
|
|
726
|
-
/**
|
|
727
|
-
* 获取root domain
|
|
728
|
-
*/
|
|
729
|
-
getRootDomain(): Domain;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* UI Options
|
|
734
|
-
*/
|
|
735
|
-
declare interface FoxUIOptions {
|
|
736
|
-
headerBarHeight?: number;
|
|
737
|
-
footerBarHeight?: number;
|
|
738
|
-
safeAreaInset?: SafeAreaInset;
|
|
739
|
-
pageLayout?: PageLayout;
|
|
740
|
-
headerPadding?: Rect;
|
|
741
|
-
contentPadding?: Rect;
|
|
742
|
-
groupLayout?: GroupLayout;
|
|
743
|
-
labelWidth?: number | string;
|
|
744
|
-
[propName: string]: any;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
970
|
/**
|
|
748
971
|
* Fox UI vue实例
|
|
749
972
|
*/
|
|
@@ -873,21 +1096,10 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
|
|
|
873
1096
|
*/
|
|
874
1097
|
export declare function getRootDomain(): Domain;
|
|
875
1098
|
|
|
876
|
-
export declare const Group: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
877
|
-
|
|
878
1099
|
/**
|
|
879
|
-
*
|
|
1100
|
+
* 是否支持symbol
|
|
880
1101
|
*/
|
|
881
|
-
declare
|
|
882
|
-
type: string;
|
|
883
|
-
width: number;
|
|
884
|
-
column: number;
|
|
885
|
-
gutter: number;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
export declare const HeaderBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
889
|
-
|
|
890
|
-
export declare const HintText: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1102
|
+
export declare const hasSymbol: boolean;
|
|
891
1103
|
|
|
892
1104
|
/**
|
|
893
1105
|
* 根据包含模版,抽取属性
|
|
@@ -905,12 +1117,6 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
|
|
|
905
1117
|
*/
|
|
906
1118
|
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
907
1119
|
|
|
908
|
-
export declare const Indicator: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
909
|
-
|
|
910
|
-
export declare const InputItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
911
|
-
|
|
912
|
-
export declare const InputNumberItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
913
|
-
|
|
914
1120
|
/**
|
|
915
1121
|
* 安装函数
|
|
916
1122
|
*/
|
|
@@ -918,33 +1124,76 @@ declare interface Installer {
|
|
|
918
1124
|
(app: App, options?: any): void;
|
|
919
1125
|
}
|
|
920
1126
|
|
|
1127
|
+
/**
|
|
1128
|
+
* 安装校验规则
|
|
1129
|
+
* @param proxy
|
|
1130
|
+
*/
|
|
1131
|
+
export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
|
|
1132
|
+
|
|
921
1133
|
/**
|
|
922
1134
|
* 获取整数长度
|
|
923
1135
|
* @param value
|
|
924
1136
|
*/
|
|
925
|
-
export declare function integerLength(
|
|
1137
|
+
export declare function integerLength(v: string | number): number;
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* 是否数组
|
|
1141
|
+
*/
|
|
1142
|
+
export declare const isArray: (arg: any) => arg is any[];
|
|
926
1143
|
|
|
927
|
-
|
|
1144
|
+
/**
|
|
1145
|
+
* 是否为类数组
|
|
1146
|
+
* @param obj
|
|
1147
|
+
* @returns {boolean}
|
|
1148
|
+
*/
|
|
1149
|
+
export declare function isArrayLike(obj: any): boolean;
|
|
928
1150
|
|
|
929
1151
|
/**
|
|
930
1152
|
* 是否为浏览器环境
|
|
931
1153
|
*/
|
|
932
1154
|
export declare const isBrowser: boolean;
|
|
933
1155
|
|
|
934
|
-
|
|
1156
|
+
/**
|
|
1157
|
+
* 是否为Date
|
|
1158
|
+
* @param val
|
|
1159
|
+
* @returns
|
|
1160
|
+
*/
|
|
1161
|
+
export declare const isDate: (val: unknown) => val is Date;
|
|
935
1162
|
|
|
936
1163
|
/**
|
|
937
1164
|
* 是否空字符串
|
|
938
1165
|
* @param v
|
|
939
1166
|
* @returns
|
|
940
1167
|
*/
|
|
941
|
-
export declare const isEmptyString: (v: unknown) =>
|
|
1168
|
+
export declare const isEmptyString: (v: unknown) => v is "";
|
|
942
1169
|
|
|
943
|
-
|
|
1170
|
+
/**
|
|
1171
|
+
* 判断两个对象是否一致
|
|
1172
|
+
* @param x
|
|
1173
|
+
* @param y
|
|
1174
|
+
* @return
|
|
1175
|
+
*/
|
|
1176
|
+
export declare function isEqual(x: any, y: any): boolean;
|
|
944
1177
|
|
|
945
|
-
|
|
1178
|
+
/**
|
|
1179
|
+
* 是否为es module
|
|
1180
|
+
* @param obj
|
|
1181
|
+
* @returns
|
|
1182
|
+
*/
|
|
1183
|
+
export declare function isESModule(obj: any): obj is Object;
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* 是否为函数
|
|
1187
|
+
* @param val
|
|
1188
|
+
* @returns
|
|
1189
|
+
*/
|
|
1190
|
+
export declare const isFunction: (val: unknown) => val is Function;
|
|
946
1191
|
|
|
947
|
-
|
|
1192
|
+
/**
|
|
1193
|
+
* 是否是隐藏element
|
|
1194
|
+
* @param el
|
|
1195
|
+
*/
|
|
1196
|
+
export declare function isHidden(el: any): boolean;
|
|
948
1197
|
|
|
949
1198
|
/**
|
|
950
1199
|
* 是否为内嵌页面
|
|
@@ -955,20 +1204,43 @@ export { isFunction }
|
|
|
955
1204
|
*/
|
|
956
1205
|
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
957
1206
|
|
|
958
|
-
|
|
1207
|
+
/**
|
|
1208
|
+
* 是否为Map
|
|
1209
|
+
* @param val
|
|
1210
|
+
* @returns
|
|
1211
|
+
*/
|
|
1212
|
+
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* 是否null/undefined对象
|
|
1216
|
+
*/
|
|
1217
|
+
export declare function isNil(v: unknown): v is null | undefined;
|
|
959
1218
|
|
|
960
1219
|
/**
|
|
961
1220
|
* 是否为数字字符串
|
|
962
1221
|
* @param value
|
|
963
1222
|
* @returns
|
|
964
1223
|
*/
|
|
965
|
-
export declare function isNumberString(
|
|
1224
|
+
export declare function isNumberString(v: string): v is string;
|
|
966
1225
|
|
|
967
|
-
|
|
1226
|
+
/**
|
|
1227
|
+
* 是否为object
|
|
1228
|
+
*/
|
|
1229
|
+
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
968
1230
|
|
|
969
|
-
|
|
1231
|
+
/**
|
|
1232
|
+
* 是否为plain对象
|
|
1233
|
+
* @param val
|
|
1234
|
+
* @returns
|
|
1235
|
+
*/
|
|
1236
|
+
export declare const isPlainObject: (val: unknown) => val is object;
|
|
970
1237
|
|
|
971
|
-
|
|
1238
|
+
/**
|
|
1239
|
+
* 是否为promise
|
|
1240
|
+
* @param val
|
|
1241
|
+
* @returns
|
|
1242
|
+
*/
|
|
1243
|
+
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
972
1244
|
|
|
973
1245
|
/**
|
|
974
1246
|
* 判断是否为正则表达式
|
|
@@ -977,9 +1249,19 @@ export { isPromise }
|
|
|
977
1249
|
*/
|
|
978
1250
|
export declare function isRegExp(v: unknown): v is RegExp;
|
|
979
1251
|
|
|
980
|
-
|
|
1252
|
+
/**
|
|
1253
|
+
* 是否为Set
|
|
1254
|
+
* @param val
|
|
1255
|
+
* @returns
|
|
1256
|
+
*/
|
|
1257
|
+
export declare const isSet: (val: unknown) => val is Set<any>;
|
|
981
1258
|
|
|
982
|
-
|
|
1259
|
+
/**
|
|
1260
|
+
* 是否为字符串
|
|
1261
|
+
* @param val
|
|
1262
|
+
* @returns
|
|
1263
|
+
*/
|
|
1264
|
+
export declare const isString: (val: unknown) => val is string;
|
|
983
1265
|
|
|
984
1266
|
/**
|
|
985
1267
|
* 是否子页面
|
|
@@ -987,9 +1269,24 @@ export { isString }
|
|
|
987
1269
|
*/
|
|
988
1270
|
export declare function isSubPage(domain: Domain): boolean;
|
|
989
1271
|
|
|
990
|
-
|
|
1272
|
+
/**
|
|
1273
|
+
* 是否为symbol
|
|
1274
|
+
* @param val
|
|
1275
|
+
* @returns
|
|
1276
|
+
*/
|
|
1277
|
+
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* 是否为支持触摸
|
|
1281
|
+
* @returns
|
|
1282
|
+
*/
|
|
1283
|
+
export declare function isTouch(): boolean;
|
|
991
1284
|
|
|
992
|
-
|
|
1285
|
+
/**
|
|
1286
|
+
* 是否是window对象
|
|
1287
|
+
* @param obj
|
|
1288
|
+
*/
|
|
1289
|
+
export declare function isWindow(obj: any): boolean;
|
|
993
1290
|
|
|
994
1291
|
/**
|
|
995
1292
|
* 获取对应元素的在数组中最后一个匹配的索引
|
|
@@ -999,7 +1296,13 @@ export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
999
1296
|
*/
|
|
1000
1297
|
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
1001
1298
|
|
|
1002
|
-
|
|
1299
|
+
/**
|
|
1300
|
+
* 创建数组
|
|
1301
|
+
* @param arr
|
|
1302
|
+
* @param results
|
|
1303
|
+
* @return
|
|
1304
|
+
*/
|
|
1305
|
+
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
1003
1306
|
|
|
1004
1307
|
/**
|
|
1005
1308
|
* 匹配条件
|
|
@@ -1012,14 +1315,41 @@ export declare interface Matched {
|
|
|
1012
1315
|
level?: number;
|
|
1013
1316
|
}
|
|
1014
1317
|
|
|
1015
|
-
|
|
1318
|
+
/**
|
|
1319
|
+
* 合并数组
|
|
1320
|
+
* @param first
|
|
1321
|
+
* @param second
|
|
1322
|
+
* @return
|
|
1323
|
+
*/
|
|
1324
|
+
export declare function merge(first: any[], second: any[]): any[];
|
|
1016
1325
|
|
|
1017
1326
|
export { multiply }
|
|
1018
1327
|
|
|
1019
1328
|
export { negate }
|
|
1020
1329
|
|
|
1330
|
+
/**
|
|
1331
|
+
* 下一个事件周期中执行函数
|
|
1332
|
+
* @param fn
|
|
1333
|
+
* @param args
|
|
1334
|
+
*/
|
|
1335
|
+
export declare function nextTick(fn: {
|
|
1336
|
+
(...args: any[]): void;
|
|
1337
|
+
}, ...args: any[]): void;
|
|
1338
|
+
|
|
1021
1339
|
export { numberFormat }
|
|
1022
1340
|
|
|
1341
|
+
/**
|
|
1342
|
+
* 对象类型
|
|
1343
|
+
*/
|
|
1344
|
+
export declare const objectToString: () => string;
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* 只执行一次函数
|
|
1348
|
+
* @param func
|
|
1349
|
+
* @returns
|
|
1350
|
+
*/
|
|
1351
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
1352
|
+
|
|
1023
1353
|
/**
|
|
1024
1354
|
* padding
|
|
1025
1355
|
*/
|
|
@@ -1030,16 +1360,14 @@ export declare interface Padding {
|
|
|
1030
1360
|
bottom: number | null;
|
|
1031
1361
|
}
|
|
1032
1362
|
|
|
1033
|
-
export declare const Page: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1034
|
-
|
|
1035
1363
|
/**
|
|
1036
1364
|
* page layout
|
|
1037
1365
|
*/
|
|
1038
1366
|
export declare interface PageLayout {
|
|
1039
1367
|
width: number | string;
|
|
1040
1368
|
height: number | string;
|
|
1041
|
-
headerHeight
|
|
1042
|
-
footerHeight
|
|
1369
|
+
headerHeight?: number | string;
|
|
1370
|
+
footerHeight?: number | string;
|
|
1043
1371
|
headerPadding?: Padding;
|
|
1044
1372
|
footerPadding?: Padding;
|
|
1045
1373
|
contentPadding?: Padding;
|
|
@@ -1050,10 +1378,14 @@ export declare interface PageState {
|
|
|
1050
1378
|
height: number;
|
|
1051
1379
|
headerHeight: number;
|
|
1052
1380
|
headerPadding: Padding;
|
|
1381
|
+
headerAllHeight?: number;
|
|
1053
1382
|
footerHeight: number;
|
|
1054
1383
|
footerPadding: Padding;
|
|
1384
|
+
footerAllHeight?: number;
|
|
1055
1385
|
contentHeight: number | string | null;
|
|
1056
1386
|
contentPadding: Padding;
|
|
1387
|
+
contentInnerHeight?: number;
|
|
1388
|
+
contentInnerWidth?: number;
|
|
1057
1389
|
safeAreaTop: number;
|
|
1058
1390
|
safeAreaBottom: number;
|
|
1059
1391
|
safeAreaLeft: number;
|
|
@@ -1070,8 +1402,6 @@ export declare interface Point {
|
|
|
1070
1402
|
y: number;
|
|
1071
1403
|
}
|
|
1072
1404
|
|
|
1073
|
-
export declare const Price: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1074
|
-
|
|
1075
1405
|
/**
|
|
1076
1406
|
* 优先策略
|
|
1077
1407
|
*/
|
|
@@ -1089,32 +1419,15 @@ export declare enum PriorityPolicy {
|
|
|
1089
1419
|
*/
|
|
1090
1420
|
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
1091
1421
|
|
|
1092
|
-
export declare const RadioItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1093
|
-
|
|
1094
|
-
/**
|
|
1095
|
-
* 动画
|
|
1096
|
-
*/
|
|
1097
1422
|
export declare const raf: any;
|
|
1098
1423
|
|
|
1099
|
-
export declare const RateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1100
|
-
|
|
1101
1424
|
/**
|
|
1102
1425
|
* 只读属性
|
|
1103
1426
|
* @param source
|
|
1104
1427
|
*/
|
|
1105
1428
|
export declare function readonlyProperty(source: Ref): Ref;
|
|
1106
1429
|
|
|
1107
|
-
/**
|
|
1108
|
-
* Rect类型
|
|
1109
|
-
*/
|
|
1110
1430
|
declare interface Rect {
|
|
1111
|
-
left: number;
|
|
1112
|
-
top: number;
|
|
1113
|
-
right: number;
|
|
1114
|
-
bottom: number;
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
declare interface Rect_2 {
|
|
1118
1431
|
top: number;
|
|
1119
1432
|
left: number;
|
|
1120
1433
|
right: number;
|
|
@@ -1133,8 +1446,6 @@ export declare type Result = Promise<any> | any;
|
|
|
1133
1446
|
*/
|
|
1134
1447
|
export declare type Results = Result[];
|
|
1135
1448
|
|
|
1136
|
-
export declare const RowItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1137
|
-
|
|
1138
1449
|
/**
|
|
1139
1450
|
* 安全区域
|
|
1140
1451
|
*/
|
|
@@ -1145,15 +1456,6 @@ export declare interface SafeAreaInset {
|
|
|
1145
1456
|
bottom: number | string;
|
|
1146
1457
|
}
|
|
1147
1458
|
|
|
1148
|
-
/**
|
|
1149
|
-
* scope getter
|
|
1150
|
-
*/
|
|
1151
|
-
declare interface ScopeGetter {
|
|
1152
|
-
(proxy: ComponentPublicInstance): string | null;
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
export declare const SelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1156
|
-
|
|
1157
1459
|
/**
|
|
1158
1460
|
* 设置公共校验检查事件
|
|
1159
1461
|
* @param events
|
|
@@ -1184,29 +1486,35 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
|
1184
1486
|
*/
|
|
1185
1487
|
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
1186
1488
|
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1489
|
+
/**
|
|
1490
|
+
* size
|
|
1491
|
+
*/
|
|
1492
|
+
declare interface Size {
|
|
1493
|
+
width: number;
|
|
1494
|
+
height: number;
|
|
1495
|
+
}
|
|
1194
1496
|
|
|
1195
1497
|
/**
|
|
1196
|
-
* 节流函数
|
|
1498
|
+
* 节流函数(执行时间范围内的第一次)
|
|
1197
1499
|
* @param func 函数
|
|
1198
|
-
* @param
|
|
1500
|
+
* @param delay 延迟执行毫秒数
|
|
1199
1501
|
* @returns
|
|
1200
1502
|
*/
|
|
1201
|
-
export declare function throttle(func: GenericFunction,
|
|
1503
|
+
export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
|
|
1202
1504
|
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1505
|
+
/**
|
|
1506
|
+
* 转换为boolean值
|
|
1507
|
+
* @param val
|
|
1508
|
+
* @returns
|
|
1509
|
+
*/
|
|
1510
|
+
export declare function toBoolean(val: unknown): boolean;
|
|
1208
1511
|
|
|
1209
|
-
|
|
1512
|
+
/**
|
|
1513
|
+
* 转换为number值
|
|
1514
|
+
* @param val
|
|
1515
|
+
* @returns
|
|
1516
|
+
*/
|
|
1517
|
+
export declare function toNumber(val: unknown): number;
|
|
1210
1518
|
|
|
1211
1519
|
/**
|
|
1212
1520
|
* 转换为number rect
|
|
@@ -1228,7 +1536,7 @@ export declare function toPx(value: number | string, size?: number): number;
|
|
|
1228
1536
|
*/
|
|
1229
1537
|
export declare const toPxDesc: (value: string | number, size?: number) => string;
|
|
1230
1538
|
|
|
1231
|
-
export
|
|
1539
|
+
export declare const toTypeString: (value: unknown) => string;
|
|
1232
1540
|
|
|
1233
1541
|
/**
|
|
1234
1542
|
* to model value
|
|
@@ -1238,6 +1546,34 @@ export { toTypeString }
|
|
|
1238
1546
|
*/
|
|
1239
1547
|
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
1240
1548
|
|
|
1549
|
+
/**
|
|
1550
|
+
* 尝试执行多次函数
|
|
1551
|
+
* @param func 执行函数
|
|
1552
|
+
* @param milliseconds 执行间隔
|
|
1553
|
+
* @param maxLimit 最大尝试次数
|
|
1554
|
+
* @param step 间隔增加步长
|
|
1555
|
+
* @param immediately 是否立刻执行
|
|
1556
|
+
* @param callback 执行成功后的回调函数
|
|
1557
|
+
*/
|
|
1558
|
+
export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean, callback?: {
|
|
1559
|
+
(ret: boolean): void;
|
|
1560
|
+
}): void;
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* 尝试多次函数
|
|
1564
|
+
* 返回true,代表执行完成,不在需要重试
|
|
1565
|
+
*/
|
|
1566
|
+
export declare interface TryTimesFunction {
|
|
1567
|
+
(): boolean;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* 判断类型
|
|
1572
|
+
* @param obj
|
|
1573
|
+
* @returns any
|
|
1574
|
+
*/
|
|
1575
|
+
export declare function typeOf(obj: any): string;
|
|
1576
|
+
|
|
1241
1577
|
export declare class UniqueID {
|
|
1242
1578
|
/**
|
|
1243
1579
|
* seed id
|
|
@@ -1262,6 +1598,11 @@ export { unNumberFormat }
|
|
|
1262
1598
|
* @param state
|
|
1263
1599
|
* @param pageLayout
|
|
1264
1600
|
* @param overrideProps
|
|
1601
|
+
* @param root
|
|
1602
|
+
* @param rootWidth
|
|
1603
|
+
* @param rootHeight
|
|
1604
|
+
* @param headerBarHeight
|
|
1605
|
+
* @param footerBarHeight
|
|
1265
1606
|
*/
|
|
1266
1607
|
export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
|
|
1267
1608
|
|
|
@@ -1276,7 +1617,7 @@ export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null):
|
|
|
1276
1617
|
* 获取当前domain
|
|
1277
1618
|
* @returns
|
|
1278
1619
|
*/
|
|
1279
|
-
export declare function useDomain(
|
|
1620
|
+
export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
|
|
1280
1621
|
|
|
1281
1622
|
/**
|
|
1282
1623
|
* use expose
|
|
@@ -1284,6 +1625,13 @@ export declare function useDomain(instance?: ComponentInternalInstance | null):
|
|
|
1284
1625
|
*/
|
|
1285
1626
|
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
1286
1627
|
|
|
1628
|
+
/**
|
|
1629
|
+
* 获取内部可用size
|
|
1630
|
+
* @param elementRef
|
|
1631
|
+
* @returns
|
|
1632
|
+
*/
|
|
1633
|
+
export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
|
|
1634
|
+
|
|
1287
1635
|
/**
|
|
1288
1636
|
* 获取page state
|
|
1289
1637
|
* @param domain
|
|
@@ -1298,23 +1646,59 @@ export declare function usePageState(domain: Domain): PageState | null;
|
|
|
1298
1646
|
*/
|
|
1299
1647
|
export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
|
|
1300
1648
|
|
|
1301
|
-
|
|
1649
|
+
/**
|
|
1650
|
+
* 获取非响应式touch对象
|
|
1651
|
+
* @returns
|
|
1652
|
+
*/
|
|
1653
|
+
export declare function useRawTouch(): {
|
|
1654
|
+
move: EventListener;
|
|
1655
|
+
start: EventListener;
|
|
1656
|
+
reset: () => void;
|
|
1657
|
+
isVertical: () => boolean;
|
|
1658
|
+
isHorizontal: () => boolean;
|
|
1659
|
+
state: {
|
|
1660
|
+
startX: number;
|
|
1661
|
+
startY: number;
|
|
1662
|
+
startTime: number;
|
|
1663
|
+
duration: number;
|
|
1664
|
+
moveX: number;
|
|
1665
|
+
moveY: number;
|
|
1666
|
+
deltaX: number;
|
|
1667
|
+
deltaY: number;
|
|
1668
|
+
offsetX: number;
|
|
1669
|
+
offsetY: number;
|
|
1670
|
+
direction: Direction;
|
|
1671
|
+
};
|
|
1672
|
+
};
|
|
1673
|
+
|
|
1674
|
+
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
1302
1675
|
|
|
1676
|
+
/**
|
|
1677
|
+
* 获取size
|
|
1678
|
+
* @param elementRef
|
|
1679
|
+
* @returns
|
|
1680
|
+
*/
|
|
1681
|
+
export declare function useSize(elementRef: Element | Ref<Element>): Size;
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* 获取响应式touch对象
|
|
1685
|
+
* @returns
|
|
1686
|
+
*/
|
|
1303
1687
|
export declare function useTouch(): {
|
|
1304
1688
|
move: EventListener;
|
|
1305
1689
|
start: EventListener;
|
|
1306
1690
|
reset: () => void;
|
|
1307
|
-
startX:
|
|
1308
|
-
startY:
|
|
1309
|
-
startTime:
|
|
1310
|
-
duration:
|
|
1311
|
-
moveX:
|
|
1312
|
-
moveY:
|
|
1313
|
-
deltaX:
|
|
1314
|
-
deltaY:
|
|
1315
|
-
offsetX:
|
|
1316
|
-
offsetY:
|
|
1317
|
-
direction:
|
|
1691
|
+
startX: any;
|
|
1692
|
+
startY: any;
|
|
1693
|
+
startTime: any;
|
|
1694
|
+
duration: any;
|
|
1695
|
+
moveX: any;
|
|
1696
|
+
moveY: any;
|
|
1697
|
+
deltaX: any;
|
|
1698
|
+
deltaY: any;
|
|
1699
|
+
offsetX: any;
|
|
1700
|
+
offsetY: any;
|
|
1701
|
+
direction: any;
|
|
1318
1702
|
isVertical: () => boolean;
|
|
1319
1703
|
isHorizontal: () => boolean;
|
|
1320
1704
|
};
|
|
@@ -1323,8 +1707,10 @@ export declare function useTouch(): {
|
|
|
1323
1707
|
* 校验条件
|
|
1324
1708
|
*/
|
|
1325
1709
|
export declare interface ValidateCondition {
|
|
1326
|
-
|
|
1710
|
+
deep?: boolean;
|
|
1327
1711
|
include?: string[];
|
|
1712
|
+
exclude?: string[];
|
|
1713
|
+
ignoreHidden?: boolean;
|
|
1328
1714
|
}
|
|
1329
1715
|
|
|
1330
1716
|
/**
|