@fox-js/foxui-pad 4.1.1-24 → 4.1.1-26

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.
@@ -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 proxy
162
+ * vue exposed
165
163
  */
166
- private proxy;
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 proxy
176
+ * @param exposed
179
177
  * @param name
180
178
  */
181
- constructor(parent: Broadcast | null, proxy: FoxComponentPublicInstance, name?: string);
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 proxy
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(proxy: FoxComponentPublicInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
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 proxy
328
+ * @param exposed
310
329
  * @param parent
311
330
  * @param descriptor
312
331
  * @returns
313
332
  */
314
- export declare function createValidateSchema(proxy: FoxComponentPublicInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
333
+ export declare function createValidateSchema(exposed: FoxComponentPublicExposed, parent: ValidateSchema | null, descriptor: ComponentDescriptor): ValidateSchema;
315
334
 
316
335
  /**
317
336
  * data items key
@@ -581,84 +600,92 @@ export { _default_43 as Foxpicker }
581
600
  export { _default_43 as picker }
582
601
 
583
602
  declare const _default_44: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
584
- export { _default_44 as Foxdatepicker }
585
- export { _default_44 as datepicker }
603
+ export { _default_44 as Foxcalendarpicker }
604
+ export { _default_44 as calendarpicker }
586
605
 
587
606
  declare const _default_45: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
588
- export { _default_45 as Foxcalendarpicker }
589
- export { _default_45 as calendarpicker }
607
+ export { _default_45 as Foxcascaderpicker }
608
+ export { _default_45 as cascaderpicker }
590
609
 
591
610
  declare const _default_46: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
592
- export { _default_46 as Foxcascaderpicker }
593
- export { _default_46 as cascaderpicker }
611
+ export { _default_46 as DialogItem }
612
+ export { _default_46 as FoxDialogItem }
594
613
 
595
614
  declare const _default_47: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
596
- export { _default_47 as DialogItem }
597
- export { _default_47 as FoxDialogItem }
615
+ export { _default_47 as FoxOverLay }
616
+ export { _default_47 as OverLay }
598
617
 
599
618
  declare const _default_48: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
600
- export { _default_48 as FoxOverLay }
601
- export { _default_48 as OverLay }
619
+ export { _default_48 as FoxPopup }
620
+ export { _default_48 as Popup }
602
621
 
603
622
  declare const _default_49: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
604
- export { _default_49 as FoxPopup }
605
- export { _default_49 as Popup }
623
+ export { _default_49 as FoxSearchBar }
624
+ export { _default_49 as SearchBar }
606
625
 
607
626
  declare const _default_5: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
608
627
  export { _default_5 as Content }
609
628
  export { _default_5 as FoxContent }
610
629
 
611
630
  declare const _default_50: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
612
- export { _default_50 as FoxSearchBar }
613
- export { _default_50 as SearchBar }
631
+ export { _default_50 as FoxInfiniteLoading }
632
+ export { _default_50 as InfiniteLoading }
614
633
 
615
634
  declare const _default_51: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
616
- export { _default_51 as FoxInfiniteLoading }
617
- export { _default_51 as InfiniteLoading }
635
+ export { _default_51 as FoxPullRefresh }
636
+ export { _default_51 as PullRefresh }
618
637
 
619
638
  declare const _default_52: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
620
- export { _default_52 as FoxPullRefresh }
621
- export { _default_52 as PullRefresh }
639
+ export { _default_52 as FoxMoreButton }
640
+ export { _default_52 as MoreButton }
622
641
 
623
642
  declare const _default_53: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
624
- export { _default_53 as FoxMoreButton }
625
- export { _default_53 as MoreButton }
643
+ export { _default_53 as FloatingButton }
644
+ export { _default_53 as FoxFloatingButton }
626
645
 
627
646
  declare const _default_54: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
628
- export { _default_54 as FloatingButton }
629
- export { _default_54 as FoxFloatingButton }
647
+ export { _default_54 as FoxMapping }
648
+ export { _default_54 as Mapping }
630
649
 
631
650
  declare const _default_55: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
632
- export { _default_55 as FoxMapping }
633
- export { _default_55 as Mapping }
651
+ export { _default_55 as FoxPrice }
652
+ export { _default_55 as Price }
634
653
 
635
654
  declare const _default_56: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
636
- export { _default_56 as FoxPrice }
637
- export { _default_56 as Price }
655
+ export { _default_56 as FoxIndicator }
656
+ export { _default_56 as Indicator }
638
657
 
639
658
  declare const _default_57: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
640
- export { _default_57 as FoxIndicator }
641
- export { _default_57 as Indicator }
659
+ export { _default_57 as FoxText }
660
+ export { _default_57 as Text }
642
661
 
643
662
  declare const _default_58: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
644
- export { _default_58 as FoxText }
645
- export { _default_58 as Text }
663
+ export { _default_58 as FoxTour }
664
+ export { _default_58 as Tour }
646
665
 
647
666
  declare const _default_59: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
648
- export { _default_59 as FoxTour }
649
- export { _default_59 as Tour }
667
+ export { _default_59 as FoxNumberKeyboard }
668
+ export { _default_59 as NumberKeyboard }
650
669
 
651
670
  declare const _default_6: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
652
671
  export { _default_6 as FoxGroup }
653
672
  export { _default_6 as Group }
654
673
 
655
674
  declare const _default_60: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
656
- export { _default_60 as DomainProvider }
657
- export { _default_60 as FoxDomainProvider }
675
+ export { _default_60 as FoxShortPassword }
676
+ export { _default_60 as ShortPassword }
658
677
 
659
678
  declare const _default_61: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
660
- export { _default_61 as FoxRollingProvider }
661
- export { _default_61 as RollingProvider }
679
+ export { _default_61 as FoxSignature }
680
+ export { _default_61 as Signature }
681
+
682
+ declare const _default_62: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
683
+ export { _default_62 as DomainProvider }
684
+ export { _default_62 as FoxDomainProvider }
685
+
686
+ declare const _default_63: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
687
+ export { _default_63 as FoxRollingProvider }
688
+ export { _default_63 as RollingProvider }
662
689
 
663
690
  declare const _default_7: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
664
691
  export { _default_7 as FoxItem }
@@ -672,41 +699,44 @@ declare const _default_9: DefineSetupFnComponent<Record<string, any>, {}, {}, Re
672
699
  export { _default_9 as FoxRowItem }
673
700
  export { _default_9 as RowItem }
674
701
 
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
702
  /**
684
703
  * 安装config domain
704
+ * @param descriptor domain组件描述
685
705
  * @param name 名称
686
- * @param props 属性
687
- * @param ignores 忽略的属性
688
706
  * @returns
689
707
  */
690
- export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
708
+ export declare function defineConfigDomain(descriptor: DomainComponentDescriptor, name: string | null): {
709
+ domain: Domain;
710
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
711
+ };
691
712
 
692
713
  /**
693
- * 定义domain data item
714
+ * 定义data item
715
+ * @param domain domain
716
+ * @param name 名称
717
+ * @param descriptor 描述
718
+ * @param parentBroadcast parent broadcast
719
+ * @param parentValidateSchema parent validateSchema
694
720
  * @returns
695
721
  */
696
- export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
722
+ export declare function defineDataItem(domain: Domain, name: string, descriptor: ComponentDescriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
697
723
  broadcast: Broadcast;
698
724
  validateSchema: ValidateSchema;
725
+ componentPublicExposed: FoxComponentPublicExposed;
726
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
699
727
  };
700
728
 
701
729
  /**
702
730
  * 安装domain
731
+ * @param descriptor domain组件描述
703
732
  * @param name 名称
704
- * @param props 属性
705
- * @param ignores 忽略的属性
706
- * @param exposes 暴露的方法
733
+ * @param broadcastCallbacks 消息
707
734
  * @returns
708
735
  */
709
- export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
736
+ export declare function defineDomain(descriptor: DomainComponentDescriptor, name: string | null, messageListeners?: Record<string, BroadcastCallback>): {
737
+ domain: Domain;
738
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
739
+ };
710
740
 
711
741
  /**
712
742
  * 定义domain item属性
@@ -716,6 +746,7 @@ export declare function defineDomainItemProperty(props: {
716
746
  readonly?: boolean | string;
717
747
  browse?: 'off' | 'on';
718
748
  }): {
749
+ itemTemplateRef: Ref<any, any>;
719
750
  innerDisabled: Ref<boolean, boolean>;
720
751
  disabled: Ref<boolean, boolean>;
721
752
  innerReadonly: Ref<boolean, boolean>;
@@ -725,9 +756,20 @@ export declare function defineDomainItemProperty(props: {
725
756
 
726
757
  /**
727
758
  * 定义domain item
759
+ * @param descriptor 组件描述
760
+ * @param name 名称
761
+ * @param broadcastCallbacks 消息
728
762
  * @returns
729
763
  */
730
- export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
764
+ export declare function defineItem(descriptor: ComponentDescriptor, name?: string, broadcastCallbacks?: Record<string, BroadcastCallback>): {
765
+ broadcast: Broadcast;
766
+ validateSchema: ValidateSchema;
767
+ emitEvent: (type: string, ...args: any[]) => void;
768
+ onEvent: (type: string, listener: EventListener_2) => void;
769
+ offEvent: (type: string, listener: EventListener_2) => void;
770
+ componentPublicExposed: FoxComponentPublicExposed;
771
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
772
+ };
731
773
 
732
774
  /**
733
775
  * 创建page state
@@ -739,12 +781,15 @@ export declare function definePageState(domain: Domain, overrideProps?: Record<s
739
781
 
740
782
  /**
741
783
  * 定义simple item
784
+ * @param descriptor simple组件描述
742
785
  * @returns
743
786
  */
744
- export declare function defineSimpleItem(): {
787
+ export declare function defineSimpleItem(descriptor: SimpleComponentDescriptor): {
745
788
  emitEvent: (type: string, ...args: any[]) => void;
746
789
  onEvent: (type: string, listener: EventListener_2) => void;
747
790
  offEvent: (type: string, listener: EventListener_2) => void;
791
+ componentPublicExposed: FoxComponentPublicExposed;
792
+ exposeApi: (exposed?: FoxComponentPublicExposed) => void;
748
793
  };
749
794
 
750
795
  /**
@@ -753,23 +798,6 @@ export declare function defineSimpleItem(): {
753
798
  */
754
799
  export declare function deleteGlobalValidator(type: string): void;
755
800
 
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
801
  declare type Direction = '' | 'vertical' | 'horizontal';
774
802
 
775
803
  /**
@@ -807,10 +835,18 @@ export declare class Domain {
807
835
  private _validateSchema;
808
836
  get validateSchema(): ValidateSchema | null;
809
837
  set validateSchema(val: ValidateSchema | null);
838
+ /**
839
+ * component public expose
840
+ */
841
+ componentPublicExposed: FoxComponentPublicExposed;
810
842
  /**
811
843
  * 属性集合
812
844
  */
813
845
  private _props;
846
+ /**
847
+ * 本地数据集合
848
+ */
849
+ private _datas;
814
850
  /**
815
851
  * 构造函数
816
852
  * @param name
@@ -820,11 +856,34 @@ export declare class Domain {
820
856
  * 销毁
821
857
  */
822
858
  destroy(): void;
859
+ /**
860
+ * 设置数据
861
+ * @param key
862
+ * @param data
863
+ */
864
+ setData(key: string | number | symbol, data: any): void;
865
+ /**
866
+ * 获取本地数据
867
+ * @param key
868
+ */
869
+ getData(key: string | number | symbol): any;
870
+ /**
871
+ * 是否有本地数据
872
+ * @param key
873
+ * @returns
874
+ */
875
+ hasData(key: string | number | symbol): boolean;
876
+ /**
877
+ * 删除本地数据
878
+ * @param key
879
+ * @returns
880
+ */
881
+ deleteData(key: string | number | symbol): boolean;
823
882
  /**
824
883
  * 合并属性
825
884
  * @param props
826
885
  */
827
- merge(props: Record<string | number, any>, ignores?: any[]): void;
886
+ merge(props: Record<string | number, any>, ignores?: string[]): void;
828
887
  /**
829
888
  * 判断是否有属性
830
889
  */
@@ -868,20 +927,15 @@ export declare class Domain {
868
927
  }
869
928
 
870
929
  /**
871
- * domain item
930
+ * Domain组件描述
872
931
  */
873
- export declare interface DomainItem {
874
- broadcast: Broadcast;
875
- validateSchema: ValidateSchema;
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;
932
+ declare interface DomainComponentDescriptor {
933
+ props?: Record<string, any> | {
934
+ (): Record<string, any>;
884
935
  };
936
+ ignorePropKeys?: string[];
937
+ context: FoxSetupContext;
938
+ templateRefProxy?: FoxTemplateRefProxy;
885
939
  }
886
940
 
887
941
  /**
@@ -889,6 +943,11 @@ export declare interface DomainItem {
889
943
  */
890
944
  export declare const DomainKey: unique symbol;
891
945
 
946
+ /**
947
+ * exposed
948
+ */
949
+ declare type EmitFn = (...args: any) => void;
950
+
892
951
  /**
893
952
  * event listener
894
953
  */
@@ -904,6 +963,11 @@ declare interface EventListener_2 {
904
963
  */
905
964
  export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
906
965
 
966
+ /**
967
+ * expose function
968
+ */
969
+ declare type ExposeFn = (exposed?: Record<string, any>) => void;
970
+
907
971
  /**
908
972
  * 继承(是否深度拷贝,dest,src1,src2,src3...)
909
973
  *
@@ -978,7 +1042,20 @@ export { FoxCollapseTransition }
978
1042
 
979
1043
  export { FoxColorPicker }
980
1044
 
981
- declare type FoxComponentPublicInstance = any;
1045
+ /**
1046
+ * component public exposed
1047
+ */
1048
+ declare type FoxComponentPublicExposed = Record<string | number | symbol, any>;
1049
+
1050
+ /**
1051
+ * component public exposed
1052
+ */
1053
+ declare type FoxComponentPublicProxy = {
1054
+ exposed: FoxComponentPublicExposed;
1055
+ $el?: HTMLElement;
1056
+ props: Record<string, any>;
1057
+ attrs: Record<string, any>;
1058
+ };
982
1059
 
983
1060
  export { FoxConfigProvider }
984
1061
 
@@ -1080,6 +1157,15 @@ export { FoxSelect }
1080
1157
 
1081
1158
  export { FoxSelectV2 }
1082
1159
 
1160
+ /**
1161
+ * Fox setup context
1162
+ */
1163
+ declare type FoxSetupContext = {
1164
+ attrs: Record<string, any>;
1165
+ emit: EmitFn;
1166
+ expose: ExposeFn;
1167
+ };
1168
+
1083
1169
  export { FoxSkeleton }
1084
1170
 
1085
1171
  export { FoxSkeletonItem }
@@ -1110,6 +1196,11 @@ export { FoxTabs }
1110
1196
 
1111
1197
  export { FoxTag }
1112
1198
 
1199
+ /**
1200
+ * template ref proxy
1201
+ */
1202
+ declare type FoxTemplateRefProxy = any;
1203
+
1113
1204
  export { FoxTimeline }
1114
1205
 
1115
1206
  export { FoxTimelineItem }
@@ -1154,6 +1245,11 @@ declare interface FoxUI {
1154
1245
  * @param getter
1155
1246
  */
1156
1247
  setScopeGetter(getter: ScopeGetter): void;
1248
+ /**
1249
+ * 获取scope getter
1250
+ * @param getter
1251
+ */
1252
+ getScopeGetter(): ScopeGetter | null;
1157
1253
  /**
1158
1254
  * 设置API
1159
1255
  * @param name
@@ -1163,11 +1259,10 @@ declare interface FoxUI {
1163
1259
  setAPI(name: string, func: any, scope?: string): void;
1164
1260
  /**
1165
1261
  * 获取API
1166
- * @param proxy
1167
1262
  * @param name
1168
1263
  * @param scope
1169
1264
  */
1170
- getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
1265
+ getAPI(name: string, scope?: string): any | null;
1171
1266
  /**
1172
1267
  * 批量增加api
1173
1268
  * @param apis
@@ -1243,6 +1338,10 @@ declare class FoxUIVue implements FoxUI {
1243
1338
  * @param getter
1244
1339
  */
1245
1340
  setScopeGetter(getter: ScopeGetter): void;
1341
+ /**
1342
+ * 获取scope getter
1343
+ */
1344
+ getScopeGetter(): ScopeGetter | null;
1246
1345
  /**
1247
1346
  * 设置API
1248
1347
  * @param name
@@ -1256,7 +1355,7 @@ declare class FoxUIVue implements FoxUI {
1256
1355
  * @param name
1257
1356
  * @param scope
1258
1357
  */
1259
- getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
1358
+ getAPI(name: string, scope?: string): any | null;
1260
1359
  /**
1261
1360
  * 批量增加api
1262
1361
  * @param apis
@@ -1886,9 +1985,10 @@ export declare interface SafeAreaInset {
1886
1985
 
1887
1986
  /**
1888
1987
  * scope getter
1988
+ * 需要保证该函数能够在 InjectionContext 上下文中允许
1889
1989
  */
1890
1990
  declare interface ScopeGetter {
1891
- (proxy: ComponentPublicInstance): string | null;
1991
+ (): string | null;
1892
1992
  }
1893
1993
 
1894
1994
  /**
@@ -1921,6 +2021,13 @@ export declare function setGlobalValidateResetEvents(events: string[]): void;
1921
2021
  */
1922
2022
  export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
1923
2023
 
2024
+ /**
2025
+ * simple组件描述
2026
+ */
2027
+ declare interface SimpleComponentDescriptor {
2028
+ context: FoxSetupContext;
2029
+ }
2030
+
1924
2031
  /**
1925
2032
  * size
1926
2033
  */
@@ -2061,22 +2168,16 @@ export declare function updatePageState(state: PageState, pageLayout: any, overr
2061
2168
 
2062
2169
  /**
2063
2170
  * 使用broadcast
2064
- * @param proxy
2171
+ * @param expose
2065
2172
  * @returns
2066
2173
  */
2067
- export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
2174
+ export declare function useBroadcast(exposed?: FoxComponentPublicExposed): Broadcast | null;
2068
2175
 
2069
2176
  /**
2070
2177
  * 获取当前domain
2071
2178
  * @returns
2072
2179
  */
2073
- export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
2074
-
2075
- /**
2076
- * use expose
2077
- * @param apis
2078
- */
2079
- export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
2180
+ export declare function useDomain(): Domain | null;
2080
2181
 
2081
2182
  /**
2082
2183
  * 获取内部可用size
@@ -2165,55 +2266,39 @@ export declare function useTouch(): {
2165
2266
  isHorizontal: () => boolean;
2166
2267
  };
2167
2268
 
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
2269
  /**
2181
2270
  * 校验器handler
2182
2271
  */
2183
- export declare interface ValidateHandler {
2272
+ declare interface ValidateHandler {
2184
2273
  /**
2185
2274
  * 错误处理
2186
2275
  * @param errorMsg
2187
2276
  * @param proxy
2188
2277
  *
2189
2278
  */
2190
- error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
2279
+ error?(errorMsg: string, proxy: FoxComponentPublicProxy): void;
2191
2280
  /**
2192
2281
  * 重置处理
2193
2282
  * @param proxy
2194
- *
2195
2283
  */
2196
- reset?(proxy: FoxComponentPublicInstance): void;
2284
+ reset?(proxy: FoxComponentPublicProxy): void;
2197
2285
  /**
2198
2286
  * 成功处理
2199
2287
  * @param proxy
2200
- *
2201
2288
  */
2202
- success?(proxy: FoxComponentPublicInstance): void;
2289
+ success?(proxy: FoxComponentPublicProxy): void;
2203
2290
  /**
2204
2291
  * 规则装饰处理
2205
2292
  * @param newRule
2206
2293
  * @param oldRule
2207
2294
  * @param proxy
2208
- *
2209
2295
  */
2210
- decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
2296
+ decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicProxy): void;
2211
2297
  /**
2212
2298
  * 获取value
2213
2299
  * @param proxy
2214
- *
2215
2300
  */
2216
- getValue?(proxy: FoxComponentPublicInstance): any;
2301
+ getValue?(proxy: FoxComponentPublicProxy): any;
2217
2302
  }
2218
2303
 
2219
2304
  /**
@@ -2241,7 +2326,7 @@ export declare class ValidateSchema {
2241
2326
  */
2242
2327
  private descriptor;
2243
2328
  /**
2244
- * 实例
2329
+ * 组件public proxy
2245
2330
  */
2246
2331
  private proxy;
2247
2332
  /**
@@ -2254,7 +2339,7 @@ export declare class ValidateSchema {
2254
2339
  * @param descriptor
2255
2340
  * @param proxy
2256
2341
  */
2257
- constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
2342
+ constructor(parent: ValidateSchema | null, descriptor: ComponentDescriptor, proxy: FoxComponentPublicProxy);
2258
2343
  /**
2259
2344
  * 初始化
2260
2345
  */
@@ -2354,6 +2439,6 @@ export declare function valueLength(val: unknown): number;
2354
2439
  /**
2355
2440
  * value 类型
2356
2441
  */
2357
- export declare type ValueType = 'string' | 'number' | 'date';
2442
+ declare type ValueType = 'string' | 'number' | 'date';
2358
2443
 
2359
2444
  export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fox-js/foxui-pad",
3
3
  "type": "module",
4
- "version": "4.1.1-24",
4
+ "version": "4.1.1-26",
5
5
  "description": "FoxUI PAD端组件库",
6
6
  "author": "jiangcheng",
7
7
  "main": "./dist/index.umd.js",