element-less 0.0.47 → 0.0.48
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/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +1 -1
- package/element-less.umd.cjs +1 -1
- package/{index-CRL6oxeZ.js → index-BhifXCWQ.js} +230 -221
- package/index-DOyd8ip1.cjs +1 -0
- package/{inner-Bpjlzu0g.cjs → inner-BjdDxTri.cjs} +1 -1
- package/{inner-CkKBjHNk.js → inner-QfL0Eapx.js} +1 -1
- package/{innerItem-CBBLvpx8.cjs → innerItem-CHpo6ZlW.cjs} +1 -1
- package/{innerItem-C0WQZFqN.js → innerItem-KFrWepBO.js} +1 -1
- package/{mode-csharp-BSeG3rwM.js → mode-csharp-B4_0z_Mf.js} +1 -1
- package/{mode-csharp-HQMVKcMo.cjs → mode-csharp-BuCXPrly.cjs} +1 -1
- package/{mode-css-CBUvFHns.cjs → mode-css-B2OfJAy0.cjs} +1 -1
- package/{mode-css-DTKY4cex.js → mode-css-CArCIFOm.js} +1 -1
- package/{mode-javascript-BkhZp5Yt.js → mode-javascript-B0-3IPd5.js} +1 -1
- package/{mode-javascript-CcaDAtDQ.cjs → mode-javascript-CS_SP2zm.cjs} +1 -1
- package/{mode-json-BuAUu8FG.js → mode-json-DXk_gNWP.js} +1 -1
- package/{mode-json-C750ywWA.cjs → mode-json-Dw6_BUhq.cjs} +1 -1
- package/{mode-mysql-BdnQ0I9n.cjs → mode-mysql-CItp53-0.cjs} +1 -1
- package/{mode-mysql-CI6XudH6.js → mode-mysql-DYw2Rgut.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/index-D7BrgPcf.cjs +0 -1
|
@@ -17212,7 +17212,7 @@ const listProps = buildProps({
|
|
|
17212
17212
|
*/
|
|
17213
17213
|
dragFoldHeight: Number
|
|
17214
17214
|
});
|
|
17215
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
17215
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-31c0bce7"), n = n(), popScopeId(), n);
|
|
17216
17216
|
const _hoisted_1$11 = { class: "els-list-title" };
|
|
17217
17217
|
const _hoisted_2$W = ["innerHTML"];
|
|
17218
17218
|
const _hoisted_3$E = ["innerHTML"];
|
|
@@ -17264,22 +17264,28 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
17264
17264
|
currItemComponent.value = "el-collapse-item";
|
|
17265
17265
|
wrapComponent.value = "el-collapse";
|
|
17266
17266
|
}
|
|
17267
|
+
const attrs = useAttrs();
|
|
17268
|
+
function initData() {
|
|
17269
|
+
if (!props2.itemKey) {
|
|
17270
|
+
modelValue.value.forEach((ele) => {
|
|
17271
|
+
dropData.value.push({ itemKey: utils.shortid(), value: ele });
|
|
17272
|
+
});
|
|
17273
|
+
currItemKey.value = "itemKey";
|
|
17274
|
+
watch(dropData, (val) => {
|
|
17275
|
+
modelValue.value.length = 0;
|
|
17276
|
+
modelValue.value.push(...val.map((ele) => ele.value));
|
|
17277
|
+
}, { deep: true });
|
|
17278
|
+
}
|
|
17279
|
+
}
|
|
17267
17280
|
watch(() => modelValue.value, (val) => {
|
|
17268
17281
|
if (props2.itemKey) {
|
|
17269
17282
|
dropData.value = val;
|
|
17270
17283
|
}
|
|
17284
|
+
if (val.length != dropData.value.length) {
|
|
17285
|
+
initData();
|
|
17286
|
+
}
|
|
17271
17287
|
}, { immediate: true, deep: true });
|
|
17272
|
-
|
|
17273
|
-
modelValue.value.forEach((ele) => {
|
|
17274
|
-
dropData.value.push({ itemKey: utils.shortid(), value: ele });
|
|
17275
|
-
});
|
|
17276
|
-
currItemKey.value = "itemKey";
|
|
17277
|
-
watch(dropData, (val) => {
|
|
17278
|
-
modelValue.value.length = 0;
|
|
17279
|
-
modelValue.value.push(...val.map((ele) => ele.value));
|
|
17280
|
-
}, { deep: true });
|
|
17281
|
-
}
|
|
17282
|
-
const attrs = useAttrs();
|
|
17288
|
+
initData();
|
|
17283
17289
|
function handleAdd() {
|
|
17284
17290
|
const newId = utils.shortid();
|
|
17285
17291
|
if (props2.onAdd) {
|
|
@@ -17402,160 +17408,64 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
17402
17408
|
const _component_Plus = resolveComponent("Plus");
|
|
17403
17409
|
const _component_Minus = resolveComponent("Minus");
|
|
17404
17410
|
const _component_el_button = resolveComponent("el-button");
|
|
17405
|
-
return openBlock(),
|
|
17406
|
-
|
|
17407
|
-
|
|
17408
|
-
|
|
17409
|
-
|
|
17410
|
-
|
|
17411
|
-
|
|
17412
|
-
|
|
17413
|
-
|
|
17414
|
-
|
|
17415
|
-
|
|
17416
|
-
|
|
17417
|
-
|
|
17418
|
-
|
|
17419
|
-
|
|
17420
|
-
|
|
17421
|
-
|
|
17422
|
-
|
|
17423
|
-
|
|
17424
|
-
|
|
17425
|
-
|
|
17426
|
-
|
|
17427
|
-
|
|
17428
|
-
|
|
17429
|
-
|
|
17430
|
-
|
|
17431
|
-
|
|
17432
|
-
|
|
17433
|
-
|
|
17434
|
-
|
|
17435
|
-
|
|
17436
|
-
|
|
17437
|
-
|
|
17438
|
-
|
|
17439
|
-
|
|
17440
|
-
|
|
17441
|
-
|
|
17442
|
-
|
|
17443
|
-
|
|
17444
|
-
|
|
17445
|
-
|
|
17446
|
-
|
|
17447
|
-
|
|
17448
|
-
|
|
17449
|
-
|
|
17450
|
-
|
|
17451
|
-
|
|
17452
|
-
|
|
17453
|
-
|
|
17454
|
-
|
|
17455
|
-
|
|
17456
|
-
default: withCtx(() => [
|
|
17457
|
-
createVNode(_component_Rank)
|
|
17458
|
-
]),
|
|
17459
|
-
_: 1
|
|
17460
|
-
})
|
|
17461
|
-
], true) : createCommentVNode("", true),
|
|
17462
|
-
_ctx.isModify && _ctx.isRemove ? renderSlot(_ctx.$slots, "remove", { key: 1 }, () => [
|
|
17463
|
-
_ctx.isConfirmRemove ? (openBlock(), createBlock(_component_el_popconfirm, {
|
|
17464
|
-
key: 0,
|
|
17465
|
-
title: "确定删除吗?",
|
|
17466
|
-
onConfirm: ($event) => handleRemove(element)
|
|
17467
|
-
}, {
|
|
17468
|
-
reference: withCtx(() => [
|
|
17469
|
-
createVNode(_component_el_icon, { class: "el-icon-remove" }, {
|
|
17470
|
-
default: withCtx(() => [
|
|
17471
|
-
createVNode(_component_Remove)
|
|
17472
|
-
]),
|
|
17473
|
-
_: 1
|
|
17474
|
-
})
|
|
17475
|
-
]),
|
|
17476
|
-
_: 2
|
|
17477
|
-
}, 1032, ["onConfirm"])) : (openBlock(), createBlock(_component_el_icon, {
|
|
17478
|
-
key: 1,
|
|
17479
|
-
class: "el-icon-remove",
|
|
17480
|
-
onClick: ($event) => handleRemove(element)
|
|
17481
|
-
}, {
|
|
17482
|
-
default: withCtx(() => [
|
|
17483
|
-
createVNode(_component_Remove)
|
|
17484
|
-
]),
|
|
17485
|
-
_: 2
|
|
17486
|
-
}, 1032, ["onClick"]))
|
|
17487
|
-
], true) : createCommentVNode("", true)
|
|
17488
|
-
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
17489
|
-
createElementVNode("div", _hoisted_7$c, toDisplayString(index + 1), 1),
|
|
17490
|
-
createElementVNode("div", _hoisted_8$b, [
|
|
17491
|
-
_ctx.borderType === "border1" && index === dropData.value.length - 1 ? (openBlock(), createBlock(_component_el_icon, {
|
|
17492
|
-
key: 0,
|
|
17493
|
-
class: "el-icon-add",
|
|
17494
|
-
onClick: handleAdd
|
|
17495
|
-
}, {
|
|
17496
|
-
default: withCtx(() => [
|
|
17497
|
-
createVNode(_component_Plus)
|
|
17498
|
-
]),
|
|
17499
|
-
_: 1
|
|
17500
|
-
})) : createCommentVNode("", true),
|
|
17501
|
-
_ctx.isConfirmRemove ? (openBlock(), createBlock(_component_el_popconfirm, {
|
|
17502
|
-
key: 1,
|
|
17503
|
-
title: "确定删除吗?",
|
|
17504
|
-
onConfirm: ($event) => handleRemove(element)
|
|
17505
|
-
}, {
|
|
17506
|
-
reference: withCtx(() => [
|
|
17507
|
-
createVNode(_component_el_icon, { class: "el-icon-remove" }, {
|
|
17508
|
-
default: withCtx(() => [
|
|
17509
|
-
createVNode(_component_Minus)
|
|
17510
|
-
]),
|
|
17511
|
-
_: 1
|
|
17512
|
-
})
|
|
17513
|
-
]),
|
|
17514
|
-
_: 2
|
|
17515
|
-
}, 1032, ["onConfirm"])) : (openBlock(), createBlock(_component_el_icon, {
|
|
17516
|
-
key: 2,
|
|
17517
|
-
onClick: ($event) => handleRemove(element),
|
|
17518
|
-
class: "el-icon-remove"
|
|
17519
|
-
}, {
|
|
17520
|
-
default: withCtx(() => [
|
|
17521
|
-
createVNode(_component_Minus)
|
|
17522
|
-
]),
|
|
17523
|
-
_: 2
|
|
17524
|
-
}, 1032, ["onClick"])),
|
|
17525
|
-
createVNode(_component_el_icon, { class: "el-icon-rank" }, {
|
|
17526
|
-
default: withCtx(() => [
|
|
17527
|
-
createVNode(_component_Rank)
|
|
17528
|
-
]),
|
|
17529
|
-
_: 1
|
|
17530
|
-
})
|
|
17531
|
-
])
|
|
17532
|
-
], 64))
|
|
17533
|
-
], 64)) : createCommentVNode("", true)
|
|
17534
|
-
]),
|
|
17535
|
-
_: 2
|
|
17536
|
-
}, [
|
|
17537
|
-
_ctx.itemComponent ? {
|
|
17538
|
-
name: "title",
|
|
17539
|
-
fn: withCtx(() => [
|
|
17540
|
-
createElementVNode("div", _hoisted_1$11, [
|
|
17541
|
-
_ctx.itemKey ? renderSlot(_ctx.$slots, "collapseHeader", normalizeProps(mergeProps({ key: 0 }, { item: element, index, $item: element, $index: index, element })), () => [
|
|
17542
|
-
createElementVNode("div", null, [
|
|
17543
|
-
_ctx.itemComponentTitle ? (openBlock(), createElementBlock("div", {
|
|
17544
|
-
key: 0,
|
|
17545
|
-
innerHTML: _ctx.itemComponentTitle
|
|
17546
|
-
}, null, 8, _hoisted_2$W)) : createCommentVNode("", true)
|
|
17547
|
-
])
|
|
17548
|
-
], true) : renderSlot(_ctx.$slots, "collapseHeader", normalizeProps(mergeProps({ key: 1 }, { item: element, index, $item: element.value, $index: index, element })), () => [
|
|
17549
|
-
createElementVNode("div", null, [
|
|
17550
|
-
_ctx.itemComponentTitle ? (openBlock(), createElementBlock("div", {
|
|
17551
|
-
key: 0,
|
|
17552
|
-
innerHTML: _ctx.itemComponentTitle
|
|
17553
|
-
}, null, 8, _hoisted_3$E)) : createCommentVNode("", true)
|
|
17554
|
-
])
|
|
17555
|
-
], true),
|
|
17556
|
-
createElementVNode("span", _hoisted_4$y, [
|
|
17411
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
17412
|
+
createTextVNode(toDisplayString(modelValue.value) + " ", 1),
|
|
17413
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(outContainer)), mergeProps({
|
|
17414
|
+
class: ["els-list", [{ "el-list-mobile": unref(isMobile) }, { "is-drag": dragStatus.value }]],
|
|
17415
|
+
ref_key: "listRef",
|
|
17416
|
+
ref: listRef,
|
|
17417
|
+
labelWidth: currLabelWidth.value
|
|
17418
|
+
}, _ctx.outFormAttrs, {
|
|
17419
|
+
style: `--drag-fold-height:${_ctx.dragFoldHeight ? (_a = _ctx.dragFoldHeight) == null ? void 0 : _a.appendPx() : "auto"};--list-min-width:${currBoundingWidth.value ? (_b = currBoundingWidth.value) == null ? void 0 : _b.appendPx() : "auto"}`
|
|
17420
|
+
}), {
|
|
17421
|
+
default: withCtx(() => [
|
|
17422
|
+
createVNode(unref(draggable), mergeProps({
|
|
17423
|
+
list: dropData.value,
|
|
17424
|
+
handle: ".el-icon-rank"
|
|
17425
|
+
}, unref(attrs), {
|
|
17426
|
+
"item-key": currItemKey.value,
|
|
17427
|
+
onStart: handleDragStart,
|
|
17428
|
+
onEnd: handleDragEnd
|
|
17429
|
+
}), {
|
|
17430
|
+
item: withCtx(({ element, index }) => [
|
|
17431
|
+
(openBlock(), createBlock(resolveDynamicComponent(wrapComponent.value), mergeProps(_ctx.itemComponentProps, {
|
|
17432
|
+
modelValue: wrapActivitys.value,
|
|
17433
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => wrapActivitys.value = $event),
|
|
17434
|
+
accordion: false
|
|
17435
|
+
}), {
|
|
17436
|
+
default: withCtx(() => [
|
|
17437
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(container)), mergeProps({
|
|
17438
|
+
class: ["els-list-inner-form", _ctx.borderType],
|
|
17439
|
+
modelValue: dropData.value[index],
|
|
17440
|
+
"onUpdate:modelValue": ($event) => dropData.value[index] = $event,
|
|
17441
|
+
labelWidth: currLabelWidth.value
|
|
17442
|
+
}, _ctx.innerFormAttrs), {
|
|
17443
|
+
default: withCtx(() => [
|
|
17444
|
+
(openBlock(), createBlock(resolveDynamicComponent(currItemComponent.value), {
|
|
17445
|
+
class: normalizeClass(currItemClassName.value),
|
|
17446
|
+
name: element[currItemKey.value]
|
|
17447
|
+
}, createSlots({
|
|
17448
|
+
default: withCtx(() => [
|
|
17449
|
+
_ctx.itemKey ? (openBlock(), createElementBlock("div", {
|
|
17450
|
+
key: 0,
|
|
17451
|
+
class: normalizeClass(["listitem-body", { "initing": !initCollapseWidth.value && _ctx.itemComponent == "collapse" }])
|
|
17452
|
+
}, [
|
|
17453
|
+
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ item: element, index, $item: element, $index: index, element })), void 0, true)
|
|
17454
|
+
], 2)) : (openBlock(), createElementBlock("div", {
|
|
17455
|
+
key: 1,
|
|
17456
|
+
class: normalizeClass(["listitem-body", { "initing": !initCollapseWidth.value && _ctx.itemComponent == "collapse" }])
|
|
17457
|
+
}, [
|
|
17458
|
+
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ item: element.value, index, $item: element.value, $index: index, element })), void 0, true)
|
|
17459
|
+
], 2)),
|
|
17460
|
+
(_ctx.sortable || _ctx.isRemove) && _ctx.itemComponent === "div" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
17461
|
+
!_ctx.borderType ? (openBlock(), createElementBlock("span", _hoisted_6$f, [
|
|
17557
17462
|
_ctx.sortable && _ctx.isModify ? renderSlot(_ctx.$slots, "drag", { key: 0 }, () => [
|
|
17558
|
-
|
|
17463
|
+
createVNode(_component_el_icon, { class: "el-icon-rank" }, {
|
|
17464
|
+
default: withCtx(() => [
|
|
17465
|
+
createVNode(_component_Rank)
|
|
17466
|
+
]),
|
|
17467
|
+
_: 1
|
|
17468
|
+
})
|
|
17559
17469
|
], true) : createCommentVNode("", true),
|
|
17560
17470
|
_ctx.isModify && _ctx.isRemove ? renderSlot(_ctx.$slots, "remove", { key: 1 }, () => [
|
|
17561
17471
|
_ctx.isConfirmRemove ? (openBlock(), createBlock(_component_el_popconfirm, {
|
|
@@ -17566,7 +17476,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
17566
17476
|
reference: withCtx(() => [
|
|
17567
17477
|
createVNode(_component_el_icon, { class: "el-icon-remove" }, {
|
|
17568
17478
|
default: withCtx(() => [
|
|
17569
|
-
createVNode(
|
|
17479
|
+
createVNode(_component_Remove)
|
|
17570
17480
|
]),
|
|
17571
17481
|
_: 1
|
|
17572
17482
|
})
|
|
@@ -17578,58 +17488,157 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
17578
17488
|
onClick: ($event) => handleRemove(element)
|
|
17579
17489
|
}, {
|
|
17580
17490
|
default: withCtx(() => [
|
|
17581
|
-
createVNode(
|
|
17491
|
+
createVNode(_component_Remove)
|
|
17582
17492
|
]),
|
|
17583
17493
|
_: 2
|
|
17584
17494
|
}, 1032, ["onClick"]))
|
|
17585
|
-
], true) : createCommentVNode("", true)
|
|
17586
|
-
|
|
17587
|
-
|
|
17588
|
-
|
|
17589
|
-
|
|
17590
|
-
|
|
17591
|
-
|
|
17592
|
-
|
|
17593
|
-
|
|
17495
|
+
], true) : createCommentVNode("", true)
|
|
17496
|
+
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
17497
|
+
createElementVNode("div", _hoisted_7$c, toDisplayString(index + 1), 1),
|
|
17498
|
+
createElementVNode("div", _hoisted_8$b, [
|
|
17499
|
+
_ctx.borderType === "border1" && index === dropData.value.length - 1 ? (openBlock(), createBlock(_component_el_icon, {
|
|
17500
|
+
key: 0,
|
|
17501
|
+
class: "el-icon-add",
|
|
17502
|
+
onClick: handleAdd
|
|
17503
|
+
}, {
|
|
17504
|
+
default: withCtx(() => [
|
|
17505
|
+
createVNode(_component_Plus)
|
|
17506
|
+
]),
|
|
17507
|
+
_: 1
|
|
17508
|
+
})) : createCommentVNode("", true),
|
|
17509
|
+
_ctx.isConfirmRemove ? (openBlock(), createBlock(_component_el_popconfirm, {
|
|
17510
|
+
key: 1,
|
|
17511
|
+
title: "确定删除吗?",
|
|
17512
|
+
onConfirm: ($event) => handleRemove(element)
|
|
17513
|
+
}, {
|
|
17514
|
+
reference: withCtx(() => [
|
|
17515
|
+
createVNode(_component_el_icon, { class: "el-icon-remove" }, {
|
|
17516
|
+
default: withCtx(() => [
|
|
17517
|
+
createVNode(_component_Minus)
|
|
17518
|
+
]),
|
|
17519
|
+
_: 1
|
|
17520
|
+
})
|
|
17521
|
+
]),
|
|
17522
|
+
_: 2
|
|
17523
|
+
}, 1032, ["onConfirm"])) : (openBlock(), createBlock(_component_el_icon, {
|
|
17524
|
+
key: 2,
|
|
17525
|
+
onClick: ($event) => handleRemove(element),
|
|
17526
|
+
class: "el-icon-remove"
|
|
17527
|
+
}, {
|
|
17528
|
+
default: withCtx(() => [
|
|
17529
|
+
createVNode(_component_Minus)
|
|
17530
|
+
]),
|
|
17531
|
+
_: 2
|
|
17532
|
+
}, 1032, ["onClick"])),
|
|
17533
|
+
createVNode(_component_el_icon, { class: "el-icon-rank" }, {
|
|
17534
|
+
default: withCtx(() => [
|
|
17535
|
+
createVNode(_component_Rank)
|
|
17536
|
+
]),
|
|
17537
|
+
_: 1
|
|
17538
|
+
})
|
|
17539
|
+
])
|
|
17540
|
+
], 64))
|
|
17541
|
+
], 64)) : createCommentVNode("", true)
|
|
17594
17542
|
]),
|
|
17595
|
-
|
|
17596
|
-
}
|
|
17597
|
-
|
|
17598
|
-
|
|
17599
|
-
|
|
17600
|
-
|
|
17601
|
-
|
|
17602
|
-
|
|
17603
|
-
|
|
17604
|
-
|
|
17605
|
-
|
|
17606
|
-
|
|
17607
|
-
|
|
17608
|
-
|
|
17609
|
-
|
|
17610
|
-
|
|
17611
|
-
|
|
17612
|
-
|
|
17613
|
-
|
|
17614
|
-
|
|
17615
|
-
|
|
17616
|
-
|
|
17617
|
-
|
|
17618
|
-
|
|
17619
|
-
|
|
17620
|
-
|
|
17621
|
-
|
|
17622
|
-
|
|
17623
|
-
|
|
17624
|
-
|
|
17625
|
-
|
|
17626
|
-
|
|
17627
|
-
|
|
17628
|
-
|
|
17543
|
+
_: 2
|
|
17544
|
+
}, [
|
|
17545
|
+
_ctx.itemComponent ? {
|
|
17546
|
+
name: "title",
|
|
17547
|
+
fn: withCtx(() => [
|
|
17548
|
+
createElementVNode("div", _hoisted_1$11, [
|
|
17549
|
+
_ctx.itemKey ? renderSlot(_ctx.$slots, "collapseHeader", normalizeProps(mergeProps({ key: 0 }, { item: element, index, $item: element, $index: index, element })), () => [
|
|
17550
|
+
createElementVNode("div", null, [
|
|
17551
|
+
_ctx.itemComponentTitle ? (openBlock(), createElementBlock("div", {
|
|
17552
|
+
key: 0,
|
|
17553
|
+
innerHTML: _ctx.itemComponentTitle
|
|
17554
|
+
}, null, 8, _hoisted_2$W)) : createCommentVNode("", true)
|
|
17555
|
+
])
|
|
17556
|
+
], true) : renderSlot(_ctx.$slots, "collapseHeader", normalizeProps(mergeProps({ key: 1 }, { item: element, index, $item: element.value, $index: index, element })), () => [
|
|
17557
|
+
createElementVNode("div", null, [
|
|
17558
|
+
_ctx.itemComponentTitle ? (openBlock(), createElementBlock("div", {
|
|
17559
|
+
key: 0,
|
|
17560
|
+
innerHTML: _ctx.itemComponentTitle
|
|
17561
|
+
}, null, 8, _hoisted_3$E)) : createCommentVNode("", true)
|
|
17562
|
+
])
|
|
17563
|
+
], true),
|
|
17564
|
+
createElementVNode("span", _hoisted_4$y, [
|
|
17565
|
+
_ctx.sortable && _ctx.isModify ? renderSlot(_ctx.$slots, "drag", { key: 0 }, () => [
|
|
17566
|
+
_hoisted_5$m
|
|
17567
|
+
], true) : createCommentVNode("", true),
|
|
17568
|
+
_ctx.isModify && _ctx.isRemove ? renderSlot(_ctx.$slots, "remove", { key: 1 }, () => [
|
|
17569
|
+
_ctx.isConfirmRemove ? (openBlock(), createBlock(_component_el_popconfirm, {
|
|
17570
|
+
key: 0,
|
|
17571
|
+
title: "确定删除吗?",
|
|
17572
|
+
onConfirm: ($event) => handleRemove(element)
|
|
17573
|
+
}, {
|
|
17574
|
+
reference: withCtx(() => [
|
|
17575
|
+
createVNode(_component_el_icon, { class: "el-icon-remove" }, {
|
|
17576
|
+
default: withCtx(() => [
|
|
17577
|
+
createVNode(_component_Delete)
|
|
17578
|
+
]),
|
|
17579
|
+
_: 1
|
|
17580
|
+
})
|
|
17581
|
+
]),
|
|
17582
|
+
_: 2
|
|
17583
|
+
}, 1032, ["onConfirm"])) : (openBlock(), createBlock(_component_el_icon, {
|
|
17584
|
+
key: 1,
|
|
17585
|
+
class: "el-icon-remove",
|
|
17586
|
+
onClick: ($event) => handleRemove(element)
|
|
17587
|
+
}, {
|
|
17588
|
+
default: withCtx(() => [
|
|
17589
|
+
createVNode(_component_Delete)
|
|
17590
|
+
]),
|
|
17591
|
+
_: 2
|
|
17592
|
+
}, 1032, ["onClick"]))
|
|
17593
|
+
], true) : createCommentVNode("", true),
|
|
17594
|
+
createVNode(_component_el_icon, { class: "el-collapse-item__arrow" }, {
|
|
17595
|
+
default: withCtx(() => [
|
|
17596
|
+
createVNode(_component_ArrowRight)
|
|
17597
|
+
]),
|
|
17598
|
+
_: 1
|
|
17599
|
+
})
|
|
17600
|
+
])
|
|
17601
|
+
])
|
|
17602
|
+
]),
|
|
17603
|
+
key: "0"
|
|
17604
|
+
} : void 0
|
|
17605
|
+
]), 1032, ["class", "name"]))
|
|
17606
|
+
]),
|
|
17607
|
+
_: 2
|
|
17608
|
+
}, 1040, ["class", "modelValue", "onUpdate:modelValue", "labelWidth"]))
|
|
17609
|
+
]),
|
|
17610
|
+
_: 2
|
|
17611
|
+
}, 1040, ["modelValue"]))
|
|
17612
|
+
]),
|
|
17613
|
+
_: 3
|
|
17614
|
+
}, 16, ["list", "item-key"]),
|
|
17615
|
+
_ctx.isModify && _ctx.isAdd && (_ctx.borderType !== "border1" || dropData.value.length === 0 && _ctx.borderType === "border1") ? (openBlock(), createElementBlock("div", {
|
|
17616
|
+
key: 0,
|
|
17617
|
+
class: normalizeClass(["els-list-bottom", [{ "els-list-add": !unref(isMobile) }]]),
|
|
17618
|
+
style: normalizeStyle(`--marginleft:${currLabelWidth.value && currLabelPosition.value !== "top" && _ctx.borderType !== "border2" ? currLabelWidth.value.appendPx() : unref(isMobile) && !notObjectArray.value ? "var(--van-cell-horizontal-padding)" : "0px"}`)
|
|
17619
|
+
}, [
|
|
17620
|
+
renderSlot(_ctx.$slots, "add", {}, () => [
|
|
17621
|
+
createVNode(_component_el_button, {
|
|
17622
|
+
type: "primary",
|
|
17623
|
+
link: "",
|
|
17624
|
+
icon: "plus",
|
|
17625
|
+
onClick: handleAdd
|
|
17626
|
+
}, {
|
|
17627
|
+
default: withCtx(() => [
|
|
17628
|
+
createTextVNode(toDisplayString(_ctx.addButtonText || "添加"), 1)
|
|
17629
|
+
]),
|
|
17630
|
+
_: 1
|
|
17631
|
+
})
|
|
17632
|
+
], true)
|
|
17633
|
+
], 6)) : createCommentVNode("", true)
|
|
17634
|
+
]),
|
|
17635
|
+
_: 3
|
|
17636
|
+
}, 16, ["class", "labelWidth", "style"]))
|
|
17637
|
+
], 64);
|
|
17629
17638
|
};
|
|
17630
17639
|
}
|
|
17631
17640
|
});
|
|
17632
|
-
const List = /* @__PURE__ */ _export_sfc$1(_sfc_main$1e, [["__scopeId", "data-v-
|
|
17641
|
+
const List = /* @__PURE__ */ _export_sfc$1(_sfc_main$1e, [["__scopeId", "data-v-31c0bce7"]]);
|
|
17633
17642
|
const ElsList = withInstall(List);
|
|
17634
17643
|
const _hoisted_1$10 = { class: "custom-block-title" };
|
|
17635
17644
|
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
@@ -40352,7 +40361,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
40352
40361
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
40353
40362
|
setup(__props, { emit: __emit }) {
|
|
40354
40363
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
40355
|
-
return import("./innerItem-
|
|
40364
|
+
return import("./innerItem-KFrWepBO.js");
|
|
40356
40365
|
});
|
|
40357
40366
|
const { getValue: getValue2 } = useProps();
|
|
40358
40367
|
const tagID = getValue2("tagID");
|
|
@@ -41202,10 +41211,10 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
41202
41211
|
emits: ["update:modelValue"],
|
|
41203
41212
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
41204
41213
|
const DynamicRenderInner = defineAsyncComponent(() => {
|
|
41205
|
-
return import("./inner-
|
|
41214
|
+
return import("./inner-QfL0Eapx.js").then((n) => n.i);
|
|
41206
41215
|
});
|
|
41207
41216
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
41208
|
-
return import("./inner-
|
|
41217
|
+
return import("./inner-QfL0Eapx.js").then((n) => n.f);
|
|
41209
41218
|
});
|
|
41210
41219
|
const props2 = __props;
|
|
41211
41220
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -41435,10 +41444,10 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
41435
41444
|
emits: ["update:modelValue"],
|
|
41436
41445
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
41437
41446
|
const DynamicRenderInnerAsync = defineAsyncComponent(() => {
|
|
41438
|
-
return import("./inner-
|
|
41447
|
+
return import("./inner-QfL0Eapx.js").then((n) => n.i);
|
|
41439
41448
|
});
|
|
41440
41449
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
41441
|
-
return import("./inner-
|
|
41450
|
+
return import("./inner-QfL0Eapx.js").then((n) => n.f);
|
|
41442
41451
|
});
|
|
41443
41452
|
const props2 = __props;
|
|
41444
41453
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -46352,31 +46361,31 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
|
|
|
46352
46361
|
__publicField(this, "editor", ref());
|
|
46353
46362
|
onMounted(() => {
|
|
46354
46363
|
if (props2.language === "json") {
|
|
46355
|
-
const currModule = import("./mode-json-
|
|
46364
|
+
const currModule = import("./mode-json-DXk_gNWP.js").then((n) => n.m);
|
|
46356
46365
|
currModule.then((res) => {
|
|
46357
46366
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
46358
46367
|
this.init();
|
|
46359
46368
|
});
|
|
46360
46369
|
} else if (props2.language === "javascript") {
|
|
46361
|
-
const currModule = import("./mode-javascript-
|
|
46370
|
+
const currModule = import("./mode-javascript-B0-3IPd5.js").then((n) => n.m);
|
|
46362
46371
|
currModule.then((res) => {
|
|
46363
46372
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
46364
46373
|
this.init();
|
|
46365
46374
|
});
|
|
46366
46375
|
} else if (props2.language === "csharp") {
|
|
46367
|
-
const currModule = import("./mode-csharp-
|
|
46376
|
+
const currModule = import("./mode-csharp-B4_0z_Mf.js").then((n) => n.m);
|
|
46368
46377
|
currModule.then((res) => {
|
|
46369
46378
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
46370
46379
|
this.init();
|
|
46371
46380
|
});
|
|
46372
46381
|
} else if (props2.language === "mysql") {
|
|
46373
|
-
const currModule = import("./mode-mysql-
|
|
46382
|
+
const currModule = import("./mode-mysql-DYw2Rgut.js").then((n) => n.m);
|
|
46374
46383
|
currModule.then((res) => {
|
|
46375
46384
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
46376
46385
|
this.init();
|
|
46377
46386
|
});
|
|
46378
46387
|
} else if (props2.language === "css") {
|
|
46379
|
-
const currModule = import("./mode-css-
|
|
46388
|
+
const currModule = import("./mode-css-CArCIFOm.js").then((n) => n.m);
|
|
46380
46389
|
currModule.then((res) => {
|
|
46381
46390
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
46382
46391
|
this.init();
|