@fox-js/foxui-pad 4.0.1-9 → 4.1.1-0
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 +15050 -8094
- package/dist/index.umd.js +5 -5
- package/dist/locale/index.esm.js +4 -4
- package/dist/locale/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +608 -306
- package/package.json +22 -16
- package/dist/locale/index.d.ts +0 -398
- package/dist/style.esm.js +0 -7
package/dist/types/index.d.ts
CHANGED
|
@@ -1,120 +1,126 @@
|
|
|
1
|
-
import type { AllowedComponentProps } from 'vue';
|
|
2
1
|
import { App } from 'vue';
|
|
3
2
|
import { compareTo } from '@fox-js/big-decimal';
|
|
4
|
-
import type { ComponentCustomProps } from 'vue';
|
|
5
3
|
import { ComponentInternalInstance } from 'vue';
|
|
6
|
-
import type { ComponentOptionsMixin } from 'vue';
|
|
7
4
|
import { ComponentPublicInstance } from 'vue';
|
|
8
|
-
import type { ComputedOptions } from 'vue';
|
|
9
|
-
import type { DefineComponent } from 'vue';
|
|
10
5
|
import { divide } from '@fox-js/big-decimal';
|
|
11
6
|
import { ExecuteValidator } from '@fox-js/validator';
|
|
12
|
-
import { ElAffix as FoxAffix } from '
|
|
13
|
-
import { ElAlert as FoxAlert } from '
|
|
14
|
-
import {
|
|
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 {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import
|
|
7
|
+
import { ElAffix as FoxAffix } from './base';
|
|
8
|
+
import { ElAlert as FoxAlert } from './base';
|
|
9
|
+
import { ElAnchor as FoxAnchor } from './base';
|
|
10
|
+
import { ElAnchorLink as FoxAnchorLink } from './base';
|
|
11
|
+
import { ElAside as FoxAside } from './base';
|
|
12
|
+
import { ElAutocomplete as FoxAutocomplete } from './base';
|
|
13
|
+
import { ElAutoResizer as FoxAutoResizer } from './base';
|
|
14
|
+
import { ElAvatar as FoxAvatar } from './base';
|
|
15
|
+
import { ElBacktop as FoxBacktop } from './base';
|
|
16
|
+
import { ElBadge as FoxBadge } from './base';
|
|
17
|
+
import { ElBreadcrumb as FoxBreadcrumb } from './base';
|
|
18
|
+
import { ElBreadcrumbItem as FoxBreadcrumbItem } from './base';
|
|
19
|
+
import { ElButton as FoxButton } from './base';
|
|
20
|
+
import { ElButtonGroup as FoxButtonGroup } from './base';
|
|
21
|
+
import { ElCalendar as FoxCalendar } from './base';
|
|
22
|
+
import { ElCard as FoxCard } from './base';
|
|
23
|
+
import { ElCarousel as FoxCarousel } from './base';
|
|
24
|
+
import { ElCarouselItem as FoxCarouselItem } from './base';
|
|
25
|
+
import { ElCascader as FoxCascader } from './base';
|
|
26
|
+
import { ElCascaderPanel as FoxCascaderPanel } from './base';
|
|
27
|
+
import { ElCheckbox as FoxCheckbox } from './base';
|
|
28
|
+
import { ElCheckboxButton as FoxCheckboxButton } from './base';
|
|
29
|
+
import { ElCheckboxGroup as FoxCheckboxGroup } from './base';
|
|
30
|
+
import { ElCheckTag as FoxCheckTag } from './base';
|
|
31
|
+
import { ElCol as FoxCol } from './base';
|
|
32
|
+
import { ElCollapse as FoxCollapse } from './base';
|
|
33
|
+
import { ElCollapseItem as FoxCollapseItem } from './base';
|
|
34
|
+
import { ElCollapseTransition as FoxCollapseTransition } from './base';
|
|
35
|
+
import { ElColorPicker as FoxColorPicker } from './base';
|
|
36
|
+
import { FoxComponentPublicInstance } from './types';
|
|
37
|
+
import { ElConfigProvider as FoxConfigProvider } from './base';
|
|
38
|
+
import { ElContainer as FoxContainer } from './base';
|
|
39
|
+
import { ElCountdown as FoxCountdown } from './base';
|
|
40
|
+
import { ElDatePicker as FoxDatePicker } from './base';
|
|
41
|
+
import { ElDescriptions as FoxDescriptions } from './base';
|
|
42
|
+
import { ElDescriptionsItem as FoxDescriptionsItem } from './base';
|
|
43
|
+
import { ElDialog as FoxDialog } from './base';
|
|
44
|
+
import { ElDivider as FoxDivider } from './base';
|
|
45
|
+
import { ElDrawer as FoxDrawer } from './base';
|
|
46
|
+
import { ElDropdown as FoxDropdown } from './base';
|
|
47
|
+
import { ElDropdownItem as FoxDropdownItem } from './base';
|
|
48
|
+
import { ElDropdownMenu as FoxDropdownMenu } from './base';
|
|
49
|
+
import { ElEmpty as FoxEmpty } from './base';
|
|
50
|
+
import { ElFooter as FoxFooter } from './base';
|
|
51
|
+
import { ElForm as FoxForm } from './base';
|
|
52
|
+
import { ElFormItem as FoxFormItem } from './base';
|
|
53
|
+
import { ElHeader as FoxHeader } from './base';
|
|
54
|
+
import { ElIcon as FoxIcon } from './base';
|
|
55
|
+
import { ElImage as FoxImage } from './base';
|
|
56
|
+
import { ElImageViewer as FoxImageViewer } from './base';
|
|
57
|
+
import { ElInput as FoxInput } from './base';
|
|
58
|
+
import { ElInputNumber as FoxInputNumber } from './base';
|
|
59
|
+
import { ElLink as FoxLink } from './base';
|
|
60
|
+
import { ElMain as FoxMain } from './base';
|
|
61
|
+
import { ElMenu as FoxMenu } from './base';
|
|
62
|
+
import { ElMenuItem as FoxMenuItem } from './base';
|
|
63
|
+
import { ElMenuItemGroup as FoxMenuItemGroup } from './base';
|
|
64
|
+
import { ElMessage as FoxMessage } from './base';
|
|
65
|
+
import { ElMessageBox as FoxMessageBox } from './base';
|
|
66
|
+
import { ElNotification as FoxNotification } from './base';
|
|
67
|
+
import { ElOption as FoxOption } from './base';
|
|
68
|
+
import { ElOptionGroup as FoxOptionGroup } from './base';
|
|
69
|
+
import { ElPageHeader as FoxPageHeader } from './base';
|
|
70
|
+
import { ElPagination as FoxPagination } from './base';
|
|
71
|
+
import { ElPopconfirm as FoxPopconfirm } from './base';
|
|
72
|
+
import { ElPopover as FoxPopover } from './base';
|
|
73
|
+
import { ElPopper as FoxPopper } from './base';
|
|
74
|
+
import { ElProgress as FoxProgress } from './base';
|
|
75
|
+
import { ElRadio as FoxRadio } from './base';
|
|
76
|
+
import { ElRadioButton as FoxRadioButton } from './base';
|
|
77
|
+
import { ElRadioGroup as FoxRadioGroup } from './base';
|
|
78
|
+
import { ElRate as FoxRate } from './base';
|
|
79
|
+
import { ElResult as FoxResult } from './base';
|
|
80
|
+
import { ElRow as FoxRow } from './base';
|
|
81
|
+
import { ElScrollbar as FoxScrollbar } from './base';
|
|
82
|
+
import { ElSegmented as FoxSegmented } from './base';
|
|
83
|
+
import { ElSelect as FoxSelect } from './base';
|
|
84
|
+
import { ElSelectV2 as FoxSelectV2 } from './base';
|
|
85
|
+
import { ElSkeleton as FoxSkeleton } from './base';
|
|
86
|
+
import { ElSkeletonItem as FoxSkeletonItem } from './base';
|
|
87
|
+
import { ElSlider as FoxSlider } from './base';
|
|
88
|
+
import { ElSpace as FoxSpace } from './base';
|
|
89
|
+
import { ElStatistic as FoxStatistic } from './base';
|
|
90
|
+
import { ElStep as FoxStep } from './base';
|
|
91
|
+
import { ElSteps as FoxSteps } from './base';
|
|
92
|
+
import { ElSubMenu as FoxSubMenu } from './base';
|
|
93
|
+
import { ElSwitch as FoxSwitch } from './base';
|
|
94
|
+
import { ElTable as FoxTable } from './base';
|
|
95
|
+
import { ElTableColumn as FoxTableColumn } from './base';
|
|
96
|
+
import { ElTableV2 as FoxTableV2 } from './base';
|
|
97
|
+
import { ElTabPane as FoxTabPane } from './base';
|
|
98
|
+
import { ElTabs as FoxTabs } from './base';
|
|
99
|
+
import { ElTag as FoxTag } from './base';
|
|
100
|
+
import { ElTimeline as FoxTimeline } from './base';
|
|
101
|
+
import { ElTimelineItem as FoxTimelineItem } from './base';
|
|
102
|
+
import { ElTimePicker as FoxTimePicker } from './base';
|
|
103
|
+
import { ElTimeSelect as FoxTimeSelect } from './base';
|
|
104
|
+
import { ElTooltip as FoxTooltip } from './base';
|
|
105
|
+
import { ElTransfer as FoxTransfer } from './base';
|
|
106
|
+
import { ElTree as FoxTree } from './base';
|
|
107
|
+
import { ElTreeSelect as FoxTreeSelect } from './base';
|
|
108
|
+
import { ElTreeV2 as FoxTreeV2 } from './base';
|
|
109
|
+
import { FoxUI } from './interface';
|
|
110
|
+
import { FoxUIOptions } from './interface';
|
|
111
|
+
import { ElUpload as FoxUpload } from './base';
|
|
112
|
+
import { ElWatermark as FoxWatermark } from './base';
|
|
107
113
|
import { multiply } from '@fox-js/big-decimal';
|
|
108
114
|
import { negate } from '@fox-js/big-decimal';
|
|
109
115
|
import { numberFormat } from '@fox-js/big-decimal';
|
|
110
116
|
import { Ref } from 'vue';
|
|
111
117
|
import { Rule } from '@fox-js/validator';
|
|
118
|
+
import { ScopeGetter } from './api';
|
|
112
119
|
import { unNumberFormat } from '@fox-js/big-decimal';
|
|
113
120
|
import { UnwrapNestedRefs } from 'vue';
|
|
114
121
|
import { UnwrapRef } from 'vue';
|
|
115
122
|
import { ValidateMessages } from '@fox-js/validator';
|
|
116
123
|
import { ValidateResult } from '@fox-js/validator';
|
|
117
|
-
import type { VNodeProps } from 'vue';
|
|
118
124
|
|
|
119
125
|
/**
|
|
120
126
|
* 是否接受value过滤器
|
|
@@ -123,8 +129,6 @@ export declare interface AcceptFilter {
|
|
|
123
129
|
(value: any): boolean;
|
|
124
130
|
}
|
|
125
131
|
|
|
126
|
-
export declare const AutocompleteItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
127
|
-
|
|
128
132
|
/**
|
|
129
133
|
* 广播类
|
|
130
134
|
*/
|
|
@@ -202,15 +206,7 @@ export declare interface BroadcastCallback {
|
|
|
202
206
|
|
|
203
207
|
export declare const BroadcastKey: unique symbol;
|
|
204
208
|
|
|
205
|
-
export declare
|
|
206
|
-
|
|
207
|
-
export declare const CalendarPicker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
208
|
-
|
|
209
|
-
export declare const CascaderItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
210
|
-
|
|
211
|
-
export declare const CascaderPicker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
212
|
-
|
|
213
|
-
export declare const CheckboxItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
209
|
+
export declare function cancelRaf(id: number): void;
|
|
214
210
|
|
|
215
211
|
/**
|
|
216
212
|
* 清理非数字
|
|
@@ -229,8 +225,6 @@ export declare function clone(target: any, source: any, plain?: boolean): any;
|
|
|
229
225
|
|
|
230
226
|
export { compareTo }
|
|
231
227
|
|
|
232
|
-
export declare const Content: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
233
|
-
|
|
234
228
|
/**
|
|
235
229
|
* 创建broadcast
|
|
236
230
|
*
|
|
@@ -256,18 +250,124 @@ export declare function createValidateSchema(proxy: FoxComponentPublicInstance,
|
|
|
256
250
|
*/
|
|
257
251
|
export declare const DataItemsKey: unique symbol;
|
|
258
252
|
|
|
259
|
-
export declare const
|
|
260
|
-
|
|
261
|
-
|
|
253
|
+
export declare const DateUtils: {
|
|
254
|
+
/**
|
|
255
|
+
* 格式化
|
|
256
|
+
* @param date
|
|
257
|
+
* @param template
|
|
258
|
+
* @returns
|
|
259
|
+
*/
|
|
260
|
+
format(date: Date, template: string): string;
|
|
261
|
+
/**
|
|
262
|
+
* 解析
|
|
263
|
+
* @param str
|
|
264
|
+
* @param template
|
|
265
|
+
*/
|
|
266
|
+
parser(str: string, template: string): Date;
|
|
267
|
+
/**
|
|
268
|
+
* 是否为闫年
|
|
269
|
+
* @return {Boolse} true|false
|
|
270
|
+
*/
|
|
271
|
+
isLeapYear(y: number): boolean;
|
|
272
|
+
/**
|
|
273
|
+
* 返回星期数
|
|
274
|
+
* @return {String}
|
|
275
|
+
*/
|
|
276
|
+
getWhatDay(year: number, month: number, day: number): string;
|
|
277
|
+
/**
|
|
278
|
+
* 返回星期数
|
|
279
|
+
* @return {Number}
|
|
280
|
+
*/
|
|
281
|
+
getMonthPreDay(year: number, month: number): number;
|
|
282
|
+
/**
|
|
283
|
+
* 返回月份天数
|
|
284
|
+
* @return {Number}
|
|
285
|
+
*/
|
|
286
|
+
getMonthDays(year: string, month: string): number;
|
|
287
|
+
/**
|
|
288
|
+
* 补齐数字位数
|
|
289
|
+
* @return {string}
|
|
290
|
+
*/
|
|
291
|
+
getNumTwoBit(n: number): string;
|
|
292
|
+
/**
|
|
293
|
+
* 日期对象转成字符串
|
|
294
|
+
* @return {string}
|
|
295
|
+
*/
|
|
296
|
+
date2Str: (date: Date, split?: string) => string;
|
|
297
|
+
/**
|
|
298
|
+
* 返回日期格式字符串
|
|
299
|
+
* @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
300
|
+
* @param {Date} 起点日期
|
|
301
|
+
* @return {string} '2014-12-31'
|
|
302
|
+
*/
|
|
303
|
+
getDay(i: number, startDate?: Date): string;
|
|
304
|
+
/**
|
|
305
|
+
* 时间比较
|
|
306
|
+
* @return
|
|
307
|
+
*/
|
|
308
|
+
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
309
|
+
/**
|
|
310
|
+
* 时间是否相等
|
|
311
|
+
* @return
|
|
312
|
+
*/
|
|
313
|
+
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
314
|
+
/**
|
|
315
|
+
* get month week
|
|
316
|
+
* @param year
|
|
317
|
+
* @param month
|
|
318
|
+
* @param date
|
|
319
|
+
* @param firstDayOfWeek
|
|
320
|
+
* @returns
|
|
321
|
+
*/
|
|
322
|
+
getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
323
|
+
/**
|
|
324
|
+
* get year week
|
|
325
|
+
* @param year
|
|
326
|
+
* @param month
|
|
327
|
+
* @param date
|
|
328
|
+
* @param firstDayOfWeek
|
|
329
|
+
* @returns
|
|
330
|
+
*/
|
|
331
|
+
getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
332
|
+
/**
|
|
333
|
+
* get week date
|
|
334
|
+
*/
|
|
335
|
+
getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
|
|
336
|
+
/**
|
|
337
|
+
* format result date
|
|
338
|
+
*/
|
|
339
|
+
formatResultDate: (date: string) => string[];
|
|
340
|
+
/**
|
|
341
|
+
* 判断日期是否在范围内
|
|
342
|
+
* @param date
|
|
343
|
+
* @param startDate
|
|
344
|
+
* @param span 允许负数
|
|
345
|
+
*/
|
|
346
|
+
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
347
|
+
/**
|
|
348
|
+
* 判断日期是否在范围内
|
|
349
|
+
* @param date
|
|
350
|
+
* @param startDate
|
|
351
|
+
* @param span
|
|
352
|
+
*/
|
|
353
|
+
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
354
|
+
};
|
|
262
355
|
|
|
263
356
|
/**
|
|
264
|
-
* 防抖函数
|
|
357
|
+
* 防抖函数(执行时间范围内的最后一次)
|
|
265
358
|
* @param func 函数
|
|
266
359
|
* @param delay 防止抖动毫秒数
|
|
267
360
|
* @returns
|
|
268
361
|
*/
|
|
269
362
|
export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
|
|
270
363
|
|
|
364
|
+
/**
|
|
365
|
+
* 防抖Ref
|
|
366
|
+
* @param value
|
|
367
|
+
* @param delay
|
|
368
|
+
*/
|
|
369
|
+
export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
|
|
370
|
+
|
|
271
371
|
/**
|
|
272
372
|
* 获取小数长度
|
|
273
373
|
* @param value
|
|
@@ -277,6 +377,230 @@ export declare function decimalLength(value: string | number): number;
|
|
|
277
377
|
declare const _default: FoxUIVue;
|
|
278
378
|
export default _default;
|
|
279
379
|
|
|
380
|
+
declare const _default_10: any;
|
|
381
|
+
export { _default_10 as FoxHintText }
|
|
382
|
+
export { _default_10 as HintText }
|
|
383
|
+
|
|
384
|
+
declare const _default_11: any;
|
|
385
|
+
export { _default_11 as FoxInputItem }
|
|
386
|
+
export { _default_11 as InputItem }
|
|
387
|
+
|
|
388
|
+
declare const _default_12: any;
|
|
389
|
+
export { _default_12 as FoxSelectItem }
|
|
390
|
+
export { _default_12 as SelectItem }
|
|
391
|
+
|
|
392
|
+
declare const _default_13: any;
|
|
393
|
+
export { _default_13 as DateItem }
|
|
394
|
+
export { _default_13 as FoxDateItem }
|
|
395
|
+
|
|
396
|
+
declare const _default_14: any;
|
|
397
|
+
export { _default_14 as CalendarItem }
|
|
398
|
+
export { _default_14 as FoxCalendarItem }
|
|
399
|
+
|
|
400
|
+
declare const _default_15: any;
|
|
401
|
+
export { _default_15 as FoxTimeItem }
|
|
402
|
+
export { _default_15 as TimeItem }
|
|
403
|
+
|
|
404
|
+
declare const _default_16: any;
|
|
405
|
+
export { _default_16 as FoxTimeSelectItem }
|
|
406
|
+
export { _default_16 as TimeSelectItem }
|
|
407
|
+
|
|
408
|
+
declare const _default_17: any;
|
|
409
|
+
export { _default_17 as FoxMoneyItem }
|
|
410
|
+
export { _default_17 as MoneyItem }
|
|
411
|
+
|
|
412
|
+
declare const _default_18: any;
|
|
413
|
+
export { _default_18 as FoxInputNumberItem }
|
|
414
|
+
export { _default_18 as InputNumberItem }
|
|
415
|
+
|
|
416
|
+
declare const _default_19: any;
|
|
417
|
+
export { _default_19 as CascaderItem }
|
|
418
|
+
export { _default_19 as FoxCascaderItem }
|
|
419
|
+
|
|
420
|
+
declare const _default_2: any;
|
|
421
|
+
export { _default_2 as FoxPage }
|
|
422
|
+
export { _default_2 as Page }
|
|
423
|
+
|
|
424
|
+
declare const _default_20: any;
|
|
425
|
+
export { _default_20 as AutocompleteItem }
|
|
426
|
+
export { _default_20 as FoxAutocompleteItem }
|
|
427
|
+
|
|
428
|
+
declare const _default_21: any;
|
|
429
|
+
export { _default_21 as FoxTableMappingColumn }
|
|
430
|
+
export { _default_21 as TableMappingColumn }
|
|
431
|
+
|
|
432
|
+
declare const _default_22: any;
|
|
433
|
+
export { _default_22 as FoxTableRadioColumn }
|
|
434
|
+
export { _default_22 as TableRadioColumn }
|
|
435
|
+
|
|
436
|
+
declare const _default_23: any;
|
|
437
|
+
export { _default_23 as FoxTableSetting }
|
|
438
|
+
export { _default_23 as TableSetting }
|
|
439
|
+
|
|
440
|
+
declare const _default_24: any;
|
|
441
|
+
export { _default_24 as FoxTableItem }
|
|
442
|
+
export { _default_24 as TableItem }
|
|
443
|
+
|
|
444
|
+
declare const _default_25: any;
|
|
445
|
+
export { _default_25 as FoxRadioItem }
|
|
446
|
+
export { _default_25 as RadioItem }
|
|
447
|
+
|
|
448
|
+
declare const _default_26: any;
|
|
449
|
+
export { _default_26 as CheckboxItem }
|
|
450
|
+
export { _default_26 as FoxCheckboxItem }
|
|
451
|
+
|
|
452
|
+
declare const _default_27: any;
|
|
453
|
+
export { _default_27 as FoxRateItem }
|
|
454
|
+
export { _default_27 as RateItem }
|
|
455
|
+
|
|
456
|
+
declare const _default_28: any;
|
|
457
|
+
export { _default_28 as FoxSwitchItem }
|
|
458
|
+
export { _default_28 as SwitchItem }
|
|
459
|
+
|
|
460
|
+
declare const _default_29: any;
|
|
461
|
+
export { _default_29 as FoxTreeSelectItem }
|
|
462
|
+
export { _default_29 as TreeSelectItem }
|
|
463
|
+
|
|
464
|
+
declare const _default_3: any;
|
|
465
|
+
export { _default_3 as FoxHeaderBar }
|
|
466
|
+
export { _default_3 as HeaderBar }
|
|
467
|
+
|
|
468
|
+
declare const _default_30: any;
|
|
469
|
+
export { _default_30 as FoxGroupSetting }
|
|
470
|
+
export { _default_30 as GroupSetting }
|
|
471
|
+
|
|
472
|
+
declare const _default_31: any;
|
|
473
|
+
export { _default_31 as ActionsheetPane }
|
|
474
|
+
export { _default_31 as FoxActionsheetPane }
|
|
475
|
+
|
|
476
|
+
declare const _default_32: any;
|
|
477
|
+
export { _default_32 as ActionsheetItem }
|
|
478
|
+
export { _default_32 as FoxActionsheetItem }
|
|
479
|
+
|
|
480
|
+
declare const _default_33: any;
|
|
481
|
+
export { _default_33 as FoxPickerItem }
|
|
482
|
+
export { _default_33 as PickerItem }
|
|
483
|
+
|
|
484
|
+
declare const _default_34: any;
|
|
485
|
+
export { _default_34 as FoxTabsBar }
|
|
486
|
+
export { _default_34 as TabsBar }
|
|
487
|
+
|
|
488
|
+
declare const _default_35: any;
|
|
489
|
+
export { _default_35 as FoxTabsContainer }
|
|
490
|
+
export { _default_35 as TabsContainer }
|
|
491
|
+
|
|
492
|
+
declare const _default_36: any;
|
|
493
|
+
export { _default_36 as FoxTabsPane }
|
|
494
|
+
export { _default_36 as TabsPane }
|
|
495
|
+
|
|
496
|
+
declare const _default_37: any;
|
|
497
|
+
export { _default_37 as FoxStepsBar }
|
|
498
|
+
export { _default_37 as StepsBar }
|
|
499
|
+
|
|
500
|
+
declare const _default_38: any;
|
|
501
|
+
export { _default_38 as Foxpicker }
|
|
502
|
+
export { _default_38 as picker }
|
|
503
|
+
|
|
504
|
+
declare const _default_39: any;
|
|
505
|
+
export { _default_39 as Foxdatepicker }
|
|
506
|
+
export { _default_39 as datepicker }
|
|
507
|
+
|
|
508
|
+
declare const _default_4: any;
|
|
509
|
+
export { _default_4 as FooterBar }
|
|
510
|
+
export { _default_4 as FoxFooterBar }
|
|
511
|
+
|
|
512
|
+
declare const _default_40: any;
|
|
513
|
+
export { _default_40 as Foxcalendarpicker }
|
|
514
|
+
export { _default_40 as calendarpicker }
|
|
515
|
+
|
|
516
|
+
declare const _default_41: any;
|
|
517
|
+
export { _default_41 as Foxcascaderpicker }
|
|
518
|
+
export { _default_41 as cascaderpicker }
|
|
519
|
+
|
|
520
|
+
declare const _default_42: any;
|
|
521
|
+
export { _default_42 as DialogItem }
|
|
522
|
+
export { _default_42 as FoxDialogItem }
|
|
523
|
+
|
|
524
|
+
declare const _default_43: any;
|
|
525
|
+
export { _default_43 as FoxOverLay }
|
|
526
|
+
export { _default_43 as OverLay }
|
|
527
|
+
|
|
528
|
+
declare const _default_44: any;
|
|
529
|
+
export { _default_44 as FoxPopup }
|
|
530
|
+
export { _default_44 as Popup }
|
|
531
|
+
|
|
532
|
+
declare const _default_45: any;
|
|
533
|
+
export { _default_45 as FoxToast }
|
|
534
|
+
export { _default_45 as Toast }
|
|
535
|
+
|
|
536
|
+
declare const _default_46: any;
|
|
537
|
+
export { _default_46 as FoxSearchBar }
|
|
538
|
+
export { _default_46 as SearchBar }
|
|
539
|
+
|
|
540
|
+
declare const _default_47: any;
|
|
541
|
+
export { _default_47 as FoxInfiniteLoading }
|
|
542
|
+
export { _default_47 as InfiniteLoading }
|
|
543
|
+
|
|
544
|
+
declare const _default_48: any;
|
|
545
|
+
export { _default_48 as FoxPullRefresh }
|
|
546
|
+
export { _default_48 as PullRefresh }
|
|
547
|
+
|
|
548
|
+
declare const _default_49: any;
|
|
549
|
+
export { _default_49 as FoxMapping }
|
|
550
|
+
export { _default_49 as Mapping }
|
|
551
|
+
|
|
552
|
+
declare const _default_5: any;
|
|
553
|
+
export { _default_5 as Content }
|
|
554
|
+
export { _default_5 as FoxContent }
|
|
555
|
+
|
|
556
|
+
declare const _default_50: any;
|
|
557
|
+
export { _default_50 as FoxPrice }
|
|
558
|
+
export { _default_50 as Price }
|
|
559
|
+
|
|
560
|
+
declare const _default_51: any;
|
|
561
|
+
export { _default_51 as FoxIndicator }
|
|
562
|
+
export { _default_51 as Indicator }
|
|
563
|
+
|
|
564
|
+
declare const _default_52: any;
|
|
565
|
+
export { _default_52 as FoxText }
|
|
566
|
+
export { _default_52 as Text }
|
|
567
|
+
|
|
568
|
+
declare const _default_53: any;
|
|
569
|
+
export { _default_53 as FoxMoreButton }
|
|
570
|
+
export { _default_53 as MoreButton }
|
|
571
|
+
|
|
572
|
+
declare const _default_54: any;
|
|
573
|
+
export { _default_54 as FoxTour }
|
|
574
|
+
export { _default_54 as Tour }
|
|
575
|
+
|
|
576
|
+
declare const _default_55: any;
|
|
577
|
+
export { _default_55 as FloatingWindow }
|
|
578
|
+
export { _default_55 as FoxFloatingWindow }
|
|
579
|
+
|
|
580
|
+
declare const _default_56: any;
|
|
581
|
+
export { _default_56 as DomainProvider }
|
|
582
|
+
export { _default_56 as FoxDomainProvider }
|
|
583
|
+
|
|
584
|
+
declare const _default_57: any;
|
|
585
|
+
export { _default_57 as FoxRollingProvider }
|
|
586
|
+
export { _default_57 as RollingProvider }
|
|
587
|
+
|
|
588
|
+
declare const _default_6: any;
|
|
589
|
+
export { _default_6 as FoxGroup }
|
|
590
|
+
export { _default_6 as Group }
|
|
591
|
+
|
|
592
|
+
declare const _default_7: any;
|
|
593
|
+
export { _default_7 as FoxItem }
|
|
594
|
+
export { _default_7 as Item }
|
|
595
|
+
|
|
596
|
+
declare const _default_8: any;
|
|
597
|
+
export { _default_8 as FoxSlotItem }
|
|
598
|
+
export { _default_8 as SlotItem }
|
|
599
|
+
|
|
600
|
+
declare const _default_9: any;
|
|
601
|
+
export { _default_9 as FoxRowItem }
|
|
602
|
+
export { _default_9 as RowItem }
|
|
603
|
+
|
|
280
604
|
/**
|
|
281
605
|
* anyNode
|
|
282
606
|
* @param name
|
|
@@ -327,6 +651,16 @@ export declare function defineItem(descriptor: Descriptor, name?: string, expose
|
|
|
327
651
|
*/
|
|
328
652
|
export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
|
|
329
653
|
|
|
654
|
+
/**
|
|
655
|
+
* 定义simple item
|
|
656
|
+
* @returns
|
|
657
|
+
*/
|
|
658
|
+
export declare function defineSimpleItem(): {
|
|
659
|
+
emitEvent: (type: string, ...args: any[]) => void;
|
|
660
|
+
onEvent: (type: string, listener: EventListener_2) => void;
|
|
661
|
+
offEvent: (type: string, listener: EventListener_2) => void;
|
|
662
|
+
};
|
|
663
|
+
|
|
330
664
|
/**
|
|
331
665
|
* 删除公共校验器
|
|
332
666
|
* @param type
|
|
@@ -342,14 +676,14 @@ export declare interface Descriptor {
|
|
|
342
676
|
valueName?: string;
|
|
343
677
|
valueType?: ValueType;
|
|
344
678
|
validate?: boolean;
|
|
679
|
+
readonly?: boolean;
|
|
680
|
+
disabled?: boolean;
|
|
345
681
|
pureDataValidate?: boolean;
|
|
346
682
|
validateHandler?: ValidateHandler;
|
|
347
683
|
validateCheckEvents?: string[];
|
|
348
684
|
validateResetEvents?: string[];
|
|
349
685
|
}
|
|
350
686
|
|
|
351
|
-
export declare const DialogItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
352
|
-
|
|
353
687
|
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
354
688
|
|
|
355
689
|
/**
|
|
@@ -469,8 +803,6 @@ export declare interface DomainItem {
|
|
|
469
803
|
*/
|
|
470
804
|
export declare const DomainKey: unique symbol;
|
|
471
805
|
|
|
472
|
-
export declare const DomainProvider: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
473
|
-
|
|
474
806
|
/**
|
|
475
807
|
* event listener
|
|
476
808
|
*/
|
|
@@ -493,20 +825,23 @@ export declare function excludeProps(src: Record<string, any>, ...excludeTemplat
|
|
|
493
825
|
*/
|
|
494
826
|
export declare function extend(...args: any[]): any;
|
|
495
827
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
828
|
+
/**
|
|
829
|
+
* float data
|
|
830
|
+
* @param format
|
|
831
|
+
* @param dataOp
|
|
832
|
+
* @param mapOps
|
|
833
|
+
* @returns
|
|
834
|
+
*/
|
|
502
835
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
503
836
|
|
|
504
|
-
export declare const FooterBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
505
|
-
|
|
506
837
|
export { FoxAffix }
|
|
507
838
|
|
|
508
839
|
export { FoxAlert }
|
|
509
840
|
|
|
841
|
+
export { FoxAnchor }
|
|
842
|
+
|
|
843
|
+
export { FoxAnchorLink }
|
|
844
|
+
|
|
510
845
|
export { FoxAside }
|
|
511
846
|
|
|
512
847
|
export { FoxAutocomplete }
|
|
@@ -557,12 +892,12 @@ export { FoxCollapseTransition }
|
|
|
557
892
|
|
|
558
893
|
export { FoxColorPicker }
|
|
559
894
|
|
|
560
|
-
declare type FoxComponentPublicInstance = any;
|
|
561
|
-
|
|
562
895
|
export { FoxConfigProvider }
|
|
563
896
|
|
|
564
897
|
export { FoxContainer }
|
|
565
898
|
|
|
899
|
+
export { FoxCountdown }
|
|
900
|
+
|
|
566
901
|
export { FoxDatePicker }
|
|
567
902
|
|
|
568
903
|
export { FoxDescriptions }
|
|
@@ -611,6 +946,12 @@ export { FoxMenuItem }
|
|
|
611
946
|
|
|
612
947
|
export { FoxMenuItemGroup }
|
|
613
948
|
|
|
949
|
+
export { FoxMessage }
|
|
950
|
+
|
|
951
|
+
export { FoxMessageBox }
|
|
952
|
+
|
|
953
|
+
export { FoxNotification }
|
|
954
|
+
|
|
614
955
|
export { FoxOption }
|
|
615
956
|
|
|
616
957
|
export { FoxOptionGroup }
|
|
@@ -641,6 +982,8 @@ export { FoxRow }
|
|
|
641
982
|
|
|
642
983
|
export { FoxScrollbar }
|
|
643
984
|
|
|
985
|
+
export { FoxSegmented }
|
|
986
|
+
|
|
644
987
|
export { FoxSelect }
|
|
645
988
|
|
|
646
989
|
export { FoxSelectV2 }
|
|
@@ -653,6 +996,8 @@ export { FoxSlider }
|
|
|
653
996
|
|
|
654
997
|
export { FoxSpace }
|
|
655
998
|
|
|
999
|
+
export { FoxStatistic }
|
|
1000
|
+
|
|
656
1001
|
export { FoxStep }
|
|
657
1002
|
|
|
658
1003
|
export { FoxSteps }
|
|
@@ -691,79 +1036,6 @@ export { FoxTreeSelect }
|
|
|
691
1036
|
|
|
692
1037
|
export { FoxTreeV2 }
|
|
693
1038
|
|
|
694
|
-
/**
|
|
695
|
-
* Fox UI
|
|
696
|
-
*/
|
|
697
|
-
declare interface FoxUI {
|
|
698
|
-
/**
|
|
699
|
-
* 版本号
|
|
700
|
-
*/
|
|
701
|
-
version: string;
|
|
702
|
-
/**
|
|
703
|
-
* 安装
|
|
704
|
-
* @param app
|
|
705
|
-
* @param options
|
|
706
|
-
*/
|
|
707
|
-
install(app: App, options: FoxUIOptions): any;
|
|
708
|
-
/**
|
|
709
|
-
* 初始化page Layout
|
|
710
|
-
*
|
|
711
|
-
* @param options
|
|
712
|
-
* @param rootDomain
|
|
713
|
-
*/
|
|
714
|
-
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
715
|
-
/**
|
|
716
|
-
* 设置scope getter
|
|
717
|
-
* @param getter
|
|
718
|
-
*/
|
|
719
|
-
setScopeGetter(getter: ScopeGetter): void;
|
|
720
|
-
/**
|
|
721
|
-
* 设置API
|
|
722
|
-
* @param name
|
|
723
|
-
* @param func
|
|
724
|
-
* @param scope
|
|
725
|
-
*/
|
|
726
|
-
setAPI(name: string, func: any, scope?: string): void;
|
|
727
|
-
/**
|
|
728
|
-
* 获取API
|
|
729
|
-
* @param proxy
|
|
730
|
-
* @param name
|
|
731
|
-
* @param scope
|
|
732
|
-
*/
|
|
733
|
-
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
734
|
-
/**
|
|
735
|
-
* 批量增加api
|
|
736
|
-
* @param apis
|
|
737
|
-
* @param scope
|
|
738
|
-
*/
|
|
739
|
-
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
740
|
-
/**
|
|
741
|
-
* 清空scope apis
|
|
742
|
-
* @param scope
|
|
743
|
-
*/
|
|
744
|
-
clearScopeAPI(scope: string): void;
|
|
745
|
-
/**
|
|
746
|
-
* 获取root domain
|
|
747
|
-
*/
|
|
748
|
-
getRootDomain(): Domain;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
* UI Options
|
|
753
|
-
*/
|
|
754
|
-
declare interface FoxUIOptions {
|
|
755
|
-
install?: boolean;
|
|
756
|
-
headerBarHeight?: number;
|
|
757
|
-
footerBarHeight?: number;
|
|
758
|
-
safeAreaInset?: SafeAreaInset;
|
|
759
|
-
pageLayout?: PageLayout;
|
|
760
|
-
headerPadding?: Rect;
|
|
761
|
-
contentPadding?: Rect;
|
|
762
|
-
groupLayout?: GroupLayout;
|
|
763
|
-
labelWidth?: number | string;
|
|
764
|
-
[propName: string]: any;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
1039
|
/**
|
|
768
1040
|
* Fox UI vue实例
|
|
769
1041
|
*/
|
|
@@ -838,6 +1110,8 @@ declare class FoxUIVue implements FoxUI {
|
|
|
838
1110
|
|
|
839
1111
|
export { FoxUpload }
|
|
840
1112
|
|
|
1113
|
+
export { FoxWatermark }
|
|
1114
|
+
|
|
841
1115
|
/**
|
|
842
1116
|
* 通用函数接口
|
|
843
1117
|
*/
|
|
@@ -893,27 +1167,11 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
|
|
|
893
1167
|
*/
|
|
894
1168
|
export declare function getRootDomain(): Domain;
|
|
895
1169
|
|
|
896
|
-
export declare const Group: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
897
|
-
|
|
898
|
-
/**
|
|
899
|
-
* Layout信息接口
|
|
900
|
-
*/
|
|
901
|
-
declare interface GroupLayout {
|
|
902
|
-
type: string;
|
|
903
|
-
width: number;
|
|
904
|
-
column: number;
|
|
905
|
-
gutter: number;
|
|
906
|
-
}
|
|
907
|
-
|
|
908
1170
|
/**
|
|
909
1171
|
* 是否支持symbol
|
|
910
1172
|
*/
|
|
911
1173
|
export declare const hasSymbol: boolean;
|
|
912
1174
|
|
|
913
|
-
export declare const HeaderBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
914
|
-
|
|
915
|
-
export declare const HintText: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
916
|
-
|
|
917
1175
|
/**
|
|
918
1176
|
* 根据包含模版,抽取属性
|
|
919
1177
|
* @param src
|
|
@@ -930,12 +1188,6 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
|
|
|
930
1188
|
*/
|
|
931
1189
|
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
932
1190
|
|
|
933
|
-
export declare const Indicator: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
934
|
-
|
|
935
|
-
export declare const InputItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
936
|
-
|
|
937
|
-
export declare const InputNumberItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
938
|
-
|
|
939
1191
|
/**
|
|
940
1192
|
* 安装函数
|
|
941
1193
|
*/
|
|
@@ -953,7 +1205,7 @@ export declare function installRules(proxy: FoxComponentPublicInstance, validate
|
|
|
953
1205
|
* 获取整数长度
|
|
954
1206
|
* @param value
|
|
955
1207
|
*/
|
|
956
|
-
export declare function integerLength(
|
|
1208
|
+
export declare function integerLength(v: string | number): number;
|
|
957
1209
|
|
|
958
1210
|
/**
|
|
959
1211
|
* 是否数组
|
|
@@ -984,7 +1236,7 @@ export declare const isDate: (val: unknown) => val is Date;
|
|
|
984
1236
|
* @param v
|
|
985
1237
|
* @returns
|
|
986
1238
|
*/
|
|
987
|
-
export declare const isEmptyString: (v: unknown) =>
|
|
1239
|
+
export declare const isEmptyString: (v: unknown) => v is null | undefined | "";
|
|
988
1240
|
|
|
989
1241
|
/**
|
|
990
1242
|
* 判断两个对象是否一致
|
|
@@ -1030,12 +1282,17 @@ export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
|
1030
1282
|
*/
|
|
1031
1283
|
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
1032
1284
|
|
|
1285
|
+
/**
|
|
1286
|
+
* 是否null/undefined对象
|
|
1287
|
+
*/
|
|
1288
|
+
export declare function isNil(v: unknown): v is null | undefined;
|
|
1289
|
+
|
|
1033
1290
|
/**
|
|
1034
1291
|
* 是否为数字字符串
|
|
1035
1292
|
* @param value
|
|
1036
1293
|
* @returns
|
|
1037
1294
|
*/
|
|
1038
|
-
export declare function isNumberString(
|
|
1295
|
+
export declare function isNumberString(v: string): v is string;
|
|
1039
1296
|
|
|
1040
1297
|
/**
|
|
1041
1298
|
* 是否为object
|
|
@@ -1090,14 +1347,18 @@ export declare function isSubPage(domain: Domain): boolean;
|
|
|
1090
1347
|
*/
|
|
1091
1348
|
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
1092
1349
|
|
|
1350
|
+
/**
|
|
1351
|
+
* 是否为支持触摸
|
|
1352
|
+
* @returns
|
|
1353
|
+
*/
|
|
1354
|
+
export declare function isTouch(): boolean;
|
|
1355
|
+
|
|
1093
1356
|
/**
|
|
1094
1357
|
* 是否是window对象
|
|
1095
1358
|
* @param obj
|
|
1096
1359
|
*/
|
|
1097
1360
|
export declare function isWindow(obj: any): boolean;
|
|
1098
1361
|
|
|
1099
|
-
export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1100
|
-
|
|
1101
1362
|
/**
|
|
1102
1363
|
* 获取对应元素的在数组中最后一个匹配的索引
|
|
1103
1364
|
* @param x
|
|
@@ -1114,8 +1375,6 @@ export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
|
1114
1375
|
*/
|
|
1115
1376
|
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
1116
1377
|
|
|
1117
|
-
export declare const Mapping: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1118
|
-
|
|
1119
1378
|
/**
|
|
1120
1379
|
* 匹配条件
|
|
1121
1380
|
*/
|
|
@@ -1135,8 +1394,6 @@ export declare interface Matched {
|
|
|
1135
1394
|
*/
|
|
1136
1395
|
export declare function merge(first: any[], second: any[]): any[];
|
|
1137
1396
|
|
|
1138
|
-
export declare const MoneyItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1139
|
-
|
|
1140
1397
|
export { multiply }
|
|
1141
1398
|
|
|
1142
1399
|
export { negate }
|
|
@@ -1157,7 +1414,18 @@ export { numberFormat }
|
|
|
1157
1414
|
*/
|
|
1158
1415
|
export declare const objectToString: () => string;
|
|
1159
1416
|
|
|
1160
|
-
|
|
1417
|
+
/**
|
|
1418
|
+
* 只执行一次函数
|
|
1419
|
+
* @param func
|
|
1420
|
+
* @returns
|
|
1421
|
+
*/
|
|
1422
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* 覆盖更新公共的校验处理器
|
|
1426
|
+
* @param validateHandler
|
|
1427
|
+
*/
|
|
1428
|
+
export declare function overrideGlobalValidateHandler(validateHandler: Partial<ValidateHandler>): void;
|
|
1161
1429
|
|
|
1162
1430
|
/**
|
|
1163
1431
|
* padding
|
|
@@ -1169,16 +1437,14 @@ export declare interface Padding {
|
|
|
1169
1437
|
bottom: number | null;
|
|
1170
1438
|
}
|
|
1171
1439
|
|
|
1172
|
-
export declare const Page: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1173
|
-
|
|
1174
1440
|
/**
|
|
1175
1441
|
* page layout
|
|
1176
1442
|
*/
|
|
1177
1443
|
export declare interface PageLayout {
|
|
1178
1444
|
width: number | string;
|
|
1179
|
-
height
|
|
1180
|
-
headerHeight
|
|
1181
|
-
footerHeight
|
|
1445
|
+
height: number | string;
|
|
1446
|
+
headerHeight?: number | string;
|
|
1447
|
+
footerHeight?: number | string;
|
|
1182
1448
|
headerPadding?: Padding;
|
|
1183
1449
|
footerPadding?: Padding;
|
|
1184
1450
|
contentPadding?: Padding;
|
|
@@ -1189,10 +1455,14 @@ export declare interface PageState {
|
|
|
1189
1455
|
height: number;
|
|
1190
1456
|
headerHeight: number;
|
|
1191
1457
|
headerPadding: Padding;
|
|
1458
|
+
headerAllHeight?: number;
|
|
1192
1459
|
footerHeight: number;
|
|
1193
1460
|
footerPadding: Padding;
|
|
1461
|
+
footerAllHeight?: number;
|
|
1194
1462
|
contentHeight: number | string | null;
|
|
1195
1463
|
contentPadding: Padding;
|
|
1464
|
+
contentInnerHeight?: number;
|
|
1465
|
+
contentInnerWidth?: number;
|
|
1196
1466
|
safeAreaTop: number;
|
|
1197
1467
|
safeAreaBottom: number;
|
|
1198
1468
|
safeAreaLeft: number;
|
|
@@ -1201,8 +1471,6 @@ export declare interface PageState {
|
|
|
1201
1471
|
footerMounted?: boolean;
|
|
1202
1472
|
}
|
|
1203
1473
|
|
|
1204
|
-
export declare const Picker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1205
|
-
|
|
1206
1474
|
/**
|
|
1207
1475
|
* 坐标
|
|
1208
1476
|
*/
|
|
@@ -1211,10 +1479,6 @@ export declare interface Point {
|
|
|
1211
1479
|
y: number;
|
|
1212
1480
|
}
|
|
1213
1481
|
|
|
1214
|
-
export declare const Popup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1215
|
-
|
|
1216
|
-
export declare const Price: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1217
|
-
|
|
1218
1482
|
/**
|
|
1219
1483
|
* 优先策略
|
|
1220
1484
|
*/
|
|
@@ -1232,32 +1496,15 @@ export declare enum PriorityPolicy {
|
|
|
1232
1496
|
*/
|
|
1233
1497
|
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
1234
1498
|
|
|
1235
|
-
export declare const RadioItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1236
|
-
|
|
1237
|
-
/**
|
|
1238
|
-
* 动画
|
|
1239
|
-
*/
|
|
1240
1499
|
export declare const raf: any;
|
|
1241
1500
|
|
|
1242
|
-
export declare const RateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1243
|
-
|
|
1244
1501
|
/**
|
|
1245
1502
|
* 只读属性
|
|
1246
1503
|
* @param source
|
|
1247
1504
|
*/
|
|
1248
1505
|
export declare function readonlyProperty(source: Ref): Ref;
|
|
1249
1506
|
|
|
1250
|
-
/**
|
|
1251
|
-
* Rect类型
|
|
1252
|
-
*/
|
|
1253
1507
|
declare interface Rect {
|
|
1254
|
-
left: number;
|
|
1255
|
-
top: number;
|
|
1256
|
-
right: number;
|
|
1257
|
-
bottom: number;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
declare interface Rect_2 {
|
|
1261
1508
|
top: number;
|
|
1262
1509
|
left: number;
|
|
1263
1510
|
right: number;
|
|
@@ -1276,8 +1523,6 @@ export declare type Result = Promise<any> | any;
|
|
|
1276
1523
|
*/
|
|
1277
1524
|
export declare type Results = Result[];
|
|
1278
1525
|
|
|
1279
|
-
export declare const RowItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1280
|
-
|
|
1281
1526
|
/**
|
|
1282
1527
|
* 安全区域
|
|
1283
1528
|
*/
|
|
@@ -1288,15 +1533,6 @@ export declare interface SafeAreaInset {
|
|
|
1288
1533
|
bottom: number | string;
|
|
1289
1534
|
}
|
|
1290
1535
|
|
|
1291
|
-
/**
|
|
1292
|
-
* scope getter
|
|
1293
|
-
*/
|
|
1294
|
-
declare interface ScopeGetter {
|
|
1295
|
-
(proxy: ComponentPublicInstance): string | null;
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
export declare const SelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1299
|
-
|
|
1300
1536
|
/**
|
|
1301
1537
|
* 设置公共校验检查事件
|
|
1302
1538
|
* @param events
|
|
@@ -1327,31 +1563,22 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
|
1327
1563
|
*/
|
|
1328
1564
|
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
1329
1565
|
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
declare const Text_2: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1339
|
-
export { Text_2 as Text }
|
|
1566
|
+
/**
|
|
1567
|
+
* size
|
|
1568
|
+
*/
|
|
1569
|
+
declare interface Size {
|
|
1570
|
+
width: number;
|
|
1571
|
+
height: number;
|
|
1572
|
+
}
|
|
1340
1573
|
|
|
1341
1574
|
/**
|
|
1342
|
-
* 节流函数
|
|
1575
|
+
* 节流函数(执行时间范围内的第一次)
|
|
1343
1576
|
* @param func 函数
|
|
1344
1577
|
* @param delay 延迟执行毫秒数
|
|
1345
1578
|
* @returns
|
|
1346
1579
|
*/
|
|
1347
1580
|
export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
|
|
1348
1581
|
|
|
1349
|
-
export declare const TimeItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1350
|
-
|
|
1351
|
-
export declare const TimeSelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1352
|
-
|
|
1353
|
-
export declare const Toast: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1354
|
-
|
|
1355
1582
|
/**
|
|
1356
1583
|
* 转换为boolean值
|
|
1357
1584
|
* @param val
|
|
@@ -1391,10 +1618,35 @@ export declare const toTypeString: (value: unknown) => string;
|
|
|
1391
1618
|
/**
|
|
1392
1619
|
* to model value
|
|
1393
1620
|
* @param props
|
|
1621
|
+
* @param name
|
|
1394
1622
|
* @param format
|
|
1623
|
+
* @param emitEvent
|
|
1395
1624
|
* @returns
|
|
1396
1625
|
*/
|
|
1397
|
-
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>
|
|
1626
|
+
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any> | null, emitEvent?: {
|
|
1627
|
+
(type: string, ...args: any[]): void;
|
|
1628
|
+
}): Ref;
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* 尝试执行多次函数
|
|
1632
|
+
* @param func 执行函数
|
|
1633
|
+
* @param milliseconds 执行间隔
|
|
1634
|
+
* @param maxLimit 最大尝试次数
|
|
1635
|
+
* @param step 间隔增加步长
|
|
1636
|
+
* @param immediately 是否立刻执行
|
|
1637
|
+
* @param callback 执行成功后的回调函数
|
|
1638
|
+
*/
|
|
1639
|
+
export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean, callback?: {
|
|
1640
|
+
(ret: boolean): void;
|
|
1641
|
+
}): void;
|
|
1642
|
+
|
|
1643
|
+
/**
|
|
1644
|
+
* 尝试多次函数
|
|
1645
|
+
* 返回true,代表执行完成,不在需要重试
|
|
1646
|
+
*/
|
|
1647
|
+
export declare interface TryTimesFunction {
|
|
1648
|
+
(): boolean;
|
|
1649
|
+
}
|
|
1398
1650
|
|
|
1399
1651
|
/**
|
|
1400
1652
|
* 判断类型
|
|
@@ -1427,6 +1679,11 @@ export { unNumberFormat }
|
|
|
1427
1679
|
* @param state
|
|
1428
1680
|
* @param pageLayout
|
|
1429
1681
|
* @param overrideProps
|
|
1682
|
+
* @param root
|
|
1683
|
+
* @param rootWidth
|
|
1684
|
+
* @param rootHeight
|
|
1685
|
+
* @param headerBarHeight
|
|
1686
|
+
* @param footerBarHeight
|
|
1430
1687
|
*/
|
|
1431
1688
|
export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
|
|
1432
1689
|
|
|
@@ -1449,6 +1706,13 @@ export declare function useDomain(proxy?: ComponentPublicInstance | null): Domai
|
|
|
1449
1706
|
*/
|
|
1450
1707
|
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
1451
1708
|
|
|
1709
|
+
/**
|
|
1710
|
+
* 获取内部可用size
|
|
1711
|
+
* @param elementRef
|
|
1712
|
+
* @returns
|
|
1713
|
+
*/
|
|
1714
|
+
export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
|
|
1715
|
+
|
|
1452
1716
|
/**
|
|
1453
1717
|
* 获取page state
|
|
1454
1718
|
* @param domain
|
|
@@ -1463,23 +1727,59 @@ export declare function usePageState(domain: Domain): PageState | null;
|
|
|
1463
1727
|
*/
|
|
1464
1728
|
export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
|
|
1465
1729
|
|
|
1466
|
-
|
|
1730
|
+
/**
|
|
1731
|
+
* 获取非响应式touch对象
|
|
1732
|
+
* @returns
|
|
1733
|
+
*/
|
|
1734
|
+
export declare function useRawTouch(): {
|
|
1735
|
+
move: EventListener;
|
|
1736
|
+
start: EventListener;
|
|
1737
|
+
reset: () => void;
|
|
1738
|
+
isVertical: () => boolean;
|
|
1739
|
+
isHorizontal: () => boolean;
|
|
1740
|
+
state: {
|
|
1741
|
+
startX: number;
|
|
1742
|
+
startY: number;
|
|
1743
|
+
startTime: number;
|
|
1744
|
+
duration: number;
|
|
1745
|
+
moveX: number;
|
|
1746
|
+
moveY: number;
|
|
1747
|
+
deltaX: number;
|
|
1748
|
+
deltaY: number;
|
|
1749
|
+
offsetX: number;
|
|
1750
|
+
offsetY: number;
|
|
1751
|
+
direction: Direction;
|
|
1752
|
+
};
|
|
1753
|
+
};
|
|
1754
|
+
|
|
1755
|
+
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
1467
1756
|
|
|
1757
|
+
/**
|
|
1758
|
+
* 获取size
|
|
1759
|
+
* @param elementRef
|
|
1760
|
+
* @returns
|
|
1761
|
+
*/
|
|
1762
|
+
export declare function useSize(elementRef: Element | Ref<Element>): Size;
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* 获取响应式touch对象
|
|
1766
|
+
* @returns
|
|
1767
|
+
*/
|
|
1468
1768
|
export declare function useTouch(): {
|
|
1469
1769
|
move: EventListener;
|
|
1470
1770
|
start: EventListener;
|
|
1471
1771
|
reset: () => void;
|
|
1472
|
-
startX:
|
|
1473
|
-
startY:
|
|
1474
|
-
startTime:
|
|
1475
|
-
duration:
|
|
1476
|
-
moveX:
|
|
1477
|
-
moveY:
|
|
1478
|
-
deltaX:
|
|
1479
|
-
deltaY:
|
|
1480
|
-
offsetX:
|
|
1481
|
-
offsetY:
|
|
1482
|
-
direction:
|
|
1772
|
+
startX: any;
|
|
1773
|
+
startY: any;
|
|
1774
|
+
startTime: any;
|
|
1775
|
+
duration: any;
|
|
1776
|
+
moveX: any;
|
|
1777
|
+
moveY: any;
|
|
1778
|
+
deltaX: any;
|
|
1779
|
+
deltaY: any;
|
|
1780
|
+
offsetX: any;
|
|
1781
|
+
offsetY: any;
|
|
1782
|
+
direction: any;
|
|
1483
1783
|
isVertical: () => boolean;
|
|
1484
1784
|
isHorizontal: () => boolean;
|
|
1485
1785
|
};
|
|
@@ -1492,6 +1792,8 @@ export declare interface ValidateCondition {
|
|
|
1492
1792
|
include?: string[];
|
|
1493
1793
|
exclude?: string[];
|
|
1494
1794
|
ignoreHidden?: boolean;
|
|
1795
|
+
ignoreDisabled?: boolean;
|
|
1796
|
+
ignoreReadonly?: boolean;
|
|
1495
1797
|
}
|
|
1496
1798
|
|
|
1497
1799
|
/**
|