@fox-js/foxui-pc 4.0.1-10 → 4.0.1-101
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 +9689 -4534
- 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 +622 -300
- 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,158 @@ 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 DialogItem }
|
|
461
|
+
export { _default_30 as FoxDialogItem }
|
|
462
|
+
|
|
463
|
+
declare const _default_31: any;
|
|
464
|
+
export { _default_31 as FoxMapping }
|
|
465
|
+
export { _default_31 as Mapping }
|
|
466
|
+
|
|
467
|
+
declare const _default_32: any;
|
|
468
|
+
export { _default_32 as FoxPrice }
|
|
469
|
+
export { _default_32 as Price }
|
|
470
|
+
|
|
471
|
+
declare const _default_33: any;
|
|
472
|
+
export { _default_33 as FoxIndicator }
|
|
473
|
+
export { _default_33 as Indicator }
|
|
474
|
+
|
|
475
|
+
declare const _default_34: any;
|
|
476
|
+
export { _default_34 as FoxText }
|
|
477
|
+
export { _default_34 as Text }
|
|
478
|
+
|
|
479
|
+
declare const _default_35: any;
|
|
480
|
+
export { _default_35 as FoxMoreButton }
|
|
481
|
+
export { _default_35 as MoreButton }
|
|
482
|
+
|
|
483
|
+
declare const _default_36: any;
|
|
484
|
+
export { _default_36 as FoxTour }
|
|
485
|
+
export { _default_36 as Tour }
|
|
486
|
+
|
|
487
|
+
declare const _default_37: any;
|
|
488
|
+
export { _default_37 as FloatingWindow }
|
|
489
|
+
export { _default_37 as FoxFloatingWindow }
|
|
490
|
+
|
|
491
|
+
declare const _default_38: any;
|
|
492
|
+
export { _default_38 as DomainProvider }
|
|
493
|
+
export { _default_38 as FoxDomainProvider }
|
|
494
|
+
|
|
495
|
+
declare const _default_39: any;
|
|
496
|
+
export { _default_39 as FoxRollingProvider }
|
|
497
|
+
export { _default_39 as RollingProvider }
|
|
498
|
+
|
|
499
|
+
declare const _default_4: any;
|
|
500
|
+
export { _default_4 as FooterBar }
|
|
501
|
+
export { _default_4 as FoxFooterBar }
|
|
502
|
+
|
|
503
|
+
declare const _default_5: any;
|
|
504
|
+
export { _default_5 as Content }
|
|
505
|
+
export { _default_5 as FoxContent }
|
|
506
|
+
|
|
507
|
+
declare const _default_6: any;
|
|
508
|
+
export { _default_6 as FoxGroup }
|
|
509
|
+
export { _default_6 as Group }
|
|
510
|
+
|
|
511
|
+
declare const _default_7: any;
|
|
512
|
+
export { _default_7 as FoxItem }
|
|
513
|
+
export { _default_7 as Item }
|
|
514
|
+
|
|
515
|
+
declare const _default_8: any;
|
|
516
|
+
export { _default_8 as FoxSlotItem }
|
|
517
|
+
export { _default_8 as SlotItem }
|
|
518
|
+
|
|
519
|
+
declare const _default_9: any;
|
|
520
|
+
export { _default_9 as FoxRowItem }
|
|
521
|
+
export { _default_9 as RowItem }
|
|
522
|
+
|
|
281
523
|
/**
|
|
282
524
|
* anyNode
|
|
283
525
|
* @param name
|
|
@@ -286,6 +528,15 @@ export default _default;
|
|
|
286
528
|
*/
|
|
287
529
|
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
|
|
288
530
|
|
|
531
|
+
/**
|
|
532
|
+
* 安装config domain
|
|
533
|
+
* @param name 名称
|
|
534
|
+
* @param props 属性
|
|
535
|
+
* @param ignores 忽略的属性
|
|
536
|
+
* @returns
|
|
537
|
+
*/
|
|
538
|
+
export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
|
|
539
|
+
|
|
289
540
|
/**
|
|
290
541
|
* 定义domain data item
|
|
291
542
|
* @returns
|
|
@@ -340,8 +591,6 @@ export declare interface Descriptor {
|
|
|
340
591
|
validateResetEvents?: string[];
|
|
341
592
|
}
|
|
342
593
|
|
|
343
|
-
export declare const DialogItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
344
|
-
|
|
345
594
|
/**
|
|
346
595
|
* 禁用属性
|
|
347
596
|
* @param source
|
|
@@ -474,14 +723,22 @@ declare interface EventListener_2 {
|
|
|
474
723
|
*/
|
|
475
724
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
476
725
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
726
|
+
/**
|
|
727
|
+
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
728
|
+
*
|
|
729
|
+
* @returns
|
|
730
|
+
*/
|
|
731
|
+
export declare function extend(...args: any[]): any;
|
|
480
732
|
|
|
733
|
+
/**
|
|
734
|
+
* float data
|
|
735
|
+
* @param format
|
|
736
|
+
* @param dataOp
|
|
737
|
+
* @param mapOps
|
|
738
|
+
* @returns
|
|
739
|
+
*/
|
|
481
740
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
482
741
|
|
|
483
|
-
export declare const FooterBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
484
|
-
|
|
485
742
|
export { FoxAffix }
|
|
486
743
|
|
|
487
744
|
export { FoxAlert }
|
|
@@ -536,8 +793,6 @@ export { FoxCollapseTransition }
|
|
|
536
793
|
|
|
537
794
|
export { FoxColorPicker }
|
|
538
795
|
|
|
539
|
-
declare type FoxComponentPublicInstance = any;
|
|
540
|
-
|
|
541
796
|
export { FoxConfigProvider }
|
|
542
797
|
|
|
543
798
|
export { FoxContainer }
|
|
@@ -670,78 +925,6 @@ export { FoxTreeSelect }
|
|
|
670
925
|
|
|
671
926
|
export { FoxTreeV2 }
|
|
672
927
|
|
|
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
928
|
/**
|
|
746
929
|
* Fox UI vue实例
|
|
747
930
|
*/
|
|
@@ -871,21 +1054,10 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
|
|
|
871
1054
|
*/
|
|
872
1055
|
export declare function getRootDomain(): Domain;
|
|
873
1056
|
|
|
874
|
-
export declare const Group: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
875
|
-
|
|
876
1057
|
/**
|
|
877
|
-
*
|
|
1058
|
+
* 是否支持symbol
|
|
878
1059
|
*/
|
|
879
|
-
declare
|
|
880
|
-
type: string;
|
|
881
|
-
width: number;
|
|
882
|
-
column: number;
|
|
883
|
-
gutter: number;
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
export declare const HeaderBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
887
|
-
|
|
888
|
-
export declare const HintText: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1060
|
+
export declare const hasSymbol: boolean;
|
|
889
1061
|
|
|
890
1062
|
/**
|
|
891
1063
|
* 根据包含模版,抽取属性
|
|
@@ -903,12 +1075,6 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
|
|
|
903
1075
|
*/
|
|
904
1076
|
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
905
1077
|
|
|
906
|
-
export declare const Indicator: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
907
|
-
|
|
908
|
-
export declare const InputItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
909
|
-
|
|
910
|
-
export declare const InputNumberItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
911
|
-
|
|
912
1078
|
/**
|
|
913
1079
|
* 安装函数
|
|
914
1080
|
*/
|
|
@@ -916,33 +1082,76 @@ declare interface Installer {
|
|
|
916
1082
|
(app: App, options?: any): void;
|
|
917
1083
|
}
|
|
918
1084
|
|
|
1085
|
+
/**
|
|
1086
|
+
* 安装校验规则
|
|
1087
|
+
* @param proxy
|
|
1088
|
+
*/
|
|
1089
|
+
export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
|
|
1090
|
+
|
|
919
1091
|
/**
|
|
920
1092
|
* 获取整数长度
|
|
921
1093
|
* @param value
|
|
922
1094
|
*/
|
|
923
|
-
export declare function integerLength(
|
|
1095
|
+
export declare function integerLength(v: string | number): number;
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* 是否数组
|
|
1099
|
+
*/
|
|
1100
|
+
export declare const isArray: (arg: any) => arg is any[];
|
|
924
1101
|
|
|
925
|
-
|
|
1102
|
+
/**
|
|
1103
|
+
* 是否为类数组
|
|
1104
|
+
* @param obj
|
|
1105
|
+
* @returns {boolean}
|
|
1106
|
+
*/
|
|
1107
|
+
export declare function isArrayLike(obj: any): boolean;
|
|
926
1108
|
|
|
927
1109
|
/**
|
|
928
1110
|
* 是否为浏览器环境
|
|
929
1111
|
*/
|
|
930
1112
|
export declare const isBrowser: boolean;
|
|
931
1113
|
|
|
932
|
-
|
|
1114
|
+
/**
|
|
1115
|
+
* 是否为Date
|
|
1116
|
+
* @param val
|
|
1117
|
+
* @returns
|
|
1118
|
+
*/
|
|
1119
|
+
export declare const isDate: (val: unknown) => val is Date;
|
|
933
1120
|
|
|
934
1121
|
/**
|
|
935
1122
|
* 是否空字符串
|
|
936
1123
|
* @param v
|
|
937
1124
|
* @returns
|
|
938
1125
|
*/
|
|
939
|
-
export declare const isEmptyString: (v: unknown) =>
|
|
1126
|
+
export declare const isEmptyString: (v: unknown) => v is "";
|
|
940
1127
|
|
|
941
|
-
|
|
1128
|
+
/**
|
|
1129
|
+
* 判断两个对象是否一致
|
|
1130
|
+
* @param x
|
|
1131
|
+
* @param y
|
|
1132
|
+
* @return
|
|
1133
|
+
*/
|
|
1134
|
+
export declare function isEqual(x: any, y: any): boolean;
|
|
942
1135
|
|
|
943
|
-
|
|
1136
|
+
/**
|
|
1137
|
+
* 是否为es module
|
|
1138
|
+
* @param obj
|
|
1139
|
+
* @returns
|
|
1140
|
+
*/
|
|
1141
|
+
export declare function isESModule(obj: any): obj is Object;
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* 是否为函数
|
|
1145
|
+
* @param val
|
|
1146
|
+
* @returns
|
|
1147
|
+
*/
|
|
1148
|
+
export declare const isFunction: (val: unknown) => val is Function;
|
|
944
1149
|
|
|
945
|
-
|
|
1150
|
+
/**
|
|
1151
|
+
* 是否是隐藏element
|
|
1152
|
+
* @param el
|
|
1153
|
+
*/
|
|
1154
|
+
export declare function isHidden(el: any): boolean;
|
|
946
1155
|
|
|
947
1156
|
/**
|
|
948
1157
|
* 是否为内嵌页面
|
|
@@ -953,20 +1162,43 @@ export { isFunction }
|
|
|
953
1162
|
*/
|
|
954
1163
|
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
955
1164
|
|
|
956
|
-
|
|
1165
|
+
/**
|
|
1166
|
+
* 是否为Map
|
|
1167
|
+
* @param val
|
|
1168
|
+
* @returns
|
|
1169
|
+
*/
|
|
1170
|
+
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* 是否null/undefined对象
|
|
1174
|
+
*/
|
|
1175
|
+
export declare function isNil(v: unknown): v is null | undefined;
|
|
957
1176
|
|
|
958
1177
|
/**
|
|
959
1178
|
* 是否为数字字符串
|
|
960
1179
|
* @param value
|
|
961
1180
|
* @returns
|
|
962
1181
|
*/
|
|
963
|
-
export declare function isNumberString(
|
|
1182
|
+
export declare function isNumberString(v: string): v is string;
|
|
964
1183
|
|
|
965
|
-
|
|
1184
|
+
/**
|
|
1185
|
+
* 是否为object
|
|
1186
|
+
*/
|
|
1187
|
+
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
966
1188
|
|
|
967
|
-
|
|
1189
|
+
/**
|
|
1190
|
+
* 是否为plain对象
|
|
1191
|
+
* @param val
|
|
1192
|
+
* @returns
|
|
1193
|
+
*/
|
|
1194
|
+
export declare const isPlainObject: (val: unknown) => val is object;
|
|
968
1195
|
|
|
969
|
-
|
|
1196
|
+
/**
|
|
1197
|
+
* 是否为promise
|
|
1198
|
+
* @param val
|
|
1199
|
+
* @returns
|
|
1200
|
+
*/
|
|
1201
|
+
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
970
1202
|
|
|
971
1203
|
/**
|
|
972
1204
|
* 判断是否为正则表达式
|
|
@@ -975,9 +1207,19 @@ export { isPromise }
|
|
|
975
1207
|
*/
|
|
976
1208
|
export declare function isRegExp(v: unknown): v is RegExp;
|
|
977
1209
|
|
|
978
|
-
|
|
1210
|
+
/**
|
|
1211
|
+
* 是否为Set
|
|
1212
|
+
* @param val
|
|
1213
|
+
* @returns
|
|
1214
|
+
*/
|
|
1215
|
+
export declare const isSet: (val: unknown) => val is Set<any>;
|
|
979
1216
|
|
|
980
|
-
|
|
1217
|
+
/**
|
|
1218
|
+
* 是否为字符串
|
|
1219
|
+
* @param val
|
|
1220
|
+
* @returns
|
|
1221
|
+
*/
|
|
1222
|
+
export declare const isString: (val: unknown) => val is string;
|
|
981
1223
|
|
|
982
1224
|
/**
|
|
983
1225
|
* 是否子页面
|
|
@@ -985,9 +1227,18 @@ export { isString }
|
|
|
985
1227
|
*/
|
|
986
1228
|
export declare function isSubPage(domain: Domain): boolean;
|
|
987
1229
|
|
|
988
|
-
|
|
1230
|
+
/**
|
|
1231
|
+
* 是否为symbol
|
|
1232
|
+
* @param val
|
|
1233
|
+
* @returns
|
|
1234
|
+
*/
|
|
1235
|
+
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
989
1236
|
|
|
990
|
-
|
|
1237
|
+
/**
|
|
1238
|
+
* 是否是window对象
|
|
1239
|
+
* @param obj
|
|
1240
|
+
*/
|
|
1241
|
+
export declare function isWindow(obj: any): boolean;
|
|
991
1242
|
|
|
992
1243
|
/**
|
|
993
1244
|
* 获取对应元素的在数组中最后一个匹配的索引
|
|
@@ -997,7 +1248,13 @@ export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
997
1248
|
*/
|
|
998
1249
|
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
999
1250
|
|
|
1000
|
-
|
|
1251
|
+
/**
|
|
1252
|
+
* 创建数组
|
|
1253
|
+
* @param arr
|
|
1254
|
+
* @param results
|
|
1255
|
+
* @return
|
|
1256
|
+
*/
|
|
1257
|
+
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
1001
1258
|
|
|
1002
1259
|
/**
|
|
1003
1260
|
* 匹配条件
|
|
@@ -1010,14 +1267,41 @@ export declare interface Matched {
|
|
|
1010
1267
|
level?: number;
|
|
1011
1268
|
}
|
|
1012
1269
|
|
|
1013
|
-
|
|
1270
|
+
/**
|
|
1271
|
+
* 合并数组
|
|
1272
|
+
* @param first
|
|
1273
|
+
* @param second
|
|
1274
|
+
* @return
|
|
1275
|
+
*/
|
|
1276
|
+
export declare function merge(first: any[], second: any[]): any[];
|
|
1014
1277
|
|
|
1015
1278
|
export { multiply }
|
|
1016
1279
|
|
|
1017
1280
|
export { negate }
|
|
1018
1281
|
|
|
1282
|
+
/**
|
|
1283
|
+
* 下一个事件周期中执行函数
|
|
1284
|
+
* @param fn
|
|
1285
|
+
* @param args
|
|
1286
|
+
*/
|
|
1287
|
+
export declare function nextTick(fn: {
|
|
1288
|
+
(...args: any[]): void;
|
|
1289
|
+
}, ...args: any[]): void;
|
|
1290
|
+
|
|
1019
1291
|
export { numberFormat }
|
|
1020
1292
|
|
|
1293
|
+
/**
|
|
1294
|
+
* 对象类型
|
|
1295
|
+
*/
|
|
1296
|
+
export declare const objectToString: () => string;
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
* 只执行一次函数
|
|
1300
|
+
* @param func
|
|
1301
|
+
* @returns
|
|
1302
|
+
*/
|
|
1303
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
1304
|
+
|
|
1021
1305
|
/**
|
|
1022
1306
|
* padding
|
|
1023
1307
|
*/
|
|
@@ -1028,8 +1312,6 @@ export declare interface Padding {
|
|
|
1028
1312
|
bottom: number | null;
|
|
1029
1313
|
}
|
|
1030
1314
|
|
|
1031
|
-
export declare const Page: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1032
|
-
|
|
1033
1315
|
/**
|
|
1034
1316
|
* page layout
|
|
1035
1317
|
*/
|
|
@@ -1048,10 +1330,14 @@ export declare interface PageState {
|
|
|
1048
1330
|
height: number;
|
|
1049
1331
|
headerHeight: number;
|
|
1050
1332
|
headerPadding: Padding;
|
|
1333
|
+
headerAllHeight?: number;
|
|
1051
1334
|
footerHeight: number;
|
|
1052
1335
|
footerPadding: Padding;
|
|
1336
|
+
footerAllHeight?: number;
|
|
1053
1337
|
contentHeight: number | string | null;
|
|
1054
1338
|
contentPadding: Padding;
|
|
1339
|
+
contentInnerHeight?: number;
|
|
1340
|
+
contentInnerWidth?: number;
|
|
1055
1341
|
safeAreaTop: number;
|
|
1056
1342
|
safeAreaBottom: number;
|
|
1057
1343
|
safeAreaLeft: number;
|
|
@@ -1068,8 +1354,6 @@ export declare interface Point {
|
|
|
1068
1354
|
y: number;
|
|
1069
1355
|
}
|
|
1070
1356
|
|
|
1071
|
-
export declare const Price: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1072
|
-
|
|
1073
1357
|
/**
|
|
1074
1358
|
* 优先策略
|
|
1075
1359
|
*/
|
|
@@ -1087,32 +1371,15 @@ export declare enum PriorityPolicy {
|
|
|
1087
1371
|
*/
|
|
1088
1372
|
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
1089
1373
|
|
|
1090
|
-
export declare const RadioItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* 动画
|
|
1094
|
-
*/
|
|
1095
1374
|
export declare const raf: any;
|
|
1096
1375
|
|
|
1097
|
-
export declare const RateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1098
|
-
|
|
1099
1376
|
/**
|
|
1100
1377
|
* 只读属性
|
|
1101
1378
|
* @param source
|
|
1102
1379
|
*/
|
|
1103
1380
|
export declare function readonlyProperty(source: Ref): Ref;
|
|
1104
1381
|
|
|
1105
|
-
/**
|
|
1106
|
-
* Rect类型
|
|
1107
|
-
*/
|
|
1108
1382
|
declare interface Rect {
|
|
1109
|
-
left: number;
|
|
1110
|
-
top: number;
|
|
1111
|
-
right: number;
|
|
1112
|
-
bottom: number;
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
declare interface Rect_2 {
|
|
1116
1383
|
top: number;
|
|
1117
1384
|
left: number;
|
|
1118
1385
|
right: number;
|
|
@@ -1131,8 +1398,6 @@ export declare type Result = Promise<any> | any;
|
|
|
1131
1398
|
*/
|
|
1132
1399
|
export declare type Results = Result[];
|
|
1133
1400
|
|
|
1134
|
-
export declare const RowItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1135
|
-
|
|
1136
1401
|
/**
|
|
1137
1402
|
* 安全区域
|
|
1138
1403
|
*/
|
|
@@ -1143,15 +1408,6 @@ export declare interface SafeAreaInset {
|
|
|
1143
1408
|
bottom: number | string;
|
|
1144
1409
|
}
|
|
1145
1410
|
|
|
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>, {}>;
|
|
1154
|
-
|
|
1155
1411
|
/**
|
|
1156
1412
|
* 设置公共校验检查事件
|
|
1157
1413
|
* @param events
|
|
@@ -1182,29 +1438,35 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
|
1182
1438
|
*/
|
|
1183
1439
|
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
1184
1440
|
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1441
|
+
/**
|
|
1442
|
+
* size
|
|
1443
|
+
*/
|
|
1444
|
+
declare interface Size {
|
|
1445
|
+
width: number;
|
|
1446
|
+
height: number;
|
|
1447
|
+
}
|
|
1192
1448
|
|
|
1193
1449
|
/**
|
|
1194
|
-
* 节流函数
|
|
1450
|
+
* 节流函数(执行时间范围内的第一次)
|
|
1195
1451
|
* @param func 函数
|
|
1196
|
-
* @param
|
|
1452
|
+
* @param delay 延迟执行毫秒数
|
|
1197
1453
|
* @returns
|
|
1198
1454
|
*/
|
|
1199
|
-
export declare function throttle(func: GenericFunction,
|
|
1200
|
-
|
|
1201
|
-
export declare const TimeItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1455
|
+
export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
|
|
1202
1456
|
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1457
|
+
/**
|
|
1458
|
+
* 转换为boolean值
|
|
1459
|
+
* @param val
|
|
1460
|
+
* @returns
|
|
1461
|
+
*/
|
|
1462
|
+
export declare function toBoolean(val: unknown): boolean;
|
|
1206
1463
|
|
|
1207
|
-
|
|
1464
|
+
/**
|
|
1465
|
+
* 转换为number值
|
|
1466
|
+
* @param val
|
|
1467
|
+
* @returns
|
|
1468
|
+
*/
|
|
1469
|
+
export declare function toNumber(val: unknown): number;
|
|
1208
1470
|
|
|
1209
1471
|
/**
|
|
1210
1472
|
* 转换为number rect
|
|
@@ -1226,7 +1488,7 @@ export declare function toPx(value: number | string, size?: number): number;
|
|
|
1226
1488
|
*/
|
|
1227
1489
|
export declare const toPxDesc: (value: string | number, size?: number) => string;
|
|
1228
1490
|
|
|
1229
|
-
export
|
|
1491
|
+
export declare const toTypeString: (value: unknown) => string;
|
|
1230
1492
|
|
|
1231
1493
|
/**
|
|
1232
1494
|
* to model value
|
|
@@ -1236,6 +1498,31 @@ export { toTypeString }
|
|
|
1236
1498
|
*/
|
|
1237
1499
|
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
1238
1500
|
|
|
1501
|
+
/**
|
|
1502
|
+
* 尝试执行多次函数
|
|
1503
|
+
* @param func 执行函数
|
|
1504
|
+
* @param milliseconds 执行间隔
|
|
1505
|
+
* @param maxLimit 最大尝试次数
|
|
1506
|
+
* @param step 间隔增加步长
|
|
1507
|
+
* @param immediately 是否立刻执行
|
|
1508
|
+
*/
|
|
1509
|
+
export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean): void;
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* 尝试多次函数
|
|
1513
|
+
* 返回true,代表执行完成,不在需要重试
|
|
1514
|
+
*/
|
|
1515
|
+
export declare interface TryTimesFunction {
|
|
1516
|
+
(): boolean;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* 判断类型
|
|
1521
|
+
* @param obj
|
|
1522
|
+
* @returns any
|
|
1523
|
+
*/
|
|
1524
|
+
export declare function typeOf(obj: any): string;
|
|
1525
|
+
|
|
1239
1526
|
export declare class UniqueID {
|
|
1240
1527
|
/**
|
|
1241
1528
|
* seed id
|
|
@@ -1274,7 +1561,7 @@ export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null):
|
|
|
1274
1561
|
* 获取当前domain
|
|
1275
1562
|
* @returns
|
|
1276
1563
|
*/
|
|
1277
|
-
export declare function useDomain(
|
|
1564
|
+
export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
|
|
1278
1565
|
|
|
1279
1566
|
/**
|
|
1280
1567
|
* use expose
|
|
@@ -1282,6 +1569,13 @@ export declare function useDomain(instance?: ComponentInternalInstance | null):
|
|
|
1282
1569
|
*/
|
|
1283
1570
|
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
1284
1571
|
|
|
1572
|
+
/**
|
|
1573
|
+
* 获取内部可用size
|
|
1574
|
+
* @param elementRef
|
|
1575
|
+
* @returns
|
|
1576
|
+
*/
|
|
1577
|
+
export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
|
|
1578
|
+
|
|
1285
1579
|
/**
|
|
1286
1580
|
* 获取page state
|
|
1287
1581
|
* @param domain
|
|
@@ -1296,14 +1590,42 @@ export declare function usePageState(domain: Domain): PageState | null;
|
|
|
1296
1590
|
*/
|
|
1297
1591
|
export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
|
|
1298
1592
|
|
|
1299
|
-
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) =>
|
|
1593
|
+
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* 获取size
|
|
1597
|
+
* @param elementRef
|
|
1598
|
+
* @returns
|
|
1599
|
+
*/
|
|
1600
|
+
export declare function useSize(elementRef: Element | Ref<Element>): Size;
|
|
1601
|
+
|
|
1602
|
+
export declare function useTouch(): {
|
|
1603
|
+
move: EventListener;
|
|
1604
|
+
start: EventListener;
|
|
1605
|
+
reset: () => void;
|
|
1606
|
+
startX: any;
|
|
1607
|
+
startY: any;
|
|
1608
|
+
startTime: any;
|
|
1609
|
+
duration: any;
|
|
1610
|
+
moveX: any;
|
|
1611
|
+
moveY: any;
|
|
1612
|
+
deltaX: any;
|
|
1613
|
+
deltaY: any;
|
|
1614
|
+
offsetX: any;
|
|
1615
|
+
offsetY: any;
|
|
1616
|
+
direction: any;
|
|
1617
|
+
isVertical: () => boolean;
|
|
1618
|
+
isHorizontal: () => boolean;
|
|
1619
|
+
};
|
|
1300
1620
|
|
|
1301
1621
|
/**
|
|
1302
1622
|
* 校验条件
|
|
1303
1623
|
*/
|
|
1304
1624
|
export declare interface ValidateCondition {
|
|
1305
|
-
|
|
1625
|
+
deep?: boolean;
|
|
1306
1626
|
include?: string[];
|
|
1627
|
+
exclude?: string[];
|
|
1628
|
+
ignoreHidden?: boolean;
|
|
1307
1629
|
}
|
|
1308
1630
|
|
|
1309
1631
|
/**
|