@fox-js/foxui 4.0.1-87 → 4.0.1-89
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 +2 -2
- package/dist/index.esm.js +9949 -9853
- package/dist/index.umd.js +2 -2
- package/dist/style.css +24 -19
- package/dist/style.js +1 -1
- package/dist/types/index.d.ts +175 -99
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -4567,6 +4567,15 @@
|
|
|
4567
4567
|
color: var(--fox-dark-color, var(--fox-white, #fff));
|
|
4568
4568
|
}
|
|
4569
4569
|
|
|
4570
|
+
.fox-menu-item {
|
|
4571
|
+
z-index: var(--fox-menu-bar-opened-z-index, 2001);
|
|
4572
|
+
height: 100vh;
|
|
4573
|
+
position: fixed;
|
|
4574
|
+
left: 0;
|
|
4575
|
+
right: 0;
|
|
4576
|
+
overflow: hidden;
|
|
4577
|
+
}
|
|
4578
|
+
|
|
4570
4579
|
.fox-menu-item .active {
|
|
4571
4580
|
font-weight: var(--fox-menu-active-item-font-weight, 500);
|
|
4572
4581
|
color: var(--fox-menu-item-active-text-color, var(--fox-primary-color, #fa2c19)) !important;
|
|
@@ -4583,6 +4592,11 @@
|
|
|
4583
4592
|
overflow-y: auto;
|
|
4584
4593
|
}
|
|
4585
4594
|
|
|
4595
|
+
.fox-menu-item__content.fox-menu-item__overflow::-webkit-scrollbar {
|
|
4596
|
+
width: 0;
|
|
4597
|
+
display: none;
|
|
4598
|
+
}
|
|
4599
|
+
|
|
4586
4600
|
.fox-menu-item__content .fox-menu-item__option {
|
|
4587
4601
|
color: var(--fox-title-color, #1a1a1a);
|
|
4588
4602
|
font-size: var(--fox-font-size-base, 14px);
|
|
@@ -4598,13 +4612,7 @@
|
|
|
4598
4612
|
display: flex;
|
|
4599
4613
|
}
|
|
4600
4614
|
|
|
4601
|
-
.fox-menu__pop {
|
|
4602
|
-
transition: height 3s linear;
|
|
4603
|
-
transform: none;
|
|
4604
|
-
}
|
|
4605
|
-
|
|
4606
4615
|
.fox-menu-item-placeholder-element {
|
|
4607
|
-
top: var(--fox-menu-bar-line-height, 48px);
|
|
4608
4616
|
z-index: var(--fox-menu-bar-opened-z-index, 2001);
|
|
4609
4617
|
background-color: #0000;
|
|
4610
4618
|
position: fixed;
|
|
@@ -4612,10 +4620,6 @@
|
|
|
4612
4620
|
right: 0;
|
|
4613
4621
|
}
|
|
4614
4622
|
|
|
4615
|
-
.fox-menu-item-placeholder-element.up {
|
|
4616
|
-
bottom: var(--fox-menu-bar-line-height, 48px);
|
|
4617
|
-
}
|
|
4618
|
-
|
|
4619
4623
|
.fox-theme-dark .fox-tabbar {
|
|
4620
4624
|
background: var(--fox-dark-background, #131313);
|
|
4621
4625
|
}
|
|
@@ -8348,7 +8352,7 @@
|
|
|
8348
8352
|
margin-bottom: 5px;
|
|
8349
8353
|
}
|
|
8350
8354
|
|
|
8351
|
-
.
|
|
8355
|
+
.fox-swiper-item {
|
|
8352
8356
|
height: 100%;
|
|
8353
8357
|
}
|
|
8354
8358
|
|
|
@@ -8499,7 +8503,6 @@
|
|
|
8499
8503
|
.fox-countup {
|
|
8500
8504
|
color: #000;
|
|
8501
8505
|
padding: 5px 20px;
|
|
8502
|
-
font-family: PingFangSC-Regular;
|
|
8503
8506
|
font-weight: bold;
|
|
8504
8507
|
display: block;
|
|
8505
8508
|
}
|
|
@@ -8521,7 +8524,6 @@
|
|
|
8521
8524
|
}
|
|
8522
8525
|
|
|
8523
8526
|
.fox-countup .fox-countup__number .fox-countup__number-item .fox-countup__number-item__span {
|
|
8524
|
-
font-family: PingFangSC-Regular;
|
|
8525
8527
|
display: block;
|
|
8526
8528
|
}
|
|
8527
8529
|
|
|
@@ -8550,7 +8552,6 @@
|
|
|
8550
8552
|
.fox-countup .fox-countup__numberimg .fox-countup__numberimg__item {
|
|
8551
8553
|
background-position: 0 0;
|
|
8552
8554
|
background-repeat: no-repeat;
|
|
8553
|
-
font-family: PingFangSC-Regular;
|
|
8554
8555
|
transition: none;
|
|
8555
8556
|
display: inline-block;
|
|
8556
8557
|
position: absolute;
|
|
@@ -9771,7 +9772,7 @@
|
|
|
9771
9772
|
color: var(--fox-dark-color-gray, var(--fox-text-color, gray));
|
|
9772
9773
|
}
|
|
9773
9774
|
|
|
9774
|
-
.fox-
|
|
9775
|
+
.fox-signature__inner {
|
|
9775
9776
|
border: 1px solid #dadada;
|
|
9776
9777
|
justify-content: center;
|
|
9777
9778
|
align-items: center;
|
|
@@ -9780,6 +9781,14 @@
|
|
|
9780
9781
|
display: flex;
|
|
9781
9782
|
}
|
|
9782
9783
|
|
|
9784
|
+
.fox-signature__toolbar {
|
|
9785
|
+
flex-flow: row;
|
|
9786
|
+
justify-content: center;
|
|
9787
|
+
align-items: center;
|
|
9788
|
+
gap: 15px;
|
|
9789
|
+
display: flex;
|
|
9790
|
+
}
|
|
9791
|
+
|
|
9783
9792
|
.fox-signature .spcanvas_WEAPP {
|
|
9784
9793
|
width: 100%;
|
|
9785
9794
|
height: 100%;
|
|
@@ -9788,8 +9797,4 @@
|
|
|
9788
9797
|
.fox-signature .spcanvas_WEAPP .spcanvas {
|
|
9789
9798
|
width: 100%;
|
|
9790
9799
|
}
|
|
9791
|
-
|
|
9792
|
-
.fox-signature .fox-signature-btn {
|
|
9793
|
-
margin-right: 15px;
|
|
9794
|
-
}
|
|
9795
9800
|
/*$vite$:1*/
|
package/dist/style.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { compareTo } from '@fox-js/big-decimal';
|
|
3
|
-
import { ComponentInternalInstance } from 'vue';
|
|
4
|
-
import { ComponentPublicInstance } from 'vue';
|
|
5
3
|
import { CSSProperties } from 'vue';
|
|
6
4
|
import { DefineSetupFnComponent } from 'vue';
|
|
7
5
|
import { divide } from '@fox-js/big-decimal';
|
|
@@ -57,9 +55,9 @@ export declare class Broadcast {
|
|
|
57
55
|
*/
|
|
58
56
|
private callbacks;
|
|
59
57
|
/**
|
|
60
|
-
* vue
|
|
58
|
+
* vue exposed
|
|
61
59
|
*/
|
|
62
|
-
private
|
|
60
|
+
private exposed;
|
|
63
61
|
/**
|
|
64
62
|
* 名称
|
|
65
63
|
*/
|
|
@@ -71,10 +69,10 @@ export declare class Broadcast {
|
|
|
71
69
|
/**
|
|
72
70
|
* 构造函数
|
|
73
71
|
* @param parent
|
|
74
|
-
* @param
|
|
72
|
+
* @param exposed
|
|
75
73
|
* @param name
|
|
76
74
|
*/
|
|
77
|
-
constructor(parent: Broadcast | null,
|
|
75
|
+
constructor(parent: Broadcast | null, exposed: FoxComponentPublicExposed, name?: string);
|
|
78
76
|
/**
|
|
79
77
|
* 加入孩子节点
|
|
80
78
|
* @param child
|
|
@@ -189,6 +187,27 @@ export declare function clearNonNumber(value: string, allowDot?: boolean, allowM
|
|
|
189
187
|
|
|
190
188
|
export { compareTo }
|
|
191
189
|
|
|
190
|
+
/**
|
|
191
|
+
* 组件描述
|
|
192
|
+
*/
|
|
193
|
+
declare interface ComponentDescriptor {
|
|
194
|
+
componentName: string;
|
|
195
|
+
readonly?: boolean;
|
|
196
|
+
disabled?: boolean;
|
|
197
|
+
props?: Record<string, any>;
|
|
198
|
+
ignorePropKeys?: string[];
|
|
199
|
+
context: FoxSetupContext;
|
|
200
|
+
templateRefProxy?: FoxTemplateRefProxy;
|
|
201
|
+
fieldName?: string;
|
|
202
|
+
valueName?: string;
|
|
203
|
+
valueType?: ValueType;
|
|
204
|
+
validate?: boolean;
|
|
205
|
+
pureDataValidate?: boolean;
|
|
206
|
+
validateHandler?: ValidateHandler;
|
|
207
|
+
validateCheckEvents?: string[];
|
|
208
|
+
validateResetEvents?: string[];
|
|
209
|
+
}
|
|
210
|
+
|
|
192
211
|
/**
|
|
193
212
|
* 内容
|
|
194
213
|
*/
|
|
@@ -199,22 +218,22 @@ declare type Content_2 = string | GroupContent[] | string[] | VNode | {
|
|
|
199
218
|
/**
|
|
200
219
|
* 创建broadcast
|
|
201
220
|
*
|
|
202
|
-
* @param
|
|
221
|
+
* @param expose
|
|
203
222
|
* @param parent
|
|
204
223
|
* @param name
|
|
205
224
|
* @param callbacks
|
|
206
225
|
* @returns
|
|
207
226
|
*/
|
|
208
|
-
export declare function createBroadcast(
|
|
227
|
+
export declare function createBroadcast(exposed: FoxComponentPublicExposed, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
|
|
209
228
|
|
|
210
229
|
/**
|
|
211
230
|
* 创建校验schema
|
|
212
|
-
* @param
|
|
231
|
+
* @param exposed
|
|
213
232
|
* @param parent
|
|
214
233
|
* @param descriptor
|
|
215
234
|
* @returns
|
|
216
235
|
*/
|
|
217
|
-
export declare function createValidateSchema(
|
|
236
|
+
export declare function createValidateSchema(exposed: FoxComponentPublicExposed, parent: ValidateSchema | null, descriptor: ComponentDescriptor): ValidateSchema;
|
|
218
237
|
|
|
219
238
|
/**
|
|
220
239
|
* data items key
|
|
@@ -815,41 +834,44 @@ declare const _default_99: DefineSetupFnComponent<Record<string, any>, {}, {}, R
|
|
|
815
834
|
export { _default_99 as Empty }
|
|
816
835
|
export { _default_99 as FoxEmpty }
|
|
817
836
|
|
|
818
|
-
/**
|
|
819
|
-
* anyNode
|
|
820
|
-
* @param name
|
|
821
|
-
* @param callbacks
|
|
822
|
-
* @returns
|
|
823
|
-
*/
|
|
824
|
-
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
|
|
825
|
-
|
|
826
837
|
/**
|
|
827
838
|
* 安装config domain
|
|
839
|
+
* @param descriptor domain组件描述
|
|
828
840
|
* @param name 名称
|
|
829
|
-
* @param props 属性
|
|
830
|
-
* @param ignores 忽略的属性
|
|
831
841
|
* @returns
|
|
832
842
|
*/
|
|
833
|
-
export declare function defineConfigDomain(
|
|
843
|
+
export declare function defineConfigDomain(descriptor: DomainComponentDescriptor, name: string | null): {
|
|
844
|
+
domain: Domain;
|
|
845
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
846
|
+
};
|
|
834
847
|
|
|
835
848
|
/**
|
|
836
|
-
* 定义
|
|
849
|
+
* 定义data item
|
|
850
|
+
* @param domain domain
|
|
851
|
+
* @param name 名称
|
|
852
|
+
* @param descriptor 描述
|
|
853
|
+
* @param parentBroadcast parent broadcast
|
|
854
|
+
* @param parentValidateSchema parent validateSchema
|
|
837
855
|
* @returns
|
|
838
856
|
*/
|
|
839
|
-
export declare function defineDataItem(domain: Domain, name: string, descriptor:
|
|
857
|
+
export declare function defineDataItem(domain: Domain, name: string, descriptor: ComponentDescriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
|
|
840
858
|
broadcast: Broadcast;
|
|
841
859
|
validateSchema: ValidateSchema;
|
|
860
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
861
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
842
862
|
};
|
|
843
863
|
|
|
844
864
|
/**
|
|
845
865
|
* 安装domain
|
|
866
|
+
* @param descriptor domain组件描述
|
|
846
867
|
* @param name 名称
|
|
847
|
-
* @param
|
|
848
|
-
* @param ignores 忽略的属性
|
|
849
|
-
* @param exposes 暴露的方法
|
|
868
|
+
* @param broadcastCallbacks 消息
|
|
850
869
|
* @returns
|
|
851
870
|
*/
|
|
852
|
-
export declare function defineDomain(
|
|
871
|
+
export declare function defineDomain(descriptor: DomainComponentDescriptor, name: string | null, messageListeners?: Record<string, BroadcastCallback>): {
|
|
872
|
+
domain: Domain;
|
|
873
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
874
|
+
};
|
|
853
875
|
|
|
854
876
|
/**
|
|
855
877
|
* 定义domain item属性
|
|
@@ -859,6 +881,7 @@ export declare function defineDomainItemProperty(props: {
|
|
|
859
881
|
readonly?: boolean | string;
|
|
860
882
|
browse?: 'off' | 'on';
|
|
861
883
|
}): {
|
|
884
|
+
itemTemplateRef: Ref<any, any>;
|
|
862
885
|
innerDisabled: Ref<boolean, boolean>;
|
|
863
886
|
disabled: Ref<boolean, boolean>;
|
|
864
887
|
innerReadonly: Ref<boolean, boolean>;
|
|
@@ -868,9 +891,20 @@ export declare function defineDomainItemProperty(props: {
|
|
|
868
891
|
|
|
869
892
|
/**
|
|
870
893
|
* 定义domain item
|
|
894
|
+
* @param descriptor 组件描述
|
|
895
|
+
* @param name 名称
|
|
896
|
+
* @param broadcastCallbacks 消息
|
|
871
897
|
* @returns
|
|
872
898
|
*/
|
|
873
|
-
export declare function defineItem(descriptor:
|
|
899
|
+
export declare function defineItem(descriptor: ComponentDescriptor, name?: string, broadcastCallbacks?: Record<string, BroadcastCallback>): {
|
|
900
|
+
broadcast: Broadcast;
|
|
901
|
+
validateSchema: ValidateSchema;
|
|
902
|
+
emitEvent: (type: string, ...args: any[]) => void;
|
|
903
|
+
onEvent: (type: string, listener: EventListener_2) => void;
|
|
904
|
+
offEvent: (type: string, listener: EventListener_2) => void;
|
|
905
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
906
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
907
|
+
};
|
|
874
908
|
|
|
875
909
|
/**
|
|
876
910
|
* 创建page state
|
|
@@ -882,12 +916,15 @@ export declare function definePageState(domain: Domain, overrideProps?: Record<s
|
|
|
882
916
|
|
|
883
917
|
/**
|
|
884
918
|
* 定义simple item
|
|
919
|
+
* @param descriptor simple组件描述
|
|
885
920
|
* @returns
|
|
886
921
|
*/
|
|
887
|
-
export declare function defineSimpleItem(): {
|
|
922
|
+
export declare function defineSimpleItem(descriptor: SimpleComponentDescriptor): {
|
|
888
923
|
emitEvent: (type: string, ...args: any[]) => void;
|
|
889
924
|
onEvent: (type: string, listener: EventListener_2) => void;
|
|
890
925
|
offEvent: (type: string, listener: EventListener_2) => void;
|
|
926
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
927
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
891
928
|
};
|
|
892
929
|
|
|
893
930
|
/**
|
|
@@ -896,23 +933,6 @@ export declare function defineSimpleItem(): {
|
|
|
896
933
|
*/
|
|
897
934
|
export declare function deleteGlobalValidator(type: string): void;
|
|
898
935
|
|
|
899
|
-
/**
|
|
900
|
-
* 组件描述
|
|
901
|
-
*/
|
|
902
|
-
export declare interface Descriptor {
|
|
903
|
-
componentName: string;
|
|
904
|
-
fieldName?: string;
|
|
905
|
-
valueName?: string;
|
|
906
|
-
valueType?: ValueType;
|
|
907
|
-
validate?: boolean;
|
|
908
|
-
readonly?: boolean;
|
|
909
|
-
disabled?: boolean;
|
|
910
|
-
pureDataValidate?: boolean;
|
|
911
|
-
validateHandler?: ValidateHandler;
|
|
912
|
-
validateCheckEvents?: string[];
|
|
913
|
-
validateResetEvents?: string[];
|
|
914
|
-
}
|
|
915
|
-
|
|
916
936
|
declare const _Dialog: {
|
|
917
937
|
(options: DialogOptions): DialogFunction;
|
|
918
938
|
install(app: any): void;
|
|
@@ -998,10 +1018,18 @@ export declare class Domain {
|
|
|
998
1018
|
private _validateSchema;
|
|
999
1019
|
get validateSchema(): ValidateSchema | null;
|
|
1000
1020
|
set validateSchema(val: ValidateSchema | null);
|
|
1021
|
+
/**
|
|
1022
|
+
* component public expose
|
|
1023
|
+
*/
|
|
1024
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
1001
1025
|
/**
|
|
1002
1026
|
* 属性集合
|
|
1003
1027
|
*/
|
|
1004
1028
|
private _props;
|
|
1029
|
+
/**
|
|
1030
|
+
* 本地数据集合
|
|
1031
|
+
*/
|
|
1032
|
+
private _datas;
|
|
1005
1033
|
/**
|
|
1006
1034
|
* 构造函数
|
|
1007
1035
|
* @param name
|
|
@@ -1011,11 +1039,34 @@ export declare class Domain {
|
|
|
1011
1039
|
* 销毁
|
|
1012
1040
|
*/
|
|
1013
1041
|
destroy(): void;
|
|
1042
|
+
/**
|
|
1043
|
+
* 设置数据
|
|
1044
|
+
* @param key
|
|
1045
|
+
* @param data
|
|
1046
|
+
*/
|
|
1047
|
+
setData(key: string | number | symbol, data: any): void;
|
|
1048
|
+
/**
|
|
1049
|
+
* 获取本地数据
|
|
1050
|
+
* @param key
|
|
1051
|
+
*/
|
|
1052
|
+
getData(key: string | number | symbol): any;
|
|
1053
|
+
/**
|
|
1054
|
+
* 是否有本地数据
|
|
1055
|
+
* @param key
|
|
1056
|
+
* @returns
|
|
1057
|
+
*/
|
|
1058
|
+
hasData(key: string | number | symbol): boolean;
|
|
1059
|
+
/**
|
|
1060
|
+
* 删除本地数据
|
|
1061
|
+
* @param key
|
|
1062
|
+
* @returns
|
|
1063
|
+
*/
|
|
1064
|
+
deleteData(key: string | number | symbol): boolean;
|
|
1014
1065
|
/**
|
|
1015
1066
|
* 合并属性
|
|
1016
1067
|
* @param props
|
|
1017
1068
|
*/
|
|
1018
|
-
merge(props: Record<string | number, any>, ignores?:
|
|
1069
|
+
merge(props: Record<string | number, any>, ignores?: string[]): void;
|
|
1019
1070
|
/**
|
|
1020
1071
|
* 判断是否有属性
|
|
1021
1072
|
*/
|
|
@@ -1059,20 +1110,15 @@ export declare class Domain {
|
|
|
1059
1110
|
}
|
|
1060
1111
|
|
|
1061
1112
|
/**
|
|
1062
|
-
*
|
|
1113
|
+
* Domain组件描述
|
|
1063
1114
|
*/
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
emitEvent: {
|
|
1068
|
-
(type: string, ...args: any[]): void;
|
|
1069
|
-
};
|
|
1070
|
-
onEvent: {
|
|
1071
|
-
(type: string, listener: EventListener_2): void;
|
|
1072
|
-
};
|
|
1073
|
-
offEvent: {
|
|
1074
|
-
(type: string, listener: EventListener_2): void;
|
|
1115
|
+
declare interface DomainComponentDescriptor {
|
|
1116
|
+
props?: Record<string, any> | {
|
|
1117
|
+
(): Record<string, any>;
|
|
1075
1118
|
};
|
|
1119
|
+
ignorePropKeys?: string[];
|
|
1120
|
+
context: FoxSetupContext;
|
|
1121
|
+
templateRefProxy?: FoxTemplateRefProxy;
|
|
1076
1122
|
}
|
|
1077
1123
|
|
|
1078
1124
|
/**
|
|
@@ -1080,6 +1126,11 @@ export declare interface DomainItem {
|
|
|
1080
1126
|
*/
|
|
1081
1127
|
export declare const DomainKey: unique symbol;
|
|
1082
1128
|
|
|
1129
|
+
/**
|
|
1130
|
+
* exposed
|
|
1131
|
+
*/
|
|
1132
|
+
declare type EmitFn = (...args: any) => void;
|
|
1133
|
+
|
|
1083
1134
|
/**
|
|
1084
1135
|
* event listener
|
|
1085
1136
|
*/
|
|
@@ -1095,6 +1146,11 @@ declare interface EventListener_2 {
|
|
|
1095
1146
|
*/
|
|
1096
1147
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
1097
1148
|
|
|
1149
|
+
/**
|
|
1150
|
+
* expose function
|
|
1151
|
+
*/
|
|
1152
|
+
declare type ExposeFn = (exposed?: Record<string, any>) => void;
|
|
1153
|
+
|
|
1098
1154
|
/**
|
|
1099
1155
|
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
1100
1156
|
*
|
|
@@ -1111,7 +1167,34 @@ export declare function extend(...args: any[]): any;
|
|
|
1111
1167
|
*/
|
|
1112
1168
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
1113
1169
|
|
|
1114
|
-
|
|
1170
|
+
/**
|
|
1171
|
+
* component public exposed
|
|
1172
|
+
*/
|
|
1173
|
+
declare type FoxComponentPublicExposed = Record<string | number | symbol, any>;
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* component public exposed
|
|
1177
|
+
*/
|
|
1178
|
+
declare type FoxComponentPublicProxy = {
|
|
1179
|
+
exposed: FoxComponentPublicExposed;
|
|
1180
|
+
$el?: HTMLElement;
|
|
1181
|
+
props: Record<string, any>;
|
|
1182
|
+
attrs: Record<string, any>;
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* Fox setup context
|
|
1187
|
+
*/
|
|
1188
|
+
declare type FoxSetupContext = {
|
|
1189
|
+
attrs: Record<string, any>;
|
|
1190
|
+
emit: EmitFn;
|
|
1191
|
+
expose: ExposeFn;
|
|
1192
|
+
};
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* template ref proxy
|
|
1196
|
+
*/
|
|
1197
|
+
declare type FoxTemplateRefProxy = any;
|
|
1115
1198
|
|
|
1116
1199
|
/**
|
|
1117
1200
|
* Fox UI
|
|
@@ -1139,6 +1222,11 @@ declare interface FoxUI {
|
|
|
1139
1222
|
* @param getter
|
|
1140
1223
|
*/
|
|
1141
1224
|
setScopeGetter(getter: ScopeGetter): void;
|
|
1225
|
+
/**
|
|
1226
|
+
* 获取scope getter
|
|
1227
|
+
* @param getter
|
|
1228
|
+
*/
|
|
1229
|
+
getScopeGetter(): ScopeGetter | null;
|
|
1142
1230
|
/**
|
|
1143
1231
|
* 设置API
|
|
1144
1232
|
* @param name
|
|
@@ -1148,11 +1236,10 @@ declare interface FoxUI {
|
|
|
1148
1236
|
setAPI(name: string, func: any, scope?: string): void;
|
|
1149
1237
|
/**
|
|
1150
1238
|
* 获取API
|
|
1151
|
-
* @param proxy
|
|
1152
1239
|
* @param name
|
|
1153
1240
|
* @param scope
|
|
1154
1241
|
*/
|
|
1155
|
-
getAPI(
|
|
1242
|
+
getAPI(name: string, scope?: string): any | null;
|
|
1156
1243
|
/**
|
|
1157
1244
|
* 批量增加api
|
|
1158
1245
|
* @param apis
|
|
@@ -1207,6 +1294,10 @@ declare class FoxUIApp implements FoxUI {
|
|
|
1207
1294
|
* @param getter
|
|
1208
1295
|
*/
|
|
1209
1296
|
setScopeGetter(getter: ScopeGetter): void;
|
|
1297
|
+
/**
|
|
1298
|
+
* 获取scope getter
|
|
1299
|
+
*/
|
|
1300
|
+
getScopeGetter(): ScopeGetter | null;
|
|
1210
1301
|
/**
|
|
1211
1302
|
* 设置API
|
|
1212
1303
|
* @param name
|
|
@@ -1216,11 +1307,10 @@ declare class FoxUIApp implements FoxUI {
|
|
|
1216
1307
|
setAPI(name: string, api: any, scope?: string): void;
|
|
1217
1308
|
/**
|
|
1218
1309
|
* 获取API
|
|
1219
|
-
* @param proxy
|
|
1220
1310
|
* @param name
|
|
1221
1311
|
* @param scope
|
|
1222
1312
|
*/
|
|
1223
|
-
getAPI(
|
|
1313
|
+
getAPI(name: string, scope?: string): any | null;
|
|
1224
1314
|
/**
|
|
1225
1315
|
* 批量增加api
|
|
1226
1316
|
* @param apis
|
|
@@ -1990,9 +2080,10 @@ export declare interface SafeAreaInset {
|
|
|
1990
2080
|
|
|
1991
2081
|
/**
|
|
1992
2082
|
* scope getter
|
|
2083
|
+
* 需要保证该函数能够在 InjectionContext 上下文中允许
|
|
1993
2084
|
*/
|
|
1994
2085
|
declare interface ScopeGetter {
|
|
1995
|
-
(
|
|
2086
|
+
(): string | null;
|
|
1996
2087
|
}
|
|
1997
2088
|
|
|
1998
2089
|
/**
|
|
@@ -2025,6 +2116,13 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
|
2025
2116
|
*/
|
|
2026
2117
|
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
2027
2118
|
|
|
2119
|
+
/**
|
|
2120
|
+
* simple组件描述
|
|
2121
|
+
*/
|
|
2122
|
+
declare interface SimpleComponentDescriptor {
|
|
2123
|
+
context: FoxSetupContext;
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2028
2126
|
/**
|
|
2029
2127
|
* size
|
|
2030
2128
|
*/
|
|
@@ -2162,22 +2260,16 @@ export declare function updatePageState(state: PageState, pageLayout: any, overr
|
|
|
2162
2260
|
|
|
2163
2261
|
/**
|
|
2164
2262
|
* 使用broadcast
|
|
2165
|
-
* @param
|
|
2263
|
+
* @param expose
|
|
2166
2264
|
* @returns
|
|
2167
2265
|
*/
|
|
2168
|
-
export declare function useBroadcast(
|
|
2266
|
+
export declare function useBroadcast(exposed?: FoxComponentPublicExposed): Broadcast | null;
|
|
2169
2267
|
|
|
2170
2268
|
/**
|
|
2171
2269
|
* 获取当前domain
|
|
2172
2270
|
* @returns
|
|
2173
2271
|
*/
|
|
2174
|
-
export declare function useDomain(
|
|
2175
|
-
|
|
2176
|
-
/**
|
|
2177
|
-
* use expose
|
|
2178
|
-
* @param apis
|
|
2179
|
-
*/
|
|
2180
|
-
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
2272
|
+
export declare function useDomain(): Domain | null;
|
|
2181
2273
|
|
|
2182
2274
|
/**
|
|
2183
2275
|
* 获取内部可用size
|
|
@@ -2266,55 +2358,39 @@ export declare function useTouch(): {
|
|
|
2266
2358
|
isHorizontal: () => boolean;
|
|
2267
2359
|
};
|
|
2268
2360
|
|
|
2269
|
-
/**
|
|
2270
|
-
* 校验条件
|
|
2271
|
-
*/
|
|
2272
|
-
export declare interface ValidateCondition {
|
|
2273
|
-
deep?: boolean;
|
|
2274
|
-
include?: string[];
|
|
2275
|
-
exclude?: string[];
|
|
2276
|
-
ignoreHidden?: boolean;
|
|
2277
|
-
ignoreDisabled?: boolean;
|
|
2278
|
-
ignoreReadonly?: boolean;
|
|
2279
|
-
}
|
|
2280
|
-
|
|
2281
2361
|
/**
|
|
2282
2362
|
* 校验器handler
|
|
2283
2363
|
*/
|
|
2284
|
-
|
|
2364
|
+
declare interface ValidateHandler {
|
|
2285
2365
|
/**
|
|
2286
2366
|
* 错误处理
|
|
2287
2367
|
* @param errorMsg
|
|
2288
2368
|
* @param proxy
|
|
2289
2369
|
*
|
|
2290
2370
|
*/
|
|
2291
|
-
error?(errorMsg: string, proxy:
|
|
2371
|
+
error?(errorMsg: string, proxy: FoxComponentPublicProxy): void;
|
|
2292
2372
|
/**
|
|
2293
2373
|
* 重置处理
|
|
2294
2374
|
* @param proxy
|
|
2295
|
-
*
|
|
2296
2375
|
*/
|
|
2297
|
-
reset?(proxy:
|
|
2376
|
+
reset?(proxy: FoxComponentPublicProxy): void;
|
|
2298
2377
|
/**
|
|
2299
2378
|
* 成功处理
|
|
2300
2379
|
* @param proxy
|
|
2301
|
-
*
|
|
2302
2380
|
*/
|
|
2303
|
-
success?(proxy:
|
|
2381
|
+
success?(proxy: FoxComponentPublicProxy): void;
|
|
2304
2382
|
/**
|
|
2305
2383
|
* 规则装饰处理
|
|
2306
2384
|
* @param newRule
|
|
2307
2385
|
* @param oldRule
|
|
2308
2386
|
* @param proxy
|
|
2309
|
-
*
|
|
2310
2387
|
*/
|
|
2311
|
-
decorate?(newRule: Rule, oldRule: Rule, proxy:
|
|
2388
|
+
decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicProxy): void;
|
|
2312
2389
|
/**
|
|
2313
2390
|
* 获取value
|
|
2314
2391
|
* @param proxy
|
|
2315
|
-
*
|
|
2316
2392
|
*/
|
|
2317
|
-
getValue?(proxy:
|
|
2393
|
+
getValue?(proxy: FoxComponentPublicProxy): any;
|
|
2318
2394
|
}
|
|
2319
2395
|
|
|
2320
2396
|
/**
|
|
@@ -2342,7 +2418,7 @@ export declare class ValidateSchema {
|
|
|
2342
2418
|
*/
|
|
2343
2419
|
private descriptor;
|
|
2344
2420
|
/**
|
|
2345
|
-
*
|
|
2421
|
+
* 组件public proxy
|
|
2346
2422
|
*/
|
|
2347
2423
|
private proxy;
|
|
2348
2424
|
/**
|
|
@@ -2355,7 +2431,7 @@ export declare class ValidateSchema {
|
|
|
2355
2431
|
* @param descriptor
|
|
2356
2432
|
* @param proxy
|
|
2357
2433
|
*/
|
|
2358
|
-
constructor(parent: ValidateSchema | null, descriptor:
|
|
2434
|
+
constructor(parent: ValidateSchema | null, descriptor: ComponentDescriptor, proxy: FoxComponentPublicProxy);
|
|
2359
2435
|
/**
|
|
2360
2436
|
* 初始化
|
|
2361
2437
|
*/
|
|
@@ -2455,6 +2531,6 @@ export declare function valueLength(val: unknown): number;
|
|
|
2455
2531
|
/**
|
|
2456
2532
|
* value 类型
|
|
2457
2533
|
*/
|
|
2458
|
-
|
|
2534
|
+
declare type ValueType = 'string' | 'number' | 'date';
|
|
2459
2535
|
|
|
2460
2536
|
export { }
|