element-less 0.0.89 → 0.0.90

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.
@@ -49434,6 +49434,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
49434
49434
  }
49435
49435
  return [props2.itemClassName, "listitem", "flex"];
49436
49436
  });
49437
+ const showAddButton = computed(() => props2.isModify && props2.isAdd && (props2.insertPosition === "start" || props2.borderType !== "border1" || dropData.value.length === 0));
49438
+ const addButtonStyle = computed(() => `--marginleft:${currLabelWidth.value && currLabelPosition.value !== "top" && props2.borderType !== "border2" ? currLabelWidth.value.appendPx() : isMobile && !notObjectArray.value ? "var(--van-cell-horizontal-padding)" : "0px"}`);
49437
49439
  watch(
49438
49440
  () => {
49439
49441
  const value = modelValue.value;
@@ -49613,6 +49615,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
49613
49615
  });
49614
49616
  return (_ctx, _cache) => {
49615
49617
  var _a, _b;
49618
+ const _component_el_button = resolveComponent("el-button");
49616
49619
  const _component_Delete = resolveComponent("Delete");
49617
49620
  const _component_el_icon = resolveComponent("el-icon");
49618
49621
  const _component_el_popconfirm = resolveComponent("el-popconfirm");
@@ -49621,7 +49624,6 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
49621
49624
  const _component_Remove = resolveComponent("Remove");
49622
49625
  const _component_Plus = resolveComponent("Plus");
49623
49626
  const _component_Minus = resolveComponent("Minus");
49624
- const _component_el_button = resolveComponent("el-button");
49625
49627
  return openBlock(), createBlock(resolveDynamicComponent(outContainer.value), mergeProps({
49626
49628
  class: "els-list",
49627
49629
  ref_key: "listRef",
@@ -49632,6 +49634,25 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
49632
49634
  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"}`
49633
49635
  }), {
49634
49636
  default: withCtx(() => [
49637
+ showAddButton.value && _ctx.insertPosition === "start" ? (openBlock(), createElementBlock("div", {
49638
+ key: 0,
49639
+ class: normalizeClass(["els-list-top", [{ "els-list-add": !unref(isMobile) }]]),
49640
+ style: normalizeStyle(addButtonStyle.value)
49641
+ }, [
49642
+ renderSlot(_ctx.$slots, "add", {}, () => [
49643
+ createVNode(_component_el_button, {
49644
+ type: "primary",
49645
+ link: "",
49646
+ icon: "plus",
49647
+ onClick: handleAdd
49648
+ }, {
49649
+ default: withCtx(() => [
49650
+ createTextVNode(toDisplayString(_ctx.addButtonText || "添加"), 1)
49651
+ ]),
49652
+ _: 1
49653
+ })
49654
+ ], true)
49655
+ ], 6)) : createCommentVNode("", true),
49635
49656
  createVNode(unref(draggable), mergeProps({
49636
49657
  list: dropData.value,
49637
49658
  handle: ".el-icon-rank"
@@ -49709,7 +49730,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
49709
49730
  ])) : (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
49710
49731
  createElementVNode("div", _hoisted_6$9, toDisplayString(index + 1), 1),
49711
49732
  createElementVNode("div", _hoisted_7$7, [
49712
- _ctx.borderType === "border1" && index === dropData.value.length - 1 ? (openBlock(), createBlock(_component_el_icon, {
49733
+ _ctx.borderType === "border1" && _ctx.insertPosition !== "start" && index === dropData.value.length - 1 ? (openBlock(), createBlock(_component_el_icon, {
49713
49734
  key: 0,
49714
49735
  class: "el-icon-add",
49715
49736
  onClick: handleAdd
@@ -49828,10 +49849,10 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
49828
49849
  ]),
49829
49850
  _: 3
49830
49851
  }, 16, ["list", "item-key"]),
49831
- _ctx.isModify && _ctx.isAdd && (_ctx.borderType !== "border1" || dropData.value.length === 0 && _ctx.borderType === "border1") ? (openBlock(), createElementBlock("div", {
49832
- key: 0,
49852
+ showAddButton.value && _ctx.insertPosition === "end" ? (openBlock(), createElementBlock("div", {
49853
+ key: 1,
49833
49854
  class: normalizeClass(["els-list-bottom", [{ "els-list-add": !unref(isMobile) }]]),
49834
- style: normalizeStyle(`--marginleft:${currLabelWidth.value && currLabelPosition.value !== "top" && _ctx.borderType !== "border2" ? currLabelWidth.value.appendPx() : unref(isMobile) && !notObjectArray.value ? "var(--van-cell-horizontal-padding)" : "0px"}`)
49855
+ style: normalizeStyle(addButtonStyle.value)
49835
49856
  }, [
49836
49857
  renderSlot(_ctx.$slots, "add", {}, () => [
49837
49858
  createVNode(_component_el_button, {
@@ -49853,7 +49874,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
49853
49874
  };
49854
49875
  }
49855
49876
  });
49856
- const List = /* @__PURE__ */ _export_sfc$1(_sfc_main$1q, [["__scopeId", "data-v-261e8ea5"]]);
49877
+ const List = /* @__PURE__ */ _export_sfc$1(_sfc_main$1q, [["__scopeId", "data-v-71ca879e"]]);
49857
49878
  const ElsList = withInstall$1(List);
49858
49879
  const _hoisted_1$17 = { class: "custom-block-title" };
49859
49880
  const _sfc_main$1p = /* @__PURE__ */ defineComponent({
@@ -75241,7 +75262,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
75241
75262
  emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
75242
75263
  setup(__props, { emit: __emit }) {
75243
75264
  const DynamicDesignerInnerItem = defineAsyncComponent(() => {
75244
- return import("./innerItem-DUiiI7w7.js");
75265
+ return import("./innerItem-Ch4_omgD.js");
75245
75266
  });
75246
75267
  const { getValue: getValue2 } = useProps();
75247
75268
  const tagID = getValue2("tagID");
@@ -76279,10 +76300,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
76279
76300
  emits: ["update:modelValue"],
76280
76301
  setup(__props, { expose: __expose, emit: __emit }) {
76281
76302
  const DynamicRenderInner = defineAsyncComponent(() => {
76282
- return import("./inner-CXp_fkio.js").then((n) => n.i);
76303
+ return import("./inner-DlP0jFiJ.js").then((n) => n.i);
76283
76304
  });
76284
76305
  const DynamicRenderForm = defineAsyncComponent(() => {
76285
- return import("./inner-CXp_fkio.js").then((n) => n.f);
76306
+ return import("./inner-DlP0jFiJ.js").then((n) => n.f);
76286
76307
  });
76287
76308
  const props2 = __props;
76288
76309
  const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
@@ -76522,10 +76543,10 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
76522
76543
  emits: ["update:modelValue"],
76523
76544
  setup(__props, { expose: __expose, emit: __emit }) {
76524
76545
  const DynamicRenderInnerAsync = defineAsyncComponent(() => {
76525
- return import("./inner-CXp_fkio.js").then((n) => n.i);
76546
+ return import("./inner-DlP0jFiJ.js").then((n) => n.i);
76526
76547
  });
76527
76548
  const DynamicRenderFormAsync = defineAsyncComponent(() => {
76528
- return import("./inner-CXp_fkio.js").then((n) => n.f);
76549
+ return import("./inner-DlP0jFiJ.js").then((n) => n.f);
76529
76550
  });
76530
76551
  const props2 = __props;
76531
76552
  const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
@@ -82927,27 +82948,27 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
82927
82948
  __publicField(this, "editor", ref());
82928
82949
  onMounted(() => {
82929
82950
  if (props2.language === "json") {
82930
- const currModule = import("./mode-json-DVodBR_b.js").then((n) => n.m);
82951
+ const currModule = import("./mode-json-8kgI-YWP.js").then((n) => n.m);
82931
82952
  currModule.then(() => {
82932
82953
  this.init();
82933
82954
  });
82934
82955
  } else if (props2.language === "javascript") {
82935
- const currModule = import("./mode-javascript-DhzWmpbP.js").then((n) => n.m);
82956
+ const currModule = import("./mode-javascript-ubzOQatm.js").then((n) => n.m);
82936
82957
  currModule.then(() => {
82937
82958
  this.init();
82938
82959
  });
82939
82960
  } else if (props2.language === "csharp") {
82940
- const currModule = import("./mode-csharp-DQC4tmBr.js").then((n) => n.m);
82961
+ const currModule = import("./mode-csharp-BFO2L0o7.js").then((n) => n.m);
82941
82962
  currModule.then(() => {
82942
82963
  this.init();
82943
82964
  });
82944
82965
  } else if (props2.language === "mysql") {
82945
- const currModule = import("./mode-mysql-CE1Dg0wc.js").then((n) => n.m);
82966
+ const currModule = import("./mode-mysql-ByLQxPRX.js").then((n) => n.m);
82946
82967
  currModule.then(() => {
82947
82968
  this.init();
82948
82969
  });
82949
82970
  } else if (props2.language === "css") {
82950
- const currModule = import("./mode-css-D0Ac9NA4.js").then((n) => n.m);
82971
+ const currModule = import("./mode-css-DeL1_Ux2.js").then((n) => n.m);
82951
82972
  currModule.then(() => {
82952
82973
  this.init();
82953
82974
  });