@qin-ui/antdv-next-pro 1.1.4 → 1.1.5

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.
@@ -106,7 +106,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
106
106
  const componentProps = { slots: {} };
107
107
  const formItemSlots = {};
108
108
  if (isPlainObject(props.field)) {
109
- const { path, name, fields, formItemClass, formItemStyle, formItemContainer, hidden, span, getFormItemRef, getComponentRef, getFormItemComputedProps, getComponentComputedProps, slots = {}, formItemDataAttrs = {}, componentDataAttrs = {}, ...rest } = props.field;
109
+ const { path, name, fields, formItemClass, formItemStyle, formItemContainer, hidden, span, getFormItemRef, getComponentRef, getFormItemComputedProps, getComponentComputedProps, slots = {}, formItemDataAttrs = {}, componentDataAttrs = {}, extraProps, ...rest } = props.field;
110
110
  const {
111
111
  class: injectClassName,
112
112
  style: injectStyle,
package/es/form/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c, _, b, a, F, d, T, e, _ as _2, h, f, u, g } from "./index-CHL8J75J.js";
1
+ import { c, _, b, a, F, d, T, e, _ as _2, h, f, u, g } from "./index-Br8U5Kva.js";
2
2
  import { I, a as a2, e as e2 } from "../core/index-BrBzu6aj.js";
3
3
  export {
4
4
  c as BaseField,
package/es/index.d.ts CHANGED
@@ -214,7 +214,11 @@ export declare interface Base<D extends Data = Data> {
214
214
  * @description 组件v-model双向绑定更新属性名,默认'value'
215
215
  */
216
216
  modelProp?: string;
217
- [x: string]: any;
217
+ /**
218
+ * @description 额外的自定义属性,不会被当作组件参数,仅用做给字段添加标识属性等功能
219
+ * @example { group: 'group-1' }
220
+ */
221
+ extraProps?: Record<string, any>;
218
222
  }
219
223
 
220
224
  declare interface BaseColumn<D extends Data = Data> {
@@ -488,6 +492,7 @@ export declare type Fields<D extends Data = Data> = Array<Field<ComponentName, D
488
492
  export declare type FieldTypeMap<D extends Data = Data> = {
489
493
  [K in ComponentName]: K extends 'custom' ? WithCommon<{
490
494
  slots?: Slots;
495
+ [x: string]: any;
491
496
  }, D> & {
492
497
  component?: RenderComponentType | Raw<RenderComponentType>;
493
498
  } : WithComponent<GetComponentType<K>, D> & {
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./antdv-next-pro.css";
2
- import { _ as _sfc_main } from "./form/index-CHL8J75J.js";
3
- import { c, b, a, F, d, T, e, h, f, u, g } from "./form/index-CHL8J75J.js";
2
+ import { _ as _sfc_main } from "./form/index-Br8U5Kva.js";
3
+ import { c, b, a, F, d, T, e, h, f, u, g } from "./form/index-Br8U5Kva.js";
4
4
  import { I, a as a2, e as e2 } from "./core/index-BrBzu6aj.js";
5
5
  import BaseTable from "./table/index.js";
6
6
  import { useTable } from "./table/index.js";
package/es/table/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createElementBlock, openBlock, createElementVNode, defineComponent, ref, computed, watch, watchEffect, createBlock, unref, mergeProps, withCtx, createVNode, renderSlot, resolveDynamicComponent, createTextVNode, createCommentVNode, Fragment, toDisplayString, normalizeStyle, useModel, h, mergeModels, inject, useAttrs, useSlots, onMounted, normalizeClass, createSlots, renderList, normalizeProps, guardReactiveProps, nextTick } from "vue";
2
2
  import { Space, Button, theme, useConfig, Dropdown, Menu, Checkbox, Table } from "antdv-next";
3
3
  import "antdv-next/dist/config-provider/DisabledContext";
4
- import { _ as _sfc_main$9, t as tableProps, a as _sfc_main$a } from "../form/index-CHL8J75J.js";
4
+ import { _ as _sfc_main$9, t as tableProps, a as _sfc_main$a } from "../form/index-Br8U5Kva.js";
5
5
  import { INJECT_CONFIG } from "../component-provider/index.js";
6
6
  import { g as getObject, c as camelizeProperties, f as useTable$1 } from "../core/index-BrBzu6aj.js";
7
7
  import { p as pick } from "../vendor/utils/lodash-es-p6jau26B.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antdv-next-pro",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "基于 antdv-next 的二次封装组件",
5
5
  "type": "module",
6
6
  "module": "es/index.js",