@vunk/form 2.14.15 → 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.
@@ -192,41 +192,41 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
192
192
  vue.createVNode($setup["VkfTemplatesDefault"])
193
193
  ]),
194
194
  default: vue.withCtx(() => [
195
- vue.createVNode($setup["VkfRendererData"], {
196
- data: $setup.formData,
197
- onSetData: $setup.handleFormSetData
198
- }, {
199
- default: vue.withCtx(() => [
200
- vue.createVNode(
201
- $setup["VkfFormItem"],
202
- vue.mergeProps({ class: "vkf-card-input-collection" }, {
203
- ...$setup.formItemBindProps,
204
- ..._ctx.$attrs
205
- }),
206
- 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
+ }, {
207
229
  default: vue.withCtx(() => [
208
- !$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
209
- vue.createVNode($setup["ElButton"], {
210
- type: "primary",
211
- onClick: _cache[1] || (_cache[1] = ($event) => $setup.handlePlus(-1))
212
- }, {
213
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
214
- vue.createTextVNode(" \u6DFB\u52A0 ")
215
- ])),
216
- _: 1,
217
- __: [3]
218
- })
219
- ])) : vue.createCommentVNode("v-if", true),
220
- !_ctx.modelValue?.length ? (vue.openBlock(), vue.createBlock($setup["ElEmpty"], {
221
- key: 1,
222
- class: "vkf-card-input-collection-empty"
223
- }, {
224
- image: vue.withCtx(() => _cache[4] || (_cache[4] = [
225
- vue.createTextVNode(vue.toDisplayString(""))
226
- ])),
227
- _: 1
228
- /* STABLE */
229
- })) : vue.createCommentVNode("v-if", true),
230
230
  (vue.openBlock(true), vue.createElementBlock(
231
231
  vue.Fragment,
232
232
  null,
@@ -284,36 +284,36 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
284
284
  /* KEYED_FRAGMENT */
285
285
  ))
286
286
  ]),
287
- _: 2
288
- /* DYNAMIC */
289
- }, [
290
- _ctx.labelActions ? {
291
- name: "labelActions",
292
- fn: vue.withCtx(() => [
293
- vue.renderSlot(_ctx.$slots, "labelActions"),
294
- !$setup.readonly && _ctx.splicable && _ctx.topSplicable ? (vue.openBlock(), vue.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: vue.withCtx(() => _cache[2] || (_cache[2] = [
301
- vue.createTextVNode(" \u6DFB\u52A0 ")
302
- ])),
303
- _: 1,
304
- __: [2]
305
- }, 8, ["icon"])) : vue.createCommentVNode("v-if", true)
306
- ]),
307
- key: "0"
308
- } : 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)
309
310
  ]),
310
- 1040
311
- /* FULL_PROPS, DYNAMIC_SLOTS */
312
- )
311
+ key: "0"
312
+ } : void 0
313
313
  ]),
314
- _: 3
315
- /* FORWARDED */
316
- }, 8, ["data"])
314
+ 1040
315
+ /* FULL_PROPS, DYNAMIC_SLOTS */
316
+ )
317
317
  ]),
318
318
  _: 3
319
319
  /* FORWARDED */
@@ -188,41 +188,41 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
188
188
  createVNode($setup["VkfTemplatesDefault"])
189
189
  ]),
