@fox-js/foxui 4.0.1-6 → 4.0.1-60
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 +9 -19
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +19215 -12899
- package/dist/index.umd.js +10 -20
- package/dist/locale/index.esm.js +234 -168
- package/dist/locale/index.umd.js +3 -0
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -5
- package/dist/types/index.d.ts +1845 -333
- package/package.json +13 -15
- package/dist/locale/index.cjs.js +0 -3
- package/dist/locale/index.d.ts +0 -398
package/dist/types/index.d.ts
CHANGED
|
@@ -1,183 +1,908 @@
|
|
|
1
|
-
import type { AllowedComponentProps } from 'vue';
|
|
2
1
|
import { App } from 'vue';
|
|
3
|
-
import { clone } from '@fox-js/fox';
|
|
4
2
|
import { compareTo } from '@fox-js/big-decimal';
|
|
5
|
-
import
|
|
6
|
-
import type { ComponentOptionsMixin } from 'vue';
|
|
3
|
+
import { ComponentInternalInstance } from 'vue';
|
|
7
4
|
import { ComponentPublicInstance } from 'vue';
|
|
8
|
-
import type { ComputedOptions } from 'vue';
|
|
9
5
|
import { CSSProperties } from 'vue';
|
|
10
|
-
import type { DefineComponent } from 'vue';
|
|
11
6
|
import { divide } from '@fox-js/big-decimal';
|
|
12
7
|
import { ExecuteValidator } from '@fox-js/validator';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { isESModule } from '@fox-js/fox';
|
|
18
|
-
import { isFunction } from '@fox-js/fox';
|
|
19
|
-
import { isMap } from '@fox-js/fox';
|
|
20
|
-
import { isObject } from '@fox-js/fox';
|
|
21
|
-
import { isPlainObject } from '@fox-js/fox';
|
|
22
|
-
import { isPromise } from '@fox-js/fox';
|
|
23
|
-
import { isSet } from '@fox-js/fox';
|
|
24
|
-
import { isString } from '@fox-js/fox';
|
|
25
|
-
import { isSymbol } from '@fox-js/fox';
|
|
26
|
-
import type { MethodOptions } from 'vue';
|
|
8
|
+
import { FoxComponentPublicInstance } from './types';
|
|
9
|
+
import { FoxUI } from './interface';
|
|
10
|
+
import { FoxUIOptions } from './interface';
|
|
11
|
+
import { HintTextTooltip } from './types';
|
|
27
12
|
import { multiply } from '@fox-js/big-decimal';
|
|
28
13
|
import { negate } from '@fox-js/big-decimal';
|
|
29
14
|
import { numberFormat } from '@fox-js/big-decimal';
|
|
15
|
+
import { Ref } from 'vue';
|
|
30
16
|
import { Rule } from '@fox-js/validator';
|
|
31
|
-
import {
|
|
32
|
-
import { toNumber } from '@fox-js/fox';
|
|
33
|
-
import { toTypeString } from '@fox-js/fox';
|
|
17
|
+
import { ScopeGetter } from './api';
|
|
34
18
|
import { unNumberFormat } from '@fox-js/big-decimal';
|
|
19
|
+
import { UnwrapNestedRefs } from 'vue';
|
|
20
|
+
import { UnwrapRef } from 'vue';
|
|
21
|
+
import { ValidateMessages } from '@fox-js/validator';
|
|
35
22
|
import { ValidateResult } from '@fox-js/validator';
|
|
36
23
|
import { VNode } from 'vue';
|
|
37
|
-
import type { VNodeProps } from 'vue';
|
|
38
24
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export declare const Animate: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
46
|
-
|
|
47
|
-
declare const Audio_2: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
48
|
-
export { Audio_2 as Audio }
|
|
49
|
-
|
|
50
|
-
export declare const AudioOperate: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
51
|
-
|
|
52
|
-
export declare const Avatar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
53
|
-
|
|
54
|
-
export declare const AvatarGroup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
55
|
-
|
|
56
|
-
export declare const BackTop: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
57
|
-
|
|
58
|
-
export declare const Badge: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
59
|
-
|
|
60
|
-
export declare const Barrage: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
25
|
+
/**
|
|
26
|
+
* 是否接受value过滤器
|
|
27
|
+
*/
|
|
28
|
+
export declare interface AcceptFilter {
|
|
29
|
+
(value: any): boolean;
|
|
30
|
+
}
|
|
61
31
|
|
|
62
|
-
|
|
32
|
+
/**
|
|
33
|
+
* 广播类
|
|
34
|
+
*/
|
|
35
|
+
export declare class Broadcast {
|
|
36
|
+
/**
|
|
37
|
+
* parent
|
|
38
|
+
*/
|
|
63
39
|
private parent;
|
|
40
|
+
/**
|
|
41
|
+
* children
|
|
42
|
+
*/
|
|
64
43
|
private children;
|
|
44
|
+
/**
|
|
45
|
+
* 回调函数注册表
|
|
46
|
+
*/
|
|
65
47
|
private callbacks;
|
|
48
|
+
/**
|
|
49
|
+
* vue proxy
|
|
50
|
+
*/
|
|
66
51
|
private proxy;
|
|
52
|
+
/**
|
|
53
|
+
* 名称
|
|
54
|
+
*/
|
|
67
55
|
private name?;
|
|
56
|
+
/**
|
|
57
|
+
* 构造函数
|
|
58
|
+
* @param parent
|
|
59
|
+
* @param proxy
|
|
60
|
+
* @param name
|
|
61
|
+
*/
|
|
68
62
|
constructor(parent: Broadcast | null, proxy: FoxComponentPublicInstance, name?: string);
|
|
63
|
+
/**
|
|
64
|
+
* 加入孩子节点
|
|
65
|
+
* @param child
|
|
66
|
+
*/
|
|
69
67
|
private addChild;
|
|
68
|
+
/**
|
|
69
|
+
* 移除孩子节点
|
|
70
|
+
* @param child
|
|
71
|
+
*/
|
|
70
72
|
private removeChild;
|
|
73
|
+
/**
|
|
74
|
+
* 销毁
|
|
75
|
+
*/
|
|
71
76
|
destroy(): void;
|
|
77
|
+
/**
|
|
78
|
+
* 发生消息
|
|
79
|
+
* @param matched
|
|
80
|
+
* @param action
|
|
81
|
+
* @param args
|
|
82
|
+
*/
|
|
72
83
|
emit(matched: Matched, action: string, ...args: any[]): Results;
|
|
84
|
+
/**
|
|
85
|
+
* 发生消息(只发给孩子节点)
|
|
86
|
+
* @param matched
|
|
87
|
+
* @param action
|
|
88
|
+
* @param args
|
|
89
|
+
*/
|
|
73
90
|
emitToChildren(matched: Matched, action: string, ...args: any[]): Results;
|
|
91
|
+
/**
|
|
92
|
+
* 注册回调函数
|
|
93
|
+
* @param action
|
|
94
|
+
* @param callback
|
|
95
|
+
* @returns
|
|
96
|
+
*/
|
|
74
97
|
on(action: string, callback: BroadcastCallback): void;
|
|
75
98
|
}
|
|
76
99
|
|
|
77
|
-
|
|
100
|
+
/**
|
|
101
|
+
* broadcast callback
|
|
102
|
+
*/
|
|
103
|
+
export declare interface BroadcastCallback {
|
|
78
104
|
(...args: any[]): Result;
|
|
79
105
|
}
|
|
80
106
|
|
|
81
|
-
export declare const
|
|
82
|
-
|
|
83
|
-
export declare const Calendar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
84
|
-
|
|
85
|
-
export declare const CalendarItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
86
|
-
|
|
87
|
-
export declare const Card: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
88
|
-
|
|
89
|
-
export declare const Cascader: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
90
|
-
|
|
91
|
-
export declare const CascaderItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
92
|
-
|
|
93
|
-
export declare const Category: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
107
|
+
export declare const BroadcastKey: unique symbol;
|
|
94
108
|
|
|
95
|
-
export declare
|
|
109
|
+
export declare function cancelRaf(id: number): void;
|
|
96
110
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
export declare const CircleProgress: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
111
|
+
/**
|
|
112
|
+
* clamp
|
|
113
|
+
* @param num
|
|
114
|
+
* @param min
|
|
115
|
+
* @param max
|
|
116
|
+
* @returns
|
|
117
|
+
*/
|
|
118
|
+
export declare const clamp: (num: number, min: number, max: number) => number;
|
|
106
119
|
|
|
120
|
+
/**
|
|
121
|
+
* 清理非数字
|
|
122
|
+
*/
|
|
107
123
|
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
108
124
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
declare
|
|
118
|
-
export { Comment_2 as Comment }
|
|
125
|
+
/**
|
|
126
|
+
* 克隆对象
|
|
127
|
+
* @param target
|
|
128
|
+
* @param source
|
|
129
|
+
* @param plain
|
|
130
|
+
*
|
|
131
|
+
* @returns
|
|
132
|
+
*/
|
|
133
|
+
export declare function clone(target: any, source: any, plain?: boolean): any;
|
|
119
134
|
|
|
120
135
|
export { compareTo }
|
|
121
136
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
export declare const DateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
137
|
+
/**
|
|
138
|
+
* 内容
|
|
139
|
+
*/
|
|
140
|
+
declare type Content_2 = string | GroupContent[] | string[] | VNode | {
|
|
141
|
+
(): VNode;
|
|
142
|
+
};
|
|
129
143
|
|
|
130
|
-
|
|
144
|
+
/**
|
|
145
|
+
* 创建broadcast
|
|
146
|
+
*
|
|
147
|
+
* @param proxy
|
|
148
|
+
* @param parent
|
|
149
|
+
* @param name
|
|
150
|
+
* @param callbacks
|
|
151
|
+
* @returns
|
|
152
|
+
*/
|
|
153
|
+
export declare function createBroadcast(proxy: FoxComponentPublicInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* 创建校验schema
|
|
157
|
+
* @param proxy
|
|
158
|
+
* @param parent
|
|
159
|
+
* @param descriptor
|
|
160
|
+
* @returns
|
|
161
|
+
*/
|
|
162
|
+
export declare function createValidateSchema(proxy: FoxComponentPublicInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* data items key
|
|
166
|
+
*/
|
|
167
|
+
export declare const DataItemsKey: unique symbol;
|
|
131
168
|
|
|
132
169
|
export declare const DateUtils: {
|
|
170
|
+
/**
|
|
171
|
+
* 格式化
|
|
172
|
+
* @param date
|
|
173
|
+
* @param template
|
|
174
|
+
* @returns
|
|
175
|
+
*/
|
|
133
176
|
format(date: Date, template: string): string;
|
|
177
|
+
/**
|
|
178
|
+
* 解析
|
|
179
|
+
* @param str
|
|
180
|
+
* @param template
|
|
181
|
+
*/
|
|
134
182
|
parser(str: string, template: string): Date;
|
|
183
|
+
/**
|
|
184
|
+
* 是否为闫年
|
|
185
|
+
* @return {Boolse} true|false
|
|
186
|
+
*/
|
|
135
187
|
isLeapYear(y: number): boolean;
|
|
188
|
+
/**
|
|
189
|
+
* 返回星期数
|
|
190
|
+
* @return {String}
|
|
191
|
+
*/
|
|
136
192
|
getWhatDay(year: number, month: number, day: number): string;
|
|
193
|
+
/**
|
|
194
|
+
* 返回星期数
|
|
195
|
+
* @return {Number}
|
|
196
|
+
*/
|
|
137
197
|
getMonthPreDay(year: number, month: number): number;
|
|
198
|
+
/**
|
|
199
|
+
* 返回月份天数
|
|
200
|
+
* @return {Number}
|
|
201
|
+
*/
|
|
138
202
|
getMonthDays(year: string, month: string): number;
|
|
203
|
+
/**
|
|
204
|
+
* 补齐数字位数
|
|
205
|
+
* @return {string}
|
|
206
|
+
*/
|
|
139
207
|
getNumTwoBit(n: number): string;
|
|
208
|
+
/**
|
|
209
|
+
* 日期对象转成字符串
|
|
210
|
+
* @return {string}
|
|
211
|
+
*/
|
|
140
212
|
date2Str: (date: Date, split?: string) => string;
|
|
141
|
-
|
|
213
|
+
/**
|
|
214
|
+
* 返回日期格式字符串
|
|
215
|
+
* @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
216
|
+
* @param {Date} 起点日期
|
|
217
|
+
* @return {string} '2014-12-31'
|
|
218
|
+
*/
|
|
219
|
+
getDay(i: number, startDate?: Date): string;
|
|
220
|
+
/**
|
|
221
|
+
* 时间比较
|
|
222
|
+
* @return
|
|
223
|
+
*/
|
|
142
224
|
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
225
|
+
/**
|
|
226
|
+
* 时间是否相等
|
|
227
|
+
* @return
|
|
228
|
+
*/
|
|
143
229
|
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
230
|
+
/**
|
|
231
|
+
* get month week
|
|
232
|
+
* @param year
|
|
233
|
+
* @param month
|
|
234
|
+
* @param date
|
|
235
|
+
* @param firstDayOfWeek
|
|
236
|
+
* @returns
|
|
237
|
+
*/
|
|
238
|
+
getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
239
|
+
/**
|
|
240
|
+
* get year week
|
|
241
|
+
* @param year
|
|
242
|
+
* @param month
|
|
243
|
+
* @param date
|
|
244
|
+
* @param firstDayOfWeek
|
|
245
|
+
* @returns
|
|
246
|
+
*/
|
|
247
|
+
getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
248
|
+
/**
|
|
249
|
+
* get week date
|
|
250
|
+
*/
|
|
251
|
+
getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
|
|
252
|
+
/**
|
|
253
|
+
* format result date
|
|
254
|
+
*/
|
|
255
|
+
formatResultDate: (date: string) => string[];
|
|
256
|
+
/**
|
|
257
|
+
* 判断日期是否在范围内
|
|
258
|
+
* @param date
|
|
259
|
+
* @param startDate
|
|
260
|
+
* @param span 允许负数
|
|
261
|
+
*/
|
|
144
262
|
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
263
|
+
/**
|
|
264
|
+
* 判断日期是否在范围内
|
|
265
|
+
* @param date
|
|
266
|
+
* @param startDate
|
|
267
|
+
* @param span
|
|
268
|
+
*/
|
|
145
269
|
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
146
270
|
};
|
|
147
271
|
|
|
148
|
-
|
|
149
|
-
|
|
272
|
+
/**
|
|
273
|
+
* 防抖函数(执行时间范围内的最后一次)
|
|
274
|
+
* @param func 函数
|
|
275
|
+
* @param delay 防止抖动毫秒数
|
|
276
|
+
* @returns
|
|
277
|
+
*/
|
|
278
|
+
export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* 防抖Ref
|
|
282
|
+
* @param value
|
|
283
|
+
* @param delay
|
|
284
|
+
*/
|
|
285
|
+
export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* 获取小数长度
|
|
289
|
+
* @param value
|
|
290
|
+
*/
|
|
150
291
|
export declare function decimalLength(value: string | number): number;
|
|
151
292
|
|
|
152
293
|
declare const _default: FoxUIApp;
|
|
153
294
|
export default _default;
|
|
154
295
|
|
|
155
|
-
declare
|
|
296
|
+
declare const _default_10: any;
|
|
297
|
+
export { _default_10 as FoxInputItem }
|
|
298
|
+
export { _default_10 as InputItem }
|
|
299
|
+
|
|
300
|
+
declare const _default_100: any;
|
|
301
|
+
export { _default_100 as FoxSwiperItem }
|
|
302
|
+
export { _default_100 as SwiperItem }
|
|
303
|
+
|
|
304
|
+
declare const _default_101: any;
|
|
305
|
+
export { _default_101 as FoxPrice }
|
|
306
|
+
export { _default_101 as Price }
|
|
307
|
+
|
|
308
|
+
declare const _default_102: any;
|
|
309
|
+
export { _default_102 as CountUp }
|
|
310
|
+
export { _default_102 as FoxCountUp }
|
|
311
|
+
|
|
312
|
+
declare const _default_103: any;
|
|
313
|
+
export { _default_103 as CountDown }
|
|
314
|
+
export { _default_103 as FoxCountDown }
|
|
315
|
+
|
|
316
|
+
declare const _default_104: any;
|
|
317
|
+
export { _default_104 as Badge }
|
|
318
|
+
export { _default_104 as FoxBadge }
|
|
319
|
+
|
|
320
|
+
declare const _default_105: any;
|
|
321
|
+
export { _default_105 as FoxTag }
|
|
322
|
+
export { _default_105 as Tag }
|
|
323
|
+
|
|
324
|
+
declare const _default_106: any;
|
|
325
|
+
export { _default_106 as FoxPopover }
|
|
326
|
+
export { _default_106 as Popover }
|
|
327
|
+
|
|
328
|
+
declare const _default_107: any;
|
|
329
|
+
export { _default_107 as FoxSkeleton }
|
|
330
|
+
export { _default_107 as Skeleton }
|
|
331
|
+
|
|
332
|
+
declare const _default_108: any;
|
|
333
|
+
export { _default_108 as Collapse }
|
|
334
|
+
export { _default_108 as FoxCollapse }
|
|
335
|
+
|
|
336
|
+
declare const _default_109: any;
|
|
337
|
+
export { _default_109 as CollapseItem }
|
|
338
|
+
export { _default_109 as FoxCollapseItem }
|
|
339
|
+
|
|
340
|
+
declare const _default_11: any;
|
|
341
|
+
export { _default_11 as FoxMoneyItem }
|
|
342
|
+
export { _default_11 as MoneyItem }
|
|
343
|
+
|
|
344
|
+
declare const _default_110: any;
|
|
345
|
+
export { _default_110 as FoxTable }
|
|
346
|
+
export { _default_110 as Table }
|
|
347
|
+
|
|
348
|
+
declare const _default_111: any;
|
|
349
|
+
export { _default_111 as Ellipsis }
|
|
350
|
+
export { _default_111 as FoxEllipsis }
|
|
351
|
+
|
|
352
|
+
declare const _default_112: any;
|
|
353
|
+
export { _default_112 as Animate }
|
|
354
|
+
export { _default_112 as FoxAnimate }
|
|
355
|
+
|
|
356
|
+
declare const _default_113: any;
|
|
357
|
+
export { _default_113 as FoxWaterMark }
|
|
358
|
+
export { _default_113 as WaterMark }
|
|
359
|
+
|
|
360
|
+
declare const _default_114: any;
|
|
361
|
+
export { _default_114 as FoxTrendArrow }
|
|
362
|
+
export { _default_114 as TrendArrow }
|
|
363
|
+
|
|
364
|
+
declare const _default_115: any;
|
|
365
|
+
export { _default_115 as FoxTour }
|
|
366
|
+
export { _default_115 as Tour }
|
|
367
|
+
|
|
368
|
+
declare const _default_116: any;
|
|
369
|
+
export { _default_116 as Address }
|
|
370
|
+
export { _default_116 as FoxAddress }
|
|
371
|
+
|
|
372
|
+
declare const _default_117: any;
|
|
373
|
+
export { _default_117 as Barrage }
|
|
374
|
+
export { _default_117 as FoxBarrage }
|
|
375
|
+
|
|
376
|
+
declare const _default_118: any;
|
|
377
|
+
export { _default_118 as FoxSignature }
|
|
378
|
+
export { _default_118 as Signature }
|
|
379
|
+
|
|
380
|
+
declare const _default_119: any;
|
|
381
|
+
export { _default_119 as FoxTimeSelect }
|
|
382
|
+
export { _default_119 as TimeSelect }
|
|
383
|
+
|
|
384
|
+
declare const _default_12: any;
|
|
385
|
+
export { _default_12 as FoxTextareaItem }
|
|
386
|
+
export { _default_12 as TextareaItem }
|
|
387
|
+
|
|
388
|
+
declare const _default_120: any;
|
|
389
|
+
export { _default_120 as FoxTimePannel }
|
|
390
|
+
export { _default_120 as TimePannel }
|
|
391
|
+
|
|
392
|
+
declare const _default_121: any;
|
|
393
|
+
export { _default_121 as FoxTimeDetail }
|
|
394
|
+
export { _default_121 as TimeDetail }
|
|
395
|
+
|
|
396
|
+
declare const _default_122: any;
|
|
397
|
+
export { _default_122 as FoxSku }
|
|
398
|
+
export { _default_122 as Sku }
|
|
399
|
+
|
|
400
|
+
declare const _default_123: any;
|
|
401
|
+
export { _default_123 as Card }
|
|
402
|
+
export { _default_123 as FoxCard }
|
|
403
|
+
|
|
404
|
+
declare const _default_124: any;
|
|
405
|
+
export { _default_124 as Ecard }
|
|
406
|
+
export { _default_124 as FoxEcard }
|
|
407
|
+
|
|
408
|
+
declare const _default_125: any;
|
|
409
|
+
export { _default_125 as AddressList }
|
|
410
|
+
export { _default_125 as FoxAddressList }
|
|
411
|
+
|
|
412
|
+
declare const _default_126: any;
|
|
413
|
+
export { _default_126 as Category }
|
|
414
|
+
export { _default_126 as FoxCategory }
|
|
415
|
+
|
|
416
|
+
declare const _default_127: any;
|
|
417
|
+
export { _default_127 as CategoryPane }
|
|
418
|
+
export { _default_127 as FoxCategoryPane }
|
|
419
|
+
|
|
420
|
+
declare const _default_128: any;
|
|
421
|
+
export { _default_128 as Comment }
|
|
422
|
+
export { _default_128 as FoxComment }
|
|
423
|
+
|
|
424
|
+
declare const _default_13: any;
|
|
425
|
+
export { _default_13 as FoxTextarea }
|
|
426
|
+
export { _default_13 as Textarea }
|
|
427
|
+
|
|
428
|
+
declare const _default_14: any;
|
|
429
|
+
export { _default_14 as FoxPickerItem }
|
|
430
|
+
export { _default_14 as PickerItem }
|
|
431
|
+
|
|
432
|
+
declare const _default_15: any;
|
|
433
|
+
export { _default_15 as CascaderItem }
|
|
434
|
+
export { _default_15 as FoxCascaderItem }
|
|
435
|
+
|
|
436
|
+
declare const _default_16: any;
|
|
437
|
+
export { _default_16 as DateItem }
|
|
438
|
+
export { _default_16 as FoxDateItem }
|
|
439
|
+
|
|
440
|
+
declare const _default_17: any;
|
|
441
|
+
export { _default_17 as CalendarItem }
|
|
442
|
+
export { _default_17 as FoxCalendarItem }
|
|
443
|
+
|
|
444
|
+
declare const _default_18: any;
|
|
445
|
+
export { _default_18 as FoxRadio }
|
|
446
|
+
export { _default_18 as Radio }
|
|
447
|
+
|
|
448
|
+
declare const _default_19: any;
|
|
449
|
+
export { _default_19 as FoxRadioGroup }
|
|
450
|
+
export { _default_19 as RadioGroup }
|
|
451
|
+
|
|
452
|
+
declare const _default_2: any;
|
|
453
|
+
export { _default_2 as FoxPage }
|
|
454
|
+
export { _default_2 as Page }
|
|
455
|
+
|
|
456
|
+
declare const _default_20: any;
|
|
457
|
+
export { _default_20 as FoxRadioItem }
|
|
458
|
+
export { _default_20 as RadioItem }
|
|
459
|
+
|
|
460
|
+
declare const _default_21: any;
|
|
461
|
+
export { _default_21 as Checkbox }
|
|
462
|
+
export { _default_21 as FoxCheckbox }
|
|
463
|
+
|
|
464
|
+
declare const _default_22: any;
|
|
465
|
+
export { _default_22 as CheckboxGroup }
|
|
466
|
+
export { _default_22 as FoxCheckboxGroup }
|
|
467
|
+
|
|
468
|
+
declare const _default_23: any;
|
|
469
|
+
export { _default_23 as CheckboxItem }
|
|
470
|
+
export { _default_23 as FoxCheckboxItem }
|
|
471
|
+
|
|
472
|
+
declare const _default_24: any;
|
|
473
|
+
export { _default_24 as FoxSwitchItem }
|
|
474
|
+
export { _default_24 as SwitchItem }
|
|
475
|
+
|
|
476
|
+
declare const _default_25: any;
|
|
477
|
+
export { _default_25 as FoxLinkItem }
|
|
478
|
+
export { _default_25 as LinkItem }
|
|
479
|
+
|
|
480
|
+
declare const _default_26: any;
|
|
481
|
+
export { _default_26 as FoxRateItem }
|
|
482
|
+
export { _default_26 as RateItem }
|
|
483
|
+
|
|
484
|
+
declare const _default_27: any;
|
|
485
|
+
export { _default_27 as ActionsheetPane }
|
|
486
|
+
export { _default_27 as FoxActionsheetPane }
|
|
487
|
+
|
|
488
|
+
declare const _default_28: any;
|
|
489
|
+
export { _default_28 as ActionsheetItem }
|
|
490
|
+
export { _default_28 as FoxActionsheetItem }
|
|
491
|
+
|
|
492
|
+
declare const _default_29: any;
|
|
493
|
+
export { _default_29 as FoxInputnumberItem }
|
|
494
|
+
export { _default_29 as InputnumberItem }
|
|
495
|
+
|
|
496
|
+
declare const _default_3: any;
|
|
497
|
+
export { _default_3 as FoxHeaderBar }
|
|
498
|
+
export { _default_3 as HeaderBar }
|
|
499
|
+
|
|
500
|
+
declare const _default_30: any;
|
|
501
|
+
export { _default_30 as FoxTabsBar }
|
|
502
|
+
export { _default_30 as TabsBar }
|
|
503
|
+
|
|
504
|
+
declare const _default_31: any;
|
|
505
|
+
export { _default_31 as FoxTabsContainer }
|
|
506
|
+
export { _default_31 as TabsContainer }
|
|
507
|
+
|
|
508
|
+
declare const _default_32: any;
|
|
509
|
+
export { _default_32 as FoxTabsPane }
|
|
510
|
+
export { _default_32 as TabsPane }
|
|
511
|
+
|
|
512
|
+
declare const _default_33: any;
|
|
513
|
+
export { _default_33 as FoxStepsBar }
|
|
514
|
+
export { _default_33 as StepsBar }
|
|
515
|
+
|
|
516
|
+
declare const _default_34: any;
|
|
517
|
+
export { _default_34 as FloatingButton }
|
|
518
|
+
export { _default_34 as FoxFloatingButton }
|
|
519
|
+
|
|
520
|
+
declare const _default_35: any;
|
|
521
|
+
export { _default_35 as FoxMoreButton }
|
|
522
|
+
export { _default_35 as MoreButton }
|
|
523
|
+
|
|
524
|
+
declare const _default_36: any;
|
|
525
|
+
export { _default_36 as FoxPopupWrapper }
|
|
526
|
+
export { _default_36 as PopupWrapper }
|
|
527
|
+
|
|
528
|
+
declare const _default_37: any;
|
|
529
|
+
export { _default_37 as Dropdown }
|
|
530
|
+
export { _default_37 as FoxDropdown }
|
|
531
|
+
|
|
532
|
+
declare const _default_38: any;
|
|
533
|
+
export { _default_38 as FoxText }
|
|
534
|
+
export { _default_38 as Text }
|
|
535
|
+
|
|
536
|
+
declare const _default_39: any;
|
|
537
|
+
export { _default_39 as FoxMapping }
|
|
538
|
+
export { _default_39 as Mapping }
|
|
539
|
+
|
|
540
|
+
declare const _default_4: any;
|
|
541
|
+
export { _default_4 as FooterBar }
|
|
542
|
+
export { _default_4 as FoxFooterBar }
|
|
543
|
+
|
|
544
|
+
declare const _default_40: any;
|
|
545
|
+
export { _default_40 as DomainProvider }
|
|
546
|
+
export { _default_40 as FoxDomainProvider }
|
|
547
|
+
|
|
548
|
+
declare const _default_41: any;
|
|
549
|
+
export { _default_41 as FoxRollingProvider }
|
|
550
|
+
export { _default_41 as RollingProvider }
|
|
551
|
+
|
|
552
|
+
declare const _default_42: any;
|
|
553
|
+
export { _default_42 as Button }
|
|
554
|
+
export { _default_42 as FoxButton }
|
|
555
|
+
|
|
556
|
+
declare const _default_43: any;
|
|
557
|
+
export { _default_43 as Cell }
|
|
558
|
+
export { _default_43 as FoxCell }
|
|
559
|
+
|
|
560
|
+
declare const _default_44: any;
|
|
561
|
+
export { _default_44 as CellGroup }
|
|
562
|
+
export { _default_44 as FoxCellGroup }
|
|
563
|
+
|
|
564
|
+
declare const _default_45: any;
|
|
565
|
+
export { _default_45 as FoxOverLay }
|
|
566
|
+
export { _default_45 as OverLay }
|
|
567
|
+
|
|
568
|
+
declare const _default_46: any;
|
|
569
|
+
export { _default_46 as FoxPopup }
|
|
570
|
+
export { _default_46 as Popup }
|
|
571
|
+
|
|
572
|
+
declare const _default_47: any;
|
|
573
|
+
export { _default_47 as FoxImage }
|
|
574
|
+
export { _default_47 as Image }
|
|
575
|
+
|
|
576
|
+
declare const _default_48: any;
|
|
577
|
+
export { _default_48 as FoxLayout }
|
|
578
|
+
export { _default_48 as Layout }
|
|
579
|
+
|
|
580
|
+
declare const _default_49: any;
|
|
581
|
+
export { _default_49 as Col }
|
|
582
|
+
export { _default_49 as FoxCol }
|
|
583
|
+
|
|
584
|
+
declare const _default_5: any;
|
|
585
|
+
export { _default_5 as Content }
|
|
586
|
+
export { _default_5 as FoxContent }
|
|
587
|
+
|
|
588
|
+
declare const _default_50: any;
|
|
589
|
+
export { _default_50 as FoxRow }
|
|
590
|
+
export { _default_50 as Row }
|
|
591
|
+
|
|
592
|
+
declare const _default_51: any;
|
|
593
|
+
export { _default_51 as FoxSticky }
|
|
594
|
+
export { _default_51 as Sticky }
|
|
595
|
+
|
|
596
|
+
declare const _default_52: any;
|
|
597
|
+
export { _default_52 as Divider }
|
|
598
|
+
export { _default_52 as FoxDivider }
|
|
599
|
+
|
|
600
|
+
declare const _default_53: any;
|
|
601
|
+
export { _default_53 as FoxGrid }
|
|
602
|
+
export { _default_53 as Grid }
|
|
603
|
+
|
|
604
|
+
declare const _default_54: any;
|
|
605
|
+
export { _default_54 as FoxGridItem }
|
|
606
|
+
export { _default_54 as GridItem }
|
|
607
|
+
|
|
608
|
+
declare const _default_55: any;
|
|
609
|
+
export { _default_55 as FoxNavbar }
|
|
610
|
+
export { _default_55 as Navbar }
|
|
611
|
+
|
|
612
|
+
declare const _default_56: any;
|
|
613
|
+
export { _default_56 as FixedNav }
|
|
614
|
+
export { _default_56 as FoxFixedNav }
|
|
615
|
+
|
|
616
|
+
declare const _default_57: any;
|
|
617
|
+
export { _default_57 as FoxMenu }
|
|
618
|
+
export { _default_57 as Menu }
|
|
619
|
+
|
|
620
|
+
declare const _default_58: any;
|
|
621
|
+
export { _default_58 as FoxMenuItem }
|
|
622
|
+
export { _default_58 as MenuItem }
|
|
623
|
+
|
|
624
|
+
declare const _default_59: any;
|
|
625
|
+
export { _default_59 as FoxTabbar }
|
|
626
|
+
export { _default_59 as Tabbar }
|
|
627
|
+
|
|
628
|
+
declare const _default_6: any;
|
|
629
|
+
export { _default_6 as FoxGroup }
|
|
630
|
+
export { _default_6 as Group }
|
|
631
|
+
|
|
632
|
+
declare const _default_60: any;
|
|
633
|
+
export { _default_60 as FoxTabbarItem }
|
|
634
|
+
export { _default_60 as TabbarItem }
|
|
635
|
+
|
|
636
|
+
declare const _default_61: any;
|
|
637
|
+
export { _default_61 as Elevator }
|
|
638
|
+
export { _default_61 as FoxElevator }
|
|
639
|
+
|
|
640
|
+
declare const _default_62: any;
|
|
641
|
+
export { _default_62 as FoxPagination }
|
|
642
|
+
export { _default_62 as Pagination }
|
|
643
|
+
|
|
644
|
+
declare const _default_63: any;
|
|
645
|
+
export { _default_63 as FoxTabs }
|
|
646
|
+
export { _default_63 as Tabs }
|
|
647
|
+
|
|
648
|
+
declare const _default_64: any;
|
|
649
|
+
export { _default_64 as FoxTabPane }
|
|
650
|
+
export { _default_64 as TabPane }
|
|
651
|
+
|
|
652
|
+
declare const _default_65: any;
|
|
653
|
+
export { _default_65 as FoxIndicator }
|
|
654
|
+
export { _default_65 as Indicator }
|
|
655
|
+
|
|
656
|
+
declare const _default_66: any;
|
|
657
|
+
export { _default_66 as FoxSideNavBar }
|
|
658
|
+
export { _default_66 as SideNavBar }
|
|
659
|
+
|
|
660
|
+
declare const _default_67: any;
|
|
661
|
+
export { _default_67 as FoxSideNavBarItem }
|
|
662
|
+
export { _default_67 as SideNavBarItem }
|
|
663
|
+
|
|
664
|
+
declare const _default_68: any;
|
|
665
|
+
export { _default_68 as FoxSubSideNavBar }
|
|
666
|
+
export { _default_68 as SubSideNavBar }
|
|
667
|
+
|
|
668
|
+
declare const _default_69: any;
|
|
669
|
+
export { _default_69 as FoxRange }
|
|
670
|
+
export { _default_69 as Range }
|
|
671
|
+
|
|
672
|
+
declare const _default_7: any;
|
|
673
|
+
export { _default_7 as FoxItem }
|
|
674
|
+
export { _default_7 as Item }
|
|
675
|
+
|
|
676
|
+
declare const _default_70: any;
|
|
677
|
+
export { _default_70 as FoxSearchBar }
|
|
678
|
+
export { _default_70 as SearchBar }
|
|
679
|
+
|
|
680
|
+
declare const _default_71: any;
|
|
681
|
+
export { _default_71 as Cascader }
|
|
682
|
+
export { _default_71 as FoxCascader }
|
|
683
|
+
|
|
684
|
+
declare const _default_72: any;
|
|
685
|
+
export { _default_72 as Calendar }
|
|
686
|
+
export { _default_72 as FoxCalendar }
|
|
687
|
+
|
|
688
|
+
declare const _default_73: any;
|
|
689
|
+
export { _default_73 as DatePicker }
|
|
690
|
+
export { _default_73 as FoxDatePicker }
|
|
691
|
+
|
|
692
|
+
declare const _default_74: any;
|
|
693
|
+
export { _default_74 as FoxInputNumber }
|
|
694
|
+
export { _default_74 as InputNumber }
|
|
695
|
+
|
|
696
|
+
declare const _default_75: any;
|
|
697
|
+
export { _default_75 as FoxRate }
|
|
698
|
+
export { _default_75 as Rate }
|
|
699
|
+
|
|
700
|
+
declare const _default_76: any;
|
|
701
|
+
export { _default_76 as FoxPicker }
|
|
702
|
+
export { _default_76 as Picker }
|
|
703
|
+
|
|
704
|
+
declare const _default_77: any;
|
|
705
|
+
export { _default_77 as FoxShortPassword }
|
|
706
|
+
export { _default_77 as ShortPassword }
|
|
707
|
+
|
|
708
|
+
declare const _default_78: any;
|
|
709
|
+
export { _default_78 as FoxUploader }
|
|
710
|
+
export { _default_78 as Uploader }
|
|
711
|
+
|
|
712
|
+
declare const _default_79: any;
|
|
713
|
+
export { _default_79 as FoxNumberKeyboard }
|
|
714
|
+
export { _default_79 as NumberKeyboard }
|
|
715
|
+
|
|
716
|
+
declare const _default_8: any;
|
|
717
|
+
export { _default_8 as FoxRowItem }
|
|
718
|
+
export { _default_8 as RowItem }
|
|
719
|
+
|
|
720
|
+
declare const _default_80: any;
|
|
721
|
+
export { _default_80 as FoxSwipe }
|
|
722
|
+
export { _default_80 as Swipe }
|
|
723
|
+
|
|
724
|
+
declare const _default_81: any;
|
|
725
|
+
export { _default_81 as ActionSheet }
|
|
726
|
+
export { _default_81 as FoxActionSheet }
|
|
727
|
+
|
|
728
|
+
declare const _default_82: any;
|
|
729
|
+
export { _default_82 as BackTop }
|
|
730
|
+
export { _default_82 as FoxBackTop }
|
|
731
|
+
|
|
732
|
+
declare const _default_83: any;
|
|
733
|
+
export { _default_83 as Drag }
|
|
734
|
+
export { _default_83 as FoxDrag }
|
|
735
|
+
|
|
736
|
+
declare const _default_84: any;
|
|
737
|
+
export { _default_84 as FoxInfiniteLoading }
|
|
738
|
+
export { _default_84 as InfiniteLoading }
|
|
739
|
+
|
|
740
|
+
declare const _default_85: any;
|
|
741
|
+
export { _default_85 as FoxPullRefresh }
|
|
742
|
+
export { _default_85 as PullRefresh }
|
|
743
|
+
|
|
744
|
+
declare const _default_86: any;
|
|
745
|
+
export { _default_86 as FoxSwitch }
|
|
746
|
+
export { _default_86 as Switch }
|
|
747
|
+
|
|
748
|
+
declare const _default_87: any;
|
|
749
|
+
export { _default_87 as Audio }
|
|
750
|
+
export { _default_87 as FoxAudio }
|
|
751
|
+
|
|
752
|
+
declare const _default_88: any;
|
|
753
|
+
export { _default_88 as AudioOperate }
|
|
754
|
+
export { _default_88 as FoxAudioOperate }
|
|
755
|
+
|
|
756
|
+
declare const _default_89: any;
|
|
757
|
+
export { _default_89 as Avatar }
|
|
758
|
+
export { _default_89 as FoxAvatar }
|
|
759
|
+
|
|
760
|
+
declare const _default_9: any;
|
|
761
|
+
export { _default_9 as FoxSlotItem }
|
|
762
|
+
export { _default_9 as SlotItem }
|
|
763
|
+
|
|
764
|
+
declare const _default_90: any;
|
|
765
|
+
export { _default_90 as AvatarGroup }
|
|
766
|
+
export { _default_90 as FoxAvatarGroup }
|
|
767
|
+
|
|
768
|
+
declare const _default_91: any;
|
|
769
|
+
export { _default_91 as FoxList }
|
|
770
|
+
export { _default_91 as List }
|
|
771
|
+
|
|
772
|
+
declare const _default_92: any;
|
|
773
|
+
export { _default_92 as FoxProgress }
|
|
774
|
+
export { _default_92 as Progress }
|
|
775
|
+
|
|
776
|
+
declare const _default_93: any;
|
|
777
|
+
export { _default_93 as CircleProgress }
|
|
778
|
+
export { _default_93 as FoxCircleProgress }
|
|
779
|
+
|
|
780
|
+
declare const _default_94: any;
|
|
781
|
+
export { _default_94 as FoxNoticeBar }
|
|
782
|
+
export { _default_94 as NoticeBar }
|
|
783
|
+
|
|
784
|
+
declare const _default_95: any;
|
|
785
|
+
export { _default_95 as Empty }
|
|
786
|
+
export { _default_95 as FoxEmpty }
|
|
787
|
+
|
|
788
|
+
declare const _default_96: any;
|
|
789
|
+
export { _default_96 as FoxVideo }
|
|
790
|
+
export { _default_96 as Video }
|
|
791
|
+
|
|
792
|
+
declare const _default_97: any;
|
|
793
|
+
export { _default_97 as FoxSteps }
|
|
794
|
+
export { _default_97 as Steps }
|
|
795
|
+
|
|
796
|
+
declare const _default_98: any;
|
|
797
|
+
export { _default_98 as FoxStep }
|
|
798
|
+
export { _default_98 as Step }
|
|
799
|
+
|
|
800
|
+
declare const _default_99: any;
|
|
801
|
+
export { _default_99 as FoxSwiper }
|
|
802
|
+
export { _default_99 as Swiper }
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* anyNode
|
|
806
|
+
* @param name
|
|
807
|
+
* @param callbacks
|
|
808
|
+
* @returns
|
|
809
|
+
*/
|
|
810
|
+
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* 安装config domain
|
|
814
|
+
* @param name 名称
|
|
815
|
+
* @param props 属性
|
|
816
|
+
* @param ignores 忽略的属性
|
|
817
|
+
* @returns
|
|
818
|
+
*/
|
|
819
|
+
export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* 定义domain data item
|
|
823
|
+
* @returns
|
|
824
|
+
*/
|
|
825
|
+
export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
|
|
826
|
+
broadcast: Broadcast;
|
|
827
|
+
validateSchema: ValidateSchema;
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* 安装domain
|
|
832
|
+
* @param name 名称
|
|
833
|
+
* @param props 属性
|
|
834
|
+
* @param ignores 忽略的属性
|
|
835
|
+
* @param exposes 暴露的方法
|
|
836
|
+
* @returns
|
|
837
|
+
*/
|
|
838
|
+
export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* 定义domain item
|
|
842
|
+
* @returns
|
|
843
|
+
*/
|
|
844
|
+
export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* 创建page state
|
|
848
|
+
*
|
|
849
|
+
* @param domain
|
|
850
|
+
* @param overrideProps
|
|
851
|
+
*/
|
|
852
|
+
export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* 定义simple item
|
|
856
|
+
* @returns
|
|
857
|
+
*/
|
|
858
|
+
export declare function defineSimpleItem(): {
|
|
859
|
+
emitEvent: (type: string, ...args: any[]) => void;
|
|
860
|
+
onEvent: (type: string, listener: EventListener_2) => void;
|
|
861
|
+
offEvent: (type: string, listener: EventListener_2) => void;
|
|
862
|
+
};
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* 删除公共校验器
|
|
866
|
+
* @param type
|
|
867
|
+
*/
|
|
868
|
+
export declare function deleteGlobalValidator(type: string): void;
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* 组件描述
|
|
872
|
+
*/
|
|
873
|
+
export declare interface Descriptor {
|
|
156
874
|
componentName: string;
|
|
157
875
|
fieldName?: string;
|
|
158
876
|
valueName?: string;
|
|
159
877
|
valueType?: ValueType;
|
|
160
878
|
validate?: boolean;
|
|
879
|
+
readonly?: boolean;
|
|
880
|
+
disabled?: boolean;
|
|
161
881
|
pureDataValidate?: boolean;
|
|
162
882
|
validateHandler?: ValidateHandler;
|
|
163
883
|
validateCheckEvents?: string[];
|
|
164
884
|
validateResetEvents?: string[];
|
|
165
885
|
}
|
|
166
886
|
|
|
167
|
-
|
|
887
|
+
declare const _Dialog: {
|
|
168
888
|
(options: DialogOptions): DialogFunction;
|
|
169
889
|
install(app: any): void;
|
|
170
890
|
};
|
|
891
|
+
export { _Dialog as Dialog }
|
|
892
|
+
export { _Dialog as FoxDialog }
|
|
171
893
|
|
|
172
894
|
declare class DialogFunction {
|
|
173
|
-
options
|
|
174
|
-
|
|
895
|
+
private options;
|
|
896
|
+
/**
|
|
897
|
+
* 构造函数
|
|
898
|
+
* @param _options
|
|
899
|
+
*/
|
|
175
900
|
constructor(_options: DialogOptions);
|
|
176
|
-
close: () => void;
|
|
177
|
-
setDefaultOptions: (options: DialogOptions) => void;
|
|
178
|
-
resetDefaultOptions: () => void;
|
|
179
901
|
}
|
|
180
902
|
|
|
903
|
+
/**
|
|
904
|
+
* 默认配置
|
|
905
|
+
*/
|
|
181
906
|
declare class DialogOptions {
|
|
182
907
|
title?: string;
|
|
183
908
|
content?: string | VNode;
|
|
@@ -207,203 +932,539 @@ declare class DialogOptions {
|
|
|
207
932
|
lockScroll?: boolean;
|
|
208
933
|
}
|
|
209
934
|
|
|
210
|
-
|
|
935
|
+
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* 禁用属性
|
|
939
|
+
* @param source
|
|
940
|
+
*/
|
|
941
|
+
export declare function disabledProperty(source: Ref): Ref;
|
|
211
942
|
|
|
212
|
-
export
|
|
943
|
+
export { divide }
|
|
213
944
|
|
|
214
|
-
|
|
945
|
+
/**
|
|
946
|
+
* Domain
|
|
947
|
+
*/
|
|
948
|
+
export declare class Domain {
|
|
949
|
+
/**
|
|
950
|
+
* 父亲domain
|
|
951
|
+
*/
|
|
215
952
|
private _parent;
|
|
216
953
|
get parent(): Domain | null;
|
|
217
954
|
set parent(val: Domain | null);
|
|
955
|
+
/**
|
|
956
|
+
* 名称
|
|
957
|
+
*/
|
|
218
958
|
private _name;
|
|
219
959
|
get name(): string | null;
|
|
960
|
+
/**
|
|
961
|
+
* 广播器
|
|
962
|
+
*/
|
|
220
963
|
private _broadcast;
|
|
221
964
|
get broadcast(): Broadcast | null;
|
|
222
965
|
set broadcast(val: Broadcast | null);
|
|
966
|
+
/**
|
|
967
|
+
* 校验器
|
|
968
|
+
*/
|
|
223
969
|
private _validateSchema;
|
|
224
970
|
get validateSchema(): ValidateSchema | null;
|
|
225
971
|
set validateSchema(val: ValidateSchema | null);
|
|
972
|
+
/**
|
|
973
|
+
* 属性集合
|
|
974
|
+
*/
|
|
226
975
|
private _props;
|
|
976
|
+
/**
|
|
977
|
+
* 构造函数
|
|
978
|
+
* @param name
|
|
979
|
+
*/
|
|
227
980
|
constructor(name?: string | null);
|
|
981
|
+
/**
|
|
982
|
+
* 销毁
|
|
983
|
+
*/
|
|
228
984
|
destroy(): void;
|
|
985
|
+
/**
|
|
986
|
+
* 合并属性
|
|
987
|
+
* @param props
|
|
988
|
+
*/
|
|
229
989
|
merge(props: Record<string | number, any>, ignores?: any[]): void;
|
|
990
|
+
/**
|
|
991
|
+
* 判断是否有属性
|
|
992
|
+
*/
|
|
230
993
|
has(key: string | number): boolean;
|
|
994
|
+
/**
|
|
995
|
+
* 删除属性
|
|
996
|
+
* @param key
|
|
997
|
+
*/
|
|
231
998
|
delete(key: string | number): void;
|
|
999
|
+
/**
|
|
1000
|
+
* 设置属性
|
|
1001
|
+
* @param key
|
|
1002
|
+
* @param value
|
|
1003
|
+
*/
|
|
232
1004
|
set(key: string | number, value: any): void;
|
|
1005
|
+
/**
|
|
1006
|
+
* 获取属性
|
|
1007
|
+
*
|
|
1008
|
+
* @param key
|
|
1009
|
+
* @param defaultValue
|
|
1010
|
+
*/
|
|
233
1011
|
get(key: string | number, defaultValue?: any): any;
|
|
1012
|
+
/**
|
|
1013
|
+
* 获取属性
|
|
1014
|
+
*
|
|
1015
|
+
* @param key
|
|
1016
|
+
* @param defaultValue
|
|
1017
|
+
*/
|
|
234
1018
|
getForParent(key: string | number, defaultValue?: any): any;
|
|
1019
|
+
/**
|
|
1020
|
+
* 获取self属性
|
|
1021
|
+
* @param key
|
|
1022
|
+
* @returns
|
|
1023
|
+
*/
|
|
235
1024
|
getForSelf(key: string | number): any;
|
|
1025
|
+
/**
|
|
1026
|
+
* 从继承关系中获取属性集合
|
|
1027
|
+
* @param key
|
|
1028
|
+
*/
|
|
236
1029
|
getAll(key: string | number): any[];
|
|
237
1030
|
}
|
|
238
1031
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
1032
|
+
/**
|
|
1033
|
+
* domain item
|
|
1034
|
+
*/
|
|
1035
|
+
export declare interface DomainItem {
|
|
1036
|
+
broadcast: Broadcast;
|
|
1037
|
+
validateSchema: ValidateSchema;
|
|
1038
|
+
emitEvent: {
|
|
1039
|
+
(type: string, ...args: any[]): void;
|
|
1040
|
+
};
|
|
1041
|
+
onEvent: {
|
|
1042
|
+
(type: string, listener: EventListener_2): void;
|
|
1043
|
+
};
|
|
1044
|
+
offEvent: {
|
|
1045
|
+
(type: string, listener: EventListener_2): void;
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
244
1048
|
|
|
245
|
-
|
|
1049
|
+
/**
|
|
1050
|
+
* domain key
|
|
1051
|
+
*/
|
|
1052
|
+
export declare const DomainKey: unique symbol;
|
|
246
1053
|
|
|
247
|
-
|
|
1054
|
+
/**
|
|
1055
|
+
* event listener
|
|
1056
|
+
*/
|
|
1057
|
+
declare interface EventListener_2 {
|
|
1058
|
+
(...args: any[]): void;
|
|
1059
|
+
}
|
|
248
1060
|
|
|
1061
|
+
/**
|
|
1062
|
+
* 根据排除模版,抽取属性
|
|
1063
|
+
* @param src
|
|
1064
|
+
* @param excludeTemplates
|
|
1065
|
+
* @returns
|
|
1066
|
+
*/
|
|
249
1067
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
250
1068
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
1069
|
+
/**
|
|
1070
|
+
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
1071
|
+
*
|
|
1072
|
+
* @returns
|
|
1073
|
+
*/
|
|
1074
|
+
export declare function extend(...args: any[]): any;
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* float data
|
|
1078
|
+
* @param format
|
|
1079
|
+
* @param dataOp
|
|
1080
|
+
* @param mapOps
|
|
1081
|
+
* @returns
|
|
1082
|
+
*/
|
|
255
1083
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
256
1084
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
declare interface FoxUI {
|
|
262
|
-
version: string;
|
|
263
|
-
install(app: App, ...options: any[]): any;
|
|
264
|
-
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
265
|
-
setScopeGetter(getter: ScopeGetter): void;
|
|
266
|
-
setAPI(name: string, func: any, scope?: string): void;
|
|
267
|
-
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
268
|
-
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
269
|
-
clearScopeAPI(scope: string): void;
|
|
270
|
-
getRootDomain(): Domain;
|
|
271
|
-
}
|
|
272
|
-
|
|
1085
|
+
/**
|
|
1086
|
+
* Fox UI App
|
|
1087
|
+
*/
|
|
273
1088
|
declare class FoxUIApp implements FoxUI {
|
|
1089
|
+
/**
|
|
1090
|
+
* packages
|
|
1091
|
+
*/
|
|
274
1092
|
private packages;
|
|
1093
|
+
/**
|
|
1094
|
+
* version
|
|
1095
|
+
*/
|
|
275
1096
|
private _version;
|
|
276
1097
|
get version(): string;
|
|
1098
|
+
/**
|
|
1099
|
+
* 构造函数
|
|
1100
|
+
* @param packages
|
|
1101
|
+
* @param version
|
|
1102
|
+
*/
|
|
277
1103
|
constructor(packages: any[], version: string);
|
|
1104
|
+
/**
|
|
1105
|
+
* 安装
|
|
1106
|
+
* @param app
|
|
1107
|
+
* @param options
|
|
1108
|
+
*/
|
|
278
1109
|
install(app: App, options: FoxUIOptions): any;
|
|
1110
|
+
/**
|
|
1111
|
+
* 初始化page Layout
|
|
1112
|
+
*
|
|
1113
|
+
* @param options
|
|
1114
|
+
* @param rootDomain
|
|
1115
|
+
*/
|
|
279
1116
|
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
1117
|
+
/**
|
|
1118
|
+
* 设置scope getter
|
|
1119
|
+
* @param getter
|
|
1120
|
+
*/
|
|
280
1121
|
setScopeGetter(getter: ScopeGetter): void;
|
|
1122
|
+
/**
|
|
1123
|
+
* 设置API
|
|
1124
|
+
* @param name
|
|
1125
|
+
* @param api
|
|
1126
|
+
* @param scope
|
|
1127
|
+
*/
|
|
281
1128
|
setAPI(name: string, api: any, scope?: string): void;
|
|
1129
|
+
/**
|
|
1130
|
+
* 获取API
|
|
1131
|
+
* @param proxy
|
|
1132
|
+
* @param name
|
|
1133
|
+
* @param scope
|
|
1134
|
+
*/
|
|
282
1135
|
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
1136
|
+
/**
|
|
1137
|
+
* 批量增加api
|
|
1138
|
+
* @param apis
|
|
1139
|
+
* @param scope
|
|
1140
|
+
*/
|
|
283
1141
|
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
1142
|
+
/**
|
|
1143
|
+
* 清空scope apis
|
|
1144
|
+
* @param scope
|
|
1145
|
+
*/
|
|
284
1146
|
clearScopeAPI(scope: string): void;
|
|
1147
|
+
/**
|
|
1148
|
+
* 获取root domain
|
|
1149
|
+
*/
|
|
285
1150
|
getRootDomain(): Domain;
|
|
286
1151
|
}
|
|
287
1152
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
safeAreaInset?: SafeAreaInset;
|
|
292
|
-
pageLayout?: PageLayout;
|
|
293
|
-
headerPadding?: Rect;
|
|
294
|
-
contentPadding?: Rect;
|
|
295
|
-
groupLayout?: GroupLayout;
|
|
296
|
-
labelWidth?: number | string;
|
|
297
|
-
[propName: string]: any;
|
|
298
|
-
}
|
|
299
|
-
|
|
1153
|
+
/**
|
|
1154
|
+
* 通用函数接口
|
|
1155
|
+
*/
|
|
300
1156
|
export declare interface GenericFunction {
|
|
301
1157
|
(...args: any[]): any;
|
|
302
1158
|
}
|
|
303
1159
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
1160
|
+
/**
|
|
1161
|
+
* 获取公共校验检查事件
|
|
1162
|
+
*/
|
|
1163
|
+
export declare function getGlobalValidateCheckEvents(): string[];
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* 获取公共校验重置事件
|
|
1167
|
+
*/
|
|
1168
|
+
export declare function getGlobalValidateResetEvents(): string[];
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* 获取page content区域高度(pageHeight - headerHeight - footerHeight - padding )
|
|
1172
|
+
* @param domain
|
|
1173
|
+
* @param state
|
|
1174
|
+
* @returns
|
|
1175
|
+
*/
|
|
1176
|
+
export declare function getPageContentAreaHeight(domain: Domain, state?: PageState): number;
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* 获取page content区域宽度(pageWidth - padding )
|
|
1180
|
+
* @param domain
|
|
1181
|
+
* @param state
|
|
1182
|
+
* @returns
|
|
1183
|
+
*/
|
|
1184
|
+
export declare function getPageContentAreaWidth(domain: Domain, state?: PageState): number;
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* 获取page footer区域高度(footerHeight + SafeAreaBottom )
|
|
1188
|
+
* @param domain
|
|
1189
|
+
* @param state
|
|
1190
|
+
* @returns
|
|
1191
|
+
*/
|
|
1192
|
+
export declare function getPageFooterAreaHeight(domain: Domain, state?: PageState): number;
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* 获取page header区域高度(headerHeight + SafeAreaTop )
|
|
1196
|
+
* @param domain
|
|
1197
|
+
* @param state
|
|
1198
|
+
* @returns
|
|
1199
|
+
*/
|
|
1200
|
+
export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageState): number;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* 获取root domain
|
|
1204
|
+
* @returns
|
|
1205
|
+
*/
|
|
1206
|
+
export declare function getRootDomain(): Domain;
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* Group Content
|
|
1210
|
+
*/
|
|
1211
|
+
declare type GroupContent = {
|
|
1212
|
+
title: string;
|
|
1213
|
+
content: Array<string> | string;
|
|
1214
|
+
};
|
|
320
1215
|
|
|
321
|
-
|
|
1216
|
+
/**
|
|
1217
|
+
* 是否支持symbol
|
|
1218
|
+
*/
|
|
1219
|
+
export declare const hasSymbol: boolean;
|
|
322
1220
|
|
|
323
|
-
|
|
324
|
-
|
|
1221
|
+
/**
|
|
1222
|
+
* hint text function
|
|
1223
|
+
*/
|
|
1224
|
+
declare const HintTextFunction: HintTextTooltip;
|
|
1225
|
+
export { HintTextFunction as FoxHintText }
|
|
1226
|
+
export { HintTextFunction as HintText }
|
|
325
1227
|
|
|
326
1228
|
declare interface ImageInterface {
|
|
327
1229
|
src: string;
|
|
328
1230
|
}
|
|
329
1231
|
|
|
330
|
-
|
|
331
|
-
(options: ImagePreviewOptions): ImagePreviewFunction;
|
|
332
|
-
install(app: any): void;
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
declare class ImagePreviewFunction {
|
|
1232
|
+
declare class ImagePreviewApp {
|
|
336
1233
|
options: ImagePreviewOptions;
|
|
337
1234
|
constructor(_options: ImagePreviewOptions);
|
|
338
1235
|
}
|
|
339
1236
|
|
|
1237
|
+
declare const ImagePreviewFunction: {
|
|
1238
|
+
(options: ImagePreviewOptions): ImagePreviewApp;
|
|
1239
|
+
install(app: any): void;
|
|
1240
|
+
};
|
|
1241
|
+
export { ImagePreviewFunction as FoxImagePreview }
|
|
1242
|
+
export { ImagePreviewFunction as ImagePreview }
|
|
1243
|
+
|
|
340
1244
|
declare class ImagePreviewOptions {
|
|
341
1245
|
show: boolean;
|
|
342
1246
|
images: ImageInterface[];
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
1247
|
+
videos?: [];
|
|
1248
|
+
contentClose?: boolean;
|
|
1249
|
+
initNo?: number;
|
|
1250
|
+
paginationVisible?: boolean;
|
|
1251
|
+
paginationColor?: string;
|
|
1252
|
+
autoplay?: number | string;
|
|
1253
|
+
isWrapTeleport?: boolean;
|
|
1254
|
+
showIndex?: boolean;
|
|
1255
|
+
closeable?: boolean;
|
|
1256
|
+
closeIconPosition?: string;
|
|
1257
|
+
beforeClose?: Interceptor;
|
|
1258
|
+
maxZoom?: number;
|
|
1259
|
+
minZoom?: number;
|
|
1260
|
+
isLoop?: boolean;
|
|
1261
|
+
onClose?(): void;
|
|
1262
|
+
onChange?(index: number): void;
|
|
1263
|
+
teleport?: string | HTMLElement;
|
|
348
1264
|
}
|
|
349
1265
|
|
|
1266
|
+
/**
|
|
1267
|
+
* 根据包含模版,抽取属性
|
|
1268
|
+
* @param src
|
|
1269
|
+
* @param includeTemplates
|
|
1270
|
+
* @returns
|
|
1271
|
+
*/
|
|
350
1272
|
export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
|
|
351
1273
|
|
|
1274
|
+
/**
|
|
1275
|
+
* 获取对应元素的在数组中第一个匹配的索引
|
|
1276
|
+
* @param x
|
|
1277
|
+
* @param arr
|
|
1278
|
+
* @returns
|
|
1279
|
+
*/
|
|
352
1280
|
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
353
1281
|
|
|
354
|
-
|
|
1282
|
+
/**
|
|
1283
|
+
* 安装校验规则
|
|
1284
|
+
* @param proxy
|
|
1285
|
+
*/
|
|
1286
|
+
export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
|
|
355
1287
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
1288
|
+
/**
|
|
1289
|
+
* 获取整数长度
|
|
1290
|
+
* @param value
|
|
1291
|
+
*/
|
|
1292
|
+
export declare function integerLength(value: string | number): number;
|
|
359
1293
|
|
|
360
|
-
|
|
1294
|
+
declare type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
|
|
361
1295
|
|
|
362
|
-
|
|
1296
|
+
/**
|
|
1297
|
+
* 是否数组
|
|
1298
|
+
*/
|
|
1299
|
+
export declare const isArray: (arg: any) => arg is any[];
|
|
363
1300
|
|
|
364
|
-
|
|
1301
|
+
/**
|
|
1302
|
+
* 是否为类数组
|
|
1303
|
+
* @param obj
|
|
1304
|
+
* @returns {boolean}
|
|
1305
|
+
*/
|
|
1306
|
+
export declare function isArrayLike(obj: any): boolean;
|
|
365
1307
|
|
|
1308
|
+
/**
|
|
1309
|
+
* 是否为浏览器环境
|
|
1310
|
+
*/
|
|
366
1311
|
export declare const isBrowser: boolean;
|
|
367
1312
|
|
|
368
|
-
|
|
369
|
-
|
|
1313
|
+
/**
|
|
1314
|
+
* 是否为Date
|
|
1315
|
+
* @param val
|
|
1316
|
+
* @returns
|
|
1317
|
+
*/
|
|
1318
|
+
export declare const isDate: (val: unknown) => val is Date;
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* 是否空字符串
|
|
1322
|
+
* @param v
|
|
1323
|
+
* @returns
|
|
1324
|
+
*/
|
|
370
1325
|
export declare const isEmptyString: (v: unknown) => boolean;
|
|
371
1326
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
export
|
|
379
|
-
|
|
1327
|
+
/**
|
|
1328
|
+
* 判断两个对象是否一致
|
|
1329
|
+
* @param x
|
|
1330
|
+
* @param y
|
|
1331
|
+
* @return
|
|
1332
|
+
*/
|
|
1333
|
+
export declare function isEqual(x: any, y: any): boolean;
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* 是否为es module
|
|
1337
|
+
* @param obj
|
|
1338
|
+
* @returns
|
|
1339
|
+
*/
|
|
1340
|
+
export declare function isESModule(obj: any): obj is Object;
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* 是否为函数
|
|
1344
|
+
* @param val
|
|
1345
|
+
* @returns
|
|
1346
|
+
*/
|
|
1347
|
+
export declare const isFunction: (val: unknown) => val is Function;
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* 是否是隐藏element
|
|
1351
|
+
* @param el
|
|
1352
|
+
*/
|
|
1353
|
+
export declare function isHidden(el: any): boolean;
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* 是否为内嵌页面
|
|
1357
|
+
* 内嵌页面为内嵌在容器内,如dialog,不需要设置content的高度
|
|
1358
|
+
* @param domain
|
|
1359
|
+
* @param proxy
|
|
1360
|
+
* @returns
|
|
1361
|
+
*/
|
|
1362
|
+
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* 是否为Map
|
|
1366
|
+
* @param val
|
|
1367
|
+
* @returns
|
|
1368
|
+
*/
|
|
1369
|
+
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
1370
|
+
|
|
1371
|
+
/**
|
|
1372
|
+
* 是否null/undefined对象
|
|
1373
|
+
*/
|
|
1374
|
+
export declare function isNil(v: unknown): v is null | undefined;
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* 是否为数字字符串
|
|
1378
|
+
* @param value
|
|
1379
|
+
* @returns
|
|
1380
|
+
*/
|
|
380
1381
|
export declare function isNumberString(value: string): boolean;
|
|
381
1382
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
1383
|
+
/**
|
|
1384
|
+
* 是否为object
|
|
1385
|
+
*/
|
|
1386
|
+
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* 是否为plain对象
|
|
1390
|
+
* @param val
|
|
1391
|
+
* @returns
|
|
1392
|
+
*/
|
|
1393
|
+
export declare const isPlainObject: (val: unknown) => val is object;
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* 是否为promise
|
|
1397
|
+
* @param val
|
|
1398
|
+
* @returns
|
|
1399
|
+
*/
|
|
1400
|
+
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* 判断是否为正则表达式
|
|
1404
|
+
* @param v
|
|
1405
|
+
* @returns
|
|
1406
|
+
*/
|
|
388
1407
|
export declare function isRegExp(v: unknown): v is RegExp;
|
|
389
1408
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
1409
|
+
/**
|
|
1410
|
+
* 是否为Set
|
|
1411
|
+
* @param val
|
|
1412
|
+
* @returns
|
|
1413
|
+
*/
|
|
1414
|
+
export declare const isSet: (val: unknown) => val is Set<any>;
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* 是否为字符串
|
|
1418
|
+
* @param val
|
|
1419
|
+
* @returns
|
|
1420
|
+
*/
|
|
1421
|
+
export declare const isString: (val: unknown) => val is string;
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* 是否子页面
|
|
1425
|
+
* @param domain
|
|
1426
|
+
*/
|
|
1427
|
+
export declare function isSubPage(domain: Domain): boolean;
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* 是否为symbol
|
|
1431
|
+
* @param val
|
|
1432
|
+
* @returns
|
|
1433
|
+
*/
|
|
1434
|
+
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* 是否为支持触摸
|
|
1438
|
+
* @returns
|
|
1439
|
+
*/
|
|
1440
|
+
export declare function isTouch(): boolean;
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* 是否是window对象
|
|
1444
|
+
* @param obj
|
|
1445
|
+
*/
|
|
1446
|
+
export declare function isWindow(obj: any): boolean;
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* 获取对应元素的在数组中最后一个匹配的索引
|
|
1450
|
+
* @param x
|
|
1451
|
+
* @param arr
|
|
1452
|
+
* @returns
|
|
1453
|
+
*/
|
|
398
1454
|
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
399
1455
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
declare
|
|
1456
|
+
/**
|
|
1457
|
+
* 创建数组
|
|
1458
|
+
* @param arr
|
|
1459
|
+
* @param results
|
|
1460
|
+
* @return
|
|
1461
|
+
*/
|
|
1462
|
+
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* 匹配条件
|
|
1466
|
+
*/
|
|
1467
|
+
export declare interface Matched {
|
|
407
1468
|
name?: string | RegExp | {
|
|
408
1469
|
(name: string): boolean;
|
|
409
1470
|
};
|
|
@@ -411,21 +1472,74 @@ declare interface Matched {
|
|
|
411
1472
|
level?: number;
|
|
412
1473
|
}
|
|
413
1474
|
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
1475
|
+
/**
|
|
1476
|
+
* 合并数组
|
|
1477
|
+
* @param first
|
|
1478
|
+
* @param second
|
|
1479
|
+
* @return
|
|
1480
|
+
*/
|
|
1481
|
+
export declare function merge(first: any[], second: any[]): any[];
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* MessageBox动作
|
|
1485
|
+
*/
|
|
1486
|
+
declare type MessageBoxAction = 'confirm' | 'cancel' | 'close';
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* MesageBox Function
|
|
1490
|
+
*/
|
|
1491
|
+
declare const MessageBoxFunction: {
|
|
1492
|
+
/**
|
|
1493
|
+
* show
|
|
1494
|
+
* @param message
|
|
1495
|
+
* @param title
|
|
1496
|
+
* @param options
|
|
1497
|
+
*/
|
|
1498
|
+
show: (openType: OpenType, message: Content_2 | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
|
|
1499
|
+
/**
|
|
1500
|
+
* alert
|
|
1501
|
+
* @param messge
|
|
1502
|
+
* @param title
|
|
1503
|
+
* @param options
|
|
1504
|
+
*/
|
|
1505
|
+
alert: (message: string | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
|
|
1506
|
+
/**
|
|
1507
|
+
* confirm
|
|
1508
|
+
* @param messge
|
|
1509
|
+
* @param title
|
|
1510
|
+
* @param options
|
|
1511
|
+
*/
|
|
1512
|
+
confirm: (message: string | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
|
|
1513
|
+
/**
|
|
1514
|
+
* 安装
|
|
1515
|
+
* @param app
|
|
1516
|
+
*/
|
|
1517
|
+
install(app: any): void;
|
|
1518
|
+
};
|
|
1519
|
+
export { MessageBoxFunction as FoxMessageBox }
|
|
1520
|
+
export { MessageBoxFunction as MessageBox }
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* Message Box返回值
|
|
1524
|
+
*/
|
|
1525
|
+
declare type MessageResult = {
|
|
1526
|
+
action: MessageBoxAction;
|
|
1527
|
+
};
|
|
419
1528
|
|
|
420
1529
|
export { multiply }
|
|
421
1530
|
|
|
422
|
-
export declare const Navbar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
423
|
-
|
|
424
1531
|
export { negate }
|
|
425
1532
|
|
|
426
|
-
|
|
1533
|
+
/**
|
|
1534
|
+
* 下一个事件周期中执行函数
|
|
1535
|
+
* @param fn
|
|
1536
|
+
* @param args
|
|
1537
|
+
*/
|
|
1538
|
+
export declare function nextTick(fn: {
|
|
1539
|
+
(...args: any[]): void;
|
|
1540
|
+
}, ...args: any[]): void;
|
|
427
1541
|
|
|
428
|
-
|
|
1542
|
+
declare const NotifyFunction: {
|
|
429
1543
|
text(msg: string, obj?: {}): any;
|
|
430
1544
|
primary(msg: string, obj?: {}): any;
|
|
431
1545
|
success(msg: string, obj?: {}): any;
|
|
@@ -434,208 +1548,606 @@ export declare const Notify: {
|
|
|
434
1548
|
hide(): void;
|
|
435
1549
|
install(app: any): void;
|
|
436
1550
|
};
|
|
1551
|
+
export { NotifyFunction as FoxNotify }
|
|
1552
|
+
export { NotifyFunction as Notify }
|
|
437
1553
|
|
|
438
1554
|
export { numberFormat }
|
|
439
1555
|
|
|
440
|
-
|
|
1556
|
+
/**
|
|
1557
|
+
* 对象类型
|
|
1558
|
+
*/
|
|
1559
|
+
export declare const objectToString: () => string;
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* 只执行一次函数
|
|
1563
|
+
* @param func
|
|
1564
|
+
* @returns
|
|
1565
|
+
*/
|
|
1566
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
441
1567
|
|
|
442
|
-
|
|
1568
|
+
/**
|
|
1569
|
+
* 打开类型
|
|
1570
|
+
*/
|
|
1571
|
+
declare type OpenType = 'alert' | 'confirm' | '';
|
|
443
1572
|
|
|
444
|
-
declare
|
|
1573
|
+
declare type Options = {
|
|
1574
|
+
teleport?: string | HTMLElement;
|
|
1575
|
+
zIndex?: number | string;
|
|
1576
|
+
[propName: string]: any;
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
/**
|
|
1580
|
+
* 覆盖更新公共的校验处理器
|
|
1581
|
+
* @param validateHandler
|
|
1582
|
+
*/
|
|
1583
|
+
export declare function overrideGlobalValidateHandler(validateHandler: Partial<ValidateHandler>): void;
|
|
1584
|
+
|
|
1585
|
+
/**
|
|
1586
|
+
* padding
|
|
1587
|
+
*/
|
|
1588
|
+
export declare interface Padding {
|
|
445
1589
|
left: number | null;
|
|
446
1590
|
top: number | null;
|
|
447
1591
|
right: number | null;
|
|
448
1592
|
bottom: number | null;
|
|
449
1593
|
}
|
|
450
1594
|
|
|
451
|
-
|
|
1595
|
+
/**
|
|
1596
|
+
* pad zero
|
|
1597
|
+
*/
|
|
1598
|
+
export declare const padZero: (num: number | string, length?: number) => string;
|
|
452
1599
|
|
|
453
|
-
|
|
1600
|
+
/**
|
|
1601
|
+
* page layout
|
|
1602
|
+
*/
|
|
1603
|
+
export declare interface PageLayout {
|
|
454
1604
|
width: number | string;
|
|
455
1605
|
height: number | string;
|
|
456
|
-
headerHeight
|
|
457
|
-
footerHeight
|
|
1606
|
+
headerHeight?: number | string;
|
|
1607
|
+
footerHeight?: number | string;
|
|
458
1608
|
headerPadding?: Padding;
|
|
459
1609
|
footerPadding?: Padding;
|
|
460
1610
|
contentPadding?: Padding;
|
|
461
1611
|
}
|
|
462
1612
|
|
|
463
|
-
export declare
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
1613
|
+
export declare interface PageState {
|
|
1614
|
+
width: number;
|
|
1615
|
+
height: number;
|
|
1616
|
+
headerHeight: number;
|
|
1617
|
+
headerPadding: Padding;
|
|
1618
|
+
headerAllHeight?: number;
|
|
1619
|
+
footerHeight: number;
|
|
1620
|
+
footerPadding: Padding;
|
|
1621
|
+
footerAllHeight?: number;
|
|
1622
|
+
contentHeight: number | string | null;
|
|
1623
|
+
contentPadding: Padding;
|
|
1624
|
+
contentInnerHeight?: number;
|
|
1625
|
+
contentInnerWidth?: number;
|
|
1626
|
+
safeAreaTop: number;
|
|
1627
|
+
safeAreaBottom: number;
|
|
1628
|
+
safeAreaLeft: number;
|
|
1629
|
+
safeAreaRight: number;
|
|
1630
|
+
headerMounted?: boolean;
|
|
1631
|
+
footerMounted?: boolean;
|
|
1632
|
+
}
|
|
476
1633
|
|
|
477
|
-
|
|
1634
|
+
/**
|
|
1635
|
+
* 坐标
|
|
1636
|
+
*/
|
|
1637
|
+
export declare interface Point {
|
|
1638
|
+
x: number;
|
|
1639
|
+
y: number;
|
|
1640
|
+
}
|
|
478
1641
|
|
|
479
|
-
|
|
1642
|
+
/**
|
|
1643
|
+
* prevent default
|
|
1644
|
+
* @param event
|
|
1645
|
+
* @param isStopPropagation
|
|
1646
|
+
*/
|
|
1647
|
+
export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* 优先策略
|
|
1651
|
+
*/
|
|
1652
|
+
export declare enum PriorityPolicy {
|
|
1653
|
+
Parent = 0,
|
|
1654
|
+
Near = 1
|
|
1655
|
+
}
|
|
480
1656
|
|
|
481
|
-
|
|
1657
|
+
/**
|
|
1658
|
+
* 属性
|
|
1659
|
+
* @param source
|
|
1660
|
+
* @param name
|
|
1661
|
+
* @param policy
|
|
1662
|
+
* @param filter
|
|
1663
|
+
*/
|
|
1664
|
+
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
482
1665
|
|
|
483
|
-
declare const
|
|
484
|
-
export { Range_2 as Range }
|
|
1666
|
+
export declare const raf: any;
|
|
485
1667
|
|
|
486
|
-
|
|
1668
|
+
/**
|
|
1669
|
+
* 只读属性
|
|
1670
|
+
* @param source
|
|
1671
|
+
*/
|
|
1672
|
+
export declare function readonlyProperty(source: Ref): Ref;
|
|
487
1673
|
|
|
488
|
-
declare interface Rect {
|
|
489
|
-
left: number;
|
|
1674
|
+
export declare interface Rect {
|
|
490
1675
|
top: number;
|
|
1676
|
+
left: number;
|
|
491
1677
|
right: number;
|
|
492
1678
|
bottom: number;
|
|
1679
|
+
width: number;
|
|
1680
|
+
height: number;
|
|
493
1681
|
}
|
|
494
1682
|
|
|
495
|
-
|
|
1683
|
+
/**
|
|
1684
|
+
* 结果类型
|
|
1685
|
+
*/
|
|
1686
|
+
export declare type Result = Promise<any> | any;
|
|
496
1687
|
|
|
497
|
-
|
|
1688
|
+
/**
|
|
1689
|
+
* 结果集合
|
|
1690
|
+
*/
|
|
1691
|
+
export declare type Results = Result[];
|
|
498
1692
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
declare interface SafeAreaInset {
|
|
1693
|
+
/**
|
|
1694
|
+
* 安全区域
|
|
1695
|
+
*/
|
|
1696
|
+
export declare interface SafeAreaInset {
|
|
504
1697
|
left: number | string;
|
|
505
1698
|
top: number | string;
|
|
506
1699
|
right: number | string;
|
|
507
1700
|
bottom: number | string;
|
|
508
1701
|
}
|
|
509
1702
|
|
|
510
|
-
|
|
511
|
-
|
|
1703
|
+
/**
|
|
1704
|
+
* 设置公共校验检查事件
|
|
1705
|
+
* @param events
|
|
1706
|
+
*/
|
|
1707
|
+
export declare function setGlobalValidateCheckEvents(events: string[]): void;
|
|
1708
|
+
|
|
1709
|
+
/**
|
|
1710
|
+
* 设置公共的校验处理器
|
|
1711
|
+
* @param validateHandler
|
|
1712
|
+
*/
|
|
1713
|
+
export declare function setGlobalValidateHandler(validateHandler: ValidateHandler): void;
|
|
1714
|
+
|
|
1715
|
+
/**
|
|
1716
|
+
* 设置公共校验提示信息
|
|
1717
|
+
*/
|
|
1718
|
+
export declare function setGlobalValidateMessages(messages: ValidateMessages): void;
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* 设置公共校验重置事件
|
|
1722
|
+
* @param events
|
|
1723
|
+
*/
|
|
1724
|
+
export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
1725
|
+
|
|
1726
|
+
/**
|
|
1727
|
+
* 设置公共校验器
|
|
1728
|
+
* @param type
|
|
1729
|
+
* @param validator
|
|
1730
|
+
*/
|
|
1731
|
+
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
* size
|
|
1735
|
+
*/
|
|
1736
|
+
declare interface Size {
|
|
1737
|
+
width: number;
|
|
1738
|
+
height: number;
|
|
512
1739
|
}
|
|
513
1740
|
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
export declare
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
export declare const SlotItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
529
|
-
|
|
530
|
-
export declare const Step: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
531
|
-
|
|
532
|
-
export declare const Steps: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
533
|
-
|
|
534
|
-
export declare const Sticky: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
535
|
-
|
|
536
|
-
export declare const SubSideNavBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
537
|
-
|
|
538
|
-
export declare const Swipe: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
539
|
-
|
|
540
|
-
export declare const Swiper: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
541
|
-
|
|
542
|
-
export declare const SwiperItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
543
|
-
|
|
544
|
-
export declare const Switch: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
545
|
-
|
|
546
|
-
export declare const SwitchItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
547
|
-
|
|
548
|
-
export declare const Tabbar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
549
|
-
|
|
550
|
-
export declare const TabbarItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
551
|
-
|
|
552
|
-
export declare const Table: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
553
|
-
|
|
554
|
-
export declare const TabPane: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
555
|
-
|
|
556
|
-
export declare const Tabs: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
557
|
-
|
|
558
|
-
export declare const Tag: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
559
|
-
|
|
560
|
-
export declare const Textarea: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
561
|
-
|
|
562
|
-
export declare const TextareaItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
563
|
-
|
|
564
|
-
export declare function throttle(func: GenericFunction, time: number): GenericFunction;
|
|
565
|
-
|
|
566
|
-
export declare const TimeDetail: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
567
|
-
|
|
568
|
-
export declare const TimePannel: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
569
|
-
|
|
570
|
-
export declare const TimeSelect: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
571
|
-
|
|
572
|
-
export declare const Toast: {
|
|
573
|
-
text(msg: string, opts?: {}): any | undefined;
|
|
574
|
-
success(msg: string, opts?: {}): any | undefined;
|
|
575
|
-
fail(msg: string, opts?: {}): any | undefined;
|
|
576
|
-
warn(msg: string, opts?: {}): any | undefined;
|
|
577
|
-
loading(msg: string, opts?: {}): any | undefined;
|
|
1741
|
+
/**
|
|
1742
|
+
* 节流函数(执行时间范围内的第一次)
|
|
1743
|
+
* @param func 函数
|
|
1744
|
+
* @param delay 延迟执行毫秒数
|
|
1745
|
+
* @returns
|
|
1746
|
+
*/
|
|
1747
|
+
export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
|
|
1748
|
+
|
|
1749
|
+
declare const ToastFunction: {
|
|
1750
|
+
text(msg: string, opts?: {}): any;
|
|
1751
|
+
success(msg: string, opts?: {}): any;
|
|
1752
|
+
fail(msg: string, opts?: {}): any;
|
|
1753
|
+
warn(msg: string, opts?: {}): any;
|
|
1754
|
+
loading(msg: string, opts?: {}): any;
|
|
578
1755
|
hide(id?: string): void;
|
|
579
1756
|
install(app: any): void;
|
|
580
1757
|
};
|
|
1758
|
+
export { ToastFunction as FoxToast }
|
|
1759
|
+
export { ToastFunction as Toast }
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* 转换为boolean值
|
|
1763
|
+
* @param val
|
|
1764
|
+
* @returns
|
|
1765
|
+
*/
|
|
1766
|
+
export declare function toBoolean(val: unknown): boolean;
|
|
1767
|
+
|
|
1768
|
+
/**
|
|
1769
|
+
* 转换为number值
|
|
1770
|
+
* @param val
|
|
1771
|
+
* @returns
|
|
1772
|
+
*/
|
|
1773
|
+
export declare function toNumber(val: unknown): number;
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* 转换为number rect
|
|
1777
|
+
*/
|
|
1778
|
+
export declare function toPadding(rect: any): Padding;
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* 转换为px number数值
|
|
1782
|
+
* @param value
|
|
1783
|
+
* @param size
|
|
1784
|
+
*/
|
|
1785
|
+
export declare function toPx(value: number | string, size?: number): number;
|
|
1786
|
+
|
|
1787
|
+
/**
|
|
1788
|
+
* to px desc
|
|
1789
|
+
* @param value
|
|
1790
|
+
* @returns
|
|
1791
|
+
*/
|
|
1792
|
+
export declare const toPxDesc: (value: string | number) => string;
|
|
1793
|
+
|
|
1794
|
+
export declare const toTypeString: (value: unknown) => string;
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* to model value
|
|
1798
|
+
* @param props
|
|
1799
|
+
* @param name
|
|
1800
|
+
* @param format
|
|
1801
|
+
* @param emitEvent
|
|
1802
|
+
* @returns
|
|
1803
|
+
*/
|
|
1804
|
+
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any> | null, emitEvent?: {
|
|
1805
|
+
(type: string, ...args: any[]): void;
|
|
1806
|
+
}): Ref;
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* 尝试执行多次函数
|
|
1810
|
+
* @param func 执行函数
|
|
1811
|
+
* @param milliseconds 执行间隔
|
|
1812
|
+
* @param maxLimit 最大尝试次数
|
|
1813
|
+
* @param step 间隔增加步长
|
|
1814
|
+
* @param immediately 是否立刻执行
|
|
1815
|
+
*/
|
|
1816
|
+
export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean): void;
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* 尝试多次函数
|
|
1820
|
+
* 返回true,代表执行完成,不在需要重试
|
|
1821
|
+
*/
|
|
1822
|
+
export declare interface TryTimesFunction {
|
|
1823
|
+
(): boolean;
|
|
1824
|
+
}
|
|
581
1825
|
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
export declare const TrendArrow: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1826
|
+
/**
|
|
1827
|
+
* 判断类型
|
|
1828
|
+
* @param obj
|
|
1829
|
+
* @returns any
|
|
1830
|
+
*/
|
|
1831
|
+
export declare function typeOf(obj: any): string;
|
|
589
1832
|
|
|
590
1833
|
export declare class UniqueID {
|
|
1834
|
+
/**
|
|
1835
|
+
* seed id
|
|
1836
|
+
*/
|
|
591
1837
|
private seed;
|
|
1838
|
+
/**
|
|
1839
|
+
* 种子
|
|
1840
|
+
* @param seed
|
|
1841
|
+
*/
|
|
592
1842
|
constructor(seed?: number);
|
|
1843
|
+
/**
|
|
1844
|
+
* 获取唯一ID
|
|
1845
|
+
* @returns
|
|
1846
|
+
*/
|
|
593
1847
|
get(): number;
|
|
594
1848
|
}
|
|
595
1849
|
|
|
596
1850
|
export { unNumberFormat }
|
|
597
1851
|
|
|
598
|
-
|
|
1852
|
+
/**
|
|
1853
|
+
* 更新 page state
|
|
1854
|
+
* @param state
|
|
1855
|
+
* @param pageLayout
|
|
1856
|
+
* @param overrideProps
|
|
1857
|
+
* @param root
|
|
1858
|
+
* @param rootWidth
|
|
1859
|
+
* @param rootHeight
|
|
1860
|
+
* @param headerBarHeight
|
|
1861
|
+
* @param footerBarHeight
|
|
1862
|
+
*/
|
|
1863
|
+
export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* 使用broadcast
|
|
1867
|
+
* @param proxy
|
|
1868
|
+
* @returns
|
|
1869
|
+
*/
|
|
1870
|
+
export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
|
|
1871
|
+
|
|
1872
|
+
/**
|
|
1873
|
+
* 获取当前domain
|
|
1874
|
+
* @returns
|
|
1875
|
+
*/
|
|
1876
|
+
export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
|
|
1877
|
+
|
|
1878
|
+
/**
|
|
1879
|
+
* use expose
|
|
1880
|
+
* @param apis
|
|
1881
|
+
*/
|
|
1882
|
+
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
1883
|
+
|
|
1884
|
+
/**
|
|
1885
|
+
* 获取内部可用size
|
|
1886
|
+
* @param elementRef
|
|
1887
|
+
* @returns
|
|
1888
|
+
*/
|
|
1889
|
+
export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* 获取page state
|
|
1893
|
+
* @param domain
|
|
1894
|
+
* @returns
|
|
1895
|
+
*/
|
|
1896
|
+
export declare function usePageState(domain: Domain): PageState | null;
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* 获取element 位置
|
|
1900
|
+
* @param elementRef
|
|
1901
|
+
* @returns
|
|
1902
|
+
*/
|
|
1903
|
+
export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* 获取非响应式touch对象
|
|
1907
|
+
* @returns
|
|
1908
|
+
*/
|
|
1909
|
+
export declare function useRawTouch(): {
|
|
1910
|
+
move: EventListener;
|
|
1911
|
+
start: EventListener;
|
|
1912
|
+
reset: () => void;
|
|
1913
|
+
isVertical: () => boolean;
|
|
1914
|
+
isHorizontal: () => boolean;
|
|
1915
|
+
state: {
|
|
1916
|
+
startX: number;
|
|
1917
|
+
startY: number;
|
|
1918
|
+
startTime: number;
|
|
1919
|
+
duration: number;
|
|
1920
|
+
moveX: number;
|
|
1921
|
+
moveY: number;
|
|
1922
|
+
deltaX: number;
|
|
1923
|
+
deltaY: number;
|
|
1924
|
+
offsetX: number;
|
|
1925
|
+
offsetY: number;
|
|
1926
|
+
direction: Direction;
|
|
1927
|
+
};
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1930
|
+
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
1931
|
+
|
|
1932
|
+
/**
|
|
1933
|
+
* 获取size
|
|
1934
|
+
* @param elementRef
|
|
1935
|
+
* @returns
|
|
1936
|
+
*/
|
|
1937
|
+
export declare function useSize(elementRef: Element | Ref<Element>): Size;
|
|
1938
|
+
|
|
1939
|
+
/**
|
|
1940
|
+
* 获取响应式touch对象
|
|
1941
|
+
* @returns
|
|
1942
|
+
*/
|
|
1943
|
+
export declare function useTouch(): {
|
|
1944
|
+
move: EventListener;
|
|
1945
|
+
start: EventListener;
|
|
1946
|
+
reset: () => void;
|
|
1947
|
+
startX: any;
|
|
1948
|
+
startY: any;
|
|
1949
|
+
startTime: any;
|
|
1950
|
+
duration: any;
|
|
1951
|
+
moveX: any;
|
|
1952
|
+
moveY: any;
|
|
1953
|
+
deltaX: any;
|
|
1954
|
+
deltaY: any;
|
|
1955
|
+
offsetX: any;
|
|
1956
|
+
offsetY: any;
|
|
1957
|
+
direction: any;
|
|
1958
|
+
isVertical: () => boolean;
|
|
1959
|
+
isHorizontal: () => boolean;
|
|
1960
|
+
};
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* 校验条件
|
|
1964
|
+
*/
|
|
1965
|
+
export declare interface ValidateCondition {
|
|
1966
|
+
deep?: boolean;
|
|
1967
|
+
include?: string[];
|
|
1968
|
+
exclude?: string[];
|
|
1969
|
+
ignoreHidden?: boolean;
|
|
1970
|
+
ignoreDisabled?: boolean;
|
|
1971
|
+
ignoreReadonly?: boolean;
|
|
1972
|
+
}
|
|
599
1973
|
|
|
600
|
-
|
|
1974
|
+
/**
|
|
1975
|
+
* 校验器handler
|
|
1976
|
+
*/
|
|
1977
|
+
export declare interface ValidateHandler {
|
|
1978
|
+
/**
|
|
1979
|
+
* 错误处理
|
|
1980
|
+
* @param errorMsg
|
|
1981
|
+
* @param proxy
|
|
1982
|
+
*
|
|
1983
|
+
*/
|
|
601
1984
|
error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
|
|
1985
|
+
/**
|
|
1986
|
+
* 重置处理
|
|
1987
|
+
* @param proxy
|
|
1988
|
+
*
|
|
1989
|
+
*/
|
|
602
1990
|
reset?(proxy: FoxComponentPublicInstance): void;
|
|
1991
|
+
/**
|
|
1992
|
+
* 成功处理
|
|
1993
|
+
* @param proxy
|
|
1994
|
+
*
|
|
1995
|
+
*/
|
|
603
1996
|
success?(proxy: FoxComponentPublicInstance): void;
|
|
1997
|
+
/**
|
|
1998
|
+
* 规则装饰处理
|
|
1999
|
+
* @param newRule
|
|
2000
|
+
* @param oldRule
|
|
2001
|
+
* @param proxy
|
|
2002
|
+
*
|
|
2003
|
+
*/
|
|
604
2004
|
decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
|
|
2005
|
+
/**
|
|
2006
|
+
* 获取value
|
|
2007
|
+
* @param proxy
|
|
2008
|
+
*
|
|
2009
|
+
*/
|
|
605
2010
|
getValue?(proxy: FoxComponentPublicInstance): any;
|
|
606
2011
|
}
|
|
607
2012
|
|
|
608
|
-
|
|
2013
|
+
/**
|
|
2014
|
+
* 校验器schema
|
|
2015
|
+
*/
|
|
2016
|
+
export declare class ValidateSchema {
|
|
2017
|
+
/**
|
|
2018
|
+
* parent
|
|
2019
|
+
*/
|
|
609
2020
|
private parent;
|
|
2021
|
+
/**
|
|
2022
|
+
* 校验器
|
|
2023
|
+
*/
|
|
610
2024
|
private validators;
|
|
2025
|
+
/**
|
|
2026
|
+
* 属性rule
|
|
2027
|
+
*/
|
|
611
2028
|
private attrRules;
|
|
2029
|
+
/**
|
|
2030
|
+
* rule
|
|
2031
|
+
*/
|
|
612
2032
|
private rules;
|
|
2033
|
+
/**
|
|
2034
|
+
* 描述
|
|
2035
|
+
*/
|
|
613
2036
|
private descriptor;
|
|
2037
|
+
/**
|
|
2038
|
+
* 实例
|
|
2039
|
+
*/
|
|
614
2040
|
private proxy;
|
|
2041
|
+
/**
|
|
2042
|
+
* effect scope
|
|
2043
|
+
*/
|
|
615
2044
|
private scope;
|
|
2045
|
+
/**
|
|
2046
|
+
* 构造函数
|
|
2047
|
+
* @param parent
|
|
2048
|
+
* @param descriptor
|
|
2049
|
+
* @param proxy
|
|
2050
|
+
*/
|
|
616
2051
|
constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
|
|
2052
|
+
/**
|
|
2053
|
+
* 初始化
|
|
2054
|
+
*/
|
|
617
2055
|
private init;
|
|
2056
|
+
/**
|
|
2057
|
+
* 销毁
|
|
2058
|
+
*/
|
|
618
2059
|
destroy(): void;
|
|
2060
|
+
/**
|
|
2061
|
+
* 执行validate handler函数
|
|
2062
|
+
* @param name
|
|
2063
|
+
* @param args
|
|
2064
|
+
*/
|
|
619
2065
|
private execHandler;
|
|
2066
|
+
/**
|
|
2067
|
+
* 调用装饰处理函数
|
|
2068
|
+
*/
|
|
620
2069
|
private decorate;
|
|
2070
|
+
/**
|
|
2071
|
+
* 调用成功处理函数
|
|
2072
|
+
*/
|
|
621
2073
|
private success;
|
|
2074
|
+
/**
|
|
2075
|
+
* 调用错误处理函数
|
|
2076
|
+
* @returns
|
|
2077
|
+
*/
|
|
622
2078
|
private error;
|
|
2079
|
+
/**
|
|
2080
|
+
* 调用错误处理函数
|
|
2081
|
+
* @returns
|
|
2082
|
+
*/
|
|
623
2083
|
private getValue;
|
|
2084
|
+
/**
|
|
2085
|
+
* 设置校验器
|
|
2086
|
+
* @param type
|
|
2087
|
+
* @param validator
|
|
2088
|
+
* @param global
|
|
2089
|
+
*
|
|
2090
|
+
* @returns
|
|
2091
|
+
*/
|
|
624
2092
|
setValidator(type: string, validator: ExecuteValidator, global?: boolean): void;
|
|
2093
|
+
/**
|
|
2094
|
+
* 获取validator(只获取私有的validator)
|
|
2095
|
+
* @param type
|
|
2096
|
+
*/
|
|
625
2097
|
getValidator(type: string): ExecuteValidator | null;
|
|
2098
|
+
/**
|
|
2099
|
+
* 删除校验器
|
|
2100
|
+
* @param type
|
|
2101
|
+
* @param global
|
|
2102
|
+
*/
|
|
626
2103
|
deleteValidator(type: string, global?: boolean): void;
|
|
2104
|
+
/**
|
|
2105
|
+
* 判断校验器是否存在
|
|
2106
|
+
* @param type
|
|
2107
|
+
* @param global
|
|
2108
|
+
* @returns
|
|
2109
|
+
*/
|
|
627
2110
|
hasValidator(type: string, global?: boolean): boolean;
|
|
2111
|
+
/**
|
|
2112
|
+
* 设置rule
|
|
2113
|
+
* @param rule
|
|
2114
|
+
*/
|
|
628
2115
|
setRule(rule: Rule | null): void;
|
|
2116
|
+
/**
|
|
2117
|
+
* 清空校验错误信息
|
|
2118
|
+
* @params deep
|
|
2119
|
+
* @returns
|
|
2120
|
+
*/
|
|
629
2121
|
clear(): void;
|
|
2122
|
+
/**
|
|
2123
|
+
* 执行校验
|
|
2124
|
+
* @returns
|
|
2125
|
+
*/
|
|
630
2126
|
validate(): Promise<ValidateResult>;
|
|
631
2127
|
}
|
|
632
2128
|
|
|
633
|
-
|
|
2129
|
+
/**
|
|
2130
|
+
* validate schema key
|
|
2131
|
+
*/
|
|
2132
|
+
export declare const ValidateSchemaKey: unique symbol;
|
|
634
2133
|
|
|
635
|
-
|
|
2134
|
+
/**
|
|
2135
|
+
* value 格式话
|
|
2136
|
+
*/
|
|
2137
|
+
export declare interface ValueFormat<T, K> {
|
|
2138
|
+
(value: T): K;
|
|
2139
|
+
}
|
|
636
2140
|
|
|
637
|
-
|
|
2141
|
+
/**
|
|
2142
|
+
* 获取value长度
|
|
2143
|
+
* @param val
|
|
2144
|
+
* @returns
|
|
2145
|
+
*/
|
|
2146
|
+
export declare function valueLength(val: unknown): number;
|
|
638
2147
|
|
|
639
|
-
|
|
2148
|
+
/**
|
|
2149
|
+
* value 类型
|
|
2150
|
+
*/
|
|
2151
|
+
export declare type ValueType = 'string' | 'number' | 'date';
|
|
640
2152
|
|
|
641
2153
|
export { }
|