@qin-ui/antd-vue-pro 2.1.4 → 2.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.
- package/es/form/index.js +1 -1
- package/es/index.d.ts +6 -1
- package/package.json +1 -1
package/es/form/index.js
CHANGED
|
@@ -111,7 +111,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
111
111
|
const componentProps = { slots: {} };
|
|
112
112
|
const formItemSlots = {};
|
|
113
113
|
if (isPlainObject(props.field)) {
|
|
114
|
-
const { path, name, fields, formItemClass, formItemStyle, hidden, span, getFormItemRef, getComponentRef, getFormItemComputedProps, getComponentComputedProps, slots = {}, formItemDataAttrs = {}, componentDataAttrs = {}, ...rest } = props.field;
|
|
114
|
+
const { path, name, fields, formItemClass, formItemStyle, hidden, span, getFormItemRef, getComponentRef, getFormItemComputedProps, getComponentComputedProps, slots = {}, formItemDataAttrs = {}, componentDataAttrs = {}, extraProps, ...rest } = props.field;
|
|
115
115
|
const {
|
|
116
116
|
class: injectClassName,
|
|
117
117
|
style: injectStyle,
|
package/es/index.d.ts
CHANGED
|
@@ -210,7 +210,11 @@ export declare interface Base<D extends Data = Data> {
|
|
|
210
210
|
* @example { 'data-test': 'input-value', 'aria-label': 'name' }
|
|
211
211
|
*/
|
|
212
212
|
componentDataAttrs?: Record<string, string>;
|
|
213
|
-
|
|
213
|
+
/**
|
|
214
|
+
* @description 额外的自定义属性,不会被当作组件参数,仅用做给字段添加标识属性等功能
|
|
215
|
+
* @example { group: 'group-1' }
|
|
216
|
+
*/
|
|
217
|
+
extraProps?: Record<string, any>;
|
|
214
218
|
}
|
|
215
219
|
|
|
216
220
|
declare interface BaseColumn<D extends Data = Data> {
|
|
@@ -461,6 +465,7 @@ export declare type Fields<D extends Data = Data> = Array<Field<ComponentName, D
|
|
|
461
465
|
export declare type FieldTypeMap<D extends Data = Data> = {
|
|
462
466
|
[K in ComponentName]: K extends 'custom' ? WithCommon<{
|
|
463
467
|
slots?: Slots;
|
|
468
|
+
[x: string]: any;
|
|
464
469
|
}, D> & {
|
|
465
470
|
component?: RenderComponentType | Raw<RenderComponentType>;
|
|
466
471
|
} : WithComponent<GetComponentType<K>, D> & {
|