@qin-ui/antd-vue-pro 2.0.15 → 2.0.18

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/es/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { AllowedComponentProps } from 'vue';
2
2
  import { App } from 'vue';
3
+ import { ButtonSize } from 'ant-design-vue/es/button';
3
4
  import { CascaderProps } from 'ant-design-vue';
4
5
  import { CheckboxGroupProps } from 'ant-design-vue';
5
6
  import { ColProps } from 'ant-design-vue';
@@ -16,10 +17,15 @@ import { ComponentProvideOptions } from 'vue';
16
17
  import { ComputedRef } from 'vue';
17
18
  import { CreateComponentPublicInstanceWithMixins } from 'vue';
18
19
  import { CSSProperties } from 'vue';
20
+ import { Data } from '@qin-ui/core';
19
21
  import { DatePickerProps } from 'ant-design-vue';
22
+ import { DeepPartial } from '@qin-ui/core';
20
23
  import { DefineComponent } from 'vue';
24
+ import { ExtendWithAny } from '@qin-ui/core';
21
25
  import { ExtractPropTypes } from 'vue';
22
26
  import { FieldData } from 'ant-design-vue/es/form/interface';
27
+ import { Fields as Fields_2 } from '@qin-ui/core';
28
+ import { Form as Form_2 } from '@qin-ui/core';
23
29
  import { FormInstance } from 'ant-design-vue';
24
30
  import { FormItemInstance } from 'ant-design-vue';
25
31
  import { FormItemProps } from 'ant-design-vue';
@@ -28,20 +34,23 @@ import { FormProps as FormProps_2 } from 'ant-design-vue';
28
34
  import { GlobalComponents } from 'vue';
29
35
  import { GlobalDirectives } from 'vue';
30
36
  import { HTMLAttributes } from 'vue';
37
+ import { InjectionFormKey } from '@qin-ui/core';
31
38
  import { InjectionKey } from 'vue';
39
+ import { InjectionPathKey } from '@qin-ui/core';
32
40
  import { InputNumberProps } from 'ant-design-vue';
33
41
  import { InputProps } from 'ant-design-vue';
42
+ import { KeyExpandString } from '@qin-ui/core';
34
43
  import { MaybeRef } from 'vue';
35
44
  import { Options as Options_2 } from 'scroll-into-view-if-needed';
36
- import { PaginationProps } from 'ant-design-vue';
45
+ import { PageParam } from '@qin-ui/core';
46
+ import { Path } from '@qin-ui/core';
47
+ import { Paths } from '@qin-ui/core';
37
48
  import { Plugin as Plugin_2 } from 'vue';
38
49
  import { PropType } from 'vue';
39
50
  import { PublicProps } from 'vue';
40
51
  import { RadioGroupProps } from 'ant-design-vue';
41
52
  import { RangePickerProps } from 'ant-design-vue/es/date-picker';
42
53
  import { Raw } from 'vue';
43
- import { Reactive } from 'vue';
44
- import { Ref } from 'vue';
45
54
  import { RenderExpandIconProps } from 'ant-design-vue/es/vc-table/interface';
46
55
  import { RequiredMark } from 'ant-design-vue/es/form/Form';
47
56
  import { RowProps } from 'ant-design-vue';
@@ -52,11 +61,15 @@ import { ShallowUnwrapRef } from 'vue';
52
61
  import { SliderProps } from 'ant-design-vue';
53
62
  import { Slot } from 'vue';
54
63
  import { SwitchProps } from 'ant-design-vue';
64
+ import { Table as Table_2 } from '@qin-ui/core';
55
65
  import { TableProps } from 'ant-design-vue';
56
66
  import { TextAreaProps } from 'ant-design-vue';
57
67
  import { TimePickerProps } from 'ant-design-vue';
58
68
  import { TransferProps } from 'ant-design-vue';
59
69
  import { TreeSelectProps } from 'ant-design-vue';
70
+ import { useFields as useFields_2 } from '@qin-ui/core';
71
+ import { useFormData } from '@qin-ui/core';
72
+ import { useFormRef as useFormRef_2 } from '@qin-ui/core';
60
73
  import { ValidateErrorEntity } from 'ant-design-vue/es/form/interface';
61
74
  import { ValidateMessages } from 'ant-design-vue/es/form/interface';
