@fox-js/foxui-pad 4.1.1-24 → 4.1.1-25
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 +1 -1
- package/dist/index.esm.js +7832 -7604
- package/dist/index.umd.js +1 -1
- package/dist/style.js +1 -1
- package/dist/types/index.d.ts +175 -98
- package/package.json +1 -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 { DefineSetupFnComponent } from 'vue';
|
|
6
4
|
import { divide } from '@fox-js/big-decimal';
|
|
7
5
|
import { ExecuteValidator } from '@fox-js/validator';
|
|
@@ -161,9 +159,9 @@ export declare class Broadcast {
|
|
|
161
159
|
*/
|
|
162
160
|
private callbacks;
|
|
163
161
|
/**
|
|
164
|
-
* vue
|
|
162
|
+
* vue exposed
|
|
165
163
|
*/
|
|
166
|
-
private
|
|
164
|
+
private exposed;
|
|
167
165
|
/**
|
|
168
166
|
* 名称
|
|
169
167
|
*/
|
|
@@ -175,10 +173,10 @@ export declare class Broadcast {
|
|
|
175
173
|
/**
|
|
176
174
|
* 构造函数
|
|
177
175
|
* @param parent
|
|
178
|
-
* @param
|
|
176
|
+
* @param exposed
|
|
179
177
|
* @param name
|
|
180
178
|
*/
|
|
181
|
-
constructor(parent: Broadcast | null,
|
|
179
|
+
constructor(parent: Broadcast | null, exposed: FoxComponentPublicExposed, name?: string);
|
|
182
180
|
/**
|
|
183
181
|
* 加入孩子节点
|
|
184
182
|
* @param child
|
|
@@ -293,25 +291,46 @@ export declare function clearNonNumber(value: string, allowDot?: boolean, allowM
|
|
|
293
291
|
|
|
294
292
|
export { compareTo }
|
|
295
293
|
|
|
294
|
+
/**
|
|
295
|
+
* 组件描述
|
|
296
|
+
*/
|
|
297
|
+
declare interface ComponentDescriptor {
|
|
298
|
+
componentName: string;
|
|
299
|
+
readonly?: boolean;
|
|
300
|
+
disabled?: boolean;
|
|
301
|
+
props?: Record<string, any>;
|
|
302
|
+
ignorePropKeys?: string[];
|
|
303
|
+
context: FoxSetupContext;
|
|
304
|
+
templateRefProxy?: FoxTemplateRefProxy;
|
|
305
|
+
fieldName?: string;
|
|
306
|
+
valueName?: string;
|
|
307
|
+
valueType?: ValueType;
|
|
308
|
+
validate?: boolean;
|
|
309
|
+
pureDataValidate?: boolean;
|
|
310
|
+
validateHandler?: ValidateHandler;
|
|
311
|
+
validateCheckEvents?: string[];
|
|
312
|
+
validateResetEvents?: string[];
|
|
313
|
+
}
|
|
314
|
+
|
|
296
315
|
/**
|
|
297
316
|
* 创建broadcast
|
|
298
317
|
*
|
|
299
|
-
* @param
|
|
318
|
+
* @param expose
|
|
300
319
|
* @param parent
|
|
301
320
|
* @param name
|
|
302
321
|
* @param callbacks
|
|
303
322
|
* @returns
|
|
304
323
|
*/
|
|
305
|
-
export declare function createBroadcast(
|
|
324
|
+
export declare function createBroadcast(exposed: FoxComponentPublicExposed, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
|
|
306
325
|
|
|
307
326
|
/**
|
|
308
327
|
* 创建校验schema
|
|
309
|
-
* @param
|
|
328
|
+
* @param exposed
|
|
310
329
|
* @param parent
|
|
311
330
|
* @param descriptor
|
|
312
331
|
* @returns
|
|
313
332
|
*/
|
|
314
|
-
export declare function createValidateSchema(
|
|
333
|
+
export declare function createValidateSchema(exposed: FoxComponentPublicExposed, parent: ValidateSchema | null, descriptor: ComponentDescriptor): ValidateSchema;
|
|
315
334
|
|
|
316
335
|
/**
|
|
317
336
|
* data items key
|
|
@@ -672,41 +691,44 @@ declare const _default_9: DefineSetupFnComponent<Record<string, any>, {}, {}, Re
|
|
|
672
691
|
export { _default_9 as FoxRowItem }
|
|
673
692
|
export { _default_9 as RowItem }
|
|
674
693
|
|
|
675
|
-
/**
|
|
676
|
-
* anyNode
|
|
677
|
-
* @param name
|
|
678
|
-
* @param callbacks
|
|
679
|
-
* @returns
|
|
680
|
-
*/
|
|
681
|
-
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
|
|
682
|
-
|
|
683
694
|
/**
|
|
684
695
|
* 安装config domain
|
|
696
|
+
* @param descriptor domain组件描述
|
|
685
697
|
* @param name 名称
|
|
686
|
-
* @param props 属性
|
|
687
|
-
* @param ignores 忽略的属性
|
|
688
698
|
* @returns
|
|
689
699
|
*/
|
|
690
|
-
export declare function defineConfigDomain(
|
|
700
|
+
export declare function defineConfigDomain(descriptor: DomainComponentDescriptor, name: string | null): {
|
|
701
|
+
domain: Domain;
|
|
702
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
703
|
+
};
|
|
691
704
|
|
|
692
705
|
/**
|
|
693
|
-
* 定义
|
|
706
|
+
* 定义data item
|
|
707
|
+
* @param domain domain
|
|
708
|
+
* @param name 名称
|
|
709
|
+
* @param descriptor 描述
|
|
710
|
+
* @param parentBroadcast parent broadcast
|
|
711
|
+
* @param parentValidateSchema parent validateSchema
|
|
694
712
|
* @returns
|
|
695
713
|
*/
|
|
696
|
-
export declare function defineDataItem(domain: Domain, name: string, descriptor:
|
|
714
|
+
export declare function defineDataItem(domain: Domain, name: string, descriptor: ComponentDescriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
|
|
697
715
|
broadcast: Broadcast;
|
|
698
716
|
validateSchema: ValidateSchema;
|
|
717
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
718
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
699
719
|
};
|
|
700
720
|
|
|
701
721
|
/**
|
|
702
722
|
* 安装domain
|
|
723
|
+
* @param descriptor domain组件描述
|
|
703
724
|
* @param name 名称
|
|
704
|
-
* @param
|
|
705
|
-
* @param ignores 忽略的属性
|
|
706
|
-
* @param exposes 暴露的方法
|
|
725
|
+
* @param broadcastCallbacks 消息
|
|
707
726
|
* @returns
|
|
708
727
|
*/
|
|
709
|
-
export declare function defineDomain(
|
|
728
|
+
export declare function defineDomain(descriptor: DomainComponentDescriptor, name: string | null, messageListeners?: Record<string, BroadcastCallback>): {
|
|
729
|
+
domain: Domain;
|
|
730
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
731
|
+
};
|
|
710
732
|
|
|
711
733
|
/**
|
|
712
734
|
* 定义domain item属性
|
|
@@ -716,6 +738,7 @@ export declare function defineDomainItemProperty(props: {
|
|
|
716
738
|
readonly?: boolean | string;
|
|
717
739
|
browse?: 'off' | 'on';
|
|
718
740
|
}): {
|
|
741
|
+
itemTemplateRef: Ref<any, any>;
|
|
719
742
|
innerDisabled: Ref<boolean, boolean>;
|
|
720
743
|
disabled: Ref<boolean, boolean>;
|
|
721
744
|
innerReadonly: Ref<boolean, boolean>;
|
|
@@ -725,9 +748,20 @@ export declare function defineDomainItemProperty(props: {
|
|
|
725
748
|
|
|
726
749
|
/**
|
|
727
750
|
* 定义domain item
|
|
751
|
+
* @param descriptor 组件描述
|
|
752
|
+
* @param name 名称
|
|
753
|
+
* @param broadcastCallbacks 消息
|
|
728
754
|
* @returns
|
|
729
755
|
*/
|
|
730
|
-
export declare function defineItem(descriptor:
|
|
756
|
+
export declare function defineItem(descriptor: ComponentDescriptor, name?: string, broadcastCallbacks?: Record<string, BroadcastCallback>): {
|
|
757
|
+
broadcast: Broadcast;
|
|
758
|
+
validateSchema: ValidateSchema;
|
|
759
|
+
emitEvent: (type: string, ...args: any[]) => void;
|
|
760
|
+
onEvent: (type: string, listener: EventListener_2) => void;
|
|
761
|
+
offEvent: (type: string, listener: EventListener_2) => void;
|
|
762
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
763
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
764
|
+
};
|
|
731
765
|
|
|
732
766
|
/**
|
|
733
767
|
* 创建page state
|
|
@@ -739,12 +773,15 @@ export declare function definePageState(domain: Domain, overrideProps?: Record<s
|
|
|
739
773
|
|
|
740
774
|
/**
|
|
741
775
|
* 定义simple item
|
|
776
|
+
* @param descriptor simple组件描述
|
|
742
777
|
* @returns
|
|
743
778
|
*/
|
|
744
|
-
export declare function defineSimpleItem(): {
|
|
779
|
+
export declare function defineSimpleItem(descriptor: SimpleComponentDescriptor): {
|
|
745
780
|
emitEvent: (type: string, ...args: any[]) => void;
|
|
746
781
|
onEvent: (type: string, listener: EventListener_2) => void;
|
|
747
782
|
offEvent: (type: string, listener: EventListener_2) => void;
|
|
783
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
784
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
748
785
|
};
|
|
749
786
|
|
|
750
787
|
/**
|
|
@@ -753,23 +790,6 @@ export declare function defineSimpleItem(): {
|
|
|
753
790
|
*/
|
|
754
791
|
export declare function deleteGlobalValidator(type: string): void;
|
|
755
792
|
|
|
756
|
-
/**
|
|
757
|
-
* 组件描述
|
|
758
|
-
*/
|
|
759
|
-
export declare interface Descriptor {
|
|
760
|
-
componentName: string;
|
|
761
|
-
fieldName?: string;
|
|
762
|
-
valueName?: string;
|
|
763
|
-
valueType?: ValueType;
|
|
764
|
-
validate?: boolean;
|
|
765
|
-
readonly?: boolean;
|
|
766
|
-
disabled?: boolean;
|
|
767
|
-
pureDataValidate?: boolean;
|
|
768
|
-
validateHandler?: ValidateHandler;
|
|
769
|
-
validateCheckEvents?: string[];
|
|
770
|
-
validateResetEvents?: string[];
|
|
771
|
-
}
|
|
772
|
-
|
|
773
793
|
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
774
794
|
|
|
775
795
|
/**
|
|
@@ -807,10 +827,18 @@ export declare class Domain {
|
|
|
807
827
|
private _validateSchema;
|
|
808
828
|
get validateSchema(): ValidateSchema | null;
|
|
809
829
|
set validateSchema(val: ValidateSchema | null);
|
|
830
|
+
/**
|
|
831
|
+
* component public expose
|
|
832
|
+
*/
|
|
833
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
810
834
|
/**
|
|
811
835
|
* 属性集合
|
|
812
836
|
*/
|
|
813
837
|
private _props;
|
|
838
|
+
/**
|
|
839
|
+
* 本地数据集合
|
|
840
|
+
*/
|
|
841
|
+
private _datas;
|
|
814
842
|
/**
|
|
815
843
|
* 构造函数
|
|
816
844
|
* @param name
|
|
@@ -820,11 +848,34 @@ export declare class Domain {
|
|
|
820
848
|
* 销毁
|
|
821
849
|
*/
|
|
822
850
|
destroy(): void;
|
|
851
|
+
/**
|
|
852
|
+
* 设置数据
|
|
853
|
+
* @param key
|
|
854
|
+
* @param data
|
|
855
|
+
*/
|
|
856
|
+
setData(key: string | number | symbol, data: any): void;
|
|
857
|
+
/**
|
|
858
|
+
* 获取本地数据
|
|
859
|
+
* @param key
|
|
860
|
+
*/
|
|
861
|
+
getData(key: string | number | symbol): any;
|
|
862
|
+
/**
|
|
863
|
+
* 是否有本地数据
|
|
864
|
+
* @param key
|
|
865
|
+
* @returns
|
|
866
|
+
*/
|
|
867
|
+
hasData(key: string | number | symbol): boolean;
|
|
868
|
+
/**
|
|
869
|
+
* 删除本地数据
|
|
870
|
+
* @param key
|
|
871
|
+
* @returns
|
|
872
|
+
*/
|
|
873
|
+
deleteData(key: string | number | symbol): boolean;
|
|
823
874
|
/**
|
|
824
875
|
* 合并属性
|
|
825
876
|
* @param props
|
|
826
877
|
*/
|
|
827
|
-
merge(props: Record<string | number, any>, ignores?:
|
|
878
|
+
merge(props: Record<string | number, any>, ignores?: string[]): void;
|
|
828
879
|
/**
|
|
829
880
|
* 判断是否有属性
|
|
830
881
|
*/
|
|
@@ -868,20 +919,15 @@ export declare class Domain {
|
|
|
868
919
|
}
|
|
869
920
|
|
|
870
921
|
/**
|
|
871
|
-
*
|
|
922
|
+
* Domain组件描述
|
|
872
923
|
*/
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
emitEvent: {
|
|
877
|
-
(type: string, ...args: any[]): void;
|
|
878
|
-
};
|
|
879
|
-
onEvent: {
|
|
880
|
-
(type: string, listener: EventListener_2): void;
|
|
881
|
-
};
|
|
882
|
-
offEvent: {
|
|
883
|
-
(type: string, listener: EventListener_2): void;
|
|
924
|
+
declare interface DomainComponentDescriptor {
|
|
925
|
+
props?: Record<string, any> | {
|
|
926
|
+
(): Record<string, any>;
|
|
884
927
|
};
|
|
928
|
+
ignorePropKeys?: string[];
|
|
929
|
+
context: FoxSetupContext;
|
|
930
|
+
templateRefProxy?: FoxTemplateRefProxy;
|
|
885
931
|
}
|
|
886
932
|
|
|
887
933
|
/**
|
|
@@ -889,6 +935,11 @@ export declare interface DomainItem {
|
|
|
889
935
|
*/
|
|
890
936
|
export declare const DomainKey: unique symbol;
|
|
891
937
|
|
|
938
|
+
/**
|
|
939
|
+
* exposed
|
|
940
|
+
*/
|
|
941
|
+
declare type EmitFn = (...args: any) => void;
|
|
942
|
+
|
|
892
943
|
/**
|
|
893
944
|
* event listener
|
|
894
945
|
*/
|
|
@@ -904,6 +955,11 @@ declare interface EventListener_2 {
|
|
|
904
955
|
*/
|
|
905
956
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
906
957
|
|
|
958
|
+
/**
|
|
959
|
+
* expose function
|
|
960
|
+
*/
|
|
961
|
+
declare type ExposeFn = (exposed?: Record<string, any>) => void;
|
|
962
|
+
|
|
907
963
|
/**
|
|
908
964
|
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
909
965
|
*
|
|
@@ -978,7 +1034,20 @@ export { FoxCollapseTransition }
|
|
|
978
1034
|
|
|
979
1035
|
export { FoxColorPicker }
|
|
980
1036
|
|
|
981
|
-
|
|
1037
|
+
/**
|
|
1038
|
+
* component public exposed
|
|
1039
|
+
*/
|
|
1040
|
+
declare type FoxComponentPublicExposed = Record<string | number | symbol, any>;
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* component public exposed
|
|
1044
|
+
*/
|
|
1045
|
+
declare type FoxComponentPublicProxy = {
|
|
1046
|
+
exposed: FoxComponentPublicExposed;
|
|
1047
|
+
$el?: HTMLElement;
|
|
1048
|
+
props: Record<string, any>;
|
|
1049
|
+
attrs: Record<string, any>;
|
|
1050
|
+
};
|
|
982
1051
|
|
|
983
1052
|
export { FoxConfigProvider }
|
|
984
1053
|
|
|
@@ -1080,6 +1149,15 @@ export { FoxSelect }
|
|
|
1080
1149
|
|
|
1081
1150
|
export { FoxSelectV2 }
|
|
1082
1151
|
|
|
1152
|
+
/**
|
|
1153
|
+
* Fox setup context
|
|
1154
|
+
*/
|
|
1155
|
+
declare type FoxSetupContext = {
|
|
1156
|
+
attrs: Record<string, any>;
|
|
1157
|
+
emit: EmitFn;
|
|
1158
|
+
expose: ExposeFn;
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1083
1161
|
export { FoxSkeleton }
|
|
1084
1162
|
|
|
1085
1163
|
export { FoxSkeletonItem }
|
|
@@ -1110,6 +1188,11 @@ export { FoxTabs }
|
|
|
1110
1188
|
|
|
1111
1189
|
export { FoxTag }
|
|
1112
1190
|
|
|
1191
|
+
/**
|
|
1192
|
+
* template ref proxy
|
|
1193
|
+
*/
|
|
1194
|
+
declare type FoxTemplateRefProxy = any;
|
|
1195
|
+
|
|
1113
1196
|
export { FoxTimeline }
|
|
1114
1197
|
|
|
1115
1198
|
export { FoxTimelineItem }
|
|
@@ -1154,6 +1237,11 @@ declare interface FoxUI {
|
|
|
1154
1237
|
* @param getter
|
|
1155
1238
|
*/
|
|
1156
1239
|
setScopeGetter(getter: ScopeGetter): void;
|
|
1240
|
+
/**
|
|
1241
|
+
* 获取scope getter
|
|
1242
|
+
* @param getter
|
|
1243
|
+
*/
|
|
1244
|
+
getScopeGetter(): ScopeGetter | null;
|
|
1157
1245
|
/**
|
|
1158
1246
|
* 设置API
|
|
1159
1247
|
* @param name
|
|
@@ -1163,11 +1251,10 @@ declare interface FoxUI {
|
|
|
1163
1251
|
setAPI(name: string, func: any, scope?: string): void;
|
|
1164
1252
|
/**
|
|
1165
1253
|
* 获取API
|
|
1166
|
-
* @param proxy
|
|
1167
1254
|
* @param name
|
|
1168
1255
|
* @param scope
|
|
1169
1256
|
*/
|
|
1170
|
-
getAPI(
|
|
1257
|
+
getAPI(name: string, scope?: string): any | null;
|
|
1171
1258
|
/**
|
|
1172
1259
|
* 批量增加api
|
|
1173
1260
|
* @param apis
|
|
@@ -1243,6 +1330,10 @@ declare class FoxUIVue implements FoxUI {
|
|
|
1243
1330
|
* @param getter
|
|
1244
1331
|
*/
|
|
1245
1332
|
setScopeGetter(getter: ScopeGetter): void;
|
|
1333
|
+
/**
|
|
1334
|
+
* 获取scope getter
|
|
1335
|
+
*/
|
|
1336
|
+
getScopeGetter(): ScopeGetter | null;
|
|
1246
1337
|
/**
|
|
1247
1338
|
* 设置API
|
|
1248
1339
|
* @param name
|
|
@@ -1256,7 +1347,7 @@ declare class FoxUIVue implements FoxUI {
|
|
|
1256
1347
|
* @param name
|
|
1257
1348
|
* @param scope
|
|
1258
1349
|
*/
|
|
1259
|
-
getAPI(
|
|
1350
|
+
getAPI(name: string, scope?: string): any | null;
|
|
1260
1351
|
/**
|
|
1261
1352
|
* 批量增加api
|
|
1262
1353
|
* @param apis
|
|
@@ -1886,9 +1977,10 @@ export declare interface SafeAreaInset {
|
|
|
1886
1977
|
|
|
1887
1978
|
/**
|
|
1888
1979
|
* scope getter
|
|
1980
|
+
* 需要保证该函数能够在 InjectionContext 上下文中允许
|
|
1889
1981
|
*/
|
|
1890
1982
|
declare interface ScopeGetter {
|
|
1891
|
-
(
|
|
1983
|
+
(): string | null;
|
|
1892
1984
|
}
|
|
1893
1985
|
|
|
1894
1986
|
/**
|
|
@@ -1921,6 +2013,13 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
|
1921
2013
|
*/
|
|
1922
2014
|
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
1923
2015
|
|
|
2016
|
+
/**
|
|
2017
|
+
* simple组件描述
|
|
2018
|
+
*/
|
|
2019
|
+
declare interface SimpleComponentDescriptor {
|
|
2020
|
+
context: FoxSetupContext;
|
|
2021
|
+
}
|
|
2022
|
+
|
|
1924
2023
|
/**
|
|
1925
2024
|
* size
|
|
1926
2025
|
*/
|
|
@@ -2061,22 +2160,16 @@ export declare function updatePageState(state: PageState, pageLayout: any, overr
|
|
|
2061
2160
|
|
|
2062
2161
|
/**
|
|
2063
2162
|
* 使用broadcast
|
|
2064
|
-
* @param
|
|
2163
|
+
* @param expose
|
|
2065
2164
|
* @returns
|
|
2066
2165
|
*/
|
|
2067
|
-
export declare function useBroadcast(
|
|
2166
|
+
export declare function useBroadcast(exposed?: FoxComponentPublicExposed): Broadcast | null;
|
|
2068
2167
|
|
|
2069
2168
|
/**
|
|
2070
2169
|
* 获取当前domain
|
|
2071
2170
|
* @returns
|
|
2072
2171
|
*/
|
|
2073
|
-
export declare function useDomain(
|
|
2074
|
-
|
|
2075
|
-
/**
|
|
2076
|
-
* use expose
|
|
2077
|
-
* @param apis
|
|
2078
|
-
*/
|
|
2079
|
-
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
2172
|
+
export declare function useDomain(): Domain | null;
|
|
2080
2173
|
|
|
2081
2174
|
/**
|
|
2082
2175
|
* 获取内部可用size
|
|
@@ -2165,55 +2258,39 @@ export declare function useTouch(): {
|
|
|
2165
2258
|
isHorizontal: () => boolean;
|
|
2166
2259
|
};
|
|
2167
2260
|
|
|
2168
|
-
/**
|
|
2169
|
-
* 校验条件
|
|
2170
|
-
*/
|
|
2171
|
-
export declare interface ValidateCondition {
|
|
2172
|
-
deep?: boolean;
|
|
2173
|
-
include?: string[];
|
|
2174
|
-
exclude?: string[];
|
|
2175
|
-
ignoreHidden?: boolean;
|
|
2176
|
-
ignoreDisabled?: boolean;
|
|
2177
|
-
ignoreReadonly?: boolean;
|
|
2178
|
-
}
|
|
2179
|
-
|
|
2180
2261
|
/**
|
|
2181
2262
|
* 校验器handler
|
|
2182
2263
|
*/
|
|
2183
|
-
|
|
2264
|
+
declare interface ValidateHandler {
|
|
2184
2265
|
/**
|
|
2185
2266
|
* 错误处理
|
|
2186
2267
|
* @param errorMsg
|
|
2187
2268
|
* @param proxy
|
|
2188
2269
|
*
|
|
2189
2270
|
*/
|
|
2190
|
-
error?(errorMsg: string, proxy:
|
|
2271
|
+
error?(errorMsg: string, proxy: FoxComponentPublicProxy): void;
|
|
2191
2272
|
/**
|
|
2192
2273
|
* 重置处理
|
|
2193
2274
|
* @param proxy
|
|
2194
|
-
*
|
|
2195
2275
|
*/
|
|
2196
|
-
reset?(proxy:
|
|
2276
|
+
reset?(proxy: FoxComponentPublicProxy): void;
|
|
2197
2277
|
/**
|
|
2198
2278
|
* 成功处理
|
|
2199
2279
|
* @param proxy
|
|
2200
|
-
*
|
|
2201
2280
|
*/
|
|
2202
|
-
success?(proxy:
|
|
2281
|
+
success?(proxy: FoxComponentPublicProxy): void;
|
|
2203
2282
|
/**
|
|
2204
2283
|
* 规则装饰处理
|
|
2205
2284
|
* @param newRule
|
|
2206
2285
|
* @param oldRule
|
|
2207
2286
|
* @param proxy
|
|
2208
|
-
*
|
|
2209
2287
|
*/
|
|
2210
|
-
decorate?(newRule: Rule, oldRule: Rule, proxy:
|
|
2288
|
+
decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicProxy): void;
|
|
2211
2289
|
/**
|
|
2212
2290
|
* 获取value
|
|
2213
2291
|
* @param proxy
|
|
2214
|
-
*
|
|
2215
2292
|
*/
|
|
2216
|
-
getValue?(proxy:
|
|
2293
|
+
getValue?(proxy: FoxComponentPublicProxy): any;
|
|
2217
2294
|
}
|
|
2218
2295
|
|
|
2219
2296
|
/**
|
|
@@ -2241,7 +2318,7 @@ export declare class ValidateSchema {
|
|
|
2241
2318
|
*/
|
|
2242
2319
|
private descriptor;
|
|
2243
2320
|
/**
|
|
2244
|
-
*
|
|
2321
|
+
* 组件public proxy
|
|
2245
2322
|
*/
|
|
2246
2323
|
private proxy;
|
|
2247
2324
|
/**
|
|
@@ -2254,7 +2331,7 @@ export declare class ValidateSchema {
|
|
|
2254
2331
|
* @param descriptor
|
|
2255
2332
|
* @param proxy
|
|
2256
2333
|
*/
|
|
2257
|
-
constructor(parent: ValidateSchema | null, descriptor:
|
|
2334
|
+
constructor(parent: ValidateSchema | null, descriptor: ComponentDescriptor, proxy: FoxComponentPublicProxy);
|
|
2258
2335
|
/**
|
|
2259
2336
|
* 初始化
|
|
2260
2337
|
*/
|
|
@@ -2354,6 +2431,6 @@ export declare function valueLength(val: unknown): number;
|
|
|
2354
2431
|
/**
|
|
2355
2432
|
* value 类型
|
|
2356
2433
|
*/
|
|
2357
|
-
|
|
2434
|
+
declare type ValueType = 'string' | 'number' | 'date';
|
|
2358
2435
|
|
|
2359
2436
|
export { }
|