@qin-ui/antd-vue-pro 2.1.7 → 2.1.8

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,5 +1,5 @@
1
1
  import { defineComponent, provide, renderSlot } from "vue";
2
- import { g as getObject } from "../core/index-BWMfavD1.js";
2
+ import { g as getObject } from "../core/index-C98RSrpN.js";
3
3
  const getPopupContainer = (triggerNode) => triggerNode.closest("form[class*='-form']");
4
4
  const INJECT_COMPONENTS = Symbol("INJECT_COMPONENTS");
5
5
  const INJECT_CONFIG = {
@@ -268,8 +268,6 @@ const useTable = (params) => {
268
268
  } else if (columnItem.dataIndex) {
269
269
  const dataIndexKey = Array.isArray(columnItem.dataIndex) ? columnItem.dataIndex.join(".") : columnItem.dataIndex;
270
270
  matched = dataIndexKey === key;
271
- } else {
272
- matched = key === i;
273
271
  }
274
272
  if (matched) {
275
273
  updater({
package/es/form/index.js CHANGED
@@ -6,8 +6,8 @@ import { colProps } from "ant-design-vue/es/grid/Col";
6
6
  import { formItemProps, useInjectFormItemContext } from "ant-design-vue/es/form";
7
7
  import { defineComponent, provide, inject, useSlots, watchEffect, createBlock, openBlock, unref, mergeProps, withCtx, createVNode, renderSlot, computed, toValue, normalizeProps, guardReactiveProps, resolveComponent, createElementBlock, Fragment, renderList, createSlots, ref, useAttrs, createCommentVNode, resolveDynamicComponent, isVNode, createTextVNode, toDisplayString } from "vue";
8
8
  import { INJECT_CONFIG, getInjectConfig, INJECT_COMPONENTS } from "../component-provider/index.js";
9
- import { I as InjectionFormKey, c as camelizeProperties, a as InjectionPathKey, g as getObject, u as useForm$1, b as useFields$1, d as useFormRef$1 } from "../core/index-BWMfavD1.js";
10
- import { e } from "../core/index-BWMfavD1.js";
9
+ import { I as InjectionFormKey, c as camelizeProperties, a as InjectionPathKey, g as getObject, u as useForm$1, b as useFields$1, d as useFormRef$1 } from "../core/index-C98RSrpN.js";
10
+ import { e } from "../core/index-C98RSrpN.js";
11
11
  import { i as isPlainObject, t as toPath, o as omit, c as cloneDeep } from "../vendor/utils/lodash-es-p6jau26B.js";
12
12
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13
13
  ...{ name: "ProForm", inheritAttrs: false },
package/es/index.d.ts CHANGED
@@ -118,8 +118,8 @@ declare type AdditionalMethods<FormItemInstance> = {
118
118
  };
119
119
 
120
120
  declare type AllowStringKey<T, Prefix extends string = ''> = {
121
- [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;
122
- }[keyof T];
121
+ [K in keyof T as string extends K ? never : number extends K ? never : K extends string ? K : never]: T[K] extends (infer U)[] ? `${Prefix}${K & string}` | (IsRecord<U> extends true ? AllowStringKey<U, `${Prefix}${K & string}[index].`> : never) : IsRecord<T[K]> extends true ? `${Prefix}${K & string}` | AllowStringKey<T[K], `${Prefix}${K & string}.`> : `${Prefix}${K & string}`;
122
+ } extends infer Obj ? Obj[keyof Obj] : never;
123
123
 
124
124
  /**
125
125
  * @type {Object} Base - 基础公共字段类型
@@ -979,8 +979,8 @@ declare type WithCommonBase<T = unknown> = T & Omit<FormItemProps, 'label'> & Co
979
979
  * @template D - 数据对象类型
980
980
  */
981
981
  declare type WithComponent<T extends abstract new (...args: any) => any, D extends Data = Data> = WithCommon<{
982
- slots?: ComponentSlots<T>;
983
- } & Omit<ComponentProps<T>, keyof VNodeProps>, D>;
982
+ slots?: Partial<ComponentSlots<T>>;
983
+ } & Partial<Omit<ComponentProps<T>, keyof VNodeProps>>, D>;
984
984
 
985
985
  declare type WithFields<D extends Data = Data> = WithRef<WithCommonBase & BaseWithFields<D>>;
986
986
 
package/es/index.js CHANGED
@@ -5,7 +5,7 @@ import BaseTable from "./table/index.js";
5
5
  import { useTable } from "./table/index.js";
6
6
  import _sfc_main$1 from "./component-provider/index.js";
7
7
  import { INJECT_COMPONENTS, INJECT_CONFIG, ensureInjectConfig, getInjectConfig } from "./component-provider/index.js";
8
- import { I, a, e } from "./core/index-BWMfavD1.js";
8
+ import { I, a, e } from "./core/index-C98RSrpN.js";
9
9
  const withInstall = (comp) => {
10
10
  comp.install = (app) => {
11
11
  app.component(comp.name, comp);
package/es/table/index.js CHANGED
@@ -3,7 +3,7 @@ import { INJECT_CONFIG } from "../component-provider/index.js";
3
3
  import _sfc_main$9, { ContainerFragment as _sfc_main$a } from "../form/index.js";
4
4
  import { Space, Button, theme, Dropdown, Menu, MenuItem, Checkbox, MenuDivider, Table } from "ant-design-vue";
5
5
  import { p as pick } from "../vendor/utils/lodash-es-p6jau26B.js";
6
- import { g as getObject, c as camelizeProperties, f as useTable$1 } from "../core/index-BWMfavD1.js";
6
+ import { g as getObject, c as camelizeProperties, f as useTable$1 } from "../core/index-C98RSrpN.js";
7
7
  import { useConfigContextInject } from "ant-design-vue/es/config-provider/context";
8
8
  import { tableProps } from "ant-design-vue/es/table";
9
9
  const _export_sfc = (sfc, props) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antd-vue-pro",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "module": "es/index.js",