62
75
  import { VNode } from 'vue';
@@ -90,10 +103,6 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
90
103
  };
91
104
  };
92
105
 
93
- declare type AllowStringKey<T, Prefix extends string = ''> = {
94
- [K in keyof T]: K extends string ? T[K] extends (infer U)[] ? `${Prefix}${K}` | (IsRecord<U> extends true ? AllowStringKey<U, `${Prefix}${K}[index].`> : never) : IsRecord<T[K]> extends true ? `${Prefix}${K}` | AllowStringKey<T[K], `${Prefix}${K}.`> : `${Prefix}${K}` : never;
95
- }[keyof T];
96
-
97
106
  /**
98
107
  * @type {Object} Base - 基础公共字段类型
99
108
  */
@@ -193,10 +202,7 @@ export declare type BaseComponentStringName = Exclude<Field['component'], Render
193
202
  export declare const BaseField: DefineComponent<Props, {
194
203
  getComponentRef: () => any;
195
204
  getComponentComputedProps: () => any;
196
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
197
- path: string;
198
- component: string | Component;
199
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
205
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
200
206
  componentRef: unknown;
201
207
  }, any>;
202
208
 
@@ -227,11 +233,7 @@ export declare const BaseForm: <F extends Form<any> = Form>(__VLS_props: NonNull
227
233
  __ctx?: Awaited<typeof __VLS_setup>;
228
234
  };
229
235
 
230
- export declare const BaseFormItem: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_4> & Readonly<{}>, {
231
- disabled: boolean;
232
- grid: Grid;
233
- fields: Fields;
234
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
236
+ export declare const BaseFormItem: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_4> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
235
237
 
236
238
  declare type ButtonProps = {
237
239
  onClick: () => void;
@@ -264,21 +266,21 @@ export declare type ContainerComponent = Component<PathProps>;
264
266
 
265
267
  export declare const ContainerFragment: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
266
268
 
267
- declare type Data = Record<string, any>;
268
-
269
269
  declare type DatePickerSlots = CompSlot<'dateRender' | 'renderExtraFooter' | 'separator' | 'monthCellRender'>;
270
270
 
271
- declare type DeepPartial<T> = T extends object ? {
272
- [P in keyof T]?: DeepPartial<T[P]>;
273
- } : T;
274
-
275
271
  declare const _default: {
276
272
  install(app: App): void;
277
273
  };
278
274
  export default _default;
279
275
 
280
276
  declare const _default_2: <T extends Table<any> = Table>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
281
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ({
277
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
278
+ readonly "onUpdate:size"?: ((value: ButtonSize) => any) | undefined;
279
+ readonly "onUpdate:loading"?: ((value: boolean) => any) | undefined;
280
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:size" | "onUpdate:loading"> & ({
281
+ size?: TableProps["size"];
282
+ loading?: boolean;
283
+ } & {
282
284
  table?: T;
283
285
  search?: () => Promise<unknown>;
284
286
  addIndexColumn?: boolean;
@@ -356,7 +358,7 @@ declare const _default_2: <T extends Table<any> = Table>(__VLS_props: NonNullabl
356
358
  column: Column<T extends Table<infer U extends Data> ? U : never>;
357
359
  }) => void;
358
360
  }> & Readonly<Partial<Record<"table" | "search-form" | "button-bar" | "toolbar", Slot>>>, "default">;
359
- emit: {};
361
+ emit: ((evt: "update:size", value: ButtonSize) => void) & ((evt: "update:loading", value: boolean) => void);
360
362
  }>) => VNode & {
361
363
  __ctx?: Awaited<typeof __VLS_setup>;
362
364
  };
@@ -370,10 +372,6 @@ declare type ExpandButtonProps = ButtonProps & {
370
372
  expandStatus: boolean;
371
373
  };
372
374
 
