@vunk/form 2.14.12 → 2.14.14
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/card-input-collection/index.cjs +38 -11
- package/components/card-input-collection/index.mjs +39 -12
- package/components/card-input-collection/src/core.vue.d.ts +1100 -0
- package/components/card-input-collection/src/ctx.d.ts +9 -0
- package/components/card-input-collection/src/index.vue.d.ts +18 -821
- package/components/card-input-collection/src/types.d.ts +1 -1
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -1
- package/components/dialog-input-collection/src/index.vue.d.ts +1 -1
- package/components/form-item/index.cjs +4 -1
- package/components/form-item/index.css +3 -0
- package/components/form-item/index.mjs +4 -1
- package/index.css +3 -0
- package/package.json +1 -1
|
@@ -69,17 +69,26 @@ const props = {
|
|
|
69
69
|
topSplicable: {
|
|
70
70
|
type: Boolean,
|
|
71
71
|
default: true
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* @description 卡片的属性
|
|
75
|
+
* @link https://element-plus.org/en-US/component/card.html#card-attributes
|
|
76
|
+
*/
|
|
77
|
+
cardProps: {
|
|
78
|
+
type: Object,
|
|
79
|
+
default: () => ({})
|
|
72
80
|
}
|
|
73
81
|
};
|
|
74
82
|
const emits = {
|
|
75
83
|
"update:modelValue": null
|
|
76
84
|
};
|
|
77
85
|
|
|
78
|
-
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
86
|
+
var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
79
87
|
...{
|
|
80
|
-
name: "VkfCardInputCollection"
|
|
88
|
+
name: "VkfCardInputCollection",
|
|
89
|
+
inheritAttrs: false
|
|
81
90
|
},
|
|
82
|
-
__name: "
|
|
91
|
+
__name: "core",
|
|
83
92
|
props: props,
|
|
84
93
|
emits,
|
|
85
94
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -191,7 +200,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
191
200
|
default: vue.withCtx(() => [
|
|
192
201
|
vue.createVNode(
|
|
193
202
|
$setup["VkfFormItem"],
|
|
194
|
-
vue.mergeProps(
|
|
203
|
+
vue.mergeProps({ class: "vkf-card-input-collection" }, {
|
|
204
|
+
...$setup.formItemBindProps,
|
|
205
|
+
..._ctx.$attrs
|
|
206
|
+
}),
|
|
195
207
|
vue.createSlots({
|
|
196
208
|
default: vue.withCtx(() => [
|
|
197
209
|
!$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
@@ -222,11 +234,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
222
234
|
vue.renderList(_ctx.modelValue, (_, index) => {
|
|
223
235
|
return vue.openBlock(), vue.createBlock(
|
|
224
236
|
$setup["ElCard"],
|
|
225
|
-
{
|
|
237
|
+
vue.mergeProps({
|
|
226
238
|
key: index,
|
|
227
|
-
class: "vkf-card-input-collection-card"
|
|
228
|
-
|
|
229
|
-
},
|
|
239
|
+
class: "vkf-card-input-collection-card"
|
|
240
|
+
}, { ref_for: true }, _ctx.cardProps),
|
|
230
241
|
vue.createSlots({
|
|
231
242
|
default: vue.withCtx(() => [
|
|
232
243
|
vue.createVNode($setup["VkfFormItemRenderer"], {
|
|
@@ -266,8 +277,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
266
277
|
key: "0"
|
|
267
278
|
} : void 0
|
|
268
279
|
]),
|
|
269
|
-
|
|
270
|
-
/* DYNAMIC_SLOTS */
|
|
280
|
+
1040
|
|
281
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
271
282
|
);
|
|
272
283
|
}),
|
|
273
284
|
128
|
|
@@ -309,7 +320,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
309
320
|
/* FORWARDED */
|
|
310
321
|
});
|
|
311
322
|
}
|
|
312
|
-
var
|
|
323
|
+
var Core = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/card-input-collection/src/core.vue"]]);
|
|
324
|
+
|
|
325
|
+
var _sfc_main = vue.defineComponent({
|
|
326
|
+
props,
|
|
327
|
+
emits,
|
|
328
|
+
setup(props2, { slots, emit }) {
|
|
329
|
+
return () => vue.h(Core, {
|
|
330
|
+
...props2,
|
|
331
|
+
"onUpdate:modelValue": (e) => emit("update:modelValue", e)
|
|
332
|
+
}, {
|
|
333
|
+
...props2.slots,
|
|
334
|
+
...slots
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
var VkfCardInputCollection = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/card-input-collection/src/index.vue"]]);
|
|
313
340
|
|
|
314
341
|
var types = /*#__PURE__*/Object.freeze({
|
|
315
342
|
__proto__: null
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, withCtx, createVNode, mergeProps, createSlots, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, Fragment, renderList, createElementVNode, renderSlot } from 'vue';
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, withCtx, createVNode, mergeProps, createSlots, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, Fragment, renderList, createElementVNode, renderSlot, h } from 'vue';
|
|
2
2
|
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
3
3
|
import { useComputedReadonly } from '@vunk/form/composables';
|
|
4
4
|
import { ElButton, ElCard, ElEmpty } from 'element-plus';
|
|
@@ -65,17 +65,26 @@ const props = {
|
|
|
65
65
|
topSplicable: {
|
|
66
66
|
type: Boolean,
|
|
67
67
|
default: true
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* @description 卡片的属性
|
|
71
|
+
* @link https://element-plus.org/en-US/component/card.html#card-attributes
|
|
72
|
+
*/
|
|
73
|
+
cardProps: {
|
|
74
|
+
type: Object,
|
|
75
|
+
default: () => ({})
|
|
68
76
|
}
|
|
69
77
|
};
|
|
70
78
|
const emits = {
|
|
71
79
|
"update:modelValue": null
|
|
72
80
|
};
|
|
73
81
|
|
|
74
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
82
|
+
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
75
83
|
...{
|
|
76
|
-
name: "VkfCardInputCollection"
|
|
84
|
+
name: "VkfCardInputCollection",
|
|
85
|
+
inheritAttrs: false
|
|
77
86
|
},
|
|
78
|
-
__name: "
|
|
87
|
+
__name: "core",
|
|
79
88
|
props: props,
|
|
80
89
|
emits,
|
|
81
90
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -187,7 +196,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
187
196
|
default: withCtx(() => [
|
|
188
197
|
createVNode(
|
|
189
198
|
$setup["VkfFormItem"],
|
|
190
|
-
mergeProps(
|
|
199
|
+
mergeProps({ class: "vkf-card-input-collection" }, {
|
|
200
|
+
...$setup.formItemBindProps,
|
|
201
|
+
..._ctx.$attrs
|
|
202
|
+
}),
|
|
191
203
|
createSlots({
|
|
192
204
|
default: withCtx(() => [
|
|
193
205
|
!$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -218,11 +230,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
218
230
|
renderList(_ctx.modelValue, (_, index) => {
|
|
219
231
|
return openBlock(), createBlock(
|
|
220
232
|
$setup["ElCard"],
|
|
221
|
-
{
|
|
233
|
+
mergeProps({
|
|
222
234
|
key: index,
|
|
223
|
-
class: "vkf-card-input-collection-card"
|
|
224
|
-
|
|
225
|
-
},
|
|
235
|
+
class: "vkf-card-input-collection-card"
|
|
236
|
+
}, { ref_for: true }, _ctx.cardProps),
|
|
226
237
|
createSlots({
|
|
227
238
|
default: withCtx(() => [
|
|
228
239
|
createVNode($setup["VkfFormItemRenderer"], {
|
|
@@ -262,8 +273,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
262
273
|
key: "0"
|
|
263
274
|
} : void 0
|
|
264
275
|
]),
|
|
265
|
-
|
|
266
|
-
/* DYNAMIC_SLOTS */
|
|
276
|
+
1040
|
|
277
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
267
278
|
);
|
|
268
279
|
}),
|
|
269
280
|
128
|
|
@@ -305,7 +316,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
305
316
|
/* FORWARDED */
|
|
306
317
|
});
|
|
307
318
|
}
|
|
308
|
-
var
|
|
319
|
+
var Core = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/card-input-collection/src/core.vue"]]);
|
|
320
|
+
|
|
321
|
+
var _sfc_main = defineComponent({
|
|
322
|
+
props,
|
|
323
|
+
emits,
|
|
324
|
+
setup(props2, { slots, emit }) {
|
|
325
|
+
return () => h(Core, {
|
|
326
|
+
...props2,
|
|
327
|
+
"onUpdate:modelValue": (e) => emit("update:modelValue", e)
|
|
328
|
+
}, {
|
|
329
|
+
...props2.slots,
|
|
330
|
+
...slots
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
var VkfCardInputCollection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/card-input-collection/src/index.vue"]]);
|
|
309
336
|
|
|
310
337
|
var types = /*#__PURE__*/Object.freeze({
|
|
311
338
|
__proto__: null
|