@fox-js/foxui 4.0.1-15 → 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 +4 -4
- package/dist/index.esm.js +1359 -1274
- package/dist/index.umd.js +5 -5
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +197 -16
- package/package.json +1 -1
package/dist/locale/index.esm.js
CHANGED
package/dist/locale/index.umd.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.locale=t())})(this,function(){"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-base v4.0.0
|
|
2
|
+
* @fox-js/foxui-base v4.0.0 Tue Jul 18 2023 15:22:27 GMT+0800 (中国标准时间)
|
|
3
3
|
*/const e={save:"保存",noData:"暂无数据",confirmText:"确认",cancelText:"取消",clearText:"清除",defaultText:"默认",placeholder:"请输入",select:"请选择",dateUnit:{day:"日",year:"年",month:"月",hour:"时",minute:"分",seconds:"秒"},video:{errorTip:"视频加载失败",clickRetry:"点击重试"},fixednav:{activeText:"收起导航",unActiveText:"快速导航"},pagination:{prevText:"上一页",nextText:"下一页"},calendarpane:{weekdays:JSON.stringify(["日","一","二","三","四","五","六"]),endText:"结束",startText:"开始",title:"日历选择",monthTitle:"{year}年{month}月",today:"今天"},shortpassword:{title:"请输入密码",desc:"您使用了虚拟资产,请进行验证",tips:"忘记密码"},uploader:{ready:"准备完成",readyUpload:"准备上传",waitingUpload:"等待上传",uploading:"上传中",success:"上传成功",error:"上传失败"},countdown:{day:"天",hour:"时",minute:"分",second:"秒"},empty:{description:"暂无数据"},address:{selectRegion:"请选择所在地区",deliveryTo:"配送至",chooseAnotherAddress:"选择其他地址"},signature:{reSign:"重签",unSupportTpl:"对不起,当前浏览器不支持Canvas,无法使用本控件!"},ecard:{chooseText:"请选择电子卡面值",otherValueText:"其他面值",placeholder:"请输入1-5000整数"},timeselect:{pickupTime:"取件时间"},sku:{buyText:"立即购买",stepperTitle:"购买数量",addCartText:"加入购物车"},skuheader:{idText:"商品编号"},addresslist:{addAddress:"新建地址",default:"默认"},comment:{complaintsText:"我要投诉",additionalReview:"购买{0}天后追评",additionalImages:"{0}张追评图片"},infiniteloading:{loading:"加载中...",pullText:"松开刷新",loadMoreText:"哎呀,这里是底部了啦"},pullrefresh:{pullingText:"下拉刷新",loosingText:"释放刷新",loadingText:"加载中..."},datepicker:{year:"年",month:"月",day:"日",hour:"时",min:"分",seconds:"秒"},audiooperate:{back:"倒退",start:"开始",pause:"暂停",forward:"快进",mute:"静音"},picker:{title:"请选择"},pickeritem:{placeholder:"请选择"},dateitem:{placeholder:"请选择"},cascaderitem:{placeholder:"请选择"},calendaritem:{placeholder:"请选择"},numberkeyboard:{confirmText:"完成"}},t={save:"Save",noData:"No Data",confirmText:"Confirm",cancelText:"Cancel",clearText:"Clear",defaultText:"Default",placeholder:"Placeholder",select:"Select",dateUnit:{day:"Day",year:"Year",month:"Month",hour:"Hour",minute:"Minute",seconds:"Second"},video:{errorTip:"Error Tip",clickRetry:"Click Retry"},fixednav:{activeText:"Close Nav",unActiveText:"Open Nav"},pagination:{prevText:"Previous",nextText:"Next"},calendarpane:{weekdays:JSON.stringify(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),endText:"End",startText:"Start",title:"Calendar",monthTitle:"{year}/{month}",today:"Today"},shortpassword:{title:"Please input a password",desc:"Verify",tips:"Forget password"},uploader:{ready:"Ready",readyUpload:"Ready to upload",waitingUpload:"Waiting for upload",uploading:"Uploading",success:"Upload successful",error:"Upload failed"},countdown:{day:" Day ",hour:" Hour ",minute:" Minute ",second:" Second "},empty:{description:"No Data"},address:{selectRegion:"Select Region",deliveryTo:"Delivery To",chooseAnotherAddress:"Choose Another Address"},signature:{reSign:"Re Sign",unSupportTpl:"Sorry, the current browser doesn't support canvas, so we can't use this control!"},ecard:{chooseText:"Select",otherValueText:"Other Value",placeholder:"Placeholder"},timeselect:{pickupTime:"Pickup Time"},sku:{buyText:"Buy Now",stepperTitle:"Buy Number",addCartText:"Add to Cart"},skuheader:{idText:"Sku Number"},addresslist:{addAddress:"Add New Address",default:"default"},comment:{complaintsText:"I have a complaint",additionalReview:"Review after {0} days of purchase",additionalImages:"There are {0} follow-up comments"},infiniteloading:{loading:"Loading...",pullText:"Loose to refresh",loadMoreText:"Oops, this is the bottom"},pullrefresh:{pullingText:"Pull to refresh...",loosingText:"Loose to refresh...",loadingText:"Loading..."},datepicker:{year:"Year",month:"Month",day:"Day",hour:"Hour",min:"Minute",seconds:"Second"},audiooperate:{back:"Back",start:"Start",pause:"Pause",forward:"Forward",mute:"Mute"},picker:{title:"Select"},pickeritem:{placeholder:"Select"},dateitem:{placeholder:"Select"},cascaderitem:{placeholder:"Select"},calendaritem:{placeholder:"Select"},numberkeyboard:{confirmText:"Done"}},a={save:"保存",noData:"暫無數據",confirmText:"確認",cancelText:"取消",clearText:"清除",defaultText:"默认",placeholder:"請輸入",select:"請選擇",dateUnit:{day:"日",year:"年",month:"月",hour:"时",minute:"分",seconds:"秒"},video:{errorTip:"視頻加載失敗",clickRetry:"點擊重試"},fixednav:{activeText:"收起導航",unActiveText:"快速導航"},pagination:{prevText:"上一頁",nextText:"下一頁"},calendarpane:{weekdays:JSON.stringify(["日","一","二","三","四","五","六"]),endText:"結束",startText:"開始",title:"行事曆選擇",monthTitle:"{year}年{month}月",today:"今天"},shortpassword:{title:"請輸入密碼",desc:"您使用了虛擬資產,請進行驗證",tips:"忘記密碼"},uploader:{ready:"準備完成",readyUpload:"準備上傳",waitingUpload:"等待上傳",uploading:"上傳中",success:"上傳成功",error:"上傳失敗"},countdown:{day:"天",hour:"時",minute:"分",second:"秒"},empty:{description:"暫無數據"},address:{selectRegion:"請選擇所在地區",deliveryTo:"配送至",chooseAnotherAddress:"選擇其他地址"},signature:{reSign:"重簽",unSupportTpl:"對不起,當前瀏覽器不支持Canvas,無法使用本控制項!"},ecard:{chooseText:"請選擇電子卡面值",otherValueText:"其他面值",placeholder:"請輸入1-5000整數"},timeselect:{pickupTime:"取件時間"},sku:{buyText:"立即購買",stepperTitle:"購買數量",addCartText:"加入購物車"},skuheader:{idText:"商品編號"},addresslist:{addAddress:"新建地址",default:"默认"},comment:{complaintsText:"我要投訴",additionalReview:"購買{0}天後追評",additionalImages:"{0}張追評圖片"},infiniteloading:{loading:"加載中...",pullText:"鬆開刷新",loadMoreText:"哎呀,這裡是底部了啦"},pullrefresh:{pullingText:"下拉刷新",loosingText:"釋放刷新",loadingText:"加載中..."},datepicker:{year:"年",month:"月",day:"日",hour:"時",min:"分",seconds:"秒"},audiooperate:{back:"倒退",start:"開始",pause:"暫停",forward:"快進",mute:"靜音"},picker:{title:"請選擇"},pickeritem:{placeholder:"請選擇"},dateitem:{placeholder:"請選擇"},cascaderitem:{placeholder:"請選擇"},calendaritem:{placeholder:"請選擇"},numberkeyboard:{confirmText:"完成"}};return{zh_CN:{...e},en_US:{...t},zh_TW:{...a}}});
|
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';
|
|
@@ -16,10 +17,17 @@ import { numberFormat } from '@fox-js/big-decimal';
|
|
|
16
17
|
import { Ref } from 'vue';
|
|
17
18
|
import { Rule } from '@fox-js/validator';
|
|
18
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';
|
|
19
23
|
import { ValidateResult } from '@fox-js/validator';
|
|
20
24
|
import { VNode } from 'vue';
|
|
21
25
|
import type { VNodeProps } from 'vue';
|
|
22
26
|
|
|
27
|
+
export declare interface AcceptFilter {
|
|
28
|
+
(value: any): boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
23
31
|
export declare const ActionSheet: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
24
32
|
|
|
25
33
|
export declare const Address: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -43,7 +51,7 @@ export declare const Badge: DefineComponent<unknown, object, {}, ComputedOptions
|
|
|
43
51
|
|
|
44
52
|
export declare const Barrage: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
45
53
|
|
|
46
|
-
declare class Broadcast {
|
|
54
|
+
export declare class Broadcast {
|
|
47
55
|
private parent;
|
|
48
56
|
private children;
|
|
49
57
|
private callbacks;
|
|
@@ -58,10 +66,12 @@ declare class Broadcast {
|
|
|
58
66
|
on(action: string, callback: BroadcastCallback): void;
|
|
59
67
|
}
|
|
60
68
|
|
|
61
|
-
declare interface BroadcastCallback {
|
|
69
|
+
export declare interface BroadcastCallback {
|
|
62
70
|
(...args: any[]): Result;
|
|
63
71
|
}
|
|
64
72
|
|
|
73
|
+
export declare const BroadcastKey: unique symbol;
|
|
74
|
+
|
|
65
75
|
export declare const Button: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
66
76
|
|
|
67
77
|
export declare const Calendar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -115,6 +125,12 @@ export declare const CountDown: DefineComponent<unknown, object, {}, ComputedOpt
|
|
|
115
125
|
|
|
116
126
|
export declare const CountUp: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
117
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
|
+
|
|
118
134
|
export declare const DateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
119
135
|
|
|
120
136
|
export declare const DatePicker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -148,7 +164,24 @@ export declare function decimalLength(value: string | number): number;
|
|
|
148
164
|
declare const _default: FoxUIApp;
|
|
149
165
|
export default _default;
|
|
150
166
|
|
|
151
|
-
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 {
|
|
152
185
|
componentName: string;
|
|
153
186
|
fieldName?: string;
|
|
154
187
|
valueName?: string;
|
|
@@ -203,11 +236,15 @@ declare class DialogOptions {
|
|
|
203
236
|
lockScroll?: boolean;
|
|
204
237
|
}
|
|
205
238
|
|
|
239
|
+
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
240
|
+
|
|
241
|
+
export declare function disabledProperty(source: Ref): Ref;
|
|
242
|
+
|
|
206
243
|
export { divide }
|
|
207
244
|
|
|
208
245
|
export declare const Divider: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
209
246
|
|
|
210
|
-
declare class Domain {
|
|
247
|
+
export declare class Domain {
|
|
211
248
|
private _parent;
|
|
212
249
|
get parent(): Domain | null;
|
|
213
250
|
set parent(val: Domain | null);
|
|
@@ -232,6 +269,22 @@ declare class Domain {
|
|
|
232
269
|
getAll(key: string | number): any[];
|
|
233
270
|
}
|
|
234
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
|
+
|
|
235
288
|
export declare const DomainProvider: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
236
289
|
|
|
237
290
|
export declare const Drag: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -244,6 +297,10 @@ export declare const Ellipsis: DefineComponent<unknown, object, {}, ComputedOpti
|
|
|
244
297
|
|
|
245
298
|
export declare const Empty: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
246
299
|
|
|
300
|
+
declare interface EventListener_2 {
|
|
301
|
+
(...args: any[]): void;
|
|
302
|
+
}
|
|
303
|
+
|
|
247
304
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
248
305
|
|
|
249
306
|
export declare function extend(...args: any[]): any;
|
|
@@ -289,8 +346,8 @@ declare interface FoxUIOptions {
|
|
|
289
346
|
footerBarHeight?: number;
|
|
290
347
|
safeAreaInset?: SafeAreaInset;
|
|
291
348
|
pageLayout?: PageLayout;
|
|
292
|
-
headerPadding?:
|
|
293
|
-
contentPadding?:
|
|
349
|
+
headerPadding?: Rect_2;
|
|
350
|
+
contentPadding?: Rect_2;
|
|
294
351
|
groupLayout?: GroupLayout;
|
|
295
352
|
labelWidth?: number | string;
|
|
296
353
|
[propName: string]: any;
|
|
@@ -300,6 +357,20 @@ export declare interface GenericFunction {
|
|
|
300
357
|
(...args: any[]): any;
|
|
301
358
|
}
|
|
302
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
|
+
|
|
303
374
|
export declare const getScrollTopRoot: () => number;
|
|
304
375
|
|
|
305
376
|
export declare const Grid: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -372,6 +443,8 @@ export declare const InputItem: DefineComponent<unknown, object, {}, ComputedOpt
|
|
|
372
443
|
|
|
373
444
|
export declare const InputNumber: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
374
445
|
|
|
446
|
+
export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
|
|
447
|
+
|
|
375
448
|
export declare function integerLength(value: string | number): number;
|
|
376
449
|
|
|
377
450
|
declare type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
|
|
@@ -394,6 +467,8 @@ export declare const isFunction: (val: unknown) => val is Function;
|
|
|
394
467
|
|
|
395
468
|
export declare function isHidden(el: any): boolean;
|
|
396
469
|
|
|
470
|
+
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
471
|
+
|
|
397
472
|
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
398
473
|
|
|
399
474
|
export declare function isNumberString(value: string): boolean;
|
|
@@ -410,6 +485,8 @@ export declare const isSet: (val: unknown) => val is Set<any>;
|
|
|
410
485
|
|
|
411
486
|
export declare const isString: (val: unknown) => val is string;
|
|
412
487
|
|
|
488
|
+
export declare function isSubPage(domain: Domain): boolean;
|
|
489
|
+
|
|
413
490
|
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
414
491
|
|
|
415
492
|
export declare function isWindow(obj: any): boolean;
|
|
@@ -426,7 +503,7 @@ export declare const List: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
426
503
|
|
|
427
504
|
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
428
505
|
|
|
429
|
-
declare interface Matched {
|
|
506
|
+
export declare interface Matched {
|
|
430
507
|
name?: string | RegExp | {
|
|
431
508
|
(name: string): boolean;
|
|
432
509
|
};
|
|
@@ -484,7 +561,7 @@ export declare function once(func: GenericFunction): GenericFunction;
|
|
|
484
561
|
|
|
485
562
|
export declare const OverLay: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
486
563
|
|
|
487
|
-
declare interface Padding {
|
|
564
|
+
export declare interface Padding {
|
|
488
565
|
left: number | null;
|
|
489
566
|
top: number | null;
|
|
490
567
|
right: number | null;
|
|
@@ -495,7 +572,7 @@ export declare const padZero: (num: number | string, length?: number) => string;
|
|
|
495
572
|
|
|
496
573
|
export declare const Page: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
497
574
|
|
|
498
|
-
declare interface PageLayout {
|
|
575
|
+
export declare interface PageLayout {
|
|
499
576
|
width: number | string;
|
|
500
577
|
height: number | string;
|
|
501
578
|
headerHeight: number | string;
|
|
@@ -505,12 +582,34 @@ declare interface PageLayout {
|
|
|
505
582
|
contentPadding?: Padding;
|
|
506
583
|
}
|
|
507
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
|
+
|
|
508
602
|
export declare const Pagination: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
509
603
|
|
|
510
604
|
export declare const Picker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
511
605
|
|
|
512
606
|
export declare const PickerItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
513
607
|
|
|
608
|
+
export declare interface Point {
|
|
609
|
+
x: number;
|
|
610
|
+
y: number;
|
|
611
|
+
}
|
|
612
|
+
|
|
514
613
|
export declare const Popover: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
515
614
|
|
|
516
615
|
export declare const Popup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -519,8 +618,15 @@ export declare function preventDefault(event: Event, isStopPropagation?: boolean
|
|
|
519
618
|
|
|
520
619
|
export declare const Price: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
521
620
|
|
|
621
|
+
export declare enum PriorityPolicy {
|
|
622
|
+
Parent = 0,
|
|
623
|
+
Near = 1
|
|
624
|
+
}
|
|
625
|
+
|
|
522
626
|
export declare const Progress: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
523
627
|
|
|
628
|
+
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
629
|
+
|
|
524
630
|
export declare const PullRefresh: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
525
631
|
|
|
526
632
|
export declare const Radio: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -536,22 +642,33 @@ export { Range_2 as Range }
|
|
|
536
642
|
|
|
537
643
|
export declare const Rate: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
538
644
|
|
|
539
|
-
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 {
|
|
540
657
|
left: number;
|
|
541
658
|
top: number;
|
|
542
659
|
right: number;
|
|
543
660
|
bottom: number;
|
|
544
661
|
}
|
|
545
662
|
|
|
546
|
-
declare type Result = Promise<any> | any;
|
|
663
|
+
export declare type Result = Promise<any> | any;
|
|
547
664
|
|
|
548
|
-
declare type Results = Result[];
|
|
665
|
+
export declare type Results = Result[];
|
|
549
666
|
|
|
550
667
|
export declare const Row: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
551
668
|
|
|
552
669
|
export declare const RowItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
553
670
|
|
|
554
|
-
declare interface SafeAreaInset {
|
|
671
|
+
export declare interface SafeAreaInset {
|
|
555
672
|
left: number | string;
|
|
556
673
|
top: number | string;
|
|
557
674
|
right: number | string;
|
|
@@ -564,6 +681,16 @@ declare interface ScopeGetter {
|
|
|
564
681
|
|
|
565
682
|
export declare const SearchBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
566
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
|
+
|
|
567
694
|
export declare const ShortPassword: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
568
695
|
|
|
569
696
|
export declare const SideNavBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -634,10 +761,18 @@ export declare function toBoolean(val: unknown): boolean;
|
|
|
634
761
|
|
|
635
762
|
export declare function toNumber(val: unknown): number;
|
|
636
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
|
+
|
|
637
770
|
export declare const toTypeString: (value: unknown) => string;
|
|
638
771
|
|
|
639
772
|
export declare const Tour: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
640
773
|
|
|
774
|
+
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
775
|
+
|
|
641
776
|
export declare const TrendArrow: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
642
777
|
|
|
643
778
|
export declare function typeOf(obj: any): string;
|
|
@@ -650,9 +785,49 @@ export declare class UniqueID {
|
|
|
650
785
|
|
|
651
786
|
export { unNumberFormat }
|
|
652
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
|
+
|
|
653
790
|
export declare const Uploader: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
654
791
|
|
|
655
|
-
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 {
|
|
656
831
|
error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
|
|
657
832
|
reset?(proxy: FoxComponentPublicInstance): void;
|
|
658
833
|
success?(proxy: FoxComponentPublicInstance): void;
|
|
@@ -660,7 +835,7 @@ declare interface ValidateHandler {
|
|
|
660
835
|
getValue?(proxy: FoxComponentPublicInstance): any;
|
|
661
836
|
}
|
|
662
837
|
|
|
663
|
-
declare class ValidateSchema {
|
|
838
|
+
export declare class ValidateSchema {
|
|
664
839
|
private parent;
|
|
665
840
|
private validators;
|
|
666
841
|
private attrRules;
|
|
@@ -685,9 +860,15 @@ declare class ValidateSchema {
|
|
|
685
860
|
validate(): Promise<ValidateResult>;
|
|
686
861
|
}
|
|
687
862
|
|
|
863
|
+
export declare const ValidateSchemaKey: unique symbol;
|
|
864
|
+
|
|
865
|
+
export declare interface ValueFormat<T, K> {
|
|
866
|
+
(value: T): K;
|
|
867
|
+
}
|
|
868
|
+
|
|
688
869
|
export declare function valueLength(val: unknown): number;
|
|
689
870
|
|
|
690
|
-
declare type ValueType = 'string' | 'number' | 'date';
|
|
871
|
+
export declare type ValueType = 'string' | 'number' | 'date';
|
|
691
872
|
|
|
692
873
|
export declare const Video: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
693
874
|
|