@fox-js/foxui-pad 4.0.1-9 → 4.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 +14828 -7990
- 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/style.esm.js +1 -5
- package/dist/types/index.d.ts +599 -306
- package/package.json +16 -16
- package/dist/locale/index.d.ts +0 -398
package/dist/types/index.d.ts
CHANGED
|
@@ -1,120 +1,123 @@
|
|
|
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 { ElOption as FoxOption } from './base';
|
|
65
|
+
import { ElOptionGroup as FoxOptionGroup } from './base';
|
|
66
|
+
import { ElPageHeader as FoxPageHeader } from './base';
|
|
67
|
+
import { ElPagination as FoxPagination } from './base';
|
|
68
|
+
import { ElPopconfirm as FoxPopconfirm } from './base';
|
|
69
|
+
import { ElPopover as FoxPopover } from './base';
|
|
70
|
+
import { ElPopper as FoxPopper } from './base';
|
|
71
|
+
import { ElProgress as FoxProgress } from './base';
|
|
72
|
+
import { ElRadio as FoxRadio } from './base';
|
|
73
|
+
import { ElRadioButton as FoxRadioButton } from './base';
|
|
74
|
+
import { ElRadioGroup as FoxRadioGroup } from './base';
|
|
75
|
+
import { ElRate as FoxRate } from './base';
|
|
76
|
+
import { ElResult as FoxResult } from './base';
|
|
77
|
+
import { ElRow as FoxRow } from './base';
|
|
78
|
+
import { ElScrollbar as FoxScrollbar } from './base';
|
|
79
|
+
import { ElSegmented as FoxSegmented } from './base';
|
|
80
|
+
import { ElSelect as FoxSelect } from './base';
|
|
81
|
+
import { ElSelectV2 as FoxSelectV2 } from './base';
|
|
82
|
+
import { ElSkeleton as FoxSkeleton } from './base';
|
|
83
|
+
import { ElSkeletonItem as FoxSkeletonItem } from './base';
|
|
84
|
+
import { ElSlider as FoxSlider } from './base';
|
|
85
|
+
import { ElSpace as FoxSpace } from './base';
|
|
86
|
+
import { ElStatistic as FoxStatistic } from './base';
|
|
87
|
+
import { ElStep as FoxStep } from './base';
|
|
88
|
+
import { ElSteps as FoxSteps } from './base';
|
|
89
|
+
import { ElSubMenu as FoxSubMenu } from './base';
|
|
90
|
+
import { ElSwitch as FoxSwitch } from './base';
|
|
91
|
+
import { ElTable as FoxTable } from './base';
|
|
92
|
+
import { ElTableColumn as FoxTableColumn } from './base';
|
|
93
|
+
import { ElTableV2 as FoxTableV2 } from './base';
|
|
94
|
+
import { ElTabPane as FoxTabPane } from './base';
|
|
95
|
+
import { ElTabs as FoxTabs } from './base';
|
|
96
|
+
import { ElTag as FoxTag } from './base';
|
|
97
|
+
import { ElTimeline as FoxTimeline } from './base';
|
|
98
|
+
import { ElTimelineItem as FoxTimelineItem } from './base';
|
|
99
|
+
import { ElTimePicker as FoxTimePicker } from './base';
|
|
100
|
+
import { ElTimeSelect as FoxTimeSelect } from './base';
|
|
101
|
+
import { ElTooltip as FoxTooltip } from './base';
|
|
102
|
+
import { ElTransfer as FoxTransfer } from './base';
|
|
103
|
+
import { ElTree as FoxTree } from './base';
|
|
104
|
+
import { ElTreeSelect as FoxTreeSelect } from './base';
|
|
105
|
+
import { ElTreeV2 as FoxTreeV2 } from './base';
|
|
106
|
+
import { FoxUI } from './interface';
|
|
107
|
+
import { FoxUIOptions } from './interface';
|
|
108
|
+
import { ElUpload as FoxUpload } from './base';
|
|
109
|
+
import { ElWatermark as FoxWatermark } from './base';
|
|
107
110
|
import { multiply } from '@fox-js/big-decimal';
|
|
108
111
|
import { negate } from '@fox-js/big-decimal';
|
|
109
112
|
import { numberFormat } from '@fox-js/big-decimal';
|
|
110
113
|
import { Ref } from 'vue';
|
|
111
114
|
import { Rule } from '@fox-js/validator';
|
|
115
|
+
import { ScopeGetter } from './api';
|
|
112
116
|
import { unNumberFormat } from '@fox-js/big-decimal';
|
|
113
117
|
import { UnwrapNestedRefs } from 'vue';
|
|
114
118
|
import { UnwrapRef } from 'vue';
|
|
115
119
|
import { ValidateMessages } from '@fox-js/validator';
|
|
116
120
|
import { ValidateResult } from '@fox-js/validator';
|
|
117
|
-
import type { VNodeProps } from 'vue';
|
|
118
121
|
|
|
119
122
|
/**
|
|
120
123
|
* 是否接受value过滤器
|
|
@@ -123,8 +126,6 @@ export declare interface AcceptFilter {
|
|
|
123
126
|
(value: any): boolean;
|
|
124
127
|
}
|
|
125
128
|
|
|
126
|
-
export declare const AutocompleteItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
127
|
-
|
|
128
129
|
/**
|
|
129
130
|
* 广播类
|
|
130
131
|
*/
|
|
@@ -202,15 +203,7 @@ export declare interface BroadcastCallback {
|
|
|
202
203
|
|
|
203
204
|
export declare const BroadcastKey: unique symbol;
|
|
204
205
|
|
|
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>, {}>;
|
|
206
|
+
export declare function cancelRaf(id: number): void;
|
|
214
207
|
|
|
215
208
|
/**
|
|
216
209
|
* 清理非数字
|
|
@@ -229,8 +222,6 @@ export declare function clone(target: any, source: any, plain?: boolean): any;
|
|
|
229
222
|
|
|
230
223
|
export { compareTo }
|
|
231
224
|
|
|
232
|
-
export declare const Content: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
233
|
-
|
|
234
225
|
/**
|
|
235
226
|
* 创建broadcast
|
|
236
227
|
*
|
|
@@ -256,18 +247,124 @@ export declare function createValidateSchema(proxy: FoxComponentPublicInstance,
|
|
|
256
247
|
*/
|
|
257
248
|
export declare const DataItemsKey: unique symbol;
|
|
258
249
|
|
|
259
|
-
export declare const
|
|
260
|
-
|
|
261
|
-
|
|
250
|
+
export declare const DateUtils: {
|
|
251
|
+
/**
|
|
252
|
+
* 格式化
|
|
253
|
+
* @param date
|
|
254
|
+
* @param template
|
|
255
|
+
* @returns
|
|
256
|
+
*/
|
|
257
|
+
format(date: Date, template: string): string;
|
|
258
|
+
/**
|
|
259
|
+
* 解析
|
|
260
|
+
* @param str
|
|
261
|
+
* @param template
|
|
262
|
+
*/
|
|
263
|
+
parser(str: string, template: string): Date;
|
|
264
|
+
/**
|
|
265
|
+
* 是否为闫年
|
|
266
|
+
* @return {Boolse} true|false
|
|
267
|
+
*/
|
|
268
|
+
isLeapYear(y: number): boolean;
|
|
269
|
+
/**
|
|
270
|
+
* 返回星期数
|
|
271
|
+
* @return {String}
|
|
272
|
+
*/
|
|
273
|
+
getWhatDay(year: number, month: number, day: number): string;
|
|
274
|
+
/**
|
|
275
|
+
* 返回星期数
|
|
276
|
+
* @return {Number}
|
|
277
|
+
*/
|
|
278
|
+
getMonthPreDay(year: number, month: number): number;
|
|
279
|
+
/**
|
|
280
|
+
* 返回月份天数
|
|
281
|
+
* @return {Number}
|
|
282
|
+
*/
|
|
283
|
+
getMonthDays(year: string, month: string): number;
|
|
284
|
+
/**
|
|
285
|
+
* 补齐数字位数
|
|
286
|
+
* @return {string}
|
|
287
|
+
*/
|
|
288
|
+
getNumTwoBit(n: number): string;
|
|
289
|
+
/**
|
|
290
|
+
* 日期对象转成字符串
|
|
291
|
+
* @return {string}
|
|
292
|
+
*/
|
|
293
|
+
date2Str: (date: Date, split?: string) => string;
|
|
294
|
+
/**
|
|
295
|
+
* 返回日期格式字符串
|
|
296
|
+
* @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
297
|
+
* @param {Date} 起点日期
|
|
298
|
+
* @return {string} '2014-12-31'
|
|
299
|
+
*/
|
|
300
|
+
getDay(i: number, startDate?: Date): string;
|
|
301
|
+
/**
|
|
302
|
+
* 时间比较
|
|
303
|
+
* @return
|
|
304
|
+
*/
|
|
305
|
+
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
306
|
+
/**
|
|
307
|
+
* 时间是否相等
|
|
308
|
+
* @return
|
|
309
|
+
*/
|
|
310
|
+
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
311
|
+
/**
|
|
312
|
+
* get month week
|
|
313
|
+
* @param year
|
|
314
|
+
* @param month
|
|
315
|
+
* @param date
|
|
316
|
+
* @param firstDayOfWeek
|
|
317
|
+
* @returns
|
|
318
|
+
*/
|
|
319
|
+
getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
320
|
+
/**
|
|
321
|
+
* get year week
|
|
322
|
+
* @param year
|
|
323
|
+
* @param month
|
|
324
|
+
* @param date
|
|
325
|
+
* @param firstDayOfWeek
|
|
326
|
+
* @returns
|
|
327
|
+
*/
|
|
328
|
+
getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
329
|
+
/**
|
|
330
|
+
* get week date
|
|
331
|
+
*/
|
|
332
|
+
getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
|
|
333
|
+
/**
|
|
334
|
+
* format result date
|
|
335
|
+
*/
|
|
336
|
+
formatResultDate: (date: string) => string[];
|
|
337
|
+
/**
|
|
338
|
+
* 判断日期是否在范围内
|
|
339
|
+
* @param date
|
|
340
|
+
* @param startDate
|
|
341
|
+
* @param span 允许负数
|
|
342
|
+
*/
|
|
343
|
+
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
344
|
+
/**
|
|
345
|
+
* 判断日期是否在范围内
|
|
346
|
+
* @param date
|
|
347
|
+
* @param startDate
|
|
348
|
+
* @param span
|
|
349
|
+
*/
|
|
350
|
+
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
351
|
+
};
|
|
262
352
|
|
|
263
353
|
/**
|
|
264
|
-
* 防抖函数
|
|
354
|
+
* 防抖函数(执行时间范围内的最后一次)
|
|
265
355
|
* @param func 函数
|
|
266
356
|
* @param delay 防止抖动毫秒数
|
|
267
357
|
* @returns
|
|
268
358
|
*/
|
|
269
359
|
export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
|
|
270
360
|
|
|
361
|
+
/**
|
|
362
|
+
* 防抖Ref
|
|
363
|
+
* @param value
|
|
364
|
+
* @param delay
|
|
365
|
+
*/
|
|
366
|
+
export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
|
|
367
|
+
|
|
271
368
|
/**
|
|
272
369
|
* 获取小数长度
|
|
273
370
|
* @param value
|
|
@@ -277,6 +374,230 @@ export declare function decimalLength(value: string | number): number;
|
|
|
277
374
|
declare const _default: FoxUIVue;
|
|
278
375
|
export default _default;
|
|
279
376
|
|
|
377
|
+
declare const _default_10: any;
|
|
378
|
+
export { _default_10 as FoxHintText }
|
|
379
|
+
export { _default_10 as HintText }
|
|
380
|
+
|
|
381
|
+
declare const _default_11: any;
|
|
382
|
+
export { _default_11 as FoxInputItem }
|
|
383
|
+
export { _default_11 as InputItem }
|
|
384
|
+
|
|
385
|
+
declare const _default_12: any;
|
|
386
|
+
export { _default_12 as FoxSelectItem }
|
|
387
|
+
export { _default_12 as SelectItem }
|
|
388
|
+
|
|
389
|
+
declare const _default_13: any;
|
|
390
|
+
export { _default_13 as DateItem }
|
|
391
|
+
export { _default_13 as FoxDateItem }
|
|
392
|
+
|
|
393
|
+
declare const _default_14: any;
|
|
394
|
+
export { _default_14 as CalendarItem }
|
|
395
|
+
export { _default_14 as FoxCalendarItem }
|
|
396
|
+
|
|
397
|
+
declare const _default_15: any;
|
|
398
|
+
export { _default_15 as FoxTimeItem }
|
|
399
|
+
export { _default_15 as TimeItem }
|
|
400
|
+
|
|
401
|
+
declare const _default_16: any;
|
|
402
|
+
export { _default_16 as FoxTimeSelectItem }
|
|
403
|
+
export { _default_16 as TimeSelectItem }
|
|
404
|
+
|
|
405
|
+
declare const _default_17: any;
|
|
406
|
+
export { _default_17 as FoxMoneyItem }
|
|
407
|
+
export { _default_17 as MoneyItem }
|
|
408
|
+
|
|
409
|
+
declare const _default_18: any;
|
|
410
|
+
export { _default_18 as FoxInputNumberItem }
|
|
411
|
+
export { _default_18 as InputNumberItem }
|
|
412
|
+
|
|
413
|
+
declare const _default_19: any;
|
|
414
|
+
export { _default_19 as CascaderItem }
|
|
415
|
+
export { _default_19 as FoxCascaderItem }
|
|
416
|
+
|
|
417
|
+
declare const _default_2: any;
|
|
418
|
+
export { _default_2 as FoxPage }
|
|
419
|
+
export { _default_2 as Page }
|
|
420
|
+
|
|
421
|
+
declare const _default_20: any;
|
|
422
|
+
export { _default_20 as AutocompleteItem }
|
|
423
|
+
export { _default_20 as FoxAutocompleteItem }
|
|
424
|
+
|
|
425
|
+
declare const _default_21: any;
|
|
426
|
+
export { _default_21 as FoxTableMappingColumn }
|
|
427
|
+
export { _default_21 as TableMappingColumn }
|
|
428
|
+
|
|
429
|
+
declare const _default_22: any;
|
|
430
|
+
export { _default_22 as FoxTableRadioColumn }
|
|
431
|
+
export { _default_22 as TableRadioColumn }
|
|
432
|
+
|
|
433
|
+
declare const _default_23: any;
|
|
434
|
+
export { _default_23 as FoxTableSetting }
|
|
435
|
+
export { _default_23 as TableSetting }
|
|
436
|
+
|
|
437
|
+
declare const _default_24: any;
|
|
438
|
+
export { _default_24 as FoxTableItem }
|
|
439
|
+
export { _default_24 as TableItem }
|
|
440
|
+
|
|
441
|
+
declare const _default_25: any;
|
|
442
|
+
export { _default_25 as FoxRadioItem }
|
|
443
|
+
export { _default_25 as RadioItem }
|
|
444
|
+
|
|
445
|
+
declare const _default_26: any;
|
|
446
|
+
export { _default_26 as CheckboxItem }
|
|
447
|
+
export { _default_26 as FoxCheckboxItem }
|
|
448
|
+
|
|
449
|
+
declare const _default_27: any;
|
|
450
|
+
export { _default_27 as FoxRateItem }
|
|
451
|
+
export { _default_27 as RateItem }
|
|
452
|
+
|
|
453
|
+
declare const _default_28: any;
|
|
454
|
+
export { _default_28 as FoxSwitchItem }
|
|
455
|
+
export { _default_28 as SwitchItem }
|
|
456
|
+
|
|
457
|
+
declare const _default_29: any;
|
|
458
|
+
export { _default_29 as FoxTreeSelectItem }
|
|
459
|
+
export { _default_29 as TreeSelectItem }
|
|
460
|
+
|
|
461
|
+
declare const _default_3: any;
|
|
462
|
+
export { _default_3 as FoxHeaderBar }
|
|
463
|
+
export { _default_3 as HeaderBar }
|
|
464
|
+
|
|
465
|
+
declare const _default_30: any;
|
|
466
|
+
export { _default_30 as FoxGroupSetting }
|
|
467
|
+
export { _default_30 as GroupSetting }
|
|
468
|
+
|
|
469
|
+
declare const _default_31: any;
|
|
470
|
+
export { _default_31 as ActionsheetPane }
|
|
471
|
+
export { _default_31 as FoxActionsheetPane }
|
|
472
|
+
|
|
473
|
+
declare const _default_32: any;
|
|
474
|
+
export { _default_32 as ActionsheetItem }
|
|
475
|
+
export { _default_32 as FoxActionsheetItem }
|
|
476
|
+
|
|
477
|
+
declare const _default_33: any;
|
|
478
|
+
export { _default_33 as FoxPickerItem }
|
|
479
|
+
export { _default_33 as PickerItem }
|
|
480
|
+
|
|
481
|
+
declare const _default_34: any;
|
|
482
|
+
export { _default_34 as FoxTabsBar }
|
|
483
|
+
export { _default_34 as TabsBar }
|
|
484
|
+
|
|
485
|
+
declare const _default_35: any;
|
|
486
|
+
export { _default_35 as FoxTabsContainer }
|
|
487
|
+
export { _default_35 as TabsContainer }
|
|
488
|
+
|
|
489
|
+
declare const _default_36: any;
|
|
490
|
+
export { _default_36 as FoxTabsPane }
|
|
491
|
+
export { _default_36 as TabsPane }
|
|
492
|
+
|
|
493
|
+
declare const _default_37: any;
|
|
494
|
+
export { _default_37 as FoxStepsBar }
|
|
495
|
+
export { _default_37 as StepsBar }
|
|
496
|
+
|
|
497
|
+
declare const _default_38: any;
|
|
498
|
+
export { _default_38 as Foxpicker }
|
|
499
|
+
export { _default_38 as picker }
|
|
500
|
+
|
|
501
|
+
declare const _default_39: any;
|
|
502
|
+
export { _default_39 as Foxdatepicker }
|
|
503
|
+
export { _default_39 as datepicker }
|
|
504
|
+
|
|
505
|
+
declare const _default_4: any;
|
|
506
|
+
export { _default_4 as FooterBar }
|
|
507
|
+
export { _default_4 as FoxFooterBar }
|
|
508
|
+
|
|
509
|
+
declare const _default_40: any;
|
|
510
|
+
export { _default_40 as Foxcalendarpicker }
|
|
511
|
+
export { _default_40 as calendarpicker }
|
|
512
|
+
|
|
513
|
+
declare const _default_41: any;
|
|
514
|
+
export { _default_41 as Foxcascaderpicker }
|
|
515
|
+
export { _default_41 as cascaderpicker }
|
|
516
|
+
|
|
517
|
+
declare const _default_42: any;
|
|
518
|
+
export { _default_42 as DialogItem }
|
|
519
|
+
export { _default_42 as FoxDialogItem }
|
|
520
|
+
|
|
521
|
+
declare const _default_43: any;
|
|
522
|
+
export { _default_43 as FoxOverLay }
|
|
523
|
+
export { _default_43 as OverLay }
|
|
524
|
+
|
|
525
|
+
declare const _default_44: any;
|
|
526
|
+
export { _default_44 as FoxPopup }
|
|
527
|
+
export { _default_44 as Popup }
|
|
528
|
+
|
|
529
|
+
declare const _default_45: any;
|
|
530
|
+
export { _default_45 as FoxToast }
|
|
531
|
+
export { _default_45 as Toast }
|
|
532
|
+
|
|
533
|
+
declare const _default_46: any;
|
|
534
|
+
export { _default_46 as FoxSearchBar }
|
|
535
|
+
export { _default_46 as SearchBar }
|
|
536
|
+
|
|
537
|
+
declare const _default_47: any;
|
|
538
|
+
export { _default_47 as FoxInfiniteLoading }
|
|
539
|
+
export { _default_47 as InfiniteLoading }
|
|
540
|
+
|
|
541
|
+
declare const _default_48: any;
|
|
542
|
+
export { _default_48 as FoxPullRefresh }
|
|
543
|
+
export { _default_48 as PullRefresh }
|
|
544
|
+
|
|
545
|
+
declare const _default_49: any;
|
|
546
|
+
export { _default_49 as FoxMapping }
|
|
547
|
+
export { _default_49 as Mapping }
|
|
548
|
+
|
|
549
|
+
declare const _default_5: any;
|
|
550
|
+
export { _default_5 as Content }
|
|
551
|
+
export { _default_5 as FoxContent }
|
|
552
|
+
|
|
553
|
+
declare const _default_50: any;
|
|
554
|
+
export { _default_50 as FoxPrice }
|
|
555
|
+
export { _default_50 as Price }
|
|
556
|
+
|
|
557
|
+
declare const _default_51: any;
|
|
558
|
+
export { _default_51 as FoxIndicator }
|
|
559
|
+
export { _default_51 as Indicator }
|
|
560
|
+
|
|
561
|
+
declare const _default_52: any;
|
|
562
|
+
export { _default_52 as FoxText }
|
|
563
|
+
export { _default_52 as Text }
|
|
564
|
+
|
|
565
|
+
declare const _default_53: any;
|
|
566
|
+
export { _default_53 as FoxMoreButton }
|
|
567
|
+
export { _default_53 as MoreButton }
|
|
568
|
+
|
|
569
|
+
declare const _default_54: any;
|
|
570
|
+
export { _default_54 as FoxTour }
|
|
571
|
+
export { _default_54 as Tour }
|
|
572
|
+
|
|
573
|
+
declare const _default_55: any;
|
|
574
|
+
export { _default_55 as FloatingWindow }
|
|
575
|
+
export { _default_55 as FoxFloatingWindow }
|
|
576
|
+
|
|
577
|
+
declare const _default_56: any;
|
|
578
|
+
export { _default_56 as DomainProvider }
|
|
579
|
+
export { _default_56 as FoxDomainProvider }
|
|
580
|
+
|
|
581
|
+
declare const _default_57: any;
|
|
582
|
+
export { _default_57 as FoxRollingProvider }
|
|
583
|
+
export { _default_57 as RollingProvider }
|
|
584
|
+
|
|
585
|
+
declare const _default_6: any;
|
|
586
|
+
export { _default_6 as FoxGroup }
|
|
587
|
+
export { _default_6 as Group }
|
|
588
|
+
|
|
589
|
+
declare const _default_7: any;
|
|
590
|
+
export { _default_7 as FoxItem }
|
|
591
|
+
export { _default_7 as Item }
|
|
592
|
+
|
|
593
|
+
declare const _default_8: any;
|
|
594
|
+
export { _default_8 as FoxSlotItem }
|
|
595
|
+
export { _default_8 as SlotItem }
|
|
596
|
+
|
|
597
|
+
declare const _default_9: any;
|
|
598
|
+
export { _default_9 as FoxRowItem }
|
|
599
|
+
export { _default_9 as RowItem }
|
|
600
|
+
|
|
280
601
|
/**
|
|
281
602
|
* anyNode
|
|
282
603
|
* @param name
|
|
@@ -327,6 +648,16 @@ export declare function defineItem(descriptor: Descriptor, name?: string, expose
|
|
|
327
648
|
*/
|
|
328
649
|
export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
|
|
329
650
|
|
|
651
|
+
/**
|
|
652
|
+
* 定义simple item
|
|
653
|
+
* @returns
|
|
654
|
+
*/
|
|
655
|
+
export declare function defineSimpleItem(): {
|
|
656
|
+
emitEvent: (type: string, ...args: any[]) => void;
|
|
657
|
+
onEvent: (type: string, listener: EventListener_2) => void;
|
|
658
|
+
offEvent: (type: string, listener: EventListener_2) => void;
|
|
659
|
+
};
|
|
660
|
+
|
|
330
661
|
/**
|
|
331
662
|
* 删除公共校验器
|
|
332
663
|
* @param type
|
|
@@ -342,14 +673,14 @@ export declare interface Descriptor {
|
|
|
342
673
|
valueName?: string;
|
|
343
674
|
valueType?: ValueType;
|
|
344
675
|
validate?: boolean;
|
|
676
|
+
readonly?: boolean;
|
|
677
|
+
disabled?: boolean;
|
|
345
678
|
pureDataValidate?: boolean;
|
|
346
679
|
validateHandler?: ValidateHandler;
|
|
347
680
|
validateCheckEvents?: string[];
|
|
348
681
|
validateResetEvents?: string[];
|
|
349
682
|
}
|
|
350
683
|
|
|
351
|
-
export declare const DialogItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
352
|
-
|
|
353
684
|
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
354
685
|
|
|
355
686
|
/**
|
|
@@ -469,8 +800,6 @@ export declare interface DomainItem {
|
|
|
469
800
|
*/
|
|
470
801
|
export declare const DomainKey: unique symbol;
|
|
471
802
|
|
|
472
|
-
export declare const DomainProvider: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
473
|
-
|
|
474
803
|
/**
|
|
475
804
|
* event listener
|
|
476
805
|
*/
|
|
@@ -493,20 +822,23 @@ export declare function excludeProps(src: Record<string, any>, ...excludeTemplat
|
|
|
493
822
|
*/
|
|
494
823
|
export declare function extend(...args: any[]): any;
|
|
495
824
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
825
|
+
/**
|
|
826
|
+
* float data
|
|
827
|
+
* @param format
|
|
828
|
+
* @param dataOp
|
|
829
|
+
* @param mapOps
|
|
830
|
+
* @returns
|
|
831
|
+
*/
|
|
502
832
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
503
833
|
|
|
504
|
-
export declare const FooterBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
505
|
-
|
|
506
834
|
export { FoxAffix }
|
|
507
835
|
|
|
508
836
|
export { FoxAlert }
|
|
509
837
|
|
|
838
|
+
export { FoxAnchor }
|
|
839
|
+
|
|
840
|
+
export { FoxAnchorLink }
|
|
841
|
+
|
|
510
842
|
export { FoxAside }
|
|
511
843
|
|
|
512
844
|
export { FoxAutocomplete }
|
|
@@ -557,12 +889,12 @@ export { FoxCollapseTransition }
|
|
|
557
889
|
|
|
558
890
|
export { FoxColorPicker }
|
|
559
891
|
|
|
560
|
-
declare type FoxComponentPublicInstance = any;
|
|
561
|
-
|
|
562
892
|
export { FoxConfigProvider }
|
|
563
893
|
|
|
564
894
|
export { FoxContainer }
|
|
565
895
|
|
|
896
|
+
export { FoxCountdown }
|
|
897
|
+
|
|
566
898
|
export { FoxDatePicker }
|
|
567
899
|
|
|
568
900
|
export { FoxDescriptions }
|
|
@@ -641,6 +973,8 @@ export { FoxRow }
|
|
|
641
973
|
|
|
642
974
|
export { FoxScrollbar }
|
|
643
975
|
|
|
976
|
+
export { FoxSegmented }
|
|
977
|
+
|
|
644
978
|
export { FoxSelect }
|
|
645
979
|
|
|
646
980
|
export { FoxSelectV2 }
|
|
@@ -653,6 +987,8 @@ export { FoxSlider }
|
|
|
653
987
|
|
|
654
988
|
export { FoxSpace }
|
|
655
989
|
|
|
990
|
+
export { FoxStatistic }
|
|
991
|
+
|
|
656
992
|
export { FoxStep }
|
|
657
993
|
|
|
658
994
|
export { FoxSteps }
|
|
@@ -691,79 +1027,6 @@ export { FoxTreeSelect }
|
|
|
691
1027
|
|
|
692
1028
|
export { FoxTreeV2 }
|
|
693
1029
|
|
|
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
1030
|
/**
|
|
768
1031
|
* Fox UI vue实例
|
|
769
1032
|
*/
|
|
@@ -838,6 +1101,8 @@ declare class FoxUIVue implements FoxUI {
|
|
|
838
1101
|
|
|
839
1102
|
export { FoxUpload }
|
|
840
1103
|
|
|
1104
|
+
export { FoxWatermark }
|
|
1105
|
+
|
|
841
1106
|
/**
|
|
842
1107
|
* 通用函数接口
|
|
843
1108
|
*/
|
|
@@ -893,27 +1158,11 @@ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageStat
|
|
|
893
1158
|
*/
|
|
894
1159
|
export declare function getRootDomain(): Domain;
|
|
895
1160
|
|
|
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
1161
|
/**
|
|
909
1162
|
* 是否支持symbol
|
|
910
1163
|
*/
|
|
911
1164
|
export declare const hasSymbol: boolean;
|
|
912
1165
|
|
|
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
1166
|
/**
|
|
918
1167
|
* 根据包含模版,抽取属性
|
|
919
1168
|
* @param src
|
|
@@ -930,12 +1179,6 @@ export declare function includeProps(src: Record<string, any>, ...includeTemplat
|
|
|
930
1179
|
*/
|
|
931
1180
|
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
932
1181
|
|
|
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
1182
|
/**
|
|
940
1183
|
* 安装函数
|
|
941
1184
|
*/
|
|
@@ -953,7 +1196,7 @@ export declare function installRules(proxy: FoxComponentPublicInstance, validate
|
|
|
953
1196
|
* 获取整数长度
|
|
954
1197
|
* @param value
|
|
955
1198
|
*/
|
|
956
|
-
export declare function integerLength(
|
|
1199
|
+
export declare function integerLength(v: string | number): number;
|
|
957
1200
|
|
|
958
1201
|
/**
|
|
959
1202
|
* 是否数组
|
|
@@ -984,7 +1227,7 @@ export declare const isDate: (val: unknown) => val is Date;
|
|
|
984
1227
|
* @param v
|
|
985
1228
|
* @returns
|
|
986
1229
|
*/
|
|
987
|
-
export declare const isEmptyString: (v: unknown) =>
|
|
1230
|
+
export declare const isEmptyString: (v: unknown) => v is "";
|
|
988
1231
|
|
|
989
1232
|
/**
|
|
990
1233
|
* 判断两个对象是否一致
|
|
@@ -1030,12 +1273,17 @@ export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
|
1030
1273
|
*/
|
|
1031
1274
|
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
1032
1275
|
|
|
1276
|
+
/**
|
|
1277
|
+
* 是否null/undefined对象
|
|
1278
|
+
*/
|
|
1279
|
+
export declare function isNil(v: unknown): v is null | undefined;
|
|
1280
|
+
|
|
1033
1281
|
/**
|
|
1034
1282
|
* 是否为数字字符串
|
|
1035
1283
|
* @param value
|
|
1036
1284
|
* @returns
|
|
1037
1285
|
*/
|
|
1038
|
-
export declare function isNumberString(
|
|
1286
|
+
export declare function isNumberString(v: string): v is string;
|
|
1039
1287
|
|
|
1040
1288
|
/**
|
|
1041
1289
|
* 是否为object
|
|
@@ -1090,14 +1338,18 @@ export declare function isSubPage(domain: Domain): boolean;
|
|
|
1090
1338
|
*/
|
|
1091
1339
|
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
1092
1340
|
|
|
1341
|
+
/**
|
|
1342
|
+
* 是否为支持触摸
|
|
1343
|
+
* @returns
|
|
1344
|
+
*/
|
|
1345
|
+
export declare function isTouch(): boolean;
|
|
1346
|
+
|
|
1093
1347
|
/**
|
|
1094
1348
|
* 是否是window对象
|
|
1095
1349
|
* @param obj
|
|
1096
1350
|
*/
|
|
1097
1351
|
export declare function isWindow(obj: any): boolean;
|
|
1098
1352
|
|
|
1099
|
-
export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1100
|
-
|
|
1101
1353
|
/**
|
|
1102
1354
|
* 获取对应元素的在数组中最后一个匹配的索引
|
|
1103
1355
|
* @param x
|
|
@@ -1114,8 +1366,6 @@ export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
|
1114
1366
|
*/
|
|
1115
1367
|
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
1116
1368
|
|
|
1117
|
-
export declare const Mapping: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1118
|
-
|
|
1119
1369
|
/**
|
|
1120
1370
|
* 匹配条件
|
|
1121
1371
|
*/
|
|
@@ -1135,8 +1385,6 @@ export declare interface Matched {
|
|
|
1135
1385
|
*/
|
|
1136
1386
|
export declare function merge(first: any[], second: any[]): any[];
|
|
1137
1387
|
|
|
1138
|
-
export declare const MoneyItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1139
|
-
|
|
1140
1388
|
export { multiply }
|
|
1141
1389
|
|
|
1142
1390
|
export { negate }
|
|
@@ -1157,7 +1405,18 @@ export { numberFormat }
|
|
|
1157
1405
|
*/
|
|
1158
1406
|
export declare const objectToString: () => string;
|
|
1159
1407
|
|
|
1160
|
-
|
|
1408
|
+
/**
|
|
1409
|
+
* 只执行一次函数
|
|
1410
|
+
* @param func
|
|
1411
|
+
* @returns
|
|
1412
|
+
*/
|
|
1413
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* 覆盖更新公共的校验处理器
|
|
1417
|
+
* @param validateHandler
|
|
1418
|
+
*/
|
|
1419
|
+
export declare function overrideGlobalValidateHandler(validateHandler: Partial<ValidateHandler>): void;
|
|
1161
1420
|
|
|
1162
1421
|
/**
|
|
1163
1422
|
* padding
|
|
@@ -1169,16 +1428,14 @@ export declare interface Padding {
|
|
|
1169
1428
|
bottom: number | null;
|
|
1170
1429
|
}
|
|
1171
1430
|
|
|
1172
|
-
export declare const Page: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1173
|
-
|
|
1174
1431
|
/**
|
|
1175
1432
|
* page layout
|
|
1176
1433
|
*/
|
|
1177
1434
|
export declare interface PageLayout {
|
|
1178
1435
|
width: number | string;
|
|
1179
|
-
height
|
|
1180
|
-
headerHeight
|
|
1181
|
-
footerHeight
|
|
1436
|
+
height: number | string;
|
|
1437
|
+
headerHeight?: number | string;
|
|
1438
|
+
footerHeight?: number | string;
|
|
1182
1439
|
headerPadding?: Padding;
|
|
1183
1440
|
footerPadding?: Padding;
|
|
1184
1441
|
contentPadding?: Padding;
|
|
@@ -1189,10 +1446,14 @@ export declare interface PageState {
|
|
|
1189
1446
|
height: number;
|
|
1190
1447
|
headerHeight: number;
|
|
1191
1448
|
headerPadding: Padding;
|
|
1449
|
+
headerAllHeight?: number;
|
|
1192
1450
|
footerHeight: number;
|
|
1193
1451
|
footerPadding: Padding;
|
|
1452
|
+
footerAllHeight?: number;
|
|
1194
1453
|
contentHeight: number | string | null;
|
|
1195
1454
|
contentPadding: Padding;
|
|
1455
|
+
contentInnerHeight?: number;
|
|
1456
|
+
contentInnerWidth?: number;
|
|
1196
1457
|
safeAreaTop: number;
|
|
1197
1458
|
safeAreaBottom: number;
|
|
1198
1459
|
safeAreaLeft: number;
|
|
@@ -1201,8 +1462,6 @@ export declare interface PageState {
|
|
|
1201
1462
|
footerMounted?: boolean;
|
|
1202
1463
|
}
|
|
1203
1464
|
|
|
1204
|
-
export declare const Picker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1205
|
-
|
|
1206
1465
|
/**
|
|
1207
1466
|
* 坐标
|
|
1208
1467
|
*/
|
|
@@ -1211,10 +1470,6 @@ export declare interface Point {
|
|
|
1211
1470
|
y: number;
|
|
1212
1471
|
}
|
|
1213
1472
|
|
|
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
1473
|
/**
|
|
1219
1474
|
* 优先策略
|
|
1220
1475
|
*/
|
|
@@ -1232,32 +1487,15 @@ export declare enum PriorityPolicy {
|
|
|
1232
1487
|
*/
|
|
1233
1488
|
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
1234
1489
|
|
|
1235
|
-
export declare const RadioItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1236
|
-
|
|
1237
|
-
/**
|
|
1238
|
-
* 动画
|
|
1239
|
-
*/
|
|
1240
1490
|
export declare const raf: any;
|
|
1241
1491
|
|
|
1242
|
-
export declare const RateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1243
|
-
|
|
1244
1492
|
/**
|
|
1245
1493
|
* 只读属性
|
|
1246
1494
|
* @param source
|
|
1247
1495
|
*/
|
|
1248
1496
|
export declare function readonlyProperty(source: Ref): Ref;
|
|
1249
1497
|
|
|
1250
|
-
/**
|
|
1251
|
-
* Rect类型
|
|
1252
|
-
*/
|
|
1253
1498
|
declare interface Rect {
|
|
1254
|
-
left: number;
|
|
1255
|
-
top: number;
|
|
1256
|
-
right: number;
|
|
1257
|
-
bottom: number;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
declare interface Rect_2 {
|
|
1261
1499
|
top: number;
|
|
1262
1500
|
left: number;
|
|
1263
1501
|
right: number;
|
|
@@ -1276,8 +1514,6 @@ export declare type Result = Promise<any> | any;
|
|
|
1276
1514
|
*/
|
|
1277
1515
|
export declare type Results = Result[];
|
|
1278
1516
|
|
|
1279
|
-
export declare const RowItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1280
|
-
|
|
1281
1517
|
/**
|
|
1282
1518
|
* 安全区域
|
|
1283
1519
|
*/
|
|
@@ -1288,15 +1524,6 @@ export declare interface SafeAreaInset {
|
|
|
1288
1524
|
bottom: number | string;
|
|
1289
1525
|
}
|
|
1290
1526
|
|
|
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
1527
|
/**
|
|
1301
1528
|
* 设置公共校验检查事件
|
|
1302
1529
|
* @param events
|
|
@@ -1327,31 +1554,22 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
|
1327
1554
|
*/
|
|
1328
1555
|
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
1329
1556
|
|
|
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 }
|
|
1557
|
+
/**
|
|
1558
|
+
* size
|
|
1559
|
+
*/
|
|
1560
|
+
declare interface Size {
|
|
1561
|
+
width: number;
|
|
1562
|
+
height: number;
|
|
1563
|
+
}
|
|
1340
1564
|
|
|
1341
1565
|
/**
|
|
1342
|
-
* 节流函数
|
|
1566
|
+
* 节流函数(执行时间范围内的第一次)
|
|
1343
1567
|
* @param func 函数
|
|
1344
1568
|
* @param delay 延迟执行毫秒数
|
|
1345
1569
|
* @returns
|
|
1346
1570
|
*/
|
|
1347
1571
|
export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
|
|
1348
1572
|
|
|
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
1573
|
/**
|
|
1356
1574
|
* 转换为boolean值
|
|
1357
1575
|
* @param val
|
|
@@ -1391,10 +1609,35 @@ export declare const toTypeString: (value: unknown) => string;
|
|
|
1391
1609
|
/**
|
|
1392
1610
|
* to model value
|
|
1393
1611
|
* @param props
|
|
1612
|
+
* @param name
|
|
1394
1613
|
* @param format
|
|
1614
|
+
* @param emitEvent
|
|
1395
1615
|
* @returns
|
|
1396
1616
|
*/
|
|
1397
|
-
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>
|
|
1617
|
+
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any> | null, emitEvent?: {
|
|
1618
|
+
(type: string, ...args: any[]): void;
|
|
1619
|
+
}): Ref;
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* 尝试执行多次函数
|
|
1623
|
+
* @param func 执行函数
|
|
1624
|
+
* @param milliseconds 执行间隔
|
|
1625
|
+
* @param maxLimit 最大尝试次数
|
|
1626
|
+
* @param step 间隔增加步长
|
|
1627
|
+
* @param immediately 是否立刻执行
|
|
1628
|
+
* @param callback 执行成功后的回调函数
|
|
1629
|
+
*/
|
|
1630
|
+
export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean, callback?: {
|
|
1631
|
+
(ret: boolean): void;
|
|
1632
|
+
}): void;
|
|
1633
|
+
|
|
1634
|
+
/**
|
|
1635
|
+
* 尝试多次函数
|
|
1636
|
+
* 返回true,代表执行完成,不在需要重试
|
|
1637
|
+
*/
|
|
1638
|
+
export declare interface TryTimesFunction {
|
|
1639
|
+
(): boolean;
|
|
1640
|
+
}
|
|
1398
1641
|
|
|
1399
1642
|
/**
|
|
1400
1643
|
* 判断类型
|
|
@@ -1427,6 +1670,11 @@ export { unNumberFormat }
|
|
|
1427
1670
|
* @param state
|
|
1428
1671
|
* @param pageLayout
|
|
1429
1672
|
* @param overrideProps
|
|
1673
|
+
* @param root
|
|
1674
|
+
* @param rootWidth
|
|
1675
|
+
* @param rootHeight
|
|
1676
|
+
* @param headerBarHeight
|
|
1677
|
+
* @param footerBarHeight
|
|
1430
1678
|
*/
|
|
1431
1679
|
export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
|
|
1432
1680
|
|
|
@@ -1449,6 +1697,13 @@ export declare function useDomain(proxy?: ComponentPublicInstance | null): Domai
|
|
|
1449
1697
|
*/
|
|
1450
1698
|
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
1451
1699
|
|
|
1700
|
+
/**
|
|
1701
|
+
* 获取内部可用size
|
|
1702
|
+
* @param elementRef
|
|
1703
|
+
* @returns
|
|
1704
|
+
*/
|
|
1705
|
+
export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
|
|
1706
|
+
|
|
1452
1707
|
/**
|
|
1453
1708
|
* 获取page state
|
|
1454
1709
|
* @param domain
|
|
@@ -1463,23 +1718,59 @@ export declare function usePageState(domain: Domain): PageState | null;
|
|
|
1463
1718
|
*/
|
|
1464
1719
|
export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
|
|
1465
1720
|
|
|
1466
|
-
|
|
1721
|
+
/**
|
|
1722
|
+
* 获取非响应式touch对象
|
|
1723
|
+
* @returns
|
|
1724
|
+
*/
|
|
1725
|
+
export declare function useRawTouch(): {
|
|
1726
|
+
move: EventListener;
|
|
1727
|
+
start: EventListener;
|
|
1728
|
+
reset: () => void;
|
|
1729
|
+
isVertical: () => boolean;
|
|
1730
|
+
isHorizontal: () => boolean;
|
|
1731
|
+
state: {
|
|
1732
|
+
startX: number;
|
|
1733
|
+
startY: number;
|
|
1734
|
+
startTime: number;
|
|
1735
|
+
duration: number;
|
|
1736
|
+
moveX: number;
|
|
1737
|
+
moveY: number;
|
|
1738
|
+
deltaX: number;
|
|
1739
|
+
deltaY: number;
|
|
1740
|
+
offsetX: number;
|
|
1741
|
+
offsetY: number;
|
|
1742
|
+
direction: Direction;
|
|
1743
|
+
};
|
|
1744
|
+
};
|
|
1745
|
+
|
|
1746
|
+
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
1467
1747
|
|
|
1748
|
+
/**
|
|
1749
|
+
* 获取size
|
|
1750
|
+
* @param elementRef
|
|
1751
|
+
* @returns
|
|
1752
|
+
*/
|
|
1753
|
+
export declare function useSize(elementRef: Element | Ref<Element>): Size;
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* 获取响应式touch对象
|
|
1757
|
+
* @returns
|
|
1758
|
+
*/
|
|
1468
1759
|
export declare function useTouch(): {
|
|
1469
1760
|
move: EventListener;
|
|
1470
1761
|
start: EventListener;
|
|
1471
1762
|
reset: () => void;
|
|
1472
|
-
startX:
|
|
1473
|
-
startY:
|
|
1474
|
-
startTime:
|
|
1475
|
-
duration:
|
|
1476
|
-
moveX:
|
|
1477
|
-
moveY:
|
|
1478
|
-
deltaX:
|
|
1479
|
-
deltaY:
|
|
1480
|
-
offsetX:
|
|
1481
|
-
offsetY:
|
|
1482
|
-
direction:
|
|
1763
|
+
startX: any;
|
|
1764
|
+
startY: any;
|
|
1765
|
+
startTime: any;
|
|
1766
|
+
duration: any;
|
|
1767
|
+
moveX: any;
|
|
1768
|
+
moveY: any;
|
|
1769
|
+
deltaX: any;
|
|
1770
|
+
deltaY: any;
|
|
1771
|
+
offsetX: any;
|
|
1772
|
+
offsetY: any;
|
|
1773
|
+
direction: any;
|
|
1483
1774
|
isVertical: () => boolean;
|
|
1484
1775
|
isHorizontal: () => boolean;
|
|
1485
1776
|
};
|
|
@@ -1492,6 +1783,8 @@ export declare interface ValidateCondition {
|
|
|
1492
1783
|
include?: string[];
|
|
1493
1784
|
exclude?: string[];
|
|
1494
1785
|
ignoreHidden?: boolean;
|
|
1786
|
+
ignoreDisabled?: boolean;
|
|
1787
|
+
ignoreReadonly?: boolean;
|
|
1495
1788
|
}
|
|
1496
1789
|
|
|
1497
1790
|
/**
|