@qin-ui/antd-vue-pro 2.0.1 → 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/form/index.js CHANGED
@@ -615,7 +615,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
615
615
  },
616
616
  setup(__props) {
617
617
  return (_ctx, _cache) => {
618
- return isVNode(toValue(_ctx.component)) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.component), normalizeProps(mergeProps({ key: 0 }, _ctx.$attrs)), null, 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
618
+ return isVNode(_ctx.component) || typeof _ctx.component === "function" ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.component), normalizeProps(mergeProps({ key: 0 }, _ctx.$attrs)), null, 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
619
619
  createTextVNode(toDisplayString(_ctx.component), 1)
620
620
  ], 64));
621
621
  };
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: any): void;
1003
- (value: (v: any) => any): void;
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?: T;
1023
+ searchParam?: ExtendWithAny<DeepPartial<D>>;
1023
1024
  searchFields?: Fields<D>;
1024
1025
  }) => Table<D, T>;
1025
1026
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antd-vue-pro",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "module": "es/index.js",