@qin-ui/antd-vue-pro 2.0.11 → 2.0.12
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 +7 -2
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
|
@@ -364,7 +364,7 @@ declare type ExtendWithAny<D> = {
|
|
|
364
364
|
*/
|
|
365
365
|
export declare type Field<D extends Data = Data> = {
|
|
366
366
|
[K in keyof FieldTypeMap]: {
|
|
367
|
-
component
|
|
367
|
+
component?: K extends 'custom' ? FieldTypeMap<D>[K]['component'] : K;
|
|
368
368
|
} & FieldTypeMap<D>[K];
|
|
369
369
|
}[keyof FieldTypeMap];
|
|
370
370
|
|
|
@@ -905,7 +905,12 @@ export declare function useForm<D extends Data = Data>(root?: boolean): Form<D>;
|
|
|
905
905
|
*/
|
|
906
906
|
export declare const useFormData: <D extends Data = Data>(initFormData?: ExtendWithAny<DeepPartial<D>>) => {
|
|
907
907
|
formData: Reactive<ExtendWithAny<D>>;
|
|
908
|
-
getFormData:
|
|
908
|
+
getFormData: {
|
|
909
|
+
<K extends keyof D>(path: K): D[K];
|
|
910
|
+
<K extends keyof D & string, K1 extends keyof D[K] & string>(path: `${K}.${K1}`): D[K][K1];
|
|
911
|
+
<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];
|
|
912
|
+
(path: Path<D>): any;
|
|
913
|
+
};
|
|
909
914
|
setFormData: {
|
|
910
915
|
(path: Path<D>, value: any): void;
|
|
911
916
|
(path: Path<D>, value: (v: any) => any): void;
|