@vunk/form 2.14.14 → 2.14.16

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.
@@ -42,13 +42,6 @@ const props = {
42
42
  type: Object,
43
43
  default: () => ({})
44
44
  },
45
- /**
46
- * @description 保留最后一个不被删除
47
- */
48
- keepLast: {
49
- type: Boolean,
50
- default: false
51
- },
52
45
  /**
53
46
  * @description 开启 form-item 的 label 上的操作区域, 在labelPosition为top时生效
54
47
  */
@@ -63,6 +56,13 @@ const props = {
63
56
  type: Object,
64
57
  default: () => ({})
65
58
  },
59
+ /**
60
+ * @description 保留最后一个不被删除
61
+ */
62
+ keepLast: {
63
+ type: Boolean,
64
+ default: false
65
+ },
66
66
  /**
67
67
  * @description 是否开启顶部的添加按钮
68
68
  */
@@ -85,7 +85,6 @@ const emits = {
85
85
 
86
86
  var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
87
87
  ...{
88
- name: "VkfCardInputCollection",
89
88
  inheritAttrs: false
90
89
  },
91
90
  __name: "core",
@@ -193,41 +192,41 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
193
192
  vue.createVNode($setup["VkfTemplatesDefault"])
194
193
  ]),
195
194
  default: vue.withCtx(() => [
196
- vue.createVNode($setup["VkfRendererData"], {
197
- data: $setup.formData,
198
- onSetData: $setup.handleFormSetData
199
- }, {
200
- default: vue.withCtx(() => [
201
- vue.createVNode(
202
- $setup["VkfFormItem"],
203
- vue.mergeProps({ class: "vkf-card-input-collection" }, {
204
- ...$setup.formItemBindProps,
205
- ..._ctx.$attrs
206
- }),
207
- vue.createSlots({
195
+ vue.createVNode(
196
+ $setup["VkfFormItem"],
197
+ vue.mergeProps({ class: "vkf-card-input-collection" }, {
198
+ ...$setup.formItemBindProps,
199
+ ..._ctx.$attrs
200
+ }),
201
+ vue.createSlots({
202
+ default: vue.withCtx(() => [
203
+ !$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
204
+ vue.createVNode($setup["ElButton"], {
205
+ type: "primary",
206
+ onClick: _cache[1] || (_cache[1] = ($event) => $setup.handlePlus(-1))
207
+ }, {
208
+ default: vue.withCtx(() => _cache[3] || (_cache[3] = [
209
+ vue.createTextVNode(" \u6DFB\u52A0 ")
210
+ ])),
211
+ _: 1,
212
+ __: [3]
213
+ })
214
+ ])) : vue.createCommentVNode("v-if", true),
215
+ !_ctx.modelValue?.length ? (vue.openBlock(), vue.createBlock($setup["ElEmpty"], {
216
+ key: 1,
217
+ class: "vkf-card-input-collection-empty"
218
+ }, {
219
+ image: vue.withCtx(() => _cache[4] || (_cache[4] = [
220
+ vue.createTextVNode(vue.toDisplayString(""))
221
+ ])),
222
+ _: 1
223
+ /* STABLE */
224
+ })) : vue.createCommentVNode("v-if", true),
225
+ vue.createVNode($setup["VkfRendererData"], {
226
+ data: $setup.formData,
227
+ onSetData: $setup.handleFormSetData
228
+ }, {
208
229
  default: vue.withCtx(() => [
209
- !$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
210
- vue.createVNode($setup["ElButton"], {
211
- type: "primary",
212
- onClick: _cache[1] || (_cache[1] = ($event) => $setup.handlePlus(-1))
213
- }, {
214
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
215
- vue.createTextVNode(" \u6DFB\u52A0 ")
216
- ])),
217
- _: 1,
218
- __: [3]
219
- })
220
- ])) : vue.createCommentVNode("v-if", true),
221
- !_ctx.modelValue?.length ? (vue.openBlock(), vue.createBlock($setup["ElEmpty"], {
222
- key: 1,
223
- class: "vkf-card-input-collection-empty"
224
- }, {
225
- image: vue.withCtx(() => _cache[4] || (_cache[4] = [
226
- vue.createTextVNode(vue.toDisplayString(""))
227
- ])),
228
- _: 1
229
- /* STABLE */
230
- })) : vue.createCommentVNode("v-if", true),
231
230
  (vue.openBlock(true), vue.createElementBlock(
232
231
  vue.Fragment,
233
232
  null,
@@ -285,36 +284,36 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
285
284
  /* KEYED_FRAGMENT */
286
285
  ))
287
286
  ]),
288
- _: 2
289
- /* DYNAMIC */
290
- }, [
291
- _ctx.labelActions ? {
292
- name: "labelActions",
293
- fn: vue.withCtx(() => [
294
- vue.renderSlot(_ctx.$slots, "labelActions"),
295
- !$setup.readonly && _ctx.splicable && _ctx.topSplicable ? (vue.openBlock(), vue.createBlock($setup["ElButton"], {
296
- key: 0,
297
- size: "small",
298
- icon: $setup.Plus,
299
- onClick: _cache[0] || (_cache[0] = ($event) => $setup.handlePlus(-1))
300
- }, {
301
- default: vue.withCtx(() => _cache[2] || (_cache[2] = [
302
- vue.createTextVNode(" \u6DFB\u52A0 ")
303
- ])),
304
- _: 1,
305
- __: [2]
306
- }, 8, ["icon"])) : vue.createCommentVNode("v-if", true)
307
- ]),
308
- key: "0"
309
- } : void 0
287
+ _: 1
288
+ /* STABLE */
289
+ }, 8, ["data"])
290
+ ]),
291
+ _: 2
292
+ /* DYNAMIC */
293
+ }, [
294
+ _ctx.labelActions ? {
295
+ name: "labelActions",
296
+ fn: vue.withCtx(() => [
297
+ vue.renderSlot(_ctx.$slots, "labelActions"),
298
+ !$setup.readonly && _ctx.splicable && _ctx.topSplicable ? (vue.openBlock(), vue.createBlock($setup["ElButton"], {
299
+ key: 0,
300
+ size: "small",
301
+ icon: $setup.Plus,
302
+ onClick: _cache[0] || (_cache[0] = ($event) => $setup.handlePlus(-1))
303
+ }, {
304
+ default: vue.withCtx(() => _cache[2] || (_cache[2] = [
305
+ vue.createTextVNode(" \u6DFB\u52A0 ")
306
+ ])),
307
+ _: 1,
308
+ __: [2]
309
+ }, 8, ["icon"])) : vue.createCommentVNode("v-if", true)
310
310
  ]),
311
- 1040
312
- /* FULL_PROPS, DYNAMIC_SLOTS */
313
- )
311
+ key: "0"
312
+ } : void 0
314
313
  ]),