190
190
  default: withCtx(() => [
191
- createVNode($setup["VkfRendererData"], {
192
- data: $setup.formData,
193
- onSetData: $setup.handleFormSetData
194
- }, {
195
- default: withCtx(() => [
196
- createVNode(
197
- $setup["VkfFormItem"],
198
- mergeProps({ class: "vkf-card-input-collection" }, {
199
- ...$setup.formItemBindProps,
200
- ..._ctx.$attrs
201
- }),
202
- 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
+ }, {
203
225
  default: withCtx(() => [
204
- !$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (openBlock(), createElementBlock("div", _hoisted_1, [
205
- createVNode($setup["ElButton"], {
206
- type: "primary",
207
- onClick: _cache[1] || (_cache[1] = ($event) => $setup.handlePlus(-1))
208
- }, {
209
- default: withCtx(() => _cache[3] || (_cache[3] = [
210
- createTextVNode(" \u6DFB\u52A0 ")
211
- ])),
212
- _: 1,
213
- __: [3]
214
- })
215
- ])) : createCommentVNode("v-if", true),
216
- !_ctx.modelValue?.length ? (openBlock(), createBlock($setup["ElEmpty"], {
217
- key: 1,
218
- class: "vkf-card-input-collection-empty"
219
- }, {
220
- image: withCtx(() => _cache[4] || (_cache[4] = [
221
- createTextVNode(toDisplayString(""))
222
- ])),
223
- _: 1
224
- /* STABLE */
225
- })) : createCommentVNode("v-if", true),
226
226
  (openBlock(true), createElementBlock(
227
227
  Fragment,
228
228
  null,
@@ -280,36 +280,36 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
280
280
  /* KEYED_FRAGMENT */
281
281
  ))
282
282
  ]),
283
- _: 2
284
- /* DYNAMIC */
285
- }, [
286
- _ctx.labelActions ? {
287
- name: "labelActions",
288
- fn: withCtx(() => [
289
- renderSlot(_ctx.$slots, "labelActions"),
290
- !$setup.readonly && _ctx.splicable && _ctx.topSplicable ? (openBlock(), createBlock($setup["ElButton"], {
291
- key: 0,
292
- size: "small",
293
- icon: $setup.Plus,
294
- onClick: _cache[0] || (_cache[0] = ($event) => $setup.handlePlus(-1))
295
- }, {
296
- default: withCtx(() => _cache[2] || (_cache[2] = [
297
- createTextVNode(" \u6DFB\u52A0 ")
298
- ])),
299
- _: 1,
300
- __: [2]
301
- }, 8, ["icon"])) : createCommentVNode("v-if", true)
302
- ]),
303
- key: "0"
304
- } : 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)
305
306
  ]),
306
- 1040
307
- /* FULL_PROPS, DYNAMIC_SLOTS */
308
- )
307
+ key: "0"
308
+ } : void 0
309
309
  ]),
310
- _: 3
311
- /* FORWARDED */
312
- }, 8, ["data"])
310
+ 1040
311
+ /* FULL_PROPS, DYNAMIC_SLOTS */
312
+ )
313
313
  ]),
314
314
  _: 3
315
315
  /* FORWARDED */
@@ -329,31 +329,31 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
329
329
  vue.createVNode($setup["VkfTemplatesDefault"])
330
330
  ]),
