element-less 0.0.46 → 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.
@@ -17212,7 +17212,7 @@ const listProps = buildProps({
17212
17212
  */
17213
17213
  dragFoldHeight: Number
17214
17214
  });
17215
- const _withScopeId$1 = (n) => (pushScopeId("data-v-83c7eeb9"), n = n(), popScopeId(), n);
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"];
@@ -17246,8 +17246,8 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
17246
17246
  const wrapComponent = ref("div");
17247
17247
  const currItemComponent = ref("div");
17248
17248
  const isMobile = getValue2("isMobile", false);
17249
- let container = h("div");
17250
- let outContainer = h("div");
17249
+ let container = ref(h("div"));
17250
+ let outContainer = ref(h("div"));
17251
17251
  const currLabelWidth = ref(getValue2("labelWidth", "auto"));
17252
17252
  const currLabelPosition = ref(getValue2("labelPosition", ""));
17253
17253
  const modelValue = useModel$1(__props, "modelValue");
@@ -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
- if (!props2.itemKey) {
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) {
@@ -17333,12 +17339,12 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
17333
17339
  }
17334
17340
  if (props2.hasForm && modelValue.value.length) {
17335
17341
  if (notObjectArray.value || !props2.itemKey) {
17336
- outContainer = h(ElsForm, { modelValue: modelValue.value });
17337
- container = h("div");
17342
+ outContainer.value = h(ElsForm, { modelValue: modelValue.value });
17343
+ container.value = h("div");
17338
17344
  console.log("obj");
17339
17345
  } else {
17340
- container = h(ElsForm);
17341
- outContainer = h("div");
17346
+ container.value = h(ElsForm);
17347
+ outContainer.value = h("div");
17342
17348
  }
17343
17349
  }
17344
17350
  }
