@vunk/form 2.14.7 → 2.14.9
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/components/fieldset/index.cjs +8 -0
- package/components/fieldset/index.mjs +8 -0
- package/components/fieldset/src/ctx.d.ts +4 -0
- package/components/fieldset/src/index.vue.d.ts +9 -0
- package/components/form-item/index.cjs +19 -14
- package/components/form-item/index.mjs +20 -15
- package/components/form-item/src/core.vue.d.ts +3 -0
- package/components/input-array/index.cjs +14 -1
- package/components/input-array/index.mjs +14 -1
- package/components/input-array/src/ctx.d.ts +7 -0
- package/components/input-array/src/form-template.vue.d.ts +13 -0
- package/components/input-array/src/index.vue.d.ts +13 -0
- package/components/input-collection/index.cjs +6 -2
- package/components/input-collection/index.mjs +6 -2
- package/package.json +1 -1
|
@@ -15,6 +15,10 @@ const props = {
|
|
|
15
15
|
labelPosition: {
|
|
16
16
|
type: String,
|
|
17
17
|
default: void 0
|
|
18
|
+
},
|
|
19
|
+
labelSuffix: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: void 0
|
|
18
22
|
}
|
|
19
23
|
};
|
|
20
24
|
const emits = {};
|
|
@@ -84,12 +88,16 @@ var _sfc_main = vue.defineComponent({
|
|
|
84
88
|
const labelPosition = vue.computed(() => {
|
|
85
89
|
return props2.labelPosition ?? formContext.labelPosition;
|
|
86
90
|
});
|
|
91
|
+
const labelSuffix = vue.computed(() => {
|
|
92
|
+
return props2.labelSuffix ?? formContext.labelSuffix;
|
|
93
|
+
});
|
|
87
94
|
vue.provide(
|
|
88
95
|
elementPlus.formContextKey,
|
|
89
96
|
vue.reactive({
|
|
90
97
|
...formContext === backupFormContext ? backupFormContext : vue.toRefs(formContext),
|
|
91
98
|
labelWidth,
|
|
92
99
|
labelPosition,
|
|
100
|
+
labelSuffix,
|
|
93
101
|
...useFormLabelWidth()
|
|
94
102
|
})
|
|
95
103
|
);
|
|
@@ -11,6 +11,10 @@ const props = {
|
|
|
11
11
|
labelPosition: {
|
|
12
12
|
type: String,
|
|
13
13
|
default: void 0
|
|
14
|
+
},
|
|
15
|
+
labelSuffix: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: void 0
|
|
14
18
|
}
|
|
15
19
|
};
|
|
16
20
|
const emits = {};
|
|
@@ -80,12 +84,16 @@ var _sfc_main = defineComponent({
|
|
|
80
84
|
const labelPosition = computed(() => {
|
|
81
85
|
return props2.labelPosition ?? formContext.labelPosition;
|
|
82
86
|
});
|
|
87
|
+
const labelSuffix = computed(() => {
|
|
88
|
+
return props2.labelSuffix ?? formContext.labelSuffix;
|
|
89
|
+
});
|
|
83
90
|
provide(
|
|
84
91
|
formContextKey,
|
|
85
92
|
reactive({
|
|
86
93
|
...formContext === backupFormContext ? backupFormContext : toRefs(formContext),
|
|
87
94
|
labelWidth,
|
|
88
95
|
labelPosition,
|
|
96
|
+
labelSuffix,
|
|
89
97
|
...useFormLabelWidth()
|
|
90
98
|
})
|
|
91
99
|
);
|
|
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7
7
|
type: import("vue").PropType<"left" | "right" | "top">;
|
|
8
8
|
default: any;
|
|
9
9
|
};
|
|
10
|
+
labelSuffix: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
10
14
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
15
|
labelWidth: {
|
|
12
16
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -16,8 +20,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
16
20
|
type: import("vue").PropType<"left" | "right" | "top">;
|
|
17
21
|
default: any;
|
|
18
22
|
};
|
|
23
|
+
labelSuffix: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: any;
|
|
26
|
+
};
|
|
19
27
|
}>> & Readonly<{}>, {
|
|
20
28
|
labelWidth: string | number;
|
|
21
29
|
labelPosition: "top" | "left" | "right";
|
|
30
|
+
labelSuffix: string;
|
|
22
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
32
|
export default _default;
|
|
@@ -74,7 +74,8 @@ var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
74
74
|
default: ""
|
|
75
75
|
},
|
|
76
76
|
formItemTipClass: null,
|
|
77
|
-
elRef: null
|
|
77
|
+
elRef: null,
|
|
78
|
+
label: null
|
|
78
79
|
},
|
|
79
80
|
setup(__props, { expose: __expose }) {
|
|
80
81
|
__expose();
|
|
@@ -94,9 +95,8 @@ var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
94
95
|
}
|
|
95
96
|
});
|
|
96
97
|
|
|
97
|
-
const _hoisted_1 = {
|
|
98
|
-
|
|
99
|
-
key: 2,
|
|
98
|
+
const _hoisted_1 = {
|
|
99
|
+
key: 1,
|
|
100
100
|
class: "vkf-form-item-label__actions"
|
|
101
101
|
};
|
|
102
102
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -104,7 +104,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
104
104
|
ref: $props.elRef,
|
|
105
105
|
class: ["vkf-form-item", {
|
|
106
106
|
"has-label-actions": _ctx.$slots.labelActions
|
|
107
|
-
}]
|
|
107
|
+
}],
|
|
108
|
+
label: $props.label
|
|
108
109
|
}), {
|
|
109
110
|
default: vue.withCtx(() => [
|
|
110
111
|
vue.renderSlot(_ctx.$slots, "before"),
|
|
@@ -131,15 +132,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
131
132
|
]),
|
|
132
133
|
label: vue.withCtx((e) => [
|
|
133
134
|
vue.renderSlot(_ctx.$slots, "label", vue.normalizeProps(vue.guardReactiveProps(e)), () => [
|
|
134
|
-
|
|
135
|
+
vue.withDirectives(vue.createElementVNode(
|
|
135
136
|
"span",
|
|
136
|
-
|
|
137
|
+
null,
|
|
137
138
|
vue.toDisplayString(e.label),
|
|
138
|
-
|
|
139
|
-
/* TEXT */
|
|
140
|
-
)
|
|
139
|
+
513
|
|
140
|
+
/* TEXT, NEED_PATCH */
|
|
141
|
+
), [
|
|
142
|
+
[vue.vShow, $props.label]
|
|
143
|
+
]),
|
|
141
144
|
$props.labelTip ? (vue.openBlock(), vue.createBlock($setup["ElTooltip"], {
|
|
142
|
-
key:
|
|
145
|
+
key: 0,
|
|
143
146
|
content: $props.labelTip
|
|
144
147
|
}, {
|
|
145
148
|
default: vue.withCtx(() => [
|
|
@@ -163,7 +166,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
163
166
|
_: 1
|
|
164
167
|
/* STABLE */
|
|
165
168
|
}, 8, ["content"])) : vue.createCommentVNode("v-if", true),
|
|
166
|
-
_ctx.$slots.labelActions ? (vue.openBlock(), vue.createElementBlock("div",
|
|
169
|
+
_ctx.$slots.labelActions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
167
170
|
vue.renderSlot(_ctx.$slots, "labelActions")
|
|
168
171
|
])) : vue.createCommentVNode("v-if", true)
|
|
169
172
|
])
|
|
@@ -173,7 +176,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
173
176
|
]),
|
|
174
177
|
_: 3
|
|
175
178
|
/* FORWARDED */
|
|
176
|
-
}, 16, ["class"]);
|
|
179
|
+
}, 16, ["class", "label"]);
|
|
177
180
|
}
|
|
178
181
|
var FormItemCore = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/form-item/src/core.vue"]]);
|
|
179
182
|
|
|
@@ -232,6 +235,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
232
235
|
});
|
|
233
236
|
return data;
|
|
234
237
|
});
|
|
238
|
+
console.log("props.label", props2.label);
|
|
235
239
|
return () => vue.h(FormItemCore, {
|
|
236
240
|
...formItemBindProps.value,
|
|
237
241
|
elRef: props2.elRef,
|
|
@@ -245,7 +249,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
245
249
|
rules: rules$1.value,
|
|
246
250
|
formItemTip: props2.formItemTip,
|
|
247
251
|
formItemTipClass: props2.formItemTipClass,
|
|
248
|
-
labelTip: props2.labelTip
|
|
252
|
+
labelTip: props2.labelTip,
|
|
253
|
+
label: props2.label
|
|
249
254
|
}, {
|
|
250
255
|
...slots,
|
|
251
256
|
...props2.formItemSlots
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { formItemProps, ElFormItem, ElTooltip, ElIcon, ElButton, useGlobalConfig } from 'element-plus';
|
|
2
2
|
import { bindPropsFactory } from '@vunk/core/shared/utils-vue';
|
|
3
|
-
import { defineComponent, openBlock, createBlock, mergeProps, withCtx, renderSlot, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, normalizeProps, guardReactiveProps, createVNode, computed, h } from 'vue';
|
|
3
|
+
import { defineComponent, openBlock, createBlock, mergeProps, withCtx, renderSlot, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, normalizeProps, guardReactiveProps, withDirectives, vShow, createVNode, computed, h } from 'vue';
|
|
4
4
|
import { createFormItemBindProps } from '@vunk/form/shared/element-plus';
|
|
5
5
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
6
6
|
import { isPlainObject } from '@vunk/core/shared/utils-object';
|
|
@@ -70,7 +70,8 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
70
70
|
default: ""
|
|
71
71
|
},
|
|
72
72
|
formItemTipClass: null,
|
|
73
|
-
elRef: null
|
|
73
|
+
elRef: null,
|
|
74
|
+
label: null
|
|
74
75
|
},
|
|
75
76
|
setup(__props, { expose: __expose }) {
|
|
76
77
|
__expose();
|
|
@@ -90,9 +91,8 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
90
91
|
}
|
|
91
92
|
});
|
|
92
93
|
|
|
93
|
-
const _hoisted_1 = {
|
|
94
|
-
|
|
95
|
-
key: 2,
|
|
94
|
+
const _hoisted_1 = {
|
|
95
|
+
key: 1,
|
|
96
96
|
class: "vkf-form-item-label__actions"
|
|
97
97
|
};
|
|
98
98
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -100,7 +100,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
100
100
|
ref: $props.elRef,
|
|
101
101
|
class: ["vkf-form-item", {
|
|
102
102
|
"has-label-actions": _ctx.$slots.labelActions
|
|
103
|
-
}]
|
|
103
|
+
}],
|
|
104
|
+
label: $props.label
|
|
104
105
|
}), {
|
|
105
106
|
default: withCtx(() => [
|
|
106
107
|
renderSlot(_ctx.$slots, "before"),
|
|
@@ -127,15 +128,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
127
128
|
]),
|
|
128
129
|
label: withCtx((e) => [
|
|
129
130
|
renderSlot(_ctx.$slots, "label", normalizeProps(guardReactiveProps(e)), () => [
|
|
130
|
-
|
|
131
|
+
withDirectives(createElementVNode(
|
|
131
132
|
"span",
|
|
132
|
-
|
|
133
|
+
null,
|
|
133
134
|
toDisplayString(e.label),
|
|
134
|
-
|
|
135
|
-
/* TEXT */
|
|
136
|
-
)
|
|
135
|
+
513
|
|
136
|
+
/* TEXT, NEED_PATCH */
|
|
137
|
+
), [
|
|
138
|
+
[vShow, $props.label]
|
|
139
|
+
]),
|
|
137
140
|
$props.labelTip ? (openBlock(), createBlock($setup["ElTooltip"], {
|
|
138
|
-
key:
|
|
141
|
+
key: 0,
|
|
139
142
|
content: $props.labelTip
|
|
140
143
|
}, {
|
|
141
144
|
default: withCtx(() => [
|
|
@@ -159,7 +162,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
162
|
_: 1
|
|
160
163
|
/* STABLE */
|
|
161
164
|
}, 8, ["content"])) : createCommentVNode("v-if", true),
|
|
162
|
-
_ctx.$slots.labelActions ? (openBlock(), createElementBlock("div",
|
|
165
|
+
_ctx.$slots.labelActions ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
163
166
|
renderSlot(_ctx.$slots, "labelActions")
|
|
164
167
|
])) : createCommentVNode("v-if", true)
|
|
165
168
|
])
|
|
@@ -169,7 +172,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
169
172
|
]),
|
|
170
173
|
_: 3
|
|
171
174
|
/* FORWARDED */
|
|
172
|
-
}, 16, ["class"]);
|
|
175
|
+
}, 16, ["class", "label"]);
|
|
173
176
|
}
|
|
174
177
|
var FormItemCore = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/form-item/src/core.vue"]]);
|
|
175
178
|
|
|
@@ -228,6 +231,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
228
231
|
});
|
|
229
232
|
return data;
|
|
230
233
|
});
|
|
234
|
+
console.log("props.label", props2.label);
|
|
231
235
|
return () => h(FormItemCore, {
|
|
232
236
|
...formItemBindProps.value,
|
|
233
237
|
elRef: props2.elRef,
|
|
@@ -241,7 +245,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
241
245
|
rules: rules.value,
|
|
242
246
|
formItemTip: props2.formItemTip,
|
|
243
247
|
formItemTipClass: props2.formItemTipClass,
|
|
244
|
-
labelTip: props2.labelTip
|
|
248
|
+
labelTip: props2.labelTip,
|
|
249
|
+
label: props2.label
|
|
245
250
|
}, {
|
|
246
251
|
...slots,
|
|
247
252
|
...props2.formItemSlots
|
|
@@ -9,6 +9,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
9
9
|
};
|
|
10
10
|
formItemTipClass: any;
|
|
11
11
|
elRef: any;
|
|
12
|
+
label: any;
|
|
12
13
|
}>, {
|
|
13
14
|
readonly ElFormItem: {
|
|
14
15
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1841,10 +1842,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1841
1842
|
};
|
|
1842
1843
|
formItemTipClass: any;
|
|
1843
1844
|
elRef: any;
|
|
1845
|
+
label: any;
|
|
1844
1846
|
}>> & Readonly<{}>, {
|
|
1845
1847
|
elRef: any;
|
|
1846
1848
|
formItemTip: string;
|
|
1847
1849
|
formItemTipClass: any;
|
|
1848
1850
|
labelTip: string;
|
|
1851
|
+
label: any;
|
|
1849
1852
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1850
1853
|
export default _default;
|
|
@@ -54,6 +54,13 @@ const props = {
|
|
|
54
54
|
keepLastRow: {
|
|
55
55
|
type: Boolean,
|
|
56
56
|
default: true
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* @description 顶部按钮添加元素的方式是 push 还是 unshift
|
|
60
|
+
*/
|
|
61
|
+
buttonAdd: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: "unshift"
|
|
57
64
|
}
|
|
58
65
|
};
|
|
59
66
|
const emits = {
|
|
@@ -77,7 +84,13 @@ var _sfc_main$1 = /* @__PURE__ */vue.defineComponent({
|
|
|
77
84
|
const formItemBindProps = formItem._VkfFormItemCtx.createBindProps(props);
|
|
78
85
|
const readonly = composables.useComputedReadonly(props);
|
|
79
86
|
const addToFirst = () => {
|
|
80
|
-
|
|
87
|
+
const data = props.modelValue ? [...props.modelValue] : [];
|
|
88
|
+
if (props.buttonAdd === "push") {
|
|
89
|
+
data.push(cloneDeep.cloneDeep(props.defaultItemValue));
|
|
90
|
+
} else {
|
|
91
|
+
data.unshift(cloneDeep.cloneDeep(props.defaultItemValue));
|
|
92
|
+
}
|
|
93
|
+
emit("update:modelValue", data);
|
|
81
94
|
};
|
|
82
95
|
if (props.modelValue === void 0 && props.defaultModelValue) {
|
|
83
96
|
emit("update:modelValue", props.defaultModelValue);
|
|
@@ -50,6 +50,13 @@ const props = {
|
|
|
50
50
|
keepLastRow: {
|
|
51
51
|
type: Boolean,
|
|
52
52
|
default: true
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* @description 顶部按钮添加元素的方式是 push 还是 unshift
|
|
56
|
+
*/
|
|
57
|
+
buttonAdd: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: "unshift"
|
|
53
60
|
}
|
|
54
61
|
};
|
|
55
62
|
const emits = {
|
|
@@ -73,7 +80,13 @@ var _sfc_main$1 = /* @__PURE__ */defineComponent({
|
|
|
73
80
|
const formItemBindProps = _VkfFormItemCtx.createBindProps(props);
|
|
74
81
|
const readonly = useComputedReadonly(props);
|
|
75
82
|
const addToFirst = () => {
|
|
76
|
-
|
|
83
|
+
const data = props.modelValue ? [...props.modelValue] : [];
|
|
84
|
+
if (props.buttonAdd === "push") {
|
|
85
|
+
data.push(cloneDeep(props.defaultItemValue));
|
|
86
|
+
} else {
|
|
87
|
+
data.unshift(cloneDeep(props.defaultItemValue));
|
|
88
|
+
}
|
|
89
|
+
emit("update:modelValue", data);
|
|
77
90
|
};
|
|
78
91
|
if (props.modelValue === void 0 && props.defaultModelValue) {
|
|
79
92
|
emit("update:modelValue", props.defaultModelValue);
|
|
@@ -34,6 +34,13 @@ export declare const props: {
|
|
|
34
34
|
type: BooleanConstructor;
|
|
35
35
|
default: boolean;
|
|
36
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* @description 顶部按钮添加元素的方式是 push 还是 unshift
|
|
39
|
+
*/
|
|
40
|
+
buttonAdd: {
|
|
41
|
+
type: PropType<"push" | "unshift">;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
37
44
|
required: {
|
|
38
45
|
readonly type: PropType<boolean>;
|
|
39
46
|
readonly required: false;
|
|
@@ -36,6 +36,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
36
36
|
type: BooleanConstructor;
|
|
37
37
|
default: boolean;
|
|
38
38
|
};
|
|
39
|
+
buttonAdd: {
|
|
40
|
+
type: import("vue").PropType<"push" | "unshift">;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
39
43
|
required: {
|
|
40
44
|
readonly type: import("vue").PropType<boolean>;
|
|
41
45
|
readonly required: false;
|
|
@@ -152,6 +156,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
152
156
|
type: BooleanConstructor;
|
|
153
157
|
default: boolean;
|
|
154
158
|
};
|
|
159
|
+
buttonAdd: {
|
|
160
|
+
type: import("vue").PropType<"push" | "unshift">;
|
|
161
|
+
default: string;
|
|
162
|
+
};
|
|
155
163
|
required: {
|
|
156
164
|
readonly type: import("vue").PropType<boolean>;
|
|
157
165
|
readonly required: false;
|
|
@@ -749,6 +757,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
749
757
|
type: BooleanConstructor;
|
|
750
758
|
default: boolean;
|
|
751
759
|
};
|
|
760
|
+
buttonAdd: {
|
|
761
|
+
type: import("vue").PropType<"push" | "unshift">;
|
|
762
|
+
default: string;
|
|
763
|
+
};
|
|
752
764
|
required: {
|
|
753
765
|
readonly type: import("vue").PropType<boolean>;
|
|
754
766
|
readonly required: false;
|
|
@@ -862,6 +874,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
862
874
|
defaultItemValue: any;
|
|
863
875
|
source: Record<string, any>;
|
|
864
876
|
keepLastRow: boolean;
|
|
877
|
+
buttonAdd: "push" | "unshift";
|
|
865
878
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
866
879
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
867
880
|
export default _default;
|
|
@@ -25,6 +25,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
25
25
|
type: BooleanConstructor;
|
|
26
26
|
default: boolean;
|
|
27
27
|
};
|
|
28
|
+
buttonAdd: {
|
|
29
|
+
type: import("vue").PropType<"push" | "unshift">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
28
32
|
required: {
|
|
29
33
|
readonly type: import("vue").PropType<boolean>;
|
|
30
34
|
readonly required: false;
|
|
@@ -141,6 +145,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
141
145
|
type: BooleanConstructor;
|
|
142
146
|
default: boolean;
|
|
143
147
|
};
|
|
148
|
+
buttonAdd: {
|
|
149
|
+
type: import("vue").PropType<"push" | "unshift">;
|
|
150
|
+
default: string;
|
|
151
|
+
};
|
|
144
152
|
required: {
|
|
145
153
|
readonly type: import("vue").PropType<boolean>;
|
|
146
154
|
readonly required: false;
|
|
@@ -738,6 +746,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
738
746
|
type: BooleanConstructor;
|
|
739
747
|
default: boolean;
|
|
740
748
|
};
|
|
749
|
+
buttonAdd: {
|
|
750
|
+
type: import("vue").PropType<"push" | "unshift">;
|
|
751
|
+
default: string;
|
|
752
|
+
};
|
|
741
753
|
required: {
|
|
742
754
|
readonly type: import("vue").PropType<boolean>;
|
|
743
755
|
readonly required: false;
|
|
@@ -851,5 +863,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
851
863
|
defaultItemValue: any;
|
|
852
864
|
source: Record<string, any>;
|
|
853
865
|
keepLastRow: boolean;
|
|
866
|
+
buttonAdd: "push" | "unshift";
|
|
854
867
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
855
868
|
export default _default;
|
|
@@ -69,7 +69,8 @@ const emits = {
|
|
|
69
69
|
const ROW_KEY = "_row_key";
|
|
70
70
|
var _sfc_main = /* @__PURE__ */vue.defineComponent({
|
|
71
71
|
...{
|
|
72
|
-
name: "VkfInputCollection"
|
|
72
|
+
name: "VkfInputCollection",
|
|
73
|
+
inheritAttrs: false
|
|
73
74
|
},
|
|
74
75
|
__name: "index",
|
|
75
76
|
props: props,
|
|
@@ -314,7 +315,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
314
315
|
default: vue.withCtx(() => [
|
|
315
316
|
vue.createVNode(
|
|
316
317
|
$setup["VkfFormItem"],
|
|
317
|
-
vue.normalizeProps(vue.guardReactiveProps(
|
|
318
|
+
vue.normalizeProps(vue.guardReactiveProps({
|
|
319
|
+
...$setup.formItemBindProps,
|
|
320
|
+
..._ctx.$attrs
|
|
321
|
+
})),
|
|
318
322
|
vue.createSlots({
|
|
319
323
|
default: vue.withCtx(() => [
|
|
320
324
|
!$setup.readonly && _ctx.splicable && !_ctx.labelActions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
@@ -65,7 +65,8 @@ const emits = {
|
|
|
65
65
|
const ROW_KEY = "_row_key";
|
|
66
66
|
var _sfc_main = /* @__PURE__ */defineComponent({
|
|
67
67
|
...{
|
|
68
|
-
name: "VkfInputCollection"
|
|
68
|
+
name: "VkfInputCollection",
|
|
69
|
+
inheritAttrs: false
|
|
69
70
|
},
|
|
70
71
|
__name: "index",
|
|
71
72
|
props: props,
|
|
@@ -310,7 +311,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
310
311
|
default: withCtx(() => [
|
|
311
312
|
createVNode(
|
|
312
313
|
$setup["VkfFormItem"],
|
|
313
|
-
normalizeProps(guardReactiveProps(
|
|
314
|
+
normalizeProps(guardReactiveProps({
|
|
315
|
+
...$setup.formItemBindProps,
|
|
316
|
+
..._ctx.$attrs
|
|
317
|
+
})),
|
|
314
318
|
createSlots({
|
|
315
319
|
default: withCtx(() => [
|
|
316
320
|
!$setup.readonly && _ctx.splicable && !_ctx.labelActions ? (openBlock(), createElementBlock("div", _hoisted_1, [
|