@fox-js/foxui 4.0.1-14 → 4.0.1-16
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 +10 -20
- package/dist/index.esm.js +12199 -11813
- package/dist/index.umd.js +11 -21
- package/dist/locale/index.d.ts +27 -9
- package/dist/locale/index.esm.js +31 -13
- 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 +261 -31
- package/package.json +1 -1
package/dist/style.esm.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { AllowedComponentProps } from 'vue';
|
|
|
2
2
|
import { App } from 'vue';
|
|
3
3
|
import { compareTo } from '@fox-js/big-decimal';
|
|
4
4
|
import type { ComponentCustomProps } from 'vue';
|
|
5
|
+
import { ComponentInternalInstance } from 'vue';
|
|
5
6
|
import type { ComponentOptionsMixin } from 'vue';
|
|
6
7
|
import { ComponentPublicInstance } from 'vue';
|
|
7
8
|
import type { ComputedOptions } from 'vue';
|
|
@@ -13,12 +14,20 @@ import type { MethodOptions } from 'vue';
|
|
|
13
14
|
import { multiply } from '@fox-js/big-decimal';
|
|
14
15
|
import { negate } from '@fox-js/big-decimal';
|
|
15
16
|
import { numberFormat } from '@fox-js/big-decimal';
|
|
17
|
+
import { Ref } from 'vue';
|
|
16
18
|
import { Rule } from '@fox-js/validator';
|
|
17
19
|
import { unNumberFormat } from '@fox-js/big-decimal';
|
|
20
|
+
import { UnwrapNestedRefs } from 'vue';
|
|
21
|
+
import { UnwrapRef } from 'vue';
|
|
22
|
+
import { ValidateMessages } from '@fox-js/validator';
|
|
18
23
|
import { ValidateResult } from '@fox-js/validator';
|
|
19
24
|
import { VNode } from 'vue';
|
|
20
25
|
import type { VNodeProps } from 'vue';
|
|
21
26
|
|
|
27
|
+
export declare interface AcceptFilter {
|
|
28
|
+
(value: any): boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
22
31
|
export declare const ActionSheet: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
23
32
|
|
|
24
33
|
export declare const Address: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -42,7 +51,7 @@ export declare const Badge: DefineComponent<unknown, object, {}, ComputedOptions
|
|
|
42
51
|
|
|
43
52
|
export declare const Barrage: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
44
53
|
|
|
45
|
-
declare class Broadcast {
|
|
54
|
+
export declare class Broadcast {
|
|
46
55
|
private parent;
|
|
47
56
|
private children;
|
|
48
57
|
private callbacks;
|
|
@@ -57,16 +66,20 @@ declare class Broadcast {
|
|
|
57
66
|
on(action: string, callback: BroadcastCallback): void;
|
|
58
67
|
}
|
|
59
68
|
|
|
60
|
-
declare interface BroadcastCallback {
|
|
69
|
+
export declare interface BroadcastCallback {
|
|
61
70
|
(...args: any[]): Result;
|
|
62
71
|
}
|
|
63
72
|
|
|
73
|
+
export declare const BroadcastKey: unique symbol;
|
|
74
|
+
|
|
64
75
|
export declare const Button: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
65
76
|
|
|
66
77
|
export declare const Calendar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
67
78
|
|
|
68
79
|
export declare const CalendarItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
69
80
|
|
|
81
|
+
export declare function cancelRaf(id: number): void;
|
|
82
|
+
|
|
70
83
|
export declare const Card: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
71
84
|
|
|
72
85
|
export declare const Cascader: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -83,10 +96,14 @@ export declare const CellGroup: DefineComponent<unknown, object, {}, ComputedOpt
|
|
|
83
96
|
|
|
84
97
|
export declare const Checkbox: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
85
98
|
|
|
99
|
+
export declare const CheckboxGroup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
100
|
+
|
|
86
101
|
export declare const CheckboxItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
87
102
|
|
|
88
103
|
export declare const CircleProgress: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
89
104
|
|
|
105
|
+
export declare const clamp: (num: number, min: number, max: number) => number;
|
|
106
|
+
|
|
90
107
|
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
91
108
|
|
|
92
109
|
export declare function clone(target: any, source: any, plain?: boolean): any;
|
|
@@ -108,6 +125,12 @@ export declare const CountDown: DefineComponent<unknown, object, {}, ComputedOpt
|
|
|
108
125
|
|
|
109
126
|
export declare const CountUp: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
110
127
|
|
|
128
|
+
export declare function createBroadcast(proxy: FoxComponentPublicInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
|
|
129
|
+
|
|
130
|
+
export declare function createValidateSchema(proxy: FoxComponentPublicInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
|
|
131
|
+
|
|
132
|
+
export declare const DataItemsKey: unique symbol;
|
|
133
|
+
|
|
111
134
|
export declare const DateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
112
135
|
|
|
113
136
|
export declare const DatePicker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -124,18 +147,41 @@ export declare const DateUtils: {
|
|
|
124
147
|
getDay(i: number): string;
|
|
125
148
|
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
126
149
|
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
150
|
+
getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
151
|
+
getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
|
|
152
|
+
getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
|
|
153
|
+
formatResultDate: (date: string) => string[];
|
|
127
154
|
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
128
155
|
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
129
156
|
};
|
|
130
157
|
|
|
131
158
|
export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
|
|
132
159
|
|
|
160
|
+
export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
|
|
161
|
+
|
|
133
162
|
export declare function decimalLength(value: string | number): number;
|
|
134
163
|
|
|
135
164
|
declare const _default: FoxUIApp;
|
|
136
165
|
export default _default;
|
|
137
166
|
|
|
138
|
-
declare
|
|
167
|
+
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
|
|
168
|
+
|
|
169
|
+
export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
|
|
170
|
+
|
|
171
|
+
export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
|
|
172
|
+
broadcast: Broadcast;
|
|
173
|
+
validateSchema: ValidateSchema;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
|
|
177
|
+
|
|
178
|
+
export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
|
|
179
|
+
|
|
180
|
+
export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
|
|
181
|
+
|
|
182
|
+
export declare function deleteGlobalValidator(type: string): void;
|
|
183
|
+
|
|
184
|
+
export declare interface Descriptor {
|
|
139
185
|
componentName: string;
|
|
140
186
|
fieldName?: string;
|
|
141
187
|
valueName?: string;
|
|
@@ -190,11 +236,15 @@ declare class DialogOptions {
|
|
|
190
236
|
lockScroll?: boolean;
|
|
191
237
|
}
|
|
192
238
|
|
|
239
|
+
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
240
|
+
|
|
241
|
+
export declare function disabledProperty(source: Ref): Ref;
|
|
242
|
+
|
|
193
243
|
export { divide }
|
|
194
244
|
|
|
195
245
|
export declare const Divider: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
196
246
|
|
|
197
|
-
declare class Domain {
|
|
247
|
+
export declare class Domain {
|
|
198
248
|
private _parent;
|
|
199
249
|
get parent(): Domain | null;
|
|
200
250
|
set parent(val: Domain | null);
|
|
@@ -219,6 +269,22 @@ declare class Domain {
|
|
|
219
269
|
getAll(key: string | number): any[];
|
|
220
270
|
}
|
|
221
271
|
|
|
272
|
+
export declare interface DomainItem {
|
|
273
|
+
broadcast: Broadcast;
|
|
274
|
+
validateSchema: ValidateSchema;
|
|
275
|
+
emitEvent: {
|
|
276
|
+
(type: string, ...args: any[]): void;
|
|
277
|
+
};
|
|
278
|
+
onEvent: {
|
|
279
|
+
(type: string, listener: EventListener_2): void;
|
|
280
|
+
};
|
|
281
|
+
offEvent: {
|
|
282
|
+
(type: string, listener: EventListener_2): void;
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export declare const DomainKey: unique symbol;
|
|
287
|
+
|
|
222
288
|
export declare const DomainProvider: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
223
289
|
|
|
224
290
|
export declare const Drag: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -231,6 +297,10 @@ export declare const Ellipsis: DefineComponent<unknown, object, {}, ComputedOpti
|
|
|
231
297
|
|
|
232
298
|
export declare const Empty: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
233
299
|
|
|
300
|
+
declare interface EventListener_2 {
|
|
301
|
+
(...args: any[]): void;
|
|
302
|
+
}
|
|
303
|
+
|
|
234
304
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
235
305
|
|
|
236
306
|
export declare function extend(...args: any[]): any;
|
|
@@ -276,8 +346,8 @@ declare interface FoxUIOptions {
|
|
|
276
346
|
footerBarHeight?: number;
|
|
277
347
|
safeAreaInset?: SafeAreaInset;
|
|
278
348
|
pageLayout?: PageLayout;
|
|
279
|
-
headerPadding?:
|
|
280
|
-
contentPadding?:
|
|
349
|
+
headerPadding?: Rect_2;
|
|
350
|
+
contentPadding?: Rect_2;
|
|
281
351
|
groupLayout?: GroupLayout;
|
|
282
352
|
labelWidth?: number | string;
|
|
283
353
|
[propName: string]: any;
|
|
@@ -287,6 +357,22 @@ export declare interface GenericFunction {
|
|
|
287
357
|
(...args: any[]): any;
|
|
288
358
|
}
|
|
289
359
|
|
|
360
|
+
export declare function getGlobalValidateCheckEvents(): string[];
|
|
361
|
+
|
|
362
|
+
export declare function getGlobalValidateResetEvents(): string[];
|
|
363
|
+
|
|
364
|
+
export declare function getPageContentAreaHeight(domain: Domain, state?: PageState): number;
|
|
365
|
+
|
|
366
|
+
export declare function getPageContentAreaWidth(domain: Domain, state?: PageState): number;
|
|
367
|
+
|
|
368
|
+
export declare function getPageFooterAreaHeight(domain: Domain, state?: PageState): number;
|
|
369
|
+
|
|
370
|
+
export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageState): number;
|
|
371
|
+
|
|
372
|
+
export declare function getRootDomain(): Domain;
|
|
373
|
+
|
|
374
|
+
export declare const getScrollTopRoot: () => number;
|
|
375
|
+
|
|
290
376
|
export declare const Grid: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
291
377
|
|
|
292
378
|
export declare const GridItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -306,8 +392,6 @@ export declare const HeaderBar: DefineComponent<unknown, object, {}, ComputedOpt
|
|
|
306
392
|
|
|
307
393
|
export declare const hinttext: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
308
394
|
|
|
309
|
-
export declare const Icon: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
310
|
-
|
|
311
395
|
declare const Image_2: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
312
396
|
export { Image_2 as Image }
|
|
313
397
|
|
|
@@ -316,11 +400,11 @@ declare interface ImageInterface {
|
|
|
316
400
|
}
|
|
317
401
|
|
|
318
402
|
export declare const ImagePreview: {
|
|
319
|
-
(options: ImagePreviewOptions):
|
|
403
|
+
(options: ImagePreviewOptions): ImagePreviewApp;
|
|
320
404
|
install(app: any): void;
|
|
321
405
|
};
|
|
322
406
|
|
|
323
|
-
declare class
|
|
407
|
+
declare class ImagePreviewApp {
|
|
324
408
|
options: ImagePreviewOptions;
|
|
325
409
|
constructor(_options: ImagePreviewOptions);
|
|
326
410
|
}
|
|
@@ -328,11 +412,23 @@ declare class ImagePreviewFunction {
|
|
|
328
412
|
declare class ImagePreviewOptions {
|
|
329
413
|
show: boolean;
|
|
330
414
|
images: ImageInterface[];
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
415
|
+
videos?: [];
|
|
416
|
+
contentClose?: boolean;
|
|
417
|
+
initNo?: number;
|
|
418
|
+
paginationVisible?: boolean;
|
|
419
|
+
paginationColor?: string;
|
|
420
|
+
autoplay?: number | string;
|
|
421
|
+
isWrapTeleport?: boolean;
|
|
422
|
+
showIndex?: boolean;
|
|
423
|
+
closeable?: boolean;
|
|
424
|
+
closeIconPosition?: string;
|
|
425
|
+
beforeClose?: Interceptor;
|
|
426
|
+
maxZoom?: number;
|
|
427
|
+
minZoom?: number;
|
|
428
|
+
isLoop?: boolean;
|
|
429
|
+
onClose?(): void;
|
|
430
|
+
onChange?(index: number): void;
|
|
431
|
+
teleport?: string | HTMLElement;
|
|
336
432
|
}
|
|
337
433
|
|
|
338
434
|
export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
|
|
@@ -347,8 +443,12 @@ export declare const InputItem: DefineComponent<unknown, object, {}, ComputedOpt
|
|
|
347
443
|
|
|
348
444
|
export declare const InputNumber: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
349
445
|
|
|
446
|
+
export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
|
|
447
|
+
|
|
350
448
|
export declare function integerLength(value: string | number): number;
|
|
351
449
|
|
|
450
|
+
declare type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
|
|
451
|
+
|
|
352
452
|
export declare const isArray: (arg: any) => arg is any[];
|
|
353
453
|
|
|
354
454
|
export declare function isArrayLike(obj: any): boolean;
|
|
@@ -367,6 +467,8 @@ export declare const isFunction: (val: unknown) => val is Function;
|
|
|
367
467
|
|
|
368
468
|
export declare function isHidden(el: any): boolean;
|
|
369
469
|
|
|
470
|
+
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
471
|
+
|
|
370
472
|
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
371
473
|
|
|
372
474
|
export declare function isNumberString(value: string): boolean;
|
|
@@ -383,6 +485,8 @@ export declare const isSet: (val: unknown) => val is Set<any>;
|
|
|
383
485
|
|
|
384
486
|
export declare const isString: (val: unknown) => val is string;
|
|
385
487
|
|
|
488
|
+
export declare function isSubPage(domain: Domain): boolean;
|
|
489
|
+
|
|
386
490
|
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
387
491
|
|
|
388
492
|
export declare function isWindow(obj: any): boolean;
|
|
@@ -399,7 +503,7 @@ export declare const List: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
399
503
|
|
|
400
504
|
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
401
505
|
|
|
402
|
-
declare interface Matched {
|
|
506
|
+
export declare interface Matched {
|
|
403
507
|
name?: string | RegExp | {
|
|
404
508
|
(name: string): boolean;
|
|
405
509
|
};
|
|
@@ -428,11 +532,21 @@ export declare function nextTick(fn: {
|
|
|
428
532
|
export declare const NoticeBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
429
533
|
|
|
430
534
|
export declare const Notify: {
|
|
431
|
-
text(msg: string, obj?: {}):
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
535
|
+
text(msg: string, obj?: {}): {
|
|
536
|
+
[x: string]: unknown;
|
|
537
|
+
} | undefined;
|
|
538
|
+
primary(msg: string, obj?: {}): {
|
|
539
|
+
[x: string]: unknown;
|
|
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;
|
|
436
550
|
hide(): void;
|
|
437
551
|
install(app: any): void;
|
|
438
552
|
};
|
|
@@ -443,18 +557,22 @@ export declare const NumberKeyboard: DefineComponent<unknown, object, {}, Comput
|
|
|
443
557
|
|
|
444
558
|
export declare const objectToString: () => string;
|
|
445
559
|
|
|
560
|
+
export declare function once(func: GenericFunction): GenericFunction;
|
|
561
|
+
|
|
446
562
|
export declare const OverLay: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
447
563
|
|
|
448
|
-
declare interface Padding {
|
|
564
|
+
export declare interface Padding {
|
|
449
565
|
left: number | null;
|
|
450
566
|
top: number | null;
|
|
451
567
|
right: number | null;
|
|
452
568
|
bottom: number | null;
|
|
453
569
|
}
|
|
454
570
|
|
|
571
|
+
export declare const padZero: (num: number | string, length?: number) => string;
|
|
572
|
+
|
|
455
573
|
export declare const Page: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
456
574
|
|
|
457
|
-
declare interface PageLayout {
|
|
575
|
+
export declare interface PageLayout {
|
|
458
576
|
width: number | string;
|
|
459
577
|
height: number | string;
|
|
460
578
|
headerHeight: number | string;
|
|
@@ -464,47 +582,93 @@ declare interface PageLayout {
|
|
|
464
582
|
contentPadding?: Padding;
|
|
465
583
|
}
|
|
466
584
|
|
|
585
|
+
export declare interface PageState {
|
|
586
|
+
width: number;
|
|
587
|
+
height: number;
|
|
588
|
+
headerHeight: number;
|
|
589
|
+
headerPadding: Padding;
|
|
590
|
+
footerHeight: number;
|
|
591
|
+
footerPadding: Padding;
|
|
592
|
+
contentHeight: number | string | null;
|
|
593
|
+
contentPadding: Padding;
|
|
594
|
+
safeAreaTop: number;
|
|
595
|
+
safeAreaBottom: number;
|
|
596
|
+
safeAreaLeft: number;
|
|
597
|
+
safeAreaRight: number;
|
|
598
|
+
headerMounted?: boolean;
|
|
599
|
+
footerMounted?: boolean;
|
|
600
|
+
}
|
|
601
|
+
|
|
467
602
|
export declare const Pagination: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
468
603
|
|
|
469
604
|
export declare const Picker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
470
605
|
|
|
471
606
|
export declare const PickerItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
472
607
|
|
|
608
|
+
export declare interface Point {
|
|
609
|
+
x: number;
|
|
610
|
+
y: number;
|
|
611
|
+
}
|
|
612
|
+
|
|
473
613
|
export declare const Popover: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
474
614
|
|
|
475
615
|
export declare const Popup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
476
616
|
|
|
617
|
+
export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
|
|
618
|
+
|
|
477
619
|
export declare const Price: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
478
620
|
|
|
621
|
+
export declare enum PriorityPolicy {
|
|
622
|
+
Parent = 0,
|
|
623
|
+
Near = 1
|
|
624
|
+
}
|
|
625
|
+
|
|
479
626
|
export declare const Progress: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
480
627
|
|
|
628
|
+
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
629
|
+
|
|
630
|
+
export declare const PullRefresh: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
631
|
+
|
|
481
632
|
export declare const Radio: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
482
633
|
|
|
634
|
+
export declare const RadioGroup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
635
|
+
|
|
483
636
|
export declare const RadioItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
484
637
|
|
|
485
|
-
export declare const raf:
|
|
638
|
+
export declare const raf: any;
|
|
486
639
|
|
|
487
640
|
declare const Range_2: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
488
641
|
export { Range_2 as Range }
|
|
489
642
|
|
|
490
643
|
export declare const Rate: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
491
644
|
|
|
492
|
-
declare
|
|
645
|
+
export declare function readonlyProperty(source: Ref): Ref;
|
|
646
|
+
|
|
647
|
+
export declare interface Rect {
|
|
648
|
+
top: number;
|
|
649
|
+
left: number;
|
|
650
|
+
right: number;
|
|
651
|
+
bottom: number;
|
|
652
|
+
width: number;
|
|
653
|
+
height: number;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
declare interface Rect_2 {
|
|
493
657
|
left: number;
|
|
494
658
|
top: number;
|
|
495
659
|
right: number;
|
|
496
660
|
bottom: number;
|
|
497
661
|
}
|
|
498
662
|
|
|
499
|
-
declare type Result = Promise<any> | any;
|
|
663
|
+
export declare type Result = Promise<any> | any;
|
|
500
664
|
|
|
501
|
-
declare type Results = Result[];
|
|
665
|
+
export declare type Results = Result[];
|
|
502
666
|
|
|
503
667
|
export declare const Row: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
504
668
|
|
|
505
669
|
export declare const RowItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
506
670
|
|
|
507
|
-
declare interface SafeAreaInset {
|
|
671
|
+
export declare interface SafeAreaInset {
|
|
508
672
|
left: number | string;
|
|
509
673
|
top: number | string;
|
|
510
674
|
right: number | string;
|
|
@@ -517,6 +681,16 @@ declare interface ScopeGetter {
|
|
|
517
681
|
|
|
518
682
|
export declare const SearchBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
519
683
|
|
|
684
|
+
export declare function setGlobalValidateCheckEvents(events: string[]): void;
|
|
685
|
+
|
|
686
|
+
export declare function setGlobalValidateHandler(validateHandler: ValidateHandler): void;
|
|
687
|
+
|
|
688
|
+
export declare function setGlobalValidateMessages(messages: ValidateMessages): void;
|
|
689
|
+
|
|
690
|
+
export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
691
|
+
|
|
692
|
+
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
693
|
+
|
|
520
694
|
export declare const ShortPassword: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
521
695
|
|
|
522
696
|
export declare const SideNavBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -587,8 +761,18 @@ export declare function toBoolean(val: unknown): boolean;
|
|
|
587
761
|
|
|
588
762
|
export declare function toNumber(val: unknown): number;
|
|
589
763
|
|
|
764
|
+
export declare function toPadding(rect: any): Padding;
|
|
765
|
+
|
|
766
|
+
export declare function toPx(value: number | string, size?: number): number;
|
|
767
|
+
|
|
768
|
+
export declare const toPxDesc: (value: string | number) => string;
|
|
769
|
+
|
|
590
770
|
export declare const toTypeString: (value: unknown) => string;
|
|
591
771
|
|
|
772
|
+
export declare const Tour: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
773
|
+
|
|
774
|
+
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
775
|
+
|
|
592
776
|
export declare const TrendArrow: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
593
777
|
|
|
594
778
|
export declare function typeOf(obj: any): string;
|
|
@@ -601,9 +785,49 @@ export declare class UniqueID {
|
|
|
601
785
|
|
|
602
786
|
export { unNumberFormat }
|
|
603
787
|
|
|
788
|
+
export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
|
|
789
|
+
|
|
604
790
|
export declare const Uploader: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
605
791
|
|
|
606
|
-
declare
|
|
792
|
+
export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
|
|
793
|
+
|
|
794
|
+
export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
|
|
795
|
+
|
|
796
|
+
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
797
|
+
|
|
798
|
+
export declare function usePageState(domain: Domain): PageState | null;
|
|
799
|
+
|
|
800
|
+
export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
|
|
801
|
+
|
|
802
|
+
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
803
|
+
|
|
804
|
+
export declare function useTouch(): {
|
|
805
|
+
move: EventListener;
|
|
806
|
+
start: EventListener;
|
|
807
|
+
reset: () => void;
|
|
808
|
+
startX: Ref<number>;
|
|
809
|
+
startY: Ref<number>;
|
|
810
|
+
startTime: Ref<number>;
|
|
811
|
+
duration: Ref<number>;
|
|
812
|
+
moveX: Ref<number>;
|
|
813
|
+
moveY: Ref<number>;
|
|
814
|
+
deltaX: Ref<number>;
|
|
815
|
+
deltaY: Ref<number>;
|
|
816
|
+
offsetX: Ref<number>;
|
|
817
|
+
offsetY: Ref<number>;
|
|
818
|
+
direction: Ref<Direction>;
|
|
819
|
+
isVertical: () => boolean;
|
|
820
|
+
isHorizontal: () => boolean;
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
export declare interface ValidateCondition {
|
|
824
|
+
deep?: boolean;
|
|
825
|
+
include?: string[];
|
|
826
|
+
exclude?: string[];
|
|
827
|
+
ignoreHidden?: boolean;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
export declare interface ValidateHandler {
|
|
607
831
|
error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
|
|
608
832
|
reset?(proxy: FoxComponentPublicInstance): void;
|
|
609
833
|
success?(proxy: FoxComponentPublicInstance): void;
|
|
@@ -611,7 +835,7 @@ declare interface ValidateHandler {
|
|
|
611
835
|
getValue?(proxy: FoxComponentPublicInstance): any;
|
|
612
836
|
}
|
|
613
837
|
|
|
614
|
-
declare class ValidateSchema {
|
|
838
|
+
export declare class ValidateSchema {
|
|
615
839
|
private parent;
|
|
616
840
|
private validators;
|
|
617
841
|
private attrRules;
|
|
@@ -636,9 +860,15 @@ declare class ValidateSchema {
|
|
|
636
860
|
validate(): Promise<ValidateResult>;
|
|
637
861
|
}
|
|
638
862
|
|
|
863
|
+
export declare const ValidateSchemaKey: unique symbol;
|
|
864
|
+
|
|
865
|
+
export declare interface ValueFormat<T, K> {
|
|
866
|
+
(value: T): K;
|
|
867
|
+
}
|
|
868
|
+
|
|
639
869
|
export declare function valueLength(val: unknown): number;
|
|
640
870
|
|
|
641
|
-
declare type ValueType = 'string' | 'number' | 'date';
|
|
871
|
+
export declare type ValueType = 'string' | 'number' | 'date';
|
|
642
872
|
|
|
643
873
|
export declare const Video: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
644
874
|
|