@@ -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(), createBlock(resolveDynamicComponent(unref(outContainer)), mergeProps({
17406
- class: ["els-list", [{ "el-list-mobile": unref(isMobile) }, { "is-drag": dragStatus.value }]],
17407
- ref_key: "listRef",
17408
- ref: listRef,
17409
- labelWidth: currLabelWidth.value
17410
- }, _ctx.outFormAttrs, {
17411
- 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"}`
17412
- }), {
17413
- default: withCtx(() => [
17414
- createVNode(unref(draggable), mergeProps({
17415
- list: dropData.value,
17416
- handle: ".el-icon-rank"
17417
- }, unref(attrs), {
17418
- "item-key": currItemKey.value,
17419
- onStart: handleDragStart,
17420
- onEnd: handleDragEnd
17421
- }), {
17422
- item: withCtx(({ element, index }) => [
17423
- (openBlock(), createBlock(resolveDynamicComponent(wrapComponent.value), mergeProps(_ctx.itemComponentProps, {
17424
- modelValue: wrapActivitys.value,
17425
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => wrapActivitys.value = $event),
17426
- accordion: false
17427
- }), {
17428
- default: withCtx(() => [
17429
- (openBlock(), createBlock(resolveDynamicComponent(unref(container)), mergeProps({
17430
- class: ["els-list-inner-form", _ctx.borderType],
17431
- modelValue: dropData.value[index],
17432
- "onUpdate:modelValue": ($event) => dropData.value[index] = $event,
17433
- labelWidth: currLabelWidth.value
17434
- }, _ctx.innerFormAttrs), {
17435
- default: withCtx(() => [
17436
- (openBlock(), createBlock(resolveDynamicComponent(currItemComponent.value), {
17437
- class: normalizeClass(currItemClassName.value),
17438
- name: element[currItemKey.value]
17439
- }, createSlots({
17440
- default: withCtx(() => [
17441
- _ctx.itemKey ? (openBlock(), createElementBlock("div", {
17442
- key: 0,
17443
- class: normalizeClass(["listitem-body", { "initing": !initCollapseWidth.value && _ctx.itemComponent == "collapse" }])
17444
- }, [
17445
- renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ item: element, index, $item: element, $index: index, element })), void 0, true)
17446
- ], 2)) : (openBlock(), createElementBlock("div", {
17447
- key: 1,
17448
- class: normalizeClass(["listitem-body", { "initing": !initCollapseWidth.value && _ctx.itemComponent == "collapse" }])
17449
- }, [
17450
- renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ item: element.value, index, $item: element.value, $index: index, element })), void 0, true)
17451
- ], 2)),
17452
- (_ctx.sortable || _ctx.isRemove) && _ctx.itemComponent === "div" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
17453
- !_ctx.borderType ? (openBlock(), createElementBlock("span", _hoisted_6$f, [
17454
- _ctx.sortable && _ctx.isModify ? renderSlot(_ctx.$slots, "drag", { key: 0 }, () => [
17455
- createVNode(_component_el_icon, { class: "el-icon-rank" }, {
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
- _hoisted_5$m
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(_component_Delete)
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(_component_Delete)
17491
+ createVNode(_component_Remove)
17582
17492
  ]),
17583
17493
  _: 2
17584
17494
  }, 1032, ["onClick"]))
17585
- ], true) : createCommentVNode("", true),
17586
- createVNode(_component_el_icon, { class: "el-collapse-item__arrow" }, {
17587
- default: withCtx(() => [
17588
- createVNode(_component_ArrowRight)
17589
- ]),
17590
- _: 1
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
- key: "0"
17596
- } : void 0
17597
- ]), 1032, ["class", "name"]))
17598
- ]),
17599
- _: 2
17600
- }, 1040, ["class", "modelValue", "onUpdate:modelValue", "labelWidth"]))
17601
- ]),
17602
- _: 2
17603
- }, 1040, ["modelValue"]))
17604
- ]),
17605
- _: 3
17606
- }, 16, ["list", "item-key"]),
17607
- _ctx.isModify && _ctx.isAdd && (_ctx.borderType !== "border1" || dropData.value.length === 0 && _ctx.borderType === "border1") ? (openBlock(), createElementBlock("div", {
17608
- key: 0,
17609
- class: normalizeClass(["els-list-bottom", [{ "els-list-add": !unref(isMobile) }]]),
17610
- style: normalizeStyle(`--marginleft:${currLabelWidth.value && currLabelPosition.value !== "top" && _ctx.borderType !== "border2" ? currLabelWidth.value.appendPx() : unref(isMobile) && !notObjectArray.value ? "var(--van-cell-horizontal-padding)" : "0px"}`)
17611
- }, [
17612
- renderSlot(_ctx.$slots, "add", {}, () => [
17613
- createVNode(_component_el_button, {
17614
- type: "primary",
17615
- link: "",
17616
- icon: "plus",
17617
- onClick: handleAdd
17618
- }, {
17619
- default: withCtx(() => [
17620
- createTextVNode(toDisplayString(_ctx.addButtonText || "添加"), 1)
17621
- ]),
17622
- _: 1
17623
- })
17624
- ], true)
17625
- ], 6)) : createCommentVNode("", true)
17626
- ]),
17627
- _: 3
17628
- }, 16, ["class", "labelWidth", "style"]);
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-83c7eeb9"]]);
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-CLscqv_9.js");
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-DH5O1Pee.js").then((n) => n.i);
41214
+ return import("./inner-QfL0Eapx.js").then((n) => n.i);
41206
41215
  });
41207
41216
  const DynamicRenderForm = defineAsyncComponent(() => {
41208
- return import("./inner-DH5O1Pee.js").then((n) => n.f);
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-DH5O1Pee.js").then((n) => n.i);
41447
+ return import("./inner-QfL0Eapx.js").then((n) => n.i);
41439
41448
  });
41440
41449
  const DynamicRenderFormAsync = defineAsyncComponent(() => {
41441
- return import("./inner-DH5O1Pee.js").then((n) => n.f);
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-8e7GZ-QN.js").then((n) => n.m);
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-Bj81uXwJ.js").then((n) => n.m);
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-2TwQfgA9.js").then((n) => n.m);
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-BGxm9btG.js").then((n) => n.m);
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-CbOuKvQS.js").then((n) => n.m);
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();