373
- declare type ExtendWithAny<D> = {
374
- [K in keyof D]: IsRecord<D[K]> extends true ? ExtendWithAny<D[K]> : D[K];
375
- } & Record<string, any>;
376
-
377
375
  /**
378
376
  * @description 字段配置类型,包含所有字段属性和响应式支持
379
377
  * @template D - 数据对象类型
@@ -462,11 +460,13 @@ export declare type FieldTypeMap<D extends Data = Data> = {
462
460
  } & Record<string, any>, D>;
463
461
  };
464
462
 
465
- declare type FindBy<D extends Data> = (field: Readonly<Field<D>>) => boolean;
466
-
467
- declare type FindBy_2<D extends Data> = (column: Readonly<Column<D>>) => boolean;
468
-
469
- export declare type Form<D extends Data = Data> = ReturnType<typeof useFormData<D>> & ReturnType<typeof useFields<D>> & ReturnType<typeof useFormRef>;
463
+ /**
464
+ * 重新定义 Form 类型:
465
+ * 1. 将第二个泛型参数 F 默认绑定为本地 Field<D>;
466
+ * 2. 将 core Form 的第三个泛型参数 I 绑定为本地 UI 库(Ant Design Vue)的 FormInstance,
467
+ * 使 formRef 的类型变为 Ref<FormInstance | undefined>。
468
+ */
469
+ export declare type Form<D extends Data = Data, F extends Field<D> = Field<D>> = Form_2<D, F, FormInstance>;
470
470
 
471
471
  export declare const FORM_ITEM_SLOT_KEYS: readonly ["label", "extra", "help", "tooltip"];
472
472
 
@@ -491,25 +491,14 @@ export declare const INJECT_CONFIG: {
491
491
  };
492
492
  };
493
493
 
494
- export declare const InjectionFormKey: InjectionKey<Form>;
494
+ export { InjectionFormKey }
495
495
 
496
- export declare const InjectionPathKey: InjectionKey<ComputedRef<string | undefined>>;
496
+ export { InjectionPathKey }
497
497
 
498
498
  declare type InputNumberSlots = CompSlot<'addonAfter' | 'addonBefore' | 'prefix' | 'upIcon' | 'downIcon'>;
499
499
 
500
500
  declare type InputSlots = CompSlot<'addonAfter' | 'addonBefore' | 'clearIcon' | 'prefix' | 'suffix'>;
501
501
 
502
- declare type IsRecord<T> = T extends object ? T extends ((...args: any[]) => any) | any[] | null ? false : true : false;
503
-
504
- declare type JoinPath<Prefix extends any[], Key extends PropertyKey> = [
505
- ...Prefix,
506
- KeyExpandString<Extract<Key, string>>
507
- ];
508
-
509
- declare type KeyExpandString<T extends string> = T | (string & {});
510
-
511
- declare type KeyPathString<D extends Data> = KeyExpandString<AllowStringKey<D>>;
512
-
513
502
  declare type MaybeRefOrComputedRef<T = any> = MaybeRef<T> | ComputedRef<T>;
514
503
 
515
504
  /**
@@ -526,20 +515,10 @@ export { Option_2 as Option }
526
515
 
527
516
  export declare type Options = Array<Option_2>;
528
517
 
529
- declare type PageParam = Required<Pick<PaginationProps, (typeof pageParamProperty)[number]>>;
530
-
531
- declare const pageParamProperty: readonly ["current", "pageSize", "total"];
532
-
533
- declare type Path<D extends Data = Data> = KeyPathString<D>;
534
-
535
518
  export declare type PathProps = {
536
519
  path?: string;
537
520
  } & Data;
538
521
 
539
- declare type Paths<T, Prefix extends any[] = []> = T extends object ? {
540
- [K in keyof T]: IsRecord<T[K]> extends true ? JoinPath<Prefix, K> | Paths<T[K], JoinPath<Prefix, K>> : JoinPath<Prefix, K>;
541
- }[keyof T] : never;
542
-
543
522
  declare type PP<T extends Record<string, any>> = Partial<T & AllowedComponentProps>;
544
523
 
545
524
  export declare const ProComponentProvider: SFCWithInstall<{
@@ -781,16 +760,6 @@ declare type SearchFormProps = {
781
760
 
782
761
  declare type SelectSlots = CompSlot<keyof InstanceType<typeof Select>['$slots']>;
783
762
 
784
- declare type SetColumn<D extends Data = Data> = (key: Path<D>, column: Column<D> | ((pre: Readonly<Column<D>>) => Column<D>), options?: {
785
- /**
786
- * 更新方式 rewrite替换重写,merge合并(默认)
787
- * @default 'merge'
788
- */
789
- updateType?: 'rewrite' | 'merge';
790
- } & UpdateColumnOptions) => void;
791
-
792
- declare type SetPageParam = (pageParam: Partial<PageParam> | ((pre: Readonly<PageParam>) => Partial<PageParam>)) => void;
793
-
794
763
  declare type SFCWithInstall<T> = T & Plugin_2;