331
331
  default: vue.withCtx(() => [
332
- vue.createVNode($setup["VkfRendererData"], {
333
- data: $setup.formData,
334
- onSetData: $setup.handleFormSetData
335
- }, {
336
- default: vue.withCtx(() => [
337
- vue.createVNode(
338
- $setup["VkfFormItem"],
339
- vue.normalizeProps(vue.guardReactiveProps({
340
- ...$setup.formItemBindProps,
341
- ..._ctx.$attrs
342
- })),
343
- vue.createSlots({
332
+ vue.createVNode(
333
+ $setup["VkfFormItem"],
334
+ vue.normalizeProps(vue.guardReactiveProps({
335
+ ...$setup.formItemBindProps,
336
+ ..._ctx.$attrs
337
+ })),
338
+ vue.createSlots({
339
+ default: vue.withCtx(() => [
340
+ !$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
341
+ vue.createVNode($setup["ElButton"], {
342
+ type: "primary",
343
+ onClick: $setup.addToFirst
344
+ }, {
345
+ default: vue.withCtx(() => _cache[1] || (_cache[1] = [
346
+ vue.createTextVNode(" \u6DFB\u52A0 ")
347
+ ])),
348
+ _: 1,
349
+ __: [1]
350
+ })
351
+ ])) : vue.createCommentVNode("v-if", true),
352
+ vue.createVNode($setup["VkfRendererData"], {
353
+ data: $setup.formData,
354
+ onSetData: $setup.handleFormSetData
355
+ }, {
344
356
  default: vue.withCtx(() => [
345
- !$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
346
- vue.createVNode($setup["ElButton"], {
347
- type: "primary",
348
- onClick: $setup.addToFirst
349
- }, {
350
- default: vue.withCtx(() => _cache[1] || (_cache[1] = [
351
- vue.createTextVNode(" \u6DFB\u52A0 ")
352
- ])),
353
- _: 1,
354
- __: [1]
355
- })
356
- ])) : vue.createCommentVNode("v-if", true),
357
357
  vue.createVNode($setup["ElTable"], {
358
358
  data: $setup.tableData,
359
359
  class: "vkf-input-collection-table",
@@ -369,36 +369,36 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
369
369
  /* STABLE */
370
370
  }, 8, ["data", "expand-row-keys"])
371
371
  ]),
372
- _: 2
373
- /* DYNAMIC */
374
- }, [
375
- _ctx.labelActions ? {
376
- name: "labelActions",
377
- fn: vue.withCtx(() => [
378
- vue.renderSlot(_ctx.$slots, "labelActions"),
379
- !$setup.readonly && _ctx.splicable && _ctx.topSplicable ? (vue.openBlock(), vue.createBlock($setup["ElButton"], {
380
- key: 0,
381
- size: "small",
382
- icon: $setup.Plus,
383
- onClick: $setup.addToFirst
384
- }, {
385
- default: vue.withCtx(() => _cache[0] || (_cache[0] = [
386
- vue.createTextVNode(" \u6DFB\u52A0 ")
387
- ])),
388
- _: 1,
389
- __: [0]
390
- }, 8, ["icon"])) : vue.createCommentVNode("v-if", true)
391
- ]),
392
- key: "0"
393
- } : void 0
372
+ _: 1
373
+ /* STABLE */
374
+ }, 8, ["data"])
375
+ ]),
376
+ _: 2
377
+ /* DYNAMIC */
378
+ }, [
379
+ _ctx.labelActions ? {
380
+ name: "labelActions",
381
+ fn: vue.withCtx(() => [
382
+ vue.renderSlot(_ctx.$slots, "labelActions"),
383
+ !$setup.readonly && _ctx.splicable && _ctx.topSplicable ? (vue.openBlock(), vue.createBlock($setup["ElButton"], {
384
+ key: 0,
385
+ size: "small",
386
+ icon: $setup.Plus,
387
+ onClick: $setup.addToFirst
388
+ }, {
389
+ default: vue.withCtx(() => _cache[0] || (_cache[0] = [
390
+ vue.createTextVNode(" \u6DFB\u52A0 ")
391
+ ])),
392
+ _: 1,
393
+ __: [0]
394
+ }, 8, ["icon"])) : vue.createCommentVNode("v-if", true)
394
395
  ]),
395
- 1040
396
- /* FULL_PROPS, DYNAMIC_SLOTS */
397
- )
396
+ key: "0"
397
+ } : void 0
398
398
  ]),
399
- _: 3
400
- /* FORWARDED */
401
- }, 8, ["data"]),
399
+ 1040
400
+ /* FULL_PROPS, DYNAMIC_SLOTS */
401
+ ),
402
402
  vue.renderSlot(_ctx.$slots, "default")
403
403
  ]),
404
404
  _: 3
@@ -325,31 +325,31 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
325
325
  createVNode($setup["VkfTemplatesDefault"])
326
326
  ]),
327
327
  default: withCtx(() => [
328
- createVNode($setup["VkfRendererData"], {
329
- data: $setup.formData,
330
- onSetData: $setup.handleFormSetData
331
- }, {
332
- default: withCtx(() => [
333
- createVNode(
334
- $setup["VkfFormItem"],
335
- normalizeProps(guardReactiveProps({
336
- ...$setup.formItemBindProps,
337
- ..._ctx.$attrs
338
- })),
339
- createSlots({
328
+ createVNode(
329
+ $setup["VkfFormItem"],
330
+ normalizeProps(guardReactiveProps({
331
+ ...$setup.formItemBindProps,
332
+ ..._ctx.$attrs
333
+ })),
334
+ createSlots({
335
+ default: withCtx(() => [
336
+ !$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (openBlock(), createElementBlock("div", _hoisted_1, [
337
+ createVNode($setup["ElButton"], {
338
+ type: "primary",
339
+ onClick: $setup.addToFirst
340
+ }, {
341
+ default: withCtx(() => _cache[1] || (_cache[1] = [
342
+ createTextVNode(" \u6DFB\u52A0 ")
343
+ ])),
344
+ _: 1,
345
+ __: [1]
346
+ })
347
+ ])) : createCommentVNode("v-if", true),
348
+ createVNode($setup["VkfRendererData"], {
349
+ data: $setup.formData,
350
+ onSetData: $setup.handleFormSetData
351
+ }, {
340
352
  default: withCtx(() => [
341
- !$setup.readonly && _ctx.splicable && !_ctx.labelActions && _ctx.topSplicable ? (openBlock(), createElementBlock("div", _hoisted_1, [
342
- createVNode($setup["ElButton"], {
343
- type: "primary",
344
- onClick: $setup.addToFirst
345
- }, {
346
- default: withCtx(() => _cache[1] || (_cache[1] = [
347
- createTextVNode(" \u6DFB\u52A0 ")
348
- ])),
349
- _: 1,
350
- __: [1]
351
- })
352
- ])) : createCommentVNode("v-if", true),
353
353
  createVNode($setup["ElTable"], {
354
354
  data: $setup.tableData,
355
355
  class: "vkf-input-collection-table",
@@ -365,36 +365,36 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
365
365
  /* STABLE */
366
366
  }, 8, ["data", "expand-row-keys"])
367
367
  ]),
368
- _: 2
369
- /* DYNAMIC */
370
- }, [
371
- _ctx.labelActions ? {
372
- name: "labelActions",
373
- fn: withCtx(() => [
374
- renderSlot(_ctx.$slots, "labelActions"),
375
- !$setup.readonly && _ctx.splicable && _ctx.topSplicable ? (openBlock(), createBlock($setup["ElButton"], {
376
- key: 0,
377
- size: "small",
378
- icon: $setup.Plus,
379
- onClick: $setup.addToFirst
380
- }, {
381
- default: withCtx(() => _cache[0] || (_cache[0] = [
382
- createTextVNode(" \u6DFB\u52A0 ")
383
- ])),
384
- _: 1,
385
- __: [0]
386
- }, 8, ["icon"])) : createCommentVNode("v-if", true)
387
- ]),
388
- key: "0"
389
- } : void 0
368
+ _: 1
369
+ /* STABLE */
370
+ }, 8, ["data"])
371
+ ]),
372
+ _: 2
373
+ /* DYNAMIC */
374
+ }, [
375
+ _ctx.labelActions ? {
376
+ name: "labelActions",
377
+ fn: withCtx(() => [
378
+ renderSlot(_ctx.$slots, "labelActions"),
379
+ !$setup.readonly && _ctx.splicable && _ctx.topSplicable ? (openBlock(), createBlock($setup["ElButton"], {
380
+ key: 0,
381
+ size: "small",
382
+ icon: $setup.Plus,
383
+ onClick: $setup.addToFirst
384
+ }, {
385
+ default: withCtx(() => _cache[0] || (_cache[0] = [
386
+ createTextVNode(" \u6DFB\u52A0 ")
387
+ ])),
388
+ _: 1,
389
+ __: [0]
390
+ }, 8, ["icon"])) : createCommentVNode("v-if", true)
390
391
  ]),
391
- 1040
392
- /* FULL_PROPS, DYNAMIC_SLOTS */
393
- )
392
+ key: "0"
393
+ } : void 0
394
394
  ]),
395
- _: 3
396
- /* FORWARDED */
397
- }, 8, ["data"]),
395
+ 1040
396
+ /* FULL_PROPS, DYNAMIC_SLOTS */
397
+ ),
398
398
  renderSlot(_ctx.$slots, "default")
399
399
  ]),
400
400
  _: 3
@@ -1,9 +1,11 @@
1
- import type { Func, VueComponentPropsType } from '@vunk/core';
1
+ import type { VueComponentPropsType } from '@vunk/core';
2
2
  import { BasicSource } from '@vunk/form/shared';
3
3
  import VkfSelect from './index.vue';
4
+ import { AnyFunc } from '@vunk/shared';
4
5
  export type SelectSlots = {
5
- prefix?: Func;
6
- empty?: Func;
6
+ prefix?: AnyFunc;
7
+ empty?: AnyFunc;
8
+ label?: AnyFunc;
7
9
  };
8
10
  export interface Source<P = string> extends VueComponentPropsType<typeof VkfSelect>, BasicSource {
9
11
  prop: P;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "2.14.15",
3
+ "version": "2.14.16",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {