@qin-ui/antd-vue-pro 2.0.2 → 2.0.3
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 +6 -5
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ import { InjectionKey } from 'vue';
|
|
|
32
32
|
import { InputNumberProps } from 'ant-design-vue';
|
|
33
33
|
import { InputProps } from 'ant-design-vue';
|
|
34
34
|
import { MaybeRef } from 'vue';
|
|
35
|
+
import { Options as Options_2 } from 'scroll-into-view-if-needed';
|
|
35
36
|
import { PaginationProps } from 'ant-design-vue';
|
|
36
37
|
import { Plugin as Plugin_2 } from 'vue';
|
|
37
38
|
import { PropType } from 'vue';
|
|
@@ -552,7 +553,7 @@ export declare const FORM_ITEM_SLOT_KEYS: readonly ["label", "extra", "help", "t
|
|
|
552
553
|
export { FormInstance }
|
|
553
554
|
|
|
554
555
|
declare type FormProps = Omit<FormProps_2, 'scrollToFirstError'> & {
|
|
555
|
-
scrollToFirstError?: boolean
|
|
556
|
+
scrollToFirstError?: boolean | Options_2<any>;
|
|
556
557
|
};
|
|
557
558
|
|
|
558
559
|
declare type _FormProps = Pick<Partial<FormProps>, 'colon' | 'disabled' | 'hideRequiredMark' | 'labelAlign' | 'labelCol' | 'labelWrap' | 'name' | 'wrapperCol'>;
|
|
@@ -741,7 +742,7 @@ export declare const ProForm: SFCWithInstall<(<F extends Form<any> = Form>(__VLS
|
|
|
741
742
|
} | undefined;
|
|
742
743
|
validateMessages?: ValidateMessages | undefined;
|
|
743
744
|
validateOnRuleChange?: boolean | undefined;
|
|
744
|
-
scrollToFirstError?: boolean | undefined;
|
|
745
|
+
scrollToFirstError?: (boolean | Options_2<any>) | undefined;
|
|
745
746
|
onSubmit?: ((e: Event) => void) | undefined;
|
|
746
747
|
name?: string | undefined;
|
|
747
748
|
validateTrigger?: string | string[] | undefined;
|
|
@@ -999,8 +1000,8 @@ export declare const useFormData: <D extends Data = Data>(initFormData?: ExtendW
|
|
|
999
1000
|
setFormData: {
|
|
1000
1001
|
(path: Path<D>, value: any): void;
|
|
1001
1002
|
(path: Path<D>, value: (v: any) => any): void;
|
|
1002
|
-
(value:
|
|
1003
|
-
(value: (v:
|
|
1003
|
+
(value: ExtendWithAny<DeepPartial<D>>): void;
|
|
1004
|
+
(value: (v: ExtendWithAny<DeepPartial<D>>) => ExtendWithAny<DeepPartial<D>>): void;
|
|
1004
1005
|
};
|
|
1005
1006
|
};
|
|
1006
1007
|
|
|
@@ -1019,7 +1020,7 @@ export declare const useTable: <D extends Data = Data, T extends object = Extend
|
|
|
1019
1020
|
columns?: Columns<D>;
|
|
1020
1021
|
dataSource?: T[];
|
|
1021
1022
|
pageParam?: PageParam;
|
|
1022
|
-
searchParam?:
|
|
1023
|
+
searchParam?: ExtendWithAny<DeepPartial<D>>;
|
|
1023
1024
|
searchFields?: Fields<D>;
|
|
1024
1025
|
}) => Table<D, T>;
|
|
1025
1026
|
|