795
764
 
796
765
  declare type SliderSlots = CompSlot<'mark'>;
@@ -811,18 +780,10 @@ export declare type Slots = {
811
780
 
812
781
  declare type SwitchSlots = CompSlot<'checkedChildren' | 'unCheckedChildren'>;
813
782
 
814
- export declare type Table<D extends Data = Data, T extends object = ExtendWithAny<D>> = {
815
- columns: Ref<Columns<D>>;
816
- dataSource: Ref<T[]>;
817
- pageParam: Reactive<PageParam>;
818
- searchForm: Form<D>;
819
- setColumn: SetColumn<D>;
820
- deleteColumn: (path: Path<D> | FindBy_2<D>, options?: UpdateColumnOptions) => void;
821
- appendColumn: (path: Path<D> | FindBy_2<D> | undefined, column: Column<D> | Columns<D>, options?: UpdateColumnOptions) => void;
822
- prependColumn: (path: Path<D> | FindBy_2<D> | undefined, column: Column<D> | Columns<D>, options?: UpdateColumnOptions) => void;
823
- setPageParam: SetPageParam;
824
- resetQueryParams: () => void;
825
- };
783
+ /**
784
+ * 重新定义 Table 类型,将 Column 类型绑定为 antd-vue-pro 的 Column<D>
785
+ */
786
+ export declare type Table<D extends Data = Data, T extends object = ExtendWithAny<D>> = Table_2<D, T, Column<D>>;
826
787
 
827
788
  export declare const TeleportComponentNamePrefix = "TeleportComponent_";
828
789
 
@@ -832,128 +793,47 @@ declare type TransferSlots = CompSlot<'footer' | 'render'>;
832
793
 
833
794
  declare type TreeSelectSlots = CompSlot<'maxTagPlaceholder' | 'notFoundContent' | 'placeholder' | 'searchPlaceholder' | 'suffixIcon' | 'tagRender' | 'title'>;
834
795
 
835
- declare type UpdateColumnOptions = {
836
- /**
837
- * 是否更新\获取所有符合条件的列,查找条件为函数时默认true, 否则默认false,为false时仅更新第一个匹配到的列
838
- */
839
- all?: boolean;
840
- };
841
-
842
- declare type UpdateFieldOptions = {
843
- /**
844
- * 是否更新\获取所有符合条件的字段,查找条件为函数时默认true, 否则默认false,为false时仅更新第一个匹配到的字段
845
- */
846
- all?: boolean;
847
- };
796
+ /** useFields 返回值类型,F 默认绑定为本地 Field<D> */
797
+ export declare type UseFields<D extends Data = Data, F extends Field<D> = Field<D>> = ReturnType<typeof useFields<D, F>>;
848
798
 
849
799
  /**
850
- * 表单字段配置处理hook
851
- * @param {Fields} initFields - 初始字段配置
852
- * @returns {Object}
853
- * @property {Ref<Fields>} fields - 字段配置Ref
854
- * @property {Function} setField - 设置字段配置
855
- * @property {Function} getField - 获取字段配置
856
- * @property {Function} deleteField - 删除字段配置
857
- * @property {Function} appendField - 追加字段配置
858
- * @property {Function} prependField - 插入字段配置
859
- * @property {Function} getParentField - 获取字段所属父级字段
800
+ * 类型断言 re-export @qin-ui/core 的 useFields,
801
+ * 将泛型参数 F 的默认值覆盖为本地的 Field<D>,
802
+ * 使得 fields、getField 等方法的类型推断包含 Ant Design Vue 的完整属性签名。
860
803
  */
861
- export declare const useFields: <D extends Data = Data>(initFields?: Fields<D>) => {
862
- fields: Ref<Fields<D>, Fields<D>>;
863
- getField: {
864
- (path: Path<D> | FindBy<D>): Readonly<WithAdditionalMethodsGetter<Field<D>>> | undefined;
865
- (path: Path<D> | FindBy<D>, options?: {
866
- all?: false;
867
- }): Readonly<WithAdditionalMethodsGetter<Field<D>>> | undefined;
868
- (path: Path<D> | FindBy<D>, options: {
869
- all: true;
870
- }): Readonly<WithAdditionalMethodsGetter<Field<D>>>[] | undefined;
871
- };
872
- setField: (path: Path<D> | FindBy<D>, field: Field<D> | ((preField: Readonly<Field<D>>) => Field<D>), options?: {
873
- /**
874
- * 字段更新方式 rewrite替换重写,merge合并(默认)
875
- * @default 'merge'
876
- */
877
- updateType?: "rewrite" | "merge";
878
- } & UpdateFieldOptions) => void;
879
- deleteField: (path: Path<D> | FindBy<D>, options?: UpdateFieldOptions) => void;
880
- appendField: (path: Path<D> | FindBy<D> | undefined, field: Field<D> | Fields<D>, options?: UpdateFieldOptions) => void;
881
- prependField: (path: Path<D> | FindBy<D> | undefined, field: Field<D> | Fields<D>, options?: UpdateFieldOptions) => void;
882
- getParentField: {
883
- (path: Path<D> | FindBy<D>): Field<D> | undefined;
884
- (path: Path<D> | FindBy<D>, options: {
885
- all?: false;
886
- }): Field<D> | undefined;
887
- (path: Path<D> | FindBy<D>, options: {
888
- all: true;
889
- }): Field<D>[] | undefined;
890
- };
804
+ export declare const useFields: {
805
+ <D extends Data = Data, F extends Field<D> = Field<D>>(initFields?: F[]): ReturnType<typeof useFields_2<D, F>>;
891
806
  };
892
807
 
893
808
  /**
894
- * 表单hook
895
- * @param initFormData 初始表单数据
896
- * @param initFields 初始字段配置
897
- * @param root 是否为根级表单
898
- * @returns {Form<D>} - form表单对象
899
- * @property {Reactive<D>} formData - 表单数据Reactive<D>
900
- * @property {Function} getFormData - 获取指定字段数据路径path的值
901
- * @property {Function} setFormData - 设置指定字段数据路径path的值, path为空时设置所有字段数据
902
- * @property {Ref<Fields>} fields - 字段配置Ref
903
- * @property {Function} setField - 设置字段配置
904
- * @property {Function} getField - 获取字段配置
905
- * @property {Function} deleteField - 删除字段配置
906
- * @property {Function} appendField - 追加字段配置
907
- * @property {Function} prependField - 插入字段配置
908
- * @property {Function} getParentField - 获取字段所属父级字段
909
- * @property {Ref<FormInstance | undefined>} formRef - 表单组件实例引用
910
- * @property {Function} setFormRef - 更新实例引用
809
+ * 类型断言 re-export @qin-ui/core 的 useForm,
810
+ * 将默认返回的 Form<D, BaseField<D>> 覆盖为本地的 Form<D, Field<D>>。
911
811
  */
912
- export declare function useForm<D extends Data = Data>(initFormData?: ExtendWithAny<DeepPartial<D>>, initFields?: Fields<D>, root?: boolean): Form<D>;
812
+ export declare const useForm: {
813
+ <D extends Data = Data, F extends Field<D> = Field<D>>(initFormData?: ExtendWithAny<DeepPartial<D>>, initFields?: F[], root?: boolean): Form<D, F>;
814
+ <D extends Data = Data, F extends Field<D> = Field<D>>(root?: boolean): Form<D, F>;
815
+ };
913
816
 
914
- export declare function useForm<D extends Data = Data>(root?: boolean): Form<D>;
817
+ export { useFormData }
915
818
 
916
819
  /**
917
- * 表单数据处理hook
918
- * @param initFormData 初始表单数据
919
- * @returns {Object} { formData, getFormData, setFormData }
920
- * @property {Reactive<D>} formData - 表单数据Reactive<D>
921
- * @property {Function} getFormData - 获取指定字段数据路径path的值
922
- * @property {Function} setFormData - 设置指定字段数据路径path的值, path为空时设置所有字段数据
820
+ * 类型断言 re-export @qin-ui/core 的 useFormRef,
821
+ * FormInstance 泛型参数绑定为本地 UI 库(Ant Design Vue)的 FormInstance。
923
822
  */
924
- export declare const useFormData: <D extends Data = Data>(initFormData?: ExtendWithAny<DeepPartial<D>>) => {
925
- formData: Reactive<ExtendWithAny<D>>;
926
- getFormData: {
927
- <K extends keyof D>(path: K): D[K];
928
- <K extends keyof D & string, K1 extends keyof D[K] & string>(path: `${K}.${K1}`): D[K][K1];
929
- <K extends keyof D & string, K1_1 extends keyof D[K] & string, K2 extends keyof D[K][K1_1] & string>(path: `${K}.${K1_1}.${K2}`): D[K][K1_1][K2];
930
- (path: Path<D>): any;
931
- };
932
- setFormData: {
933
- (path: Path<D>, value: any): void;
934
- (path: Path<D>, value: (v: any) => any): void;
935
- (value: ExtendWithAny<DeepPartial<D>>): void;
936
- (value: (v: ExtendWithAny<DeepPartial<D>>) => ExtendWithAny<DeepPartial<D>>): void;
937
- };
823
+ export declare const useFormRef: {
824
+ (): ReturnType<typeof useFormRef_2<FormInstance>>;
938
825
  };
939
826
 
940
827
  /**
941
- * 表单组件实例引用
942
- * @returns {Object}
943
- * @property {Ref<FormInstance | undefined>} formRef - 表单组件实例引用
944
- * @property {Function} setFormRef - 更新实例引用
828
+ * 类型断言 re-export @qin-ui/core 的 useTable,
829
+ * 将默认的 BaseColumn<D> 覆盖为本地的 Column<D>。
945
830
  */
946
- declare const useFormRef: () => {
947
- formRef: Ref<FormInstance | undefined, FormInstance | undefined>;
948
- setFormRef: (inst: FormInstance) => void;
949
- };
950
-
951
831
  export declare const useTable: <D extends Data = Data, T extends object = ExtendWithAny<D>>(params: {
952
832
  columns?: Columns<D>;
953
833
  dataSource?: T[];
954
834
  pageParam?: PageParam;
955
835
  searchParam?: ExtendWithAny<DeepPartial<D>>;
956
- searchFields?: Fields<D>;
836
+ searchFields?: Fields_2<D>;
957
837
  }) => Table<D, T>;
958
838
 
959
839
  export declare type ValueFormatter = {
package/es/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import "./antd-vue-pro.css";
2
2
  import _sfc_main from "./form/index.js";
3
- import { BaseField, BaseFormItem, COMPONENT_MAP, ContainerFragment, FORM_ITEM_SLOT_KEYS, InjectionFormKey, InjectionPathKey, SlotComponent, TeleportComponentNamePrefix, getInitProps, useFields, useForm, useFormData } from "./form/index.js";
3
+ import { BaseField, BaseFormItem, COMPONENT_MAP, ContainerFragment, FORM_ITEM_SLOT_KEYS, SlotComponent, TeleportComponentNamePrefix, getInitProps, useFields, useForm, useFormRef } from "./form/index.js";
4
4
  import BaseTable from "./table/index.js";
5
5
  import { useTable } from "./table/index.js";
6
- import { _ as _sfc_main$1 } from "./component-provider/index-D8NF18a1.js";
7
- import { I } from "./component-provider/index-D8NF18a1.js";
6
+ import { _ as _sfc_main$1 } from "./component-provider/index-BeGPcKnM.js";
7
+ import { a, I, b, f } from "./component-provider/index-BeGPcKnM.js";
8
8
  const withInstall = (comp) => {
9
9
  comp.install = (app) => {
10
10
  app.component(comp.name, comp);
@@ -29,9 +29,9 @@ export {
29
29
  COMPONENT_MAP,
30
30
  ContainerFragment,
31
31
  FORM_ITEM_SLOT_KEYS,
32
- I as INJECT_CONFIG,
33
- InjectionFormKey,
34
- InjectionPathKey,
32
+ a as INJECT_CONFIG,
33
+ I as InjectionFormKey,
34
+ b as InjectionPathKey,
35
35
  ProComponentProvider,
36
36
  ProForm,
37
37
  ProTable,
@@ -41,6 +41,7 @@ export {
41
41
  getInitProps,
42
42
  useFields,
43
43
  useForm,
44
- useFormData,
44
+ f as useFormData,
45
+ useFormRef,
45
46
  useTable
46
47
  };