315
- _: 3
316
- /* FORWARDED */
317
- }, 8, ["data"])
314
+ 1040
315
+ /* FULL_PROPS, DYNAMIC_SLOTS */
316
+ )
318
317
  ]),
319
318
  _: 3
320
319
  /* FORWARDED */
@@ -323,6 +322,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
323
322
  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
323
 
325
324
  var _sfc_main = vue.defineComponent({
325
+ name: "VkfCardInputCollection",
326
326
  props,
327
327
  emits,
328
328
  setup(props2, { slots, emit }) {
@@ -38,13 +38,6 @@ const props = {
38
38
  type: Object,
39
39
  default: () => ({})
40
40
  },
41
- /**
42
- * @description 保留最后一个不被删除
43
- */
44
- keepLast: {
45
- type: Boolean,
46
- default: false
47
- },
48
41
  /**
49
42
  * @description 开启 form-item 的 label 上的操作区域, 在labelPosition为top时生效
50
43
  */
@@ -59,6 +52,13 @@ const props = {
59
52
  type: Object,
60
53
  default: () => ({})
61
54
  },
55
+ /**
56
+ * @description 保留最后一个不被删除
57
+ */
58
+ keepLast: {
59
+ type: Boolean,
60
+ default: false
61
+ },
62
62
  /**
63
63
  * @description 是否开启顶部的添加按钮
64
64
  */
@@ -81,7 +81,6 @@ const emits = {
81
81
 
82
82
  var _sfc_main$1 = /* @__PURE__ */ defineComponent({
83
83
  ...{
84
- name: "VkfCardInputCollection",
85
84
  inheritAttrs: false
86
85
  },
87
86
  __name: "core",
@@ -189,41 +188,41 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
189
188
  createVNode($setup["VkfTemplatesDefault"])
190
189
  ]),
191
190
  default: withCtx(() => [
192
- createVNode($setup["VkfRendererData"], {
193
- data: $setup.formData,
194
- onSetData: $setup.handleFormSetData
195
- }, {
196
- default: withCtx(() => [
197
- createVNode(
198
- $setup["VkfFormItem"],
199
- mergeProps({ class: "vkf-card-input-collection" }, {
200
- ...$setup.formItemBindProps,
201
- ..._ctx.$attrs
202
- }),
203
- createSlots({
191
+ createVNode(
192
+ $setup["VkfFormItem"],
193
+ mergeProps({ class: "vkf-card-input-collection" }, {
194
+ ...$setup.formItemBindProps,
195
+ ..._ctx.$attrs
196
+ }),
197
+ createSlots({
198
+ default: withCtx(() => [
199
+ !$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (openBlock(), createElementBlock("div", _hoisted_1, [
200
+ createVNode($setup["ElButton"], {
201
+ type: "primary",
202
+ onClick: _cache[1] || (_cache[1] = ($event) => $setup.handlePlus(-1))
203
+ }, {
204
+ default: withCtx(() => _cache[3] || (_cache[3] = [
205
+ createTextVNode(" \u6DFB\u52A0 ")
206
+ ])),
207
+ _: 1,
208
+ __: [3]
209
+ })
210
+ ])) : createCommentVNode("v-if", true),
211
+ !_ctx.modelValue?.length ? (openBlock(), createBlock($setup["ElEmpty"], {
212
+ key: 1,
213
+ class: "vkf-card-input-collection-empty"
214
+ }, {
215
+ image: withCtx(() => _cache[4] || (_cache[4] = [
216
+ createTextVNode(toDisplayString(""))
217
+ ])),
218
+ _: 1
219
+ /* STABLE */
220
+ })) : createCommentVNode("v-if", true),
221
+ createVNode($setup["VkfRendererData"], {
222
+ data: $setup.formData,
223
+ onSetData: $setup.handleFormSetData
224
+ }, {
204
225
  default: withCtx(() => [
205
- !$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (openBlock(), createElementBlock("div", _hoisted_1, [
206
- createVNode($setup["ElButton"], {
207
- type: "primary",
208
- onClick: _cache[1] || (_cache[1] = ($event) => $setup.handlePlus(-1))
209
- }, {
210
- default: withCtx(() => _cache[3] || (_cache[3] = [
211
- createTextVNode(" \u6DFB\u52A0 ")
212
- ])),
213
- _: 1,
214
- __: [3]
215
- })
216
- ])) : createCommentVNode("v-if", true),
217
- !_ctx.modelValue?.length ? (openBlock(), createBlock($setup["ElEmpty"], {
218
- key: 1,
219
- class: "vkf-card-input-collection-empty"
220
- }, {
221
- image: withCtx(() => _cache[4] || (_cache[4] = [
222
- createTextVNode(toDisplayString(""))
223
- ])),
224
- _: 1
225
- /* STABLE */
226
- })) : createCommentVNode("v-if", true),
227
226
  (openBlock(true), createElementBlock(
228
227
  Fragment,
229
228
  null,
@@ -281,36 +280,36 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
281
280
  /* KEYED_FRAGMENT */
282
281
  ))
283
282
  ]),
284
- _: 2
285
- /* DYNAMIC */
286
- }, [
287
- _ctx.labelActions ? {
288
- name: "labelActions",
289
- fn: withCtx(() => [
290
- renderSlot(_ctx.$slots, "labelActions"),
291
- !$setup.readonly && _ctx.splicable && _ctx.topSplicable ? (openBlock(), createBlock($setup["ElButton"], {
292
- key: 0,
293
- size: "small",
294
- icon: $setup.Plus,
295
- onClick: _cache[0] || (_cache[0] = ($event) => $setup.handlePlus(-1))
296
- }, {
297
- default: withCtx(() => _cache[2] || (_cache[2] = [
298
- createTextVNode(" \u6DFB\u52A0 ")
299
- ])),
300
- _: 1,
301
- __: [2]
302
- }, 8, ["icon"])) : createCommentVNode("v-if", true)
303
- ]),
304
- key: "0"
305
- } : void 0
283
+ _: 1
284
+ /* STABLE */
285
+ }, 8, ["data"])
286
+ ]),
287
+ _: 2
288
+ /* DYNAMIC */
289
+ }, [
290
+ _ctx.labelActions ? {
291
+ name: "labelActions",
292
+ fn: withCtx(() => [
293
+ renderSlot(_ctx.$slots, "labelActions"),
294
+ !$setup.readonly && _ctx.splicable && _ctx.topSplicable ? (openBlock(), createBlock($setup["ElButton"], {
295
+ key: 0,
296
+ size: "small",
297
+ icon: $setup.Plus,
298
+ onClick: _cache[0] || (_cache[0] = ($event) => $setup.handlePlus(-1))
299
+ }, {
300
+ default: withCtx(() => _cache[2] || (_cache[2] = [
301
+ createTextVNode(" \u6DFB\u52A0 ")
302
+ ])),
303
+ _: 1,
304
+ __: [2]
305
+ }, 8, ["icon"])) : createCommentVNode("v-if", true)
306
306
  ]),
307
- 1040
308
- /* FULL_PROPS, DYNAMIC_SLOTS */
309
- )
307
+ key: "0"
308
+ } : void 0
310
309
  ]),
311
- _: 3
312
- /* FORWARDED */
313
- }, 8, ["data"])
310
+ 1040
311
+ /* FULL_PROPS, DYNAMIC_SLOTS */
312
+ )
314
313
  ]),
315
314
  _: 3
316
315
  /* FORWARDED */
@@ -319,6 +318,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
319
318
  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
319
 
321
320
  var _sfc_main = defineComponent({
321
+ name: "VkfCardInputCollection",
322
322
  props,
323
323
  emits,
324
324
  setup(props2, { slots, emit }) {
@@ -21,10 +21,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
21
21
  type: import("vue").PropType<import("./types").Slots>;
22
22
  default: () => {};
23
23
  };
24
- keepLast: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
24
  labelActions: {
29
25
  type: BooleanConstructor;
30
26
  default: boolean;
@@ -33,6 +29,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
33
29
  type: import("vue").PropType<NormalObject>;
34
30
  default: () => {};
35
31
  };
32
+ keepLast: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
36
  topSplicable: {
37
37
  type: BooleanConstructor;
38
38
  default: boolean;
@@ -148,10 +148,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
148
148
  type: import("vue").PropType<import("./types").Slots>;
149
149
  default: () => {};
150
150
  };
151
- keepLast: {
152
- type: BooleanConstructor;
153
- default: boolean;
154
- };
155
151
  labelActions: {
156
152
  type: BooleanConstructor;
157
153
  default: boolean;
@@ -160,6 +156,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
160
156
  type: import("vue").PropType<NormalObject>;
161
157
  default: () => {};
162
158
  };
159
+ keepLast: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ };
163
163
  topSplicable: {
164
164
  type: BooleanConstructor;
165
165
  default: boolean;
@@ -965,10 +965,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
965
965
  type: import("vue").PropType<import("./types").Slots>;
966
966
  default: () => {};
967
967
  };
968
- keepLast: {
969
- type: BooleanConstructor;
970
- default: boolean;
971
- };
972
968
  labelActions: {
973
969
  type: BooleanConstructor;
974
970
  default: boolean;
@@ -977,6 +973,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
977
973
  type: import("vue").PropType<NormalObject>;
978
974
  default: () => {};
979
975
  };
976
+ keepLast: {
977
+ type: BooleanConstructor;
978
+ default: boolean;
979
+ };
980
980
  topSplicable: {
981
981
  type: BooleanConstructor;
982
982
  default: boolean;
@@ -1092,8 +1092,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1092
1092
  columns: any[];
1093
1093
  labelActions: boolean;
1094
1094
  splicable: boolean;
1095
- keepLast: boolean;
1096
1095
  defaultItemValue: NormalObject;
1096
+ keepLast: boolean;
1097
1097
  topSplicable: boolean;
1098
1098
  cardProps: Partial<import("element-plus").CardProps>;
1099
1099
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -26,13 +26,6 @@ export declare const props: {
26
26
  type: PropType<Slots>;
27
27
  default: () => {};
28
28
  };
29
- /**
30
- * @description 保留最后一个不被删除
31
- */
32
- keepLast: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
29
  /**
37
30
  * @description 开启 form-item 的 label 上的操作区域, 在labelPosition为top时生效
38
31
  */
@@ -47,6 +40,13 @@ export declare const props: {
47
40
  type: PropType<NormalObject>;
48
41
  default: () => {};
49
42
  };
43
+ /**
44
+ * @description 保留最后一个不被删除
45
+ */
46
+ keepLast: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
50
  /**
51
51
  * @description 是否开启顶部的添加按钮
52
52
  */
@@ -19,10 +19,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
19
19
  type: import("vue").PropType<import("./types").Slots>;
20
20
  default: () => {};
21
21
  };
22
- keepLast: {
23
- type: BooleanConstructor;
24
- default: boolean;
25
- };
26
22
  labelActions: {
27
23
  type: BooleanConstructor;
28
24
  default: boolean;
@@ -31,6 +27,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
31
27
  type: import("vue").PropType<import("@vunk/shared").NormalObject>;
32
28
  default: () => {};
33
29
  };
30
+ keepLast: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
34
  topSplicable: {
35
35
  type: BooleanConstructor;
36
36
  default: boolean;
@@ -149,10 +149,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
149
149
  type: import("vue").PropType<import("./types").Slots>;
150
150
  default: () => {};
151
151
  };
152
- keepLast: {
153
- type: BooleanConstructor;
154
- default: boolean;
155
- };
156
152
  labelActions: {
157
153
  type: BooleanConstructor;
158
154
  default: boolean;
@@ -161,6 +157,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
161
157
  type: import("vue").PropType<import("@vunk/shared").NormalObject>;
162
158
  default: () => {};
163
159
  };
160
+ keepLast: {
161
+ type: BooleanConstructor;
162
+ default: boolean;
163
+ };
164
164
  topSplicable: {
165
165
  type: BooleanConstructor;
166
166
  default: boolean;
@@ -276,8 +276,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
276
276
  columns: any[];
277
277
  labelActions: boolean;
278
278
  splicable: boolean;
279
- keepLast: boolean;
280
279
  defaultItemValue: import("@vunk/shared").NormalObject;
280
+ keepLast: boolean;
281
281
  topSplicable: boolean;
282
282
  cardProps: Partial<import("element-plus").CardProps>;
283
283
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;