@fox-js/foxui 4.0.1-17 → 4.0.1-19
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 +5 -5
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +6761 -6695
- package/dist/index.umd.js +6 -6
- 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 -1
- package/dist/types/index.d.ts +1020 -199
- package/package.json +13 -15
- package/dist/locale/index.d.ts +0 -416
package/dist/types/index.d.ts
CHANGED
|
@@ -1,186 +1,412 @@
|
|
|
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
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
|
|
8
|
+
import { FoxComponentPublicInstance } from './types';
|
|
9
|
+
import { FoxUI } from './interface';
|
|
10
|
+
import { FoxUIOptions } from './interface';
|
|
14
11
|
import { multiply } from '@fox-js/big-decimal';
|
|
15
12
|
import { negate } from '@fox-js/big-decimal';
|
|
16
13
|
import { numberFormat } from '@fox-js/big-decimal';
|
|
17
14
|
import { Ref } from 'vue';
|
|
18
15
|
import { Rule } from '@fox-js/validator';
|
|
16
|
+
import { ScopeGetter } from './api';
|
|
19
17
|
import { unNumberFormat } from '@fox-js/big-decimal';
|
|
20
18
|
import { UnwrapNestedRefs } from 'vue';
|
|
21
19
|
import { UnwrapRef } from 'vue';
|
|
22
20
|
import { ValidateMessages } from '@fox-js/validator';
|
|
23
21
|
import { ValidateResult } from '@fox-js/validator';
|
|
24
22
|
import { VNode } from 'vue';
|
|
25
|
-
import type { VNodeProps } from 'vue';
|
|
26
23
|
|
|
24
|
+
/**
|
|
25
|
+
* 是否接受value过滤器
|
|
26
|
+
*/
|
|
27
27
|
export declare interface AcceptFilter {
|
|
28
28
|
(value: any): boolean;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export declare const ActionSheet:
|
|
31
|
+
export declare const ActionSheet: any;
|
|
32
32
|
|
|
33
|
-
export declare const Address:
|
|
33
|
+
export declare const Address: any;
|
|
34
34
|
|
|
35
|
-
export declare const AddressList:
|
|
35
|
+
export declare const AddressList: any;
|
|
36
36
|
|
|
37
|
-
export declare const Animate:
|
|
37
|
+
export declare const Animate: any;
|
|
38
38
|
|
|
39
|
-
declare const Audio_2:
|
|
39
|
+
declare const Audio_2: any;
|
|
40
40
|
export { Audio_2 as Audio }
|
|
41
41
|
|
|
42
|
-
export declare const AudioOperate:
|
|
42
|
+
export declare const AudioOperate: any;
|
|
43
43
|
|
|
44
|
-
export declare const Avatar:
|
|
44
|
+
export declare const Avatar: any;
|
|
45
45
|
|
|
46
|
-
export declare const AvatarGroup:
|
|
46
|
+
export declare const AvatarGroup: any;
|
|
47
47
|
|
|
48
|
-
export declare const BackTop:
|
|
48
|
+
export declare const BackTop: any;
|
|
49
49
|
|
|
50
|
-
export declare const Badge:
|
|
50
|
+
export declare const Badge: any;
|
|
51
51
|
|
|
52
|
-
export declare const Barrage:
|
|
52
|
+
export declare const Barrage: any;
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* 广播类
|
|
56
|
+
*/
|
|
54
57
|
export declare class Broadcast {
|
|
58
|
+
/**
|
|
59
|
+
* parent
|
|
60
|
+
*/
|
|
55
61
|
private parent;
|
|
62
|
+
/**
|
|
63
|
+
* children
|
|
64
|
+
*/
|
|
56
65
|
private children;
|
|
66
|
+
/**
|
|
67
|
+
* 回调函数注册表
|
|
68
|
+
*/
|
|
57
69
|
private callbacks;
|
|
70
|
+
/**
|
|
71
|
+
* vue proxy
|
|
72
|
+
*/
|
|
58
73
|
private proxy;
|
|
74
|
+
/**
|
|
75
|
+
* 名称
|
|
76
|
+
*/
|
|
59
77
|
private name?;
|
|
78
|
+
/**
|
|
79
|
+
* 构造函数
|
|
80
|
+
* @param parent
|
|
81
|
+
* @param proxy
|
|
82
|
+
* @param name
|
|
83
|
+
*/
|
|
60
84
|
constructor(parent: Broadcast | null, proxy: FoxComponentPublicInstance, name?: string);
|
|
85
|
+
/**
|
|
86
|
+
* 加入孩子节点
|
|
87
|
+
* @param child
|
|
88
|
+
*/
|
|
61
89
|
private addChild;
|
|
90
|
+
/**
|
|
91
|
+
* 移除孩子节点
|
|
92
|
+
* @param child
|
|
93
|
+
*/
|
|
62
94
|
private removeChild;
|
|
95
|
+
/**
|
|
96
|
+
* 销毁
|
|
97
|
+
*/
|
|
63
98
|
destroy(): void;
|
|
99
|
+
/**
|
|
100
|
+
* 发生消息
|
|
101
|
+
* @param matched
|
|
102
|
+
* @param action
|
|
103
|
+
* @param args
|
|
104
|
+
*/
|
|
64
105
|
emit(matched: Matched, action: string, ...args: any[]): Results;
|
|
106
|
+
/**
|
|
107
|
+
* 发生消息(只发给孩子节点)
|
|
108
|
+
* @param matched
|
|
109
|
+
* @param action
|
|
110
|
+
* @param args
|
|
111
|
+
*/
|
|
65
112
|
emitToChildren(matched: Matched, action: string, ...args: any[]): Results;
|
|
113
|
+
/**
|
|
114
|
+
* 注册回调函数
|
|
115
|
+
* @param action
|
|
116
|
+
* @param callback
|
|
117
|
+
* @returns
|
|
118
|
+
*/
|
|
66
119
|
on(action: string, callback: BroadcastCallback): void;
|
|
67
120
|
}
|
|
68
121
|
|
|
122
|
+
/**
|
|
123
|
+
* broadcast callback
|
|
124
|
+
*/
|
|
69
125
|
export declare interface BroadcastCallback {
|
|
70
126
|
(...args: any[]): Result;
|
|
71
127
|
}
|
|
72
128
|
|
|
73
129
|
export declare const BroadcastKey: unique symbol;
|
|
74
130
|
|
|
75
|
-
export declare const Button:
|
|
131
|
+
export declare const Button: any;
|
|
76
132
|
|
|
77
|
-
export declare const Calendar:
|
|
133
|
+
export declare const Calendar: any;
|
|
78
134
|
|
|
79
|
-
export declare const CalendarItem:
|
|
135
|
+
export declare const CalendarItem: any;
|
|
80
136
|
|
|
81
137
|
export declare function cancelRaf(id: number): void;
|
|
82
138
|
|
|
83
|
-
export declare const Card:
|
|
139
|
+
export declare const Card: any;
|
|
84
140
|
|
|
85
|
-
export declare const Cascader:
|
|
141
|
+
export declare const Cascader: any;
|
|
86
142
|
|
|
87
|
-
export declare const CascaderItem:
|
|
143
|
+
export declare const CascaderItem: any;
|
|
88
144
|
|
|
89
|
-
export declare const Category:
|
|
145
|
+
export declare const Category: any;
|
|
90
146
|
|
|
91
|
-
export declare const CategoryPane:
|
|
147
|
+
export declare const CategoryPane: any;
|
|
92
148
|
|
|
93
|
-
export declare const Cell:
|
|
149
|
+
export declare const Cell: any;
|
|
94
150
|
|
|
95
|
-
export declare const CellGroup:
|
|
151
|
+
export declare const CellGroup: any;
|
|
96
152
|
|
|
97
|
-
export declare const Checkbox:
|
|
153
|
+
export declare const Checkbox: any;
|
|
98
154
|
|
|
99
|
-
export declare const CheckboxGroup:
|
|
155
|
+
export declare const CheckboxGroup: any;
|
|
100
156
|
|
|
101
|
-
export declare const CheckboxItem:
|
|
157
|
+
export declare const CheckboxItem: any;
|
|
102
158
|
|
|
103
|
-
export declare const CircleProgress:
|
|
159
|
+
export declare const CircleProgress: any;
|
|
104
160
|
|
|
105
161
|
export declare const clamp: (num: number, min: number, max: number) => number;
|
|
106
162
|
|
|
163
|
+
/**
|
|
164
|
+
* 清理非数字
|
|
165
|
+
*/
|
|
107
166
|
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
108
167
|
|
|
168
|
+
/**
|
|
169
|
+
* 克隆对象
|
|
170
|
+
* @param target
|
|
171
|
+
* @param source
|
|
172
|
+
* @param plain
|
|
173
|
+
*
|
|
174
|
+
* @returns
|
|
175
|
+
*/
|
|
109
176
|
export declare function clone(target: any, source: any, plain?: boolean): any;
|
|
110
177
|
|
|
111
|
-
export declare const Col:
|
|
178
|
+
export declare const Col: any;
|
|
112
179
|
|
|
113
|
-
export declare const Collapse:
|
|
180
|
+
export declare const Collapse: any;
|
|
114
181
|
|
|
115
|
-
export declare const CollapseItem:
|
|
182
|
+
export declare const CollapseItem: any;
|
|
116
183
|
|
|
117
|
-
declare const Comment_2:
|
|
184
|
+
declare const Comment_2: any;
|
|
118
185
|
export { Comment_2 as Comment }
|
|
119
186
|
|
|
120
187
|
export { compareTo }
|
|
121
188
|
|
|
122
|
-
export declare const Content:
|
|
189
|
+
export declare const Content: any;
|
|
123
190
|
|
|
124
|
-
export declare const CountDown:
|
|
191
|
+
export declare const CountDown: any;
|
|
125
192
|
|
|
126
|
-
export declare const CountUp:
|
|
193
|
+
export declare const CountUp: any;
|
|
127
194
|
|
|
195
|
+
/**
|
|
196
|
+
* 创建broadcast
|
|
197
|
+
*
|
|
198
|
+
* @param proxy
|
|
199
|
+
* @param parent
|
|
200
|
+
* @param name
|
|
201
|
+
* @param callbacks
|
|
202
|
+
* @returns
|
|
203
|
+
*/
|
|
128
204
|
export declare function createBroadcast(proxy: FoxComponentPublicInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
|
|
129
205
|
|
|
206
|
+
/**
|
|
207
|
+
* 创建校验schema
|
|
208
|
+
* @param proxy
|
|
209
|
+
* @param parent
|
|
210
|
+
* @param descriptor
|
|
211
|
+
* @returns
|
|
212
|
+
*/
|
|
130
213
|
export declare function createValidateSchema(proxy: FoxComponentPublicInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
|
|
131
214
|
|
|
215
|
+
/**
|
|
216
|
+
* data items key
|
|
217
|
+
*/
|
|
132
218
|
export declare const DataItemsKey: unique symbol;
|
|
133
219
|
|
|
134
|
-
export declare const DateItem:
|
|
220
|
+
export declare const DateItem: any;
|
|
135
221
|
|
|
136
|
-
export declare const DatePicker:
|
|
222
|
+
export declare const DatePicker: any;
|
|
137
223
|
|
|
138
224
|
export declare const DateUtils: {
|
|
225
|
+
/**
|
|
226
|
+
* 格式化
|
|
227
|
+
* @param date
|
|
228
|
+
* @param template
|
|
229
|
+
* @returns
|
|
230
|
+
*/
|
|
139
231
|
format(date: Date, template: string): string;
|
|
232
|
+
/**
|
|
233
|
+
* 解析
|
|
234
|
+
* @param str
|
|
235
|
+
* @param template
|
|
236
|
+
*/
|
|
140
237
|
parser(str: string, template: string): Date;
|
|
238
|
+
/**
|
|
239
|
+
* 是否为闫年
|
|
240
|
+
* @return {Boolse} true|false
|
|
241
|
+
*/
|
|
141
242
|
isLeapYear(y: number): boolean;
|
|
243
|
+
/**
|
|
244
|
+
* 返回星期数
|
|
245
|
+
* @return {String}
|
|
246
|
+
*/
|
|
142
247
|
getWhatDay(year: number, month: number, day: number): string;
|
|
248
|
+
/**
|
|
249
|
+
* 返回星期数
|
|
250
|
+
* @return {Number}
|
|
251
|
+
*/
|
|
143
252
|
getMonthPreDay(year: number, month: number): number;
|
|
253
|
+
/**
|
|
254
|
+
* 返回月份天数
|
|
255
|
+
* @return {Number}
|
|
256
|
+
*/
|
|
144
257
|
getMonthDays(year: string, month: string): number;
|
|
258
|
+
/**
|
|
259
|
+
* 补齐数字位数
|
|
260
|
+
* @return {string}
|
|
261
|
+
*/
|
|
145
262
|
getNumTwoBit(n: number): string;
|
|
263
|
+
/**
|
|
264
|
+
* 日期对象转成字符串
|
|
265
|
+
* @return {string}
|
|
266
|
+
*/
|
|
146
267
|
date2Str: (date: Date, split?: string) => string;
|
|
147
|
-
|
|
268
|
+
/**
|
|
269
|
+
* 返回日期格式字符串
|
|
270
|
+
* @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
271
|
+
* @param {Date} 起点日期
|
|
272
|
+
* @return {string} '2014-12-31'
|
|
273
|
+
*/
|
|
274
|
+
getDay(i: number, startDate?: Date): string;
|
|
275
|
+
/**
|
|
276
|
+
* 时间比较
|
|
277
|
+
* @return
|
|
278
|
+
*/
|
|
148
279
|
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
280
|
+
/**
|
|
281
|
+
* 时间是否相等
|
|
282
|
+
* @return
|
|
283
|
+
*/
|
|
149
284
|
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
285
|
+
/**
|
|
286
|
+
* get month week
|
|
287
|
+
* @param year
|
|
288
|
+
* @param month
|
|
289
|
+
* @param date
|
|
290
|
+
* @param firstDayOfWeek
|
|
291
|
+
* @returns
|
|
292
|
+
*/
|
|
150
293
|
getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
294
|
+
/**
|
|
295
|
+
* get year week
|
|
296
|
+
* @param year
|
|
297
|
+
* @param month
|
|
298
|
+
* @param date
|
|
299
|
+
* @param firstDayOfWeek
|
|
300
|
+
* @returns
|
|
301
|
+
*/
|
|
151
302
|
getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
303
|
+
/**
|
|
304
|
+
* get week date
|
|
305
|
+
*/
|
|
152
306
|
getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
|
|
307
|
+
/**
|
|
308
|
+
* format result date
|
|
309
|
+
*/
|
|
153
310
|
formatResultDate: (date: string) => string[];
|
|
311
|
+
/**
|
|
312
|
+
* 判断日期是否在范围内
|
|
313
|
+
* @param date
|
|
314
|
+
* @param startDate
|
|
315
|
+
* @param span 允许负数
|
|
316
|
+
*/
|
|
154
317
|
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
318
|
+
/**
|
|
319
|
+
* 判断日期是否在范围内
|
|
320
|
+
* @param date
|
|
321
|
+
* @param startDate
|
|
322
|
+
* @param span
|
|
323
|
+
*/
|
|
155
324
|
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
156
325
|
};
|
|
157
326
|
|
|
327
|
+
/**
|
|
328
|
+
* 防抖函数(执行时间范围内的最后一次)
|
|
329
|
+
* @param func 函数
|
|
330
|
+
* @param delay 防止抖动毫秒数
|
|
331
|
+
* @returns
|
|
332
|
+
*/
|
|
158
333
|
export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
|
|
159
334
|
|
|
335
|
+
/**
|
|
336
|
+
* 防抖Ref
|
|
337
|
+
* @param value
|
|
338
|
+
* @param delay
|
|
339
|
+
*/
|
|
160
340
|
export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
|
|
161
341
|
|
|
342
|
+
/**
|
|
343
|
+
* 获取小数长度
|
|
344
|
+
* @param value
|
|
345
|
+
*/
|
|
162
346
|
export declare function decimalLength(value: string | number): number;
|
|
163
347
|
|
|
164
348
|
declare const _default: FoxUIApp;
|
|
165
349
|
export default _default;
|
|
166
350
|
|
|
351
|
+
/**
|
|
352
|
+
* anyNode
|
|
353
|
+
* @param name
|
|
354
|
+
* @param callbacks
|
|
355
|
+
* @returns
|
|
356
|
+
*/
|
|
167
357
|
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
|
|
168
358
|
|
|
359
|
+
/**
|
|
360
|
+
* 安装config domain
|
|
361
|
+
* @param name 名称
|
|
362
|
+
* @param props 属性
|
|
363
|
+
* @param ignores 忽略的属性
|
|
364
|
+
* @returns
|
|
365
|
+
*/
|
|
169
366
|
export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
|
|
170
367
|
|
|
368
|
+
/**
|
|
369
|
+
* 定义domain data item
|
|
370
|
+
* @returns
|
|
371
|
+
*/
|
|
171
372
|
export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
|
|
172
373
|
broadcast: Broadcast;
|
|
173
374
|
validateSchema: ValidateSchema;
|
|
174
375
|
};
|
|
175
376
|
|
|
377
|
+
/**
|
|
378
|
+
* 安装domain
|
|
379
|
+
* @param name 名称
|
|
380
|
+
* @param props 属性
|
|
381
|
+
* @param ignores 忽略的属性
|
|
382
|
+
* @param exposes 暴露的方法
|
|
383
|
+
* @returns
|
|
384
|
+
*/
|
|
176
385
|
export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
|
|
177
386
|
|
|
387
|
+
/**
|
|
388
|
+
* 定义domain item
|
|
389
|
+
* @returns
|
|
390
|
+
*/
|
|
178
391
|
export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
|
|
179
392
|
|
|
393
|
+
/**
|
|
394
|
+
* 创建page state
|
|
395
|
+
*
|
|
396
|
+
* @param domain
|
|
397
|
+
* @param overrideProps
|
|
398
|
+
*/
|
|
180
399
|
export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
|
|
181
400
|
|
|
401
|
+
/**
|
|
402
|
+
* 删除公共校验器
|
|
403
|
+
* @param type
|
|
404
|
+
*/
|
|
182
405
|
export declare function deleteGlobalValidator(type: string): void;
|
|
183
406
|
|
|
407
|
+
/**
|
|
408
|
+
* 组件描述
|
|
409
|
+
*/
|
|
184
410
|
export declare interface Descriptor {
|
|
185
411
|
componentName: string;
|
|
186
412
|
fieldName?: string;
|
|
@@ -236,39 +462,106 @@ declare class DialogOptions {
|
|
|
236
462
|
lockScroll?: boolean;
|
|
237
463
|
}
|
|
238
464
|
|
|
239
|
-
|
|
240
|
-
|
|
465
|
+
/**
|
|
466
|
+
* 禁用属性
|
|
467
|
+
* @param source
|
|
468
|
+
*/
|
|
241
469
|
export declare function disabledProperty(source: Ref): Ref;
|
|
242
470
|
|
|
243
471
|
export { divide }
|
|
244
472
|
|
|
245
|
-
export declare const Divider:
|
|
473
|
+
export declare const Divider: any;
|
|
246
474
|
|
|
475
|
+
/**
|
|
476
|
+
* Domain
|
|
477
|
+
*/
|
|
247
478
|
export declare class Domain {
|
|
479
|
+
/**
|
|
480
|
+
* 父亲domain
|
|
481
|
+
*/
|
|
248
482
|
private _parent;
|
|
249
483
|
get parent(): Domain | null;
|
|
250
484
|
set parent(val: Domain | null);
|
|
485
|
+
/**
|
|
486
|
+
* 名称
|
|
487
|
+
*/
|
|
251
488
|
private _name;
|
|
252
489
|
get name(): string | null;
|
|
490
|
+
/**
|
|
491
|
+
* 广播器
|
|
492
|
+
*/
|
|
253
493
|
private _broadcast;
|
|
254
494
|
get broadcast(): Broadcast | null;
|
|
255
495
|
set broadcast(val: Broadcast | null);
|
|
496
|
+
/**
|
|
497
|
+
* 校验器
|
|
498
|
+
*/
|
|
256
499
|
private _validateSchema;
|
|
257
500
|
get validateSchema(): ValidateSchema | null;
|
|
258
501
|
set validateSchema(val: ValidateSchema | null);
|
|
502
|
+
/**
|
|
503
|
+
* 属性集合
|
|
504
|
+
*/
|
|
259
505
|
private _props;
|
|
506
|
+
/**
|
|
507
|
+
* 构造函数
|
|
508
|
+
* @param name
|
|
509
|
+
*/
|
|
260
510
|
constructor(name?: string | null);
|
|
511
|
+
/**
|
|
512
|
+
* 销毁
|
|
513
|
+
*/
|
|
261
514
|
destroy(): void;
|
|
515
|
+
/**
|
|
516
|
+
* 合并属性
|
|
517
|
+
* @param props
|
|
518
|
+
*/
|
|
262
519
|
merge(props: Record<string | number, any>, ignores?: any[]): void;
|
|
520
|
+
/**
|
|
521
|
+
* 判断是否有属性
|
|
522
|
+
*/
|
|
263
523
|
has(key: string | number): boolean;
|
|
524
|
+
/**
|
|
525
|
+
* 删除属性
|
|
526
|
+
* @param key
|
|
527
|
+
*/
|
|
264
528
|
delete(key: string | number): void;
|
|
529
|
+
/**
|
|
530
|
+
* 设置属性
|
|
531
|
+
* @param key
|
|
532
|
+
* @param value
|
|
533
|
+
*/
|
|
265
534
|
set(key: string | number, value: any): void;
|
|
535
|
+
/**
|
|
536
|
+
* 获取属性
|
|
537
|
+
*
|
|
538
|
+
* @param key
|
|
539
|
+
* @param defaultValue
|
|
540
|
+
*/
|
|
266
541
|
get(key: string | number, defaultValue?: any): any;
|
|
542
|
+
/**
|
|
543
|
+
* 获取属性
|
|
544
|
+
*
|
|
545
|
+
* @param key
|
|
546
|
+
* @param defaultValue
|
|
547
|
+
*/
|
|
267
548
|
getForParent(key: string | number, defaultValue?: any): any;
|
|
549
|
+
/**
|
|
550
|
+
* 获取self属性
|
|
551
|
+
* @param key
|
|
552
|
+
* @returns
|
|
553
|
+
*/
|
|
268
554
|
getForSelf(key: string | number): any;
|
|
555
|
+
/**
|
|
556
|
+
* 从继承关系中获取属性集合
|
|
557
|
+
* @param key
|
|
558
|
+
*/
|
|
269
559
|
getAll(key: string | number): any[];
|
|
270
560
|
}
|
|
271
561
|
|
|
562
|
+
/**
|
|
563
|
+
* domain item
|
|
564
|
+
*/
|
|
272
565
|
export declare interface DomainItem {
|
|
273
566
|
broadcast: Broadcast;
|
|
274
567
|
validateSchema: ValidateSchema;
|
|
@@ -283,116 +576,192 @@ export declare interface DomainItem {
|
|
|
283
576
|
};
|
|
284
577
|
}
|
|
285
578
|
|
|
579
|
+
/**
|
|
580
|
+
* domain key
|
|
581
|
+
*/
|
|
286
582
|
export declare const DomainKey: unique symbol;
|
|
287
583
|
|
|
288
|
-
export declare const DomainProvider:
|
|
584
|
+
export declare const DomainProvider: any;
|
|
289
585
|
|
|
290
|
-
export declare const Drag:
|
|
586
|
+
export declare const Drag: any;
|
|
291
587
|
|
|
292
|
-
export declare const Ecard:
|
|
588
|
+
export declare const Ecard: any;
|
|
293
589
|
|
|
294
|
-
export declare const Elevator:
|
|
590
|
+
export declare const Elevator: any;
|
|
295
591
|
|
|
296
|
-
export declare const Ellipsis:
|
|
592
|
+
export declare const Ellipsis: any;
|
|
297
593
|
|
|
298
|
-
export declare const Empty:
|
|
594
|
+
export declare const Empty: any;
|
|
299
595
|
|
|
596
|
+
/**
|
|
597
|
+
* event listener
|
|
598
|
+
*/
|
|
300
599
|
declare interface EventListener_2 {
|
|
301
600
|
(...args: any[]): void;
|
|
302
601
|
}
|
|
303
602
|
|
|
603
|
+
/**
|
|
604
|
+
* 根据排除模版,抽取属性
|
|
605
|
+
* @param src
|
|
606
|
+
* @param excludeTemplates
|
|
607
|
+
* @returns
|
|
608
|
+
*/
|
|
304
609
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
305
610
|
|
|
611
|
+
/**
|
|
612
|
+
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
613
|
+
*
|
|
614
|
+
* @returns
|
|
615
|
+
*/
|
|
306
616
|
export declare function extend(...args: any[]): any;
|
|
307
617
|
|
|
308
|
-
export declare const FixedNav:
|
|
618
|
+
export declare const FixedNav: any;
|
|
309
619
|
|
|
310
620
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
311
621
|
|
|
312
|
-
export declare const FooterBar:
|
|
313
|
-
|
|
314
|
-
declare type FoxComponentPublicInstance = any;
|
|
315
|
-
|
|
316
|
-
declare interface FoxUI {
|
|
317
|
-
version: string;
|
|
318
|
-
install(app: App, ...options: any[]): any;
|
|
319
|
-
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
320
|
-
setScopeGetter(getter: ScopeGetter): void;
|
|
321
|
-
setAPI(name: string, func: any, scope?: string): void;
|
|
322
|
-
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
323
|
-
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
324
|
-
clearScopeAPI(scope: string): void;
|
|
325
|
-
getRootDomain(): Domain;
|
|
326
|
-
}
|
|
622
|
+
export declare const FooterBar: any;
|
|
327
623
|
|
|
624
|
+
/**
|
|
625
|
+
* Fox UI App
|
|
626
|
+
*/
|
|
328
627
|
declare class FoxUIApp implements FoxUI {
|
|
628
|
+
/**
|
|
629
|
+
* packages
|
|
630
|
+
*/
|
|
329
631
|
private packages;
|
|
632
|
+
/**
|
|
633
|
+
* version
|
|
634
|
+
*/
|
|
330
635
|
private _version;
|
|
331
636
|
get version(): string;
|
|
637
|
+
/**
|
|
638
|
+
* 构造函数
|
|
639
|
+
* @param packages
|
|
640
|
+
* @param version
|
|
641
|
+
*/
|
|
332
642
|
constructor(packages: any[], version: string);
|
|
643
|
+
/**
|
|
644
|
+
* 安装
|
|
645
|
+
* @param app
|
|
646
|
+
* @param options
|
|
647
|
+
*/
|
|
333
648
|
install(app: App, options: FoxUIOptions): any;
|
|
649
|
+
/**
|
|
650
|
+
* 初始化page Layout
|
|
651
|
+
*
|
|
652
|
+
* @param options
|
|
653
|
+
* @param rootDomain
|
|
654
|
+
*/
|
|
334
655
|
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
656
|
+
/**
|
|
657
|
+
* 设置scope getter
|
|
658
|
+
* @param getter
|
|
659
|
+
*/
|
|
335
660
|
setScopeGetter(getter: ScopeGetter): void;
|
|
661
|
+
/**
|
|
662
|
+
* 设置API
|
|
663
|
+
* @param name
|
|
664
|
+
* @param api
|
|
665
|
+
* @param scope
|
|
666
|
+
*/
|
|
336
667
|
setAPI(name: string, api: any, scope?: string): void;
|
|
668
|
+
/**
|
|
669
|
+
* 获取API
|
|
670
|
+
* @param proxy
|
|
671
|
+
* @param name
|
|
672
|
+
* @param scope
|
|
673
|
+
*/
|
|
337
674
|
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
675
|
+
/**
|
|
676
|
+
* 批量增加api
|
|
677
|
+
* @param apis
|
|
678
|
+
* @param scope
|
|
679
|
+
*/
|
|
338
680
|
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
681
|
+
/**
|
|
682
|
+
* 清空scope apis
|
|
683
|
+
* @param scope
|
|
684
|
+
*/
|
|
339
685
|
clearScopeAPI(scope: string): void;
|
|
686
|
+
/**
|
|
687
|
+
* 获取root domain
|
|
688
|
+
*/
|
|
340
689
|
getRootDomain(): Domain;
|
|
341
690
|
}
|
|
342
691
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
footerBarHeight?: number;
|
|
347
|
-
safeAreaInset?: SafeAreaInset;
|
|
348
|
-
pageLayout?: PageLayout;
|
|
349
|
-
headerPadding?: Rect_2;
|
|
350
|
-
contentPadding?: Rect_2;
|
|
351
|
-
groupLayout?: GroupLayout;
|
|
352
|
-
labelWidth?: number | string;
|
|
353
|
-
[propName: string]: any;
|
|
354
|
-
}
|
|
355
|
-
|
|
692
|
+
/**
|
|
693
|
+
* 通用函数接口
|
|
694
|
+
*/
|
|
356
695
|
export declare interface GenericFunction {
|
|
357
696
|
(...args: any[]): any;
|
|
358
697
|
}
|
|
359
698
|
|
|
699
|
+
/**
|
|
700
|
+
* 获取公共校验检查事件
|
|
701
|
+
*/
|
|
360
702
|
export declare function getGlobalValidateCheckEvents(): string[];
|
|
361
703
|
|
|
704
|
+
/**
|
|
705
|
+
* 获取公共校验重置事件
|
|
706
|
+
*/
|
|
362
707
|
export declare function getGlobalValidateResetEvents(): string[];
|
|
363
708
|
|
|
709
|
+
/**
|
|
710
|
+
* 获取page content区域高度(pageHeight - headerHeight - footerHeight - padding )
|
|
711
|
+
* @param domain
|
|
712
|
+
* @param state
|
|
713
|
+
* @returns
|
|
714
|
+
*/
|
|
364
715
|
export declare function getPageContentAreaHeight(domain: Domain, state?: PageState): number;
|
|
365
716
|
|
|
717
|
+
/**
|
|
718
|
+
* 获取page content区域宽度(pageWidth - padding )
|
|
719
|
+
* @param domain
|
|
720
|
+
* @param state
|
|
721
|
+
* @returns
|
|
722
|
+
*/
|
|
366
723
|
export declare function getPageContentAreaWidth(domain: Domain, state?: PageState): number;
|
|
367
724
|
|
|
725
|
+
/**
|
|
726
|
+
* 获取page footer区域高度(footerHeight + SafeAreaBottom )
|
|
727
|
+
* @param domain
|
|
728
|
+
* @param state
|
|
729
|
+
* @returns
|
|
730
|
+
*/
|
|
368
731
|
export declare function getPageFooterAreaHeight(domain: Domain, state?: PageState): number;
|
|
369
732
|
|
|
733
|
+
/**
|
|
734
|
+
* 获取page header区域高度(headerHeight + SafeAreaTop )
|
|
735
|
+
* @param domain
|
|
736
|
+
* @param state
|
|
737
|
+
* @returns
|
|
738
|
+
*/
|
|
370
739
|
export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageState): number;
|
|
371
740
|
|
|
741
|
+
/**
|
|
742
|
+
* 获取root domain
|
|
743
|
+
* @returns
|
|
744
|
+
*/
|
|
372
745
|
export declare function getRootDomain(): Domain;
|
|
373
746
|
|
|
374
747
|
export declare const getScrollTopRoot: () => number;
|
|
375
748
|
|
|
376
|
-
export declare const Grid:
|
|
749
|
+
export declare const Grid: any;
|
|
377
750
|
|
|
378
|
-
export declare const GridItem:
|
|
751
|
+
export declare const GridItem: any;
|
|
379
752
|
|
|
380
|
-
export declare const Group:
|
|
381
|
-
|
|
382
|
-
declare interface GroupLayout {
|
|
383
|
-
type: string;
|
|
384
|
-
width: number;
|
|
385
|
-
column: number;
|
|
386
|
-
gutter: number;
|
|
387
|
-
}
|
|
753
|
+
export declare const Group: any;
|
|
388
754
|
|
|
755
|
+
/**
|
|
756
|
+
* 是否支持symbol
|
|
757
|
+
*/
|
|
389
758
|
export declare const hasSymbol: boolean;
|
|
390
759
|
|
|
391
|
-
export declare const HeaderBar:
|
|
760
|
+
export declare const HeaderBar: any;
|
|
392
761
|
|
|
393
|
-
export declare const hinttext:
|
|
762
|
+
export declare const hinttext: any;
|
|
394
763
|
|
|
395
|
-
declare const Image_2:
|
|
764
|
+
declare const Image_2: any;
|
|
396
765
|
export { Image_2 as Image }
|
|
397
766
|
|
|
398
767
|
declare interface ImageInterface {
|
|
@@ -431,78 +800,217 @@ declare class ImagePreviewOptions {
|
|
|
431
800
|
teleport?: string | HTMLElement;
|
|
432
801
|
}
|
|
433
802
|
|
|
803
|
+
/**
|
|
804
|
+
* 根据包含模版,抽取属性
|
|
805
|
+
* @param src
|
|
806
|
+
* @param includeTemplates
|
|
807
|
+
* @returns
|
|
808
|
+
*/
|
|
434
809
|
export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
|
|
435
810
|
|
|
811
|
+
/**
|
|
812
|
+
* 获取对应元素的在数组中第一个匹配的索引
|
|
813
|
+
* @param x
|
|
814
|
+
* @param arr
|
|
815
|
+
* @returns
|
|
816
|
+
*/
|
|
436
817
|
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
437
818
|
|
|
438
|
-
export declare const Indicator:
|
|
819
|
+
export declare const Indicator: any;
|
|
439
820
|
|
|
440
|
-
export declare const InfiniteLoading:
|
|
821
|
+
export declare const InfiniteLoading: any;
|
|
441
822
|
|
|
442
|
-
export declare const InputItem:
|
|
823
|
+
export declare const InputItem: any;
|
|
443
824
|
|
|
444
|
-
export declare const InputNumber:
|
|
825
|
+
export declare const InputNumber: any;
|
|
445
826
|
|
|
827
|
+
/**
|
|
828
|
+
* 安装校验规则
|
|
829
|
+
* @param proxy
|
|
830
|
+
*/
|
|
446
831
|
export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
|
|
447
832
|
|
|
833
|
+
/**
|
|
834
|
+
* 获取整数长度
|
|
835
|
+
* @param value
|
|
836
|
+
*/
|
|
448
837
|
export declare function integerLength(value: string | number): number;
|
|
449
838
|
|
|
450
839
|
declare type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
|
|
451
840
|
|
|
841
|
+
/**
|
|
842
|
+
* 是否数组
|
|
843
|
+
*/
|
|
452
844
|
export declare const isArray: (arg: any) => arg is any[];
|
|
453
845
|
|
|
846
|
+
/**
|
|
847
|
+
* 是否为类数组
|
|
848
|
+
* @param obj
|
|
849
|
+
* @returns {boolean}
|
|
850
|
+
*/
|
|
454
851
|
export declare function isArrayLike(obj: any): boolean;
|
|
455
852
|
|
|
853
|
+
/**
|
|
854
|
+
* 是否为浏览器环境
|
|
855
|
+
*/
|
|
456
856
|
export declare const isBrowser: boolean;
|
|
457
857
|
|
|
858
|
+
/**
|
|
859
|
+
* 是否为Date
|
|
860
|
+
* @param val
|
|
861
|
+
* @returns
|
|
862
|
+
*/
|
|
458
863
|
export declare const isDate: (val: unknown) => val is Date;
|
|
459
864
|
|
|
865
|
+
/**
|
|
866
|
+
* 是否空字符串
|
|
867
|
+
* @param v
|
|
868
|
+
* @returns
|
|
869
|
+
*/
|
|
460
870
|
export declare const isEmptyString: (v: unknown) => boolean;
|
|
461
871
|
|
|
872
|
+
/**
|
|
873
|
+
* 判断两个对象是否一致
|
|
874
|
+
* @param x
|
|
875
|
+
* @param y
|
|
876
|
+
* @return
|
|
877
|
+
*/
|
|
462
878
|
export declare function isEqual(x: any, y: any): boolean;
|
|
463
879
|
|
|
880
|
+
/**
|
|
881
|
+
* 是否为es module
|
|
882
|
+
* @param obj
|
|
883
|
+
* @returns
|
|
884
|
+
*/
|
|
464
885
|
export declare function isESModule(obj: any): obj is Object;
|
|
465
886
|
|
|
887
|
+
/**
|
|
888
|
+
* 是否为函数
|
|
889
|
+
* @param val
|
|
890
|
+
* @returns
|
|
891
|
+
*/
|
|
466
892
|
export declare const isFunction: (val: unknown) => val is Function;
|
|
467
893
|
|
|
894
|
+
/**
|
|
895
|
+
* 是否是隐藏element
|
|
896
|
+
* @param el
|
|
897
|
+
*/
|
|
468
898
|
export declare function isHidden(el: any): boolean;
|
|
469
899
|
|
|
900
|
+
/**
|
|
901
|
+
* 是否为内嵌页面
|
|
902
|
+
* 内嵌页面为内嵌在容器内,如dialog,不需要设置content的高度
|
|
903
|
+
* @param domain
|
|
904
|
+
* @param proxy
|
|
905
|
+
* @returns
|
|
906
|
+
*/
|
|
470
907
|
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
471
908
|
|
|
909
|
+
/**
|
|
910
|
+
* 是否为Map
|
|
911
|
+
* @param val
|
|
912
|
+
* @returns
|
|
913
|
+
*/
|
|
472
914
|
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
473
915
|
|
|
916
|
+
/**
|
|
917
|
+
* 是否null/undefined对象
|
|
918
|
+
*/
|
|
919
|
+
export declare function isNil(v: unknown): v is null | undefined;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* 是否为数字字符串
|
|
923
|
+
* @param value
|
|
924
|
+
* @returns
|
|
925
|
+
*/
|
|
474
926
|
export declare function isNumberString(value: string): boolean;
|
|
475
927
|
|
|
928
|
+
/**
|
|
929
|
+
* 是否为object
|
|
930
|
+
*/
|
|
476
931
|
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
477
932
|
|
|
933
|
+
/**
|
|
934
|
+
* 是否为plain对象
|
|
935
|
+
* @param val
|
|
936
|
+
* @returns
|
|
937
|
+
*/
|
|
478
938
|
export declare const isPlainObject: (val: unknown) => val is object;
|
|
479
939
|
|
|
940
|
+
/**
|
|
941
|
+
* 是否为promise
|
|
942
|
+
* @param val
|
|
943
|
+
* @returns
|
|
944
|
+
*/
|
|
480
945
|
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
481
946
|
|
|
947
|
+
/**
|
|
948
|
+
* 判断是否为正则表达式
|
|
949
|
+
* @param v
|
|
950
|
+
* @returns
|
|
951
|
+
*/
|
|
482
952
|
export declare function isRegExp(v: unknown): v is RegExp;
|
|
483
953
|
|
|
954
|
+
/**
|
|
955
|
+
* 是否为Set
|
|
956
|
+
* @param val
|
|
957
|
+
* @returns
|
|
958
|
+
*/
|
|
484
959
|
export declare const isSet: (val: unknown) => val is Set<any>;
|
|
485
960
|
|
|
961
|
+
/**
|
|
962
|
+
* 是否为字符串
|
|
963
|
+
* @param val
|
|
964
|
+
* @returns
|
|
965
|
+
*/
|
|
486
966
|
export declare const isString: (val: unknown) => val is string;
|
|
487
967
|
|
|
968
|
+
/**
|
|
969
|
+
* 是否子页面
|
|
970
|
+
* @param domain
|
|
971
|
+
*/
|
|
488
972
|
export declare function isSubPage(domain: Domain): boolean;
|
|
489
973
|
|
|
974
|
+
/**
|
|
975
|
+
* 是否为symbol
|
|
976
|
+
* @param val
|
|
977
|
+
* @returns
|
|
978
|
+
*/
|
|
490
979
|
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
491
980
|
|
|
981
|
+
/**
|
|
982
|
+
* 是否是window对象
|
|
983
|
+
* @param obj
|
|
984
|
+
*/
|
|
492
985
|
export declare function isWindow(obj: any): boolean;
|
|
493
986
|
|
|
494
|
-
export declare const Item:
|
|
987
|
+
export declare const Item: any;
|
|
495
988
|
|
|
989
|
+
/**
|
|
990
|
+
* 获取对应元素的在数组中最后一个匹配的索引
|
|
991
|
+
* @param x
|
|
992
|
+
* @param arr
|
|
993
|
+
* @returns
|
|
994
|
+
*/
|
|
496
995
|
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
497
996
|
|
|
498
|
-
export declare const Layout:
|
|
997
|
+
export declare const Layout: any;
|
|
499
998
|
|
|
500
|
-
export declare const LinkItem:
|
|
999
|
+
export declare const LinkItem: any;
|
|
501
1000
|
|
|
502
|
-
export declare const List:
|
|
1001
|
+
export declare const List: any;
|
|
503
1002
|
|
|
1003
|
+
/**
|
|
1004
|
+
* 创建数组
|
|
1005
|
+
* @param arr
|
|
1006
|
+
* @param results
|
|
1007
|
+
* @return
|
|
1008
|
+
*/
|
|
504
1009
|
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
505
1010
|
|
|
1011
|
+
/**
|
|
1012
|
+
* 匹配条件
|
|
1013
|
+
*/
|
|
506
1014
|
export declare interface Matched {
|
|
507
1015
|
name?: string | RegExp | {
|
|
508
1016
|
(name: string): boolean;
|
|
@@ -511,56 +1019,68 @@ export declare interface Matched {
|
|
|
511
1019
|
level?: number;
|
|
512
1020
|
}
|
|
513
1021
|
|
|
514
|
-
export declare const Menu:
|
|
1022
|
+
export declare const Menu: any;
|
|
515
1023
|
|
|
516
|
-
export declare const MenuItem:
|
|
1024
|
+
export declare const MenuItem: any;
|
|
517
1025
|
|
|
1026
|
+
/**
|
|
1027
|
+
* 合并数组
|
|
1028
|
+
* @param first
|
|
1029
|
+
* @param second
|
|
1030
|
+
* @return
|
|
1031
|
+
*/
|
|
518
1032
|
export declare function merge(first: any[], second: any[]): any[];
|
|
519
1033
|
|
|
520
|
-
export declare const MoneyItem:
|
|
1034
|
+
export declare const MoneyItem: any;
|
|
521
1035
|
|
|
522
1036
|
export { multiply }
|
|
523
1037
|
|
|
524
|
-
export declare const Navbar:
|
|
1038
|
+
export declare const Navbar: any;
|
|
525
1039
|
|
|
526
1040
|
export { negate }
|
|
527
1041
|
|
|
1042
|
+
/**
|
|
1043
|
+
* 下一个事件周期中执行函数
|
|
1044
|
+
* @param fn
|
|
1045
|
+
* @param args
|
|
1046
|
+
*/
|
|
528
1047
|
export declare function nextTick(fn: {
|
|
529
1048
|
(...args: any[]): void;
|
|
530
1049
|
}, ...args: any[]): void;
|
|
531
1050
|
|
|
532
|
-
export declare const NoticeBar:
|
|
1051
|
+
export declare const NoticeBar: any;
|
|
533
1052
|
|
|
534
1053
|
export declare const Notify: {
|
|
535
|
-
text(msg: string, obj?: {}):
|
|
536
|
-
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
} | undefined;
|
|
541
|
-
success(msg: string, obj?: {}): {
|
|
542
|
-
[x: string]: unknown;
|
|
543
|
-
} | undefined;
|
|
544
|
-
danger(msg: string, obj?: {}): {
|
|
545
|
-
[x: string]: unknown;
|
|
546
|
-
} | undefined;
|
|
547
|
-
warn(msg: string, obj?: {}): {
|
|
548
|
-
[x: string]: unknown;
|
|
549
|
-
} | undefined;
|
|
1054
|
+
text(msg: string, obj?: {}): any;
|
|
1055
|
+
primary(msg: string, obj?: {}): any;
|
|
1056
|
+
success(msg: string, obj?: {}): any;
|
|
1057
|
+
danger(msg: string, obj?: {}): any;
|
|
1058
|
+
warn(msg: string, obj?: {}): any;
|
|
550
1059
|
hide(): void;
|
|
551
1060
|
install(app: any): void;
|
|
552
1061
|
};
|
|
553
1062
|
|
|
554
1063
|
export { numberFormat }
|
|
555
1064
|
|
|
556
|
-
export declare const NumberKeyboard:
|
|
1065
|
+
export declare const NumberKeyboard: any;
|
|
557
1066
|
|
|
1067
|
+
/**
|
|
1068
|
+
* 对象类型
|
|
1069
|
+
*/
|
|
558
1070
|
export declare const objectToString: () => string;
|
|
559
1071
|
|
|
1072
|
+
/**
|
|
1073
|
+
* 只执行一次函数
|
|
1074
|
+
* @param func
|
|
1075
|
+
* @returns
|
|
1076
|
+
*/
|
|
560
1077
|
export declare function once(func: GenericFunction): GenericFunction;
|
|
561
1078
|
|
|
562
|
-
export declare const OverLay:
|
|
1079
|
+
export declare const OverLay: any;
|
|
563
1080
|
|
|
1081
|
+
/**
|
|
1082
|
+
* padding
|
|
1083
|
+
*/
|
|
564
1084
|
export declare interface Padding {
|
|
565
1085
|
left: number | null;
|
|
566
1086
|
top: number | null;
|
|
@@ -570,8 +1090,11 @@ export declare interface Padding {
|
|
|
570
1090
|
|
|
571
1091
|
export declare const padZero: (num: number | string, length?: number) => string;
|
|
572
1092
|
|
|
573
|
-
export declare const Page:
|
|
1093
|
+
export declare const Page: any;
|
|
574
1094
|
|
|
1095
|
+
/**
|
|
1096
|
+
* page layout
|
|
1097
|
+
*/
|
|
575
1098
|
export declare interface PageLayout {
|
|
576
1099
|
width: number | string;
|
|
577
1100
|
height: number | string;
|
|
@@ -587,10 +1110,14 @@ export declare interface PageState {
|
|
|
587
1110
|
height: number;
|
|
588
1111
|
headerHeight: number;
|
|
589
1112
|
headerPadding: Padding;
|
|
1113
|
+
headerAllHeight?: number;
|
|
590
1114
|
footerHeight: number;
|
|
591
1115
|
footerPadding: Padding;
|
|
1116
|
+
footerAllHeight?: number;
|
|
592
1117
|
contentHeight: number | string | null;
|
|
593
1118
|
contentPadding: Padding;
|
|
1119
|
+
contentInnerHeight?: number;
|
|
1120
|
+
contentInnerWidth?: number;
|
|
594
1121
|
safeAreaTop: number;
|
|
595
1122
|
safeAreaBottom: number;
|
|
596
1123
|
safeAreaLeft: number;
|
|
@@ -599,49 +1126,66 @@ export declare interface PageState {
|
|
|
599
1126
|
footerMounted?: boolean;
|
|
600
1127
|
}
|
|
601
1128
|
|
|
602
|
-
export declare const Pagination:
|
|
1129
|
+
export declare const Pagination: any;
|
|
603
1130
|
|
|
604
|
-
export declare const Picker:
|
|
1131
|
+
export declare const Picker: any;
|
|
605
1132
|
|
|
606
|
-
export declare const PickerItem:
|
|
1133
|
+
export declare const PickerItem: any;
|
|
607
1134
|
|
|
1135
|
+
/**
|
|
1136
|
+
* 坐标
|
|
1137
|
+
*/
|
|
608
1138
|
export declare interface Point {
|
|
609
1139
|
x: number;
|
|
610
1140
|
y: number;
|
|
611
1141
|
}
|
|
612
1142
|
|
|
613
|
-
export declare const Popover:
|
|
1143
|
+
export declare const Popover: any;
|
|
614
1144
|
|
|
615
|
-
export declare const Popup:
|
|
1145
|
+
export declare const Popup: any;
|
|
616
1146
|
|
|
617
1147
|
export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
|
|
618
1148
|
|
|
619
|
-
export declare const Price:
|
|
1149
|
+
export declare const Price: any;
|
|
620
1150
|
|
|
1151
|
+
/**
|
|
1152
|
+
* 优先策略
|
|
1153
|
+
*/
|
|
621
1154
|
export declare enum PriorityPolicy {
|
|
622
1155
|
Parent = 0,
|
|
623
1156
|
Near = 1
|
|
624
1157
|
}
|
|
625
1158
|
|
|
626
|
-
export declare const Progress:
|
|
1159
|
+
export declare const Progress: any;
|
|
627
1160
|
|
|
1161
|
+
/**
|
|
1162
|
+
* 属性
|
|
1163
|
+
* @param source
|
|
1164
|
+
* @param name
|
|
1165
|
+
* @param policy
|
|
1166
|
+
* @param filter
|
|
1167
|
+
*/
|
|
628
1168
|
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
629
1169
|
|
|
630
|
-
export declare const PullRefresh:
|
|
1170
|
+
export declare const PullRefresh: any;
|
|
631
1171
|
|
|
632
|
-
export declare const Radio:
|
|
1172
|
+
export declare const Radio: any;
|
|
633
1173
|
|
|
634
|
-
export declare const RadioGroup:
|
|
1174
|
+
export declare const RadioGroup: any;
|
|
635
1175
|
|
|
636
|
-
export declare const RadioItem:
|
|
1176
|
+
export declare const RadioItem: any;
|
|
637
1177
|
|
|
638
1178
|
export declare const raf: any;
|
|
639
1179
|
|
|
640
|
-
declare const Range_2:
|
|
1180
|
+
declare const Range_2: any;
|
|
641
1181
|
export { Range_2 as Range }
|
|
642
1182
|
|
|
643
|
-
export declare const Rate:
|
|
1183
|
+
export declare const Rate: any;
|
|
644
1184
|
|
|
1185
|
+
/**
|
|
1186
|
+
* 只读属性
|
|
1187
|
+
* @param source
|
|
1188
|
+
*/
|
|
645
1189
|
export declare function readonlyProperty(source: Ref): Ref;
|
|
646
1190
|
|
|
647
1191
|
export declare interface Rect {
|
|
@@ -653,21 +1197,23 @@ export declare interface Rect {
|
|
|
653
1197
|
height: number;
|
|
654
1198
|
}
|
|
655
1199
|
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
right: number;
|
|
660
|
-
bottom: number;
|
|
661
|
-
}
|
|
662
|
-
|
|
1200
|
+
/**
|
|
1201
|
+
* 结果类型
|
|
1202
|
+
*/
|
|
663
1203
|
export declare type Result = Promise<any> | any;
|
|
664
1204
|
|
|
1205
|
+
/**
|
|
1206
|
+
* 结果集合
|
|
1207
|
+
*/
|
|
665
1208
|
export declare type Results = Result[];
|
|
666
1209
|
|
|
667
|
-
export declare const Row:
|
|
1210
|
+
export declare const Row: any;
|
|
668
1211
|
|
|
669
|
-
export declare const RowItem:
|
|
1212
|
+
export declare const RowItem: any;
|
|
670
1213
|
|
|
1214
|
+
/**
|
|
1215
|
+
* 安全区域
|
|
1216
|
+
*/
|
|
671
1217
|
export declare interface SafeAreaInset {
|
|
672
1218
|
left: number | string;
|
|
673
1219
|
top: number | string;
|
|
@@ -675,151 +1221,290 @@ export declare interface SafeAreaInset {
|
|
|
675
1221
|
bottom: number | string;
|
|
676
1222
|
}
|
|
677
1223
|
|
|
678
|
-
declare
|
|
679
|
-
(proxy: ComponentPublicInstance): string | null;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
export declare const SearchBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1224
|
+
export declare const SearchBar: any;
|
|
683
1225
|
|
|
1226
|
+
/**
|
|
1227
|
+
* 设置公共校验检查事件
|
|
1228
|
+
* @param events
|
|
1229
|
+
*/
|
|
684
1230
|
export declare function setGlobalValidateCheckEvents(events: string[]): void;
|
|
685
1231
|
|
|
1232
|
+
/**
|
|
1233
|
+
* 设置公共的校验处理器
|
|
1234
|
+
* @param validateHandler
|
|
1235
|
+
*/
|
|
686
1236
|
export declare function setGlobalValidateHandler(validateHandler: ValidateHandler): void;
|
|
687
1237
|
|
|
1238
|
+
/**
|
|
1239
|
+
* 设置公共校验提示信息
|
|
1240
|
+
*/
|
|
688
1241
|
export declare function setGlobalValidateMessages(messages: ValidateMessages): void;
|
|
689
1242
|
|
|
1243
|
+
/**
|
|
1244
|
+
* 设置公共校验重置事件
|
|
1245
|
+
* @param events
|
|
1246
|
+
*/
|
|
690
1247
|
export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
691
1248
|
|
|
1249
|
+
/**
|
|
1250
|
+
* 设置公共校验器
|
|
1251
|
+
* @param type
|
|
1252
|
+
* @param validator
|
|
1253
|
+
*/
|
|
692
1254
|
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
693
1255
|
|
|
694
|
-
export declare const ShortPassword:
|
|
1256
|
+
export declare const ShortPassword: any;
|
|
695
1257
|
|
|
696
|
-
export declare const SideNavBar:
|
|
1258
|
+
export declare const SideNavBar: any;
|
|
697
1259
|
|
|
698
|
-
export declare const SideNavBarItem:
|
|
1260
|
+
export declare const SideNavBarItem: any;
|
|
699
1261
|
|
|
700
|
-
export declare const Signature:
|
|
1262
|
+
export declare const Signature: any;
|
|
701
1263
|
|
|
702
|
-
|
|
1264
|
+
/**
|
|
1265
|
+
* size
|
|
1266
|
+
*/
|
|
1267
|
+
declare interface Size {
|
|
1268
|
+
width: number;
|
|
1269
|
+
height: number;
|
|
1270
|
+
}
|
|
703
1271
|
|
|
704
|
-
export declare const
|
|
1272
|
+
export declare const Skeleton: any;
|
|
705
1273
|
|
|
706
|
-
export declare const
|
|
1274
|
+
export declare const Sku: any;
|
|
707
1275
|
|
|
708
|
-
export declare const
|
|
1276
|
+
export declare const SlotItem: any;
|
|
709
1277
|
|
|
710
|
-
export declare const
|
|
1278
|
+
export declare const Step: any;
|
|
711
1279
|
|
|
712
|
-
export declare const
|
|
1280
|
+
export declare const Steps: any;
|
|
713
1281
|
|
|
714
|
-
export declare const
|
|
1282
|
+
export declare const Sticky: any;
|
|
715
1283
|
|
|
716
|
-
export declare const
|
|
1284
|
+
export declare const SubSideNavBar: any;
|
|
717
1285
|
|
|
718
|
-
export declare const
|
|
1286
|
+
export declare const Swipe: any;
|
|
719
1287
|
|
|
720
|
-
export declare const
|
|
1288
|
+
export declare const Swiper: any;
|
|
721
1289
|
|
|
722
|
-
export declare const
|
|
1290
|
+
export declare const SwiperItem: any;
|
|
723
1291
|
|
|
724
|
-
export declare const
|
|
1292
|
+
export declare const Switch: any;
|
|
725
1293
|
|
|
726
|
-
export declare const
|
|
1294
|
+
export declare const SwitchItem: any;
|
|
727
1295
|
|
|
728
|
-
export declare const
|
|
1296
|
+
export declare const Tabbar: any;
|
|
729
1297
|
|
|
730
|
-
export declare const
|
|
1298
|
+
export declare const TabbarItem: any;
|
|
731
1299
|
|
|
732
|
-
export declare const
|
|
1300
|
+
export declare const Table: any;
|
|
733
1301
|
|
|
734
|
-
export declare const
|
|
1302
|
+
export declare const TabPane: any;
|
|
735
1303
|
|
|
736
|
-
export declare const
|
|
1304
|
+
export declare const Tabs: any;
|
|
737
1305
|
|
|
738
|
-
export declare const
|
|
1306
|
+
export declare const Tag: any;
|
|
739
1307
|
|
|
740
|
-
export declare const
|
|
1308
|
+
export declare const Textarea: any;
|
|
741
1309
|
|
|
1310
|
+
export declare const TextareaItem: any;
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* 节流函数(执行时间范围内的第一次)
|
|
1314
|
+
* @param func 函数
|
|
1315
|
+
* @param delay 延迟执行毫秒数
|
|
1316
|
+
* @returns
|
|
1317
|
+
*/
|
|
742
1318
|
export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
|
|
743
1319
|
|
|
744
|
-
export declare const TimeDetail:
|
|
1320
|
+
export declare const TimeDetail: any;
|
|
745
1321
|
|
|
746
|
-
export declare const TimePannel:
|
|
1322
|
+
export declare const TimePannel: any;
|
|
747
1323
|
|
|
748
|
-
export declare const TimeSelect:
|
|
1324
|
+
export declare const TimeSelect: any;
|
|
749
1325
|
|
|
750
1326
|
export declare const Toast: {
|
|
751
|
-
text(msg: string, opts?: {}): any
|
|
752
|
-
success(msg: string, opts?: {}): any
|
|
753
|
-
fail(msg: string, opts?: {}): any
|
|
754
|
-
warn(msg: string, opts?: {}): any
|
|
755
|
-
loading(msg: string, opts?: {}): any
|
|
1327
|
+
text(msg: string, opts?: {}): any;
|
|
1328
|
+
success(msg: string, opts?: {}): any;
|
|
1329
|
+
fail(msg: string, opts?: {}): any;
|
|
1330
|
+
warn(msg: string, opts?: {}): any;
|
|
1331
|
+
loading(msg: string, opts?: {}): any;
|
|
756
1332
|
hide(id?: string): void;
|
|
757
1333
|
install(app: any): void;
|
|
758
1334
|
};
|
|
759
1335
|
|
|
1336
|
+
/**
|
|
1337
|
+
* 转换为boolean值
|
|
1338
|
+
* @param val
|
|
1339
|
+
* @returns
|
|
1340
|
+
*/
|
|
760
1341
|
export declare function toBoolean(val: unknown): boolean;
|
|
761
1342
|
|
|
1343
|
+
/**
|
|
1344
|
+
* 转换为number值
|
|
1345
|
+
* @param val
|
|
1346
|
+
* @returns
|
|
1347
|
+
*/
|
|
762
1348
|
export declare function toNumber(val: unknown): number;
|
|
763
1349
|
|
|
1350
|
+
/**
|
|
1351
|
+
* 转换为number rect
|
|
1352
|
+
*/
|
|
764
1353
|
export declare function toPadding(rect: any): Padding;
|
|
765
1354
|
|
|
1355
|
+
/**
|
|
1356
|
+
* 转换为px number数值
|
|
1357
|
+
* @param value
|
|
1358
|
+
* @param size
|
|
1359
|
+
*/
|
|
766
1360
|
export declare function toPx(value: number | string, size?: number): number;
|
|
767
1361
|
|
|
1362
|
+
/**
|
|
1363
|
+
* to px desc
|
|
1364
|
+
* @param value
|
|
1365
|
+
* @returns
|
|
1366
|
+
*/
|
|
768
1367
|
export declare const toPxDesc: (value: string | number) => string;
|
|
769
1368
|
|
|
770
1369
|
export declare const toTypeString: (value: unknown) => string;
|
|
771
1370
|
|
|
772
|
-
export declare const Tour:
|
|
1371
|
+
export declare const Tour: any;
|
|
773
1372
|
|
|
1373
|
+
/**
|
|
1374
|
+
* to model value
|
|
1375
|
+
* @param props
|
|
1376
|
+
* @param format
|
|
1377
|
+
* @returns
|
|
1378
|
+
*/
|
|
774
1379
|
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
775
1380
|
|
|
776
|
-
export declare const TrendArrow:
|
|
1381
|
+
export declare const TrendArrow: any;
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* 尝试执行多次函数
|
|
1385
|
+
* @param func 执行函数
|
|
1386
|
+
* @param milliseconds 执行间隔
|
|
1387
|
+
* @param maxLimit 最大尝试次数
|
|
1388
|
+
* @param step 间隔增加步长
|
|
1389
|
+
* @param immediately 是否立刻执行
|
|
1390
|
+
*/
|
|
1391
|
+
export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean): void;
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* 尝试多次函数
|
|
1395
|
+
* 返回true,代表执行完成,不在需要重试
|
|
1396
|
+
*/
|
|
1397
|
+
export declare interface TryTimesFunction {
|
|
1398
|
+
(): boolean;
|
|
1399
|
+
}
|
|
777
1400
|
|
|
1401
|
+
/**
|
|
1402
|
+
* 判断类型
|
|
1403
|
+
* @param obj
|
|
1404
|
+
* @returns any
|
|
1405
|
+
*/
|
|
778
1406
|
export declare function typeOf(obj: any): string;
|
|
779
1407
|
|
|
780
1408
|
export declare class UniqueID {
|
|
1409
|
+
/**
|
|
1410
|
+
* seed id
|
|
1411
|
+
*/
|
|
781
1412
|
private seed;
|
|
1413
|
+
/**
|
|
1414
|
+
* 种子
|
|
1415
|
+
* @param seed
|
|
1416
|
+
*/
|
|
782
1417
|
constructor(seed?: number);
|
|
1418
|
+
/**
|
|
1419
|
+
* 获取唯一ID
|
|
1420
|
+
* @returns
|
|
1421
|
+
*/
|
|
783
1422
|
get(): number;
|
|
784
1423
|
}
|
|
785
1424
|
|
|
786
1425
|
export { unNumberFormat }
|
|
787
1426
|
|
|
1427
|
+
/**
|
|
1428
|
+
* 更新 page state
|
|
1429
|
+
* @param state
|
|
1430
|
+
* @param pageLayout
|
|
1431
|
+
* @param overrideProps
|
|
1432
|
+
*/
|
|
788
1433
|
export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
|
|
789
1434
|
|
|
790
|
-
export declare const Uploader:
|
|
1435
|
+
export declare const Uploader: any;
|
|
791
1436
|
|
|
1437
|
+
/**
|
|
1438
|
+
* 使用broadcast
|
|
1439
|
+
* @param proxy
|
|
1440
|
+
* @returns
|
|
1441
|
+
*/
|
|
792
1442
|
export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
|
|
793
1443
|
|
|
1444
|
+
/**
|
|
1445
|
+
* 获取当前domain
|
|
1446
|
+
* @returns
|
|
1447
|
+
*/
|
|
794
1448
|
export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
|
|
795
1449
|
|
|
1450
|
+
/**
|
|
1451
|
+
* use expose
|
|
1452
|
+
* @param apis
|
|
1453
|
+
*/
|
|
796
1454
|
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
797
1455
|
|
|
1456
|
+
/**
|
|
1457
|
+
* 获取内部可用size
|
|
1458
|
+
* @param elementRef
|
|
1459
|
+
* @returns
|
|
1460
|
+
*/
|
|
1461
|
+
export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* 获取page state
|
|
1465
|
+
* @param domain
|
|
1466
|
+
* @returns
|
|
1467
|
+
*/
|
|
798
1468
|
export declare function usePageState(domain: Domain): PageState | null;
|
|
799
1469
|
|
|
1470
|
+
/**
|
|
1471
|
+
* 获取element 位置
|
|
1472
|
+
* @param elementRef
|
|
1473
|
+
* @returns
|
|
1474
|
+
*/
|
|
800
1475
|
export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
|
|
801
1476
|
|
|
802
1477
|
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
803
1478
|
|
|
1479
|
+
/**
|
|
1480
|
+
* 获取size
|
|
1481
|
+
* @param elementRef
|
|
1482
|
+
* @returns
|
|
1483
|
+
*/
|
|
1484
|
+
export declare function useSize(elementRef: Element | Ref<Element>): Size;
|
|
1485
|
+
|
|
804
1486
|
export declare function useTouch(): {
|
|
805
1487
|
move: EventListener;
|
|
806
1488
|
start: EventListener;
|
|
807
1489
|
reset: () => void;
|
|
808
|
-
startX:
|
|
809
|
-
startY:
|
|
810
|
-
startTime:
|
|
811
|
-
duration:
|
|
812
|
-
moveX:
|
|
813
|
-
moveY:
|
|
814
|
-
deltaX:
|
|
815
|
-
deltaY:
|
|
816
|
-
offsetX:
|
|
817
|
-
offsetY:
|
|
818
|
-
direction:
|
|
1490
|
+
startX: any;
|
|
1491
|
+
startY: any;
|
|
1492
|
+
startTime: any;
|
|
1493
|
+
duration: any;
|
|
1494
|
+
moveX: any;
|
|
1495
|
+
moveY: any;
|
|
1496
|
+
deltaX: any;
|
|
1497
|
+
deltaY: any;
|
|
1498
|
+
offsetX: any;
|
|
1499
|
+
offsetY: any;
|
|
1500
|
+
direction: any;
|
|
819
1501
|
isVertical: () => boolean;
|
|
820
1502
|
isHorizontal: () => boolean;
|
|
821
1503
|
};
|
|
822
1504
|
|
|
1505
|
+
/**
|
|
1506
|
+
* 校验条件
|
|
1507
|
+
*/
|
|
823
1508
|
export declare interface ValidateCondition {
|
|
824
1509
|
deep?: boolean;
|
|
825
1510
|
include?: string[];
|
|
@@ -827,51 +1512,187 @@ export declare interface ValidateCondition {
|
|
|
827
1512
|
ignoreHidden?: boolean;
|
|
828
1513
|
}
|
|
829
1514
|
|
|
1515
|
+
/**
|
|
1516
|
+
* 校验器handler
|
|
1517
|
+
*/
|
|
830
1518
|
export declare interface ValidateHandler {
|
|
1519
|
+
/**
|
|
1520
|
+
* 错误处理
|
|
1521
|
+
* @param errorMsg
|
|
1522
|
+
* @param proxy
|
|
1523
|
+
*
|
|
1524
|
+
*/
|
|
831
1525
|
error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
|
|
1526
|
+
/**
|
|
1527
|
+
* 重置处理
|
|
1528
|
+
* @param proxy
|
|
1529
|
+
*
|
|
1530
|
+
*/
|
|
832
1531
|
reset?(proxy: FoxComponentPublicInstance): void;
|
|
1532
|
+
/**
|
|
1533
|
+
* 成功处理
|
|
1534
|
+
* @param proxy
|
|
1535
|
+
*
|
|
1536
|
+
*/
|
|
833
1537
|
success?(proxy: FoxComponentPublicInstance): void;
|
|
1538
|
+
/**
|
|
1539
|
+
* 规则装饰处理
|
|
1540
|
+
* @param newRule
|
|
1541
|
+
* @param oldRule
|
|
1542
|
+
* @param proxy
|
|
1543
|
+
*
|
|
1544
|
+
*/
|
|
834
1545
|
decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
|
|
1546
|
+
/**
|
|
1547
|
+
* 获取value
|
|
1548
|
+
* @param proxy
|
|
1549
|
+
*
|
|
1550
|
+
*/
|
|
835
1551
|
getValue?(proxy: FoxComponentPublicInstance): any;
|
|
836
1552
|
}
|
|
837
1553
|
|
|
1554
|
+
/**
|
|
1555
|
+
* 校验器schema
|
|
1556
|
+
*/
|
|
838
1557
|
export declare class ValidateSchema {
|
|
1558
|
+
/**
|
|
1559
|
+
* parent
|
|
1560
|
+
*/
|
|
839
1561
|
private parent;
|
|
1562
|
+
/**
|
|
1563
|
+
* 校验器
|
|
1564
|
+
*/
|
|
840
1565
|
private validators;
|
|
1566
|
+
/**
|
|
1567
|
+
* 属性rule
|
|
1568
|
+
*/
|
|
841
1569
|
private attrRules;
|
|
1570
|
+
/**
|
|
1571
|
+
* rule
|
|
1572
|
+
*/
|
|
842
1573
|
private rules;
|
|
1574
|
+
/**
|
|
1575
|
+
* 描述
|
|
1576
|
+
*/
|
|
843
1577
|
private descriptor;
|
|
1578
|
+
/**
|
|
1579
|
+
* 实例
|
|
1580
|
+
*/
|
|
844
1581
|
private proxy;
|
|
1582
|
+
/**
|
|
1583
|
+
* effect scope
|
|
1584
|
+
*/
|
|
845
1585
|
private scope;
|
|
1586
|
+
/**
|
|
1587
|
+
* 构造函数
|
|
1588
|
+
* @param parent
|
|
1589
|
+
* @param descriptor
|
|
1590
|
+
* @param proxy
|
|
1591
|
+
*/
|
|
846
1592
|
constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
|
|
1593
|
+
/**
|
|
1594
|
+
* 初始化
|
|
1595
|
+
*/
|
|
847
1596
|
private init;
|
|
1597
|
+
/**
|
|
1598
|
+
* 销毁
|
|
1599
|
+
*/
|
|
848
1600
|
destroy(): void;
|
|
1601
|
+
/**
|
|
1602
|
+
* 执行validate handler函数
|
|
1603
|
+
* @param name
|
|
1604
|
+
* @param args
|
|
1605
|
+
*/
|
|
849
1606
|
private execHandler;
|
|
1607
|
+
/**
|
|
1608
|
+
* 调用装饰处理函数
|
|
1609
|
+
*/
|
|
850
1610
|
private decorate;
|
|
1611
|
+
/**
|
|
1612
|
+
* 调用成功处理函数
|
|
1613
|
+
*/
|
|
851
1614
|
private success;
|
|
1615
|
+
/**
|
|
1616
|
+
* 调用错误处理函数
|
|
1617
|
+
* @returns
|
|
1618
|
+
*/
|
|
852
1619
|
private error;
|
|
1620
|
+
/**
|
|
1621
|
+
* 调用错误处理函数
|
|
1622
|
+
* @returns
|
|
1623
|
+
*/
|
|
853
1624
|
private getValue;
|
|
1625
|
+
/**
|
|
1626
|
+
* 设置校验器
|
|
1627
|
+
* @param type
|
|
1628
|
+
* @param validator
|
|
1629
|
+
* @param global
|
|
1630
|
+
*
|
|
1631
|
+
* @returns
|
|
1632
|
+
*/
|
|
854
1633
|
setValidator(type: string, validator: ExecuteValidator, global?: boolean): void;
|
|
1634
|
+
/**
|
|
1635
|
+
* 获取validator(只获取私有的validator)
|
|
1636
|
+
* @param type
|
|
1637
|
+
*/
|
|
855
1638
|
getValidator(type: string): ExecuteValidator | null;
|
|
1639
|
+
/**
|
|
1640
|
+
* 删除校验器
|
|
1641
|
+
* @param type
|
|
1642
|
+
* @param global
|
|
1643
|
+
*/
|
|
856
1644
|
deleteValidator(type: string, global?: boolean): void;
|
|
1645
|
+
/**
|
|
1646
|
+
* 判断校验器是否存在
|
|
1647
|
+
* @param type
|
|
1648
|
+
* @param global
|
|
1649
|
+
* @returns
|
|
1650
|
+
*/
|
|
857
1651
|
hasValidator(type: string, global?: boolean): boolean;
|
|
1652
|
+
/**
|
|
1653
|
+
* 设置rule
|
|
1654
|
+
* @param rule
|
|
1655
|
+
*/
|
|
858
1656
|
setRule(rule: Rule | null): void;
|
|
1657
|
+
/**
|
|
1658
|
+
* 清空校验错误信息
|
|
1659
|
+
* @params deep
|
|
1660
|
+
* @returns
|
|
1661
|
+
*/
|
|
859
1662
|
clear(): void;
|
|
1663
|
+
/**
|
|
1664
|
+
* 执行校验
|
|
1665
|
+
* @returns
|
|
1666
|
+
*/
|
|
860
1667
|
validate(): Promise<ValidateResult>;
|
|
861
1668
|
}
|
|
862
1669
|
|
|
1670
|
+
/**
|
|
1671
|
+
* validate schema key
|
|
1672
|
+
*/
|
|
863
1673
|
export declare const ValidateSchemaKey: unique symbol;
|
|
864
1674
|
|
|
1675
|
+
/**
|
|
1676
|
+
* value 格式话
|
|
1677
|
+
*/
|
|
865
1678
|
export declare interface ValueFormat<T, K> {
|
|
866
1679
|
(value: T): K;
|
|
867
1680
|
}
|
|
868
1681
|
|
|
1682
|
+
/**
|
|
1683
|
+
* 获取value长度
|
|
1684
|
+
* @param val
|
|
1685
|
+
* @returns
|
|
1686
|
+
*/
|
|
869
1687
|
export declare function valueLength(val: unknown): number;
|
|
870
1688
|
|
|
1689
|
+
/**
|
|
1690
|
+
* value 类型
|
|
1691
|
+
*/
|
|
871
1692
|
export declare type ValueType = 'string' | 'number' | 'date';
|
|
872
1693
|
|
|
873
|
-
export declare const Video:
|
|
1694
|
+
export declare const Video: any;
|
|
874
1695
|
|
|
875
|
-
export declare const WaterMark:
|
|
1696
|
+
export declare const WaterMark: any;
|
|
876
1697
|
|
|
877
1698
|
export { }
|