@fox-js/foxui-pc 4.1.1-30 → 4.1.1-32
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 +7439 -7241
- 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
|
|
@@ -640,41 +659,44 @@ declare const _default_9: DefineSetupFnComponent<Record<string, any>, {}, {}, Re
|
|
|
640
659
|
export { _default_9 as FoxRowItem }
|
|
641
660
|
export { _default_9 as RowItem }
|
|
642
661
|
|
|
643
|
-
/**
|
|
644
|
-
* anyNode
|
|
645
|
-
* @param name
|
|
646
|
-
* @param callbacks
|
|
647
|
-
* @returns
|
|
648
|
-
*/
|
|
649
|
-
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
|
|
650
|
-
|
|
651
662
|
/**
|
|
652
663
|
* 安装config domain
|
|
664
|
+
* @param descriptor domain组件描述
|
|
653
665
|
* @param name 名称
|
|
654
|
-
* @param props 属性
|
|
655
|
-
* @param ignores 忽略的属性
|
|
656
666
|
* @returns
|
|
657
667
|
*/
|
|
658
|
-
export declare function defineConfigDomain(
|
|
668
|
+
export declare function defineConfigDomain(descriptor: DomainComponentDescriptor, name: string | null): {
|
|
669
|
+
domain: Domain;
|
|
670
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
671
|
+
};
|
|
659
672
|
|
|
660
673
|
/**
|
|
661
|
-
* 定义
|
|
674
|
+
* 定义data item
|
|
675
|
+
* @param domain domain
|
|
676
|
+
* @param name 名称
|
|
677
|
+
* @param descriptor 描述
|
|
678
|
+
* @param parentBroadcast parent broadcast
|
|
679
|
+
* @param parentValidateSchema parent validateSchema
|
|
662
680
|
* @returns
|
|
663
681
|
*/
|
|
664
|
-
export declare function defineDataItem(domain: Domain, name: string, descriptor:
|
|
682
|
+
export declare function defineDataItem(domain: Domain, name: string, descriptor: ComponentDescriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
|
|
665
683
|
broadcast: Broadcast;
|
|
666
684
|
validateSchema: ValidateSchema;
|
|
685
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
686
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
667
687
|
};
|
|
668
688
|
|
|
669
689
|
/**
|
|
670
690
|
* 安装domain
|
|
691
|
+
* @param descriptor domain组件描述
|
|
671
692
|
* @param name 名称
|
|
672
|
-
* @param
|
|
673
|
-
* @param ignores 忽略的属性
|
|
674
|
-
* @param exposes 暴露的方法
|
|
693
|
+
* @param broadcastCallbacks 消息
|
|
675
694
|
* @returns
|
|
676
695
|
*/
|
|
677
|
-
export declare function defineDomain(
|
|
696
|
+
export declare function defineDomain(descriptor: DomainComponentDescriptor, name: string | null, messageListeners?: Record<string, BroadcastCallback>): {
|
|
697
|
+
domain: Domain;
|
|
698
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
699
|
+
};
|
|
678
700
|
|
|
679
701
|
/**
|
|
680
702
|
* 定义domain item属性
|
|
@@ -684,6 +706,7 @@ export declare function defineDomainItemProperty(props: {
|
|
|
684
706
|
readonly?: boolean | string;
|
|
685
707
|
browse?: 'off' | 'on';
|
|
686
708
|
}): {
|
|
709
|
+
itemTemplateRef: Ref<any, any>;
|
|
687
710
|
innerDisabled: Ref<boolean, boolean>;
|
|
688
711
|
disabled: Ref<boolean, boolean>;
|
|
689
712
|
innerReadonly: Ref<boolean, boolean>;
|
|
@@ -693,9 +716,20 @@ export declare function defineDomainItemProperty(props: {
|
|
|
693
716
|
|
|
694
717
|
/**
|
|
695
718
|
* 定义domain item
|
|
719
|
+
* @param descriptor 组件描述
|
|
720
|
+
* @param name 名称
|
|
721
|
+
* @param broadcastCallbacks 消息
|
|
696
722
|
* @returns
|
|
697
723
|
*/
|
|
698
|
-
export declare function defineItem(descriptor:
|
|
724
|
+
export declare function defineItem(descriptor: ComponentDescriptor, name?: string, broadcastCallbacks?: Record<string, BroadcastCallback>): {
|
|
725
|
+
broadcast: Broadcast;
|
|
726
|
+
validateSchema: ValidateSchema;
|
|
727
|
+
emitEvent: (type: string, ...args: any[]) => void;
|
|
728
|
+
onEvent: (type: string, listener: EventListener_2) => void;
|
|
729
|
+
offEvent: (type: string, listener: EventListener_2) => void;
|
|
730
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
731
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
732
|
+
};
|
|
699
733
|
|
|
700
734
|
/**
|
|
701
735
|
* 创建page state
|
|
@@ -707,12 +741,15 @@ export declare function definePageState(domain: Domain, overrideProps?: Record<s
|
|
|
707
741
|
|
|
708
742
|
/**
|
|
709
743
|
* 定义simple item
|
|
744
|
+
* @param descriptor simple组件描述
|
|
710
745
|
* @returns
|
|
711
746
|
*/
|
|
712
|
-
export declare function defineSimpleItem(): {
|
|
747
|
+
export declare function defineSimpleItem(descriptor: SimpleComponentDescriptor): {
|
|
713
748
|
emitEvent: (type: string, ...args: any[]) => void;
|
|
714
749
|
onEvent: (type: string, listener: EventListener_2) => void;
|
|
715
750
|
offEvent: (type: string, listener: EventListener_2) => void;
|
|
751
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
752
|
+
exposeApi: (exposed?: FoxComponentPublicExposed) => void;
|
|
716
753
|
};
|
|
717
754
|
|
|
718
755
|
/**
|
|
@@ -721,23 +758,6 @@ export declare function defineSimpleItem(): {
|
|
|
721
758
|
*/
|
|
722
759
|
export declare function deleteGlobalValidator(type: string): void;
|
|
723
760
|
|
|
724
|
-
/**
|
|
725
|
-
* 组件描述
|
|
726
|
-
*/
|
|
727
|
-
export declare interface Descriptor {
|
|
728
|
-
componentName: string;
|
|
729
|
-
fieldName?: string;
|
|
730
|
-
valueName?: string;
|
|
731
|
-
valueType?: ValueType;
|
|
732
|
-
validate?: boolean;
|
|
733
|
-
readonly?: boolean;
|
|
734
|
-
disabled?: boolean;
|
|
735
|
-
pureDataValidate?: boolean;
|
|
736
|
-
validateHandler?: ValidateHandler;
|
|
737
|
-
validateCheckEvents?: string[];
|
|
738
|
-
validateResetEvents?: string[];
|
|
739
|
-
}
|
|
740
|
-
|
|
741
761
|
declare type Direction = '' | 'vertical' | 'horizontal';
|
|
742
762
|
|
|
743
763
|
/**
|
|
@@ -775,10 +795,18 @@ export declare class Domain {
|
|
|
775
795
|
private _validateSchema;
|
|
776
796
|
get validateSchema(): ValidateSchema | null;
|
|
777
797
|
set validateSchema(val: ValidateSchema | null);
|
|
798
|
+
/**
|
|
799
|
+
* component public expose
|
|
800
|
+
*/
|
|
801
|
+
componentPublicExposed: FoxComponentPublicExposed;
|
|
778
802
|
/**
|
|
779
803
|
* 属性集合
|
|
780
804
|
*/
|
|
781
805
|
private _props;
|
|
806
|
+
/**
|
|
807
|
+
* 本地数据集合
|
|
808
|
+
*/
|
|
809
|
+
private _datas;
|
|
782
810
|
/**
|
|
783
811
|
* 构造函数
|
|
784
812
|
* @param name
|
|
@@ -788,11 +816,34 @@ export declare class Domain {
|
|
|
788
816
|
* 销毁
|
|
789
817
|
*/
|
|
790
818
|
destroy(): void;
|
|
819
|
+
/**
|
|
820
|
+
* 设置数据
|
|
821
|
+
* @param key
|
|
822
|
+
* @param data
|
|
823
|
+
*/
|
|
824
|
+
setData(key: string | number | symbol, data: any): void;
|
|
825
|
+
/**
|
|
826
|
+
* 获取本地数据
|
|
827
|
+
* @param key
|
|
828
|
+
*/
|
|
829
|
+
getData(key: string | number | symbol): any;
|
|
830
|
+
/**
|
|
831
|
+
* 是否有本地数据
|
|
832
|
+
* @param key
|
|
833
|
+
* @returns
|
|
834
|
+
*/
|
|
835
|
+
hasData(key: string | number | symbol): boolean;
|
|
836
|
+
/**
|
|
837
|
+
* 删除本地数据
|
|
838
|
+
* @param key
|
|
839
|
+
* @returns
|
|
840
|
+
*/
|
|
841
|
+
deleteData(key: string | number | symbol): boolean;
|
|
791
842
|
/**
|
|
792
843
|
* 合并属性
|
|
793
844
|
* @param props
|
|
794
845
|
*/
|
|
795
|
-
merge(props: Record<string | number, any>, ignores?:
|
|
846
|
+
merge(props: Record<string | number, any>, ignores?: string[]): void;
|
|
796
847
|
/**
|
|
797
848
|
* 判断是否有属性
|
|
798
849
|
*/
|
|
@@ -836,20 +887,15 @@ export declare class Domain {
|
|
|
836
887
|
}
|
|
837
888
|
|
|
838
889
|
/**
|
|
839
|
-
*
|
|
890
|
+
* Domain组件描述
|
|
840
891
|
*/
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
emitEvent: {
|
|
845
|
-
(type: string, ...args: any[]): void;
|
|
846
|
-
};
|
|
847
|
-
onEvent: {
|
|
848
|
-
(type: string, listener: EventListener_2): void;
|
|
849
|
-
};
|
|
850
|
-
offEvent: {
|
|
851
|
-
(type: string, listener: EventListener_2): void;
|
|
892
|
+
declare interface DomainComponentDescriptor {
|
|
893
|
+
props?: Record<string, any> | {
|
|
894
|
+
(): Record<string, any>;
|
|
852
895
|
};
|
|
896
|
+
ignorePropKeys?: string[];
|
|
897
|
+
context: FoxSetupContext;
|
|
898
|
+
templateRefProxy?: FoxTemplateRefProxy;
|
|
853
899
|
}
|
|
854
900
|
|
|
855
901
|
/**
|
|
@@ -857,6 +903,11 @@ export declare interface DomainItem {
|
|
|
857
903
|
*/
|
|
858
904
|
export declare const DomainKey: unique symbol;
|
|
859
905
|
|
|
906
|
+
/**
|
|
907
|
+
* exposed
|
|
908
|
+
*/
|
|
909
|
+
declare type EmitFn = (...args: any) => void;
|
|
910
|
+
|
|
860
911
|
/**
|
|
861
912
|
* event listener
|
|
862
913
|
*/
|
|
@@ -872,6 +923,11 @@ declare interface EventListener_2 {
|
|
|
872
923
|
*/
|
|
873
924
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
874
925
|
|
|
926
|
+
/**
|
|
927
|
+
* expose function
|
|
928
|
+
*/
|
|
929
|
+
declare type ExposeFn = (exposed?: Record<string, any>) => void;
|
|
930
|
+
|
|
875
931
|
/**
|
|
876
932
|
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
877
933
|
*
|
|
@@ -946,7 +1002,20 @@ export { FoxCollapseTransition }
|
|
|
946
1002
|
|
|
947
1003
|
export { FoxColorPicker }
|
|
948
1004
|
|
|
949
|
-
|
|
1005
|
+
/**
|
|
1006
|
+
* component public exposed
|
|
1007
|
+
*/
|
|
1008
|
+
declare type FoxComponentPublicExposed = Record<string | number | symbol, any>;
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* component public exposed
|
|
1012
|
+
*/
|
|
1013
|
+
declare type FoxComponentPublicProxy = {
|
|
1014
|
+
exposed: FoxComponentPublicExposed;
|
|
1015
|
+
$el?: HTMLElement;
|
|
1016
|
+
props: Record<string, any>;
|
|
1017
|
+
attrs: Record<string, any>;
|
|
1018
|
+
};
|
|
950
1019
|
|
|
951
1020
|
export { FoxConfigProvider }
|
|
952
1021
|
|
|
@@ -1048,6 +1117,15 @@ export { FoxSelect }
|
|
|
1048
1117
|
|
|
1049
1118
|
export { FoxSelectV2 }
|
|
1050
1119
|
|
|
1120
|
+
/**
|
|
1121
|
+
* Fox setup context
|
|
1122
|
+
*/
|
|
1123
|
+
declare type FoxSetupContext = {
|
|
1124
|
+
attrs: Record<string, any>;
|
|
1125
|
+
emit: EmitFn;
|
|
1126
|
+
expose: ExposeFn;
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1051
1129
|
export { FoxSkeleton }
|
|
1052
1130
|
|
|
1053
1131
|
export { FoxSkeletonItem }
|
|
@@ -1078,6 +1156,11 @@ export { FoxTabs }
|
|
|
1078
1156
|
|
|
1079
1157
|
export { FoxTag }
|
|
1080
1158
|
|
|
1159
|
+
/**
|
|
1160
|
+
* template ref proxy
|
|
1161
|
+
*/
|
|
1162
|
+
declare type FoxTemplateRefProxy = any;
|
|
1163
|
+
|
|
1081
1164
|
export { FoxTimeline }
|
|
1082
1165
|
|
|
1083
1166
|
export { FoxTimelineItem }
|
|
@@ -1122,6 +1205,11 @@ declare interface FoxUI {
|
|
|
1122
1205
|
* @param getter
|
|
1123
1206
|
*/
|
|
1124
1207
|
setScopeGetter(getter: ScopeGetter): void;
|
|
1208
|
+
/**
|
|
1209
|
+
* 获取scope getter
|
|
1210
|
+
* @param getter
|
|
1211
|
+
*/
|
|
1212
|
+
getScopeGetter(): ScopeGetter | null;
|
|
1125
1213
|
/**
|
|
1126
1214
|
* 设置API
|
|
1127
1215
|
* @param name
|
|
@@ -1131,11 +1219,10 @@ declare interface FoxUI {
|
|
|
1131
1219
|
setAPI(name: string, func: any, scope?: string): void;
|
|
1132
1220
|
/**
|
|
1133
1221
|
* 获取API
|
|
1134
|
-
* @param proxy
|
|
1135
1222
|
* @param name
|
|
1136
1223
|
* @param scope
|
|
1137
1224
|
*/
|
|
1138
|
-
getAPI(
|
|
1225
|
+
getAPI(name: string, scope?: string): any | null;
|
|
1139
1226
|
/**
|
|
1140
1227
|
* 批量增加api
|
|
1141
1228
|
* @param apis
|
|
@@ -1211,6 +1298,10 @@ declare class FoxUIVue implements FoxUI {
|
|
|
1211
1298
|
* @param getter
|
|
1212
1299
|
*/
|
|
1213
1300
|
setScopeGetter(getter: ScopeGetter): void;
|
|
1301
|
+
/**
|
|
1302
|
+
* 获取scope getter
|
|
1303
|
+
*/
|
|
1304
|
+
getScopeGetter(): ScopeGetter | null;
|
|
1214
1305
|
/**
|
|
1215
1306
|
* 设置API
|
|
1216
1307
|
* @param name
|
|
@@ -1224,7 +1315,7 @@ declare class FoxUIVue implements FoxUI {
|
|
|
1224
1315
|
* @param name
|
|
1225
1316
|
* @param scope
|
|
1226
1317
|
*/
|
|
1227
|
-
getAPI(
|
|
1318
|
+
getAPI(name: string, scope?: string): any | null;
|
|
1228
1319
|
/**
|
|
1229
1320
|
* 批量增加api
|
|
1230
1321
|
* @param apis
|
|
@@ -1854,9 +1945,10 @@ export declare interface SafeAreaInset {
|
|
|
1854
1945
|
|
|
1855
1946
|
/**
|
|
1856
1947
|
* scope getter
|
|
1948
|
+
* 需要保证该函数能够在 InjectionContext 上下文中允许
|
|
1857
1949
|
*/
|
|
1858
1950
|
declare interface ScopeGetter {
|
|
1859
|
-
(
|
|
1951
|
+
(): string | null;
|
|
1860
1952
|
}
|
|
1861
1953
|
|
|
1862
1954
|
/**
|
|
@@ -1889,6 +1981,13 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
|
1889
1981
|
*/
|
|
1890
1982
|
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
1891
1983
|
|
|
1984
|
+
/**
|
|
1985
|
+
* simple组件描述
|
|
1986
|
+
*/
|
|
1987
|
+
declare interface SimpleComponentDescriptor {
|
|
1988
|
+
context: FoxSetupContext;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1892
1991
|
/**
|
|
1893
1992
|
* size
|
|
1894
1993
|
*/
|
|
@@ -2029,22 +2128,16 @@ export declare function updatePageState(state: PageState, pageLayout: any, overr
|
|
|
2029
2128
|
|
|
2030
2129
|
/**
|
|
2031
2130
|
* 使用broadcast
|
|
2032
|
-
* @param
|
|
2131
|
+
* @param expose
|
|
2033
2132
|
* @returns
|
|
2034
2133
|
*/
|
|
2035
|
-
export declare function useBroadcast(
|
|
2134
|
+
export declare function useBroadcast(exposed?: FoxComponentPublicExposed): Broadcast | null;
|
|
2036
2135
|
|
|
2037
2136
|
/**
|
|
2038
2137
|
* 获取当前domain
|
|
2039
2138
|
* @returns
|
|
2040
2139
|
*/
|
|
2041
|
-
export declare function useDomain(
|
|
2042
|
-
|
|
2043
|
-
/**
|
|
2044
|
-
* use expose
|
|
2045
|
-
* @param apis
|
|
2046
|
-
*/
|
|
2047
|
-
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
|
2140
|
+
export declare function useDomain(): Domain | null;
|
|
2048
2141
|
|
|
2049
2142
|
/**
|
|
2050
2143
|
* 获取内部可用size
|
|
@@ -2133,55 +2226,39 @@ export declare function useTouch(): {
|
|
|
2133
2226
|
isHorizontal: () => boolean;
|
|
2134
2227
|
};
|
|
2135
2228
|
|
|
2136
|
-
/**
|
|
2137
|
-
* 校验条件
|
|
2138
|
-
*/
|
|
2139
|
-
export declare interface ValidateCondition {
|
|
2140
|
-
deep?: boolean;
|
|
2141
|
-
include?: string[];
|
|
2142
|
-
exclude?: string[];
|
|
2143
|
-
ignoreHidden?: boolean;
|
|
2144
|
-
ignoreDisabled?: boolean;
|
|
2145
|
-
ignoreReadonly?: boolean;
|
|
2146
|
-
}
|
|
2147
|
-
|
|
2148
2229
|
/**
|
|
2149
2230
|
* 校验器handler
|
|
2150
2231
|
*/
|
|
2151
|
-
|
|
2232
|
+
declare interface ValidateHandler {
|
|
2152
2233
|
/**
|
|
2153
2234
|
* 错误处理
|
|
2154
2235
|
* @param errorMsg
|
|
2155
2236
|
* @param proxy
|
|
2156
2237
|
*
|
|
2157
2238
|
*/
|
|
2158
|
-
error?(errorMsg: string, proxy:
|
|
2239
|
+
error?(errorMsg: string, proxy: FoxComponentPublicProxy): void;
|
|
2159
2240
|
/**
|
|
2160
2241
|
* 重置处理
|
|
2161
2242
|
* @param proxy
|
|
2162
|
-
*
|
|
2163
2243
|
*/
|
|
2164
|
-
reset?(proxy:
|
|
2244
|
+
reset?(proxy: FoxComponentPublicProxy): void;
|
|
2165
2245
|
/**
|
|
2166
2246
|
* 成功处理
|
|
2167
2247
|
* @param proxy
|
|
2168
|
-
*
|
|
2169
2248
|
*/
|
|
2170
|
-
success?(proxy:
|
|
2249
|
+
success?(proxy: FoxComponentPublicProxy): void;
|
|
2171
2250
|
/**
|
|
2172
2251
|
* 规则装饰处理
|
|
2173
2252
|
* @param newRule
|
|
2174
2253
|
* @param oldRule
|
|
2175
2254
|
* @param proxy
|
|
2176
|
-
*
|
|
2177
2255
|
*/
|
|
2178
|
-
decorate?(newRule: Rule, oldRule: Rule, proxy:
|
|
2256
|
+
decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicProxy): void;
|
|
2179
2257
|
/**
|
|
2180
2258
|
* 获取value
|
|
2181
2259
|
* @param proxy
|
|
2182
|
-
*
|
|
2183
2260
|
*/
|
|
2184
|
-
getValue?(proxy:
|
|
2261
|
+
getValue?(proxy: FoxComponentPublicProxy): any;
|
|
2185
2262
|
}
|
|
2186
2263
|
|
|
2187
2264
|
/**
|
|
@@ -2209,7 +2286,7 @@ export declare class ValidateSchema {
|
|
|
2209
2286
|
*/
|
|
2210
2287
|
private descriptor;
|
|
2211
2288
|
/**
|
|
2212
|
-
*
|
|
2289
|
+
* 组件public proxy
|
|
2213
2290
|
*/
|
|
2214
2291
|
private proxy;
|
|
2215
2292
|
/**
|
|
@@ -2222,7 +2299,7 @@ export declare class ValidateSchema {
|
|
|
2222
2299
|
* @param descriptor
|
|
2223
2300
|
* @param proxy
|
|
2224
2301
|
*/
|
|
2225
|
-
constructor(parent: ValidateSchema | null, descriptor:
|
|
2302
|
+
constructor(parent: ValidateSchema | null, descriptor: ComponentDescriptor, proxy: FoxComponentPublicProxy);
|
|
2226
2303
|
/**
|
|
2227
2304
|
* 初始化
|
|
2228
2305
|
*/
|
|
@@ -2322,6 +2399,6 @@ export declare function valueLength(val: unknown): number;
|
|
|
2322
2399
|
/**
|
|
2323
2400
|
* value 类型
|
|
2324
2401
|
*/
|
|
2325
|
-
|
|
2402
|
+
declare type ValueType = 'string' | 'number' | 'date';
|
|
2326
2403
|
|
|
2327
2404
|
export { }
|