@vunk/form 2.14.15 → 2.14.17
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 +62 -62
- package/components/card-input-collection/index.mjs +62 -62
- package/components/input-collection/index.cjs +52 -52
- package/components/input-collection/index.mjs +52 -52
- package/components/select/index.cjs +31 -7
- package/components/select/index.mjs +32 -8
- package/components/select/src/core.vue.d.ts +1040 -0
- package/components/select/src/ctx.d.ts +2 -1
- package/components/select/src/index.vue.d.ts +9 -416
- package/components/select/src/types.d.ts +5 -3
- package/package.json +1 -1
|
@@ -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(
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
_:
|
|
288
|
-
/*
|
|
289
|
-
}, [
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
]),
|
|
307
|
-
|
|
308
|
-
|
|
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
|
-
|
|
311
|
-
|
|
312
|
-
)
|
|
311
|
+
key: "0"
|
|
312
|
+
} : void 0
|
|
313
313
|
]),
|
|
314
|
-
|
|
315
|
-
/*
|
|
316
|
-
|
|
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(
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
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
|
-
_:
|
|
284
|
-
/*
|
|
285
|
-
}, [
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
]),
|
|
303
|
-
|
|
304
|
-
|
|
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
|
-
|
|
307
|
-
|
|
308
|
-
)
|
|
307
|
+
key: "0"
|
|
308
|
+
} : void 0
|
|
309
309
|
]),
|
|
310
|
-
|
|
311
|
-
/*
|
|
312
|
-
|
|
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(
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
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
|
-
_:
|
|
373
|
-
/*
|
|
374
|
-
}, [
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
]),
|
|
392
|
-
|
|
393
|
-
|
|
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
|
-
|
|
396
|
-
|
|
397
|
-
)
|
|
396
|
+
key: "0"
|
|
397
|
+
} : void 0
|
|
398
398
|
]),
|
|
399
|
-
|
|
400
|
-
/*
|
|
401
|
-
|
|
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(
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
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
|
-
_:
|
|
369
|
-
/*
|
|
370
|
-
}, [
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
]),
|
|
388
|
-
|
|
389
|
-
|
|
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
|
-
|
|
392
|
-
|
|
393
|
-
)
|
|
392
|
+
key: "0"
|
|
393
|
+
} : void 0
|
|
394
394
|
]),
|
|
395
|
-
|
|
396
|
-
/*
|
|
397
|
-
|
|
395
|
+
1040
|
|
396
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
397
|
+
),
|
|
398
398
|
renderSlot(_ctx.$slots, "default")
|
|
399
399
|
]),
|
|
400
400
|
_: 3
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
5
6
|
var formItem = require('@vunk/form/components/form-item');
|
|
6
7
|
var elementPlus = require('@vunk/form/shared/element-plus');
|
|
7
8
|
var utilsVue = require('@vunk/core/shared/utils-vue');
|
|
8
|
-
var vue = require('vue');
|
|
9
9
|
var elementPlus$1 = require('element-plus');
|
|
10
10
|
var utilsObject = require('@vunk/core/shared/utils-object');
|
|
11
11
|
var composables = require('@vunk/form/composables');
|
|
@@ -34,7 +34,8 @@ const props = {
|
|
|
34
34
|
stringify: {
|
|
35
35
|
type: Boolean,
|
|
36
36
|
default: false
|
|
37
|
-
}
|
|
37
|
+
},
|
|
38
|
+
slots: null
|
|
38
39
|
};
|
|
39
40
|
const createBindProps = utilsVue.bindPropsFactory(props);
|
|
40
41
|
const emits = {
|
|
@@ -50,7 +51,7 @@ var ctx = /*#__PURE__*/Object.freeze({
|
|
|
50
51
|
props: props
|
|
51
52
|
});
|
|
52
53
|
|
|
53
|
-
var _sfc_main = vue.defineComponent({
|
|
54
|
+
var _sfc_main$1 = vue.defineComponent({
|
|
54
55
|
name: "VkfSelect",
|
|
55
56
|
components: {
|
|
56
57
|
VkfFormItem: formItem.VkfFormItem,
|
|
@@ -166,9 +167,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166
167
|
vue.mergeProps({ ref_for: true }, item, {
|
|
167
168
|
key: item.key
|
|
168
169
|
}),
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
{
|
|
171
|
+
default: vue.withCtx(() => [
|
|
172
|
+
vue.renderSlot(_ctx.$slots, "option", vue.mergeProps({ ref_for: true }, item))
|
|
173
|
+
]),
|
|
174
|
+
_: 2
|
|
175
|
+
/* DYNAMIC */
|
|
176
|
+
},
|
|
177
|
+
1040
|
|
178
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
172
179
|
);
|
|
173
180
|
}),
|
|
174
181
|
128
|
|
@@ -196,7 +203,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
196
203
|
/* FULL_PROPS */
|
|
197
204
|
);
|
|
198
205
|
}
|
|
199
|
-
var
|
|
206
|
+
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/select/src/core.vue"]]);
|
|
207
|
+
|
|
208
|
+
var _sfc_main = vue.defineComponent({
|
|
209
|
+
props,
|
|
210
|
+
emits,
|
|
211
|
+
setup(props2, { emit, slots }) {
|
|
212
|
+
const coreEmits = createOnEmits(emit);
|
|
213
|
+
return () => vue.h(Core, {
|
|
214
|
+
...props2,
|
|
215
|
+
...utilsVue.vOn(coreEmits)
|
|
216
|
+
}, {
|
|
217
|
+
...props2.slots,
|
|
218
|
+
...slots
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
var VkfSelect = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/select/src/index.vue"]]);
|
|
200
224
|
|
|
201
225
|
var types = /*#__PURE__*/Object.freeze({
|
|
202
226
|
__proto__: null
|