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.
- package/custom/dynamic/render/src/innerObjectArray.vue.d.ts +2 -1
- package/custom/list/index.d.ts +2 -1
- package/custom/list/src/list.vue.d.ts +2 -1
- 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-DhRxkQYq.js → index-CUsnchfn.js} +37 -16
- package/{index-DPC1eYxI.cjs → index-DOS6OcXo.cjs} +1 -1
- package/{inner-CmnrzZ7K.cjs → inner-CiPNYaAI.cjs} +1 -1
- package/{inner-CXp_fkio.js → inner-DlP0jFiJ.js} +1 -1
- package/{innerItem-CoZ7Kf9q.cjs → innerItem-BsebdqB-.cjs} +1 -1
- package/{innerItem-DUiiI7w7.js → innerItem-Ch4_omgD.js} +1 -1
- package/{mode-csharp-DQC4tmBr.js → mode-csharp-BFO2L0o7.js} +1 -1
- package/{mode-csharp-8lXL3vr0.cjs → mode-csharp-DbS3UNAM.cjs} +1 -1
- package/{mode-css-B6xEeCT4.cjs → mode-css-D4H7xLQE.cjs} +1 -1
- package/{mode-css-D0Ac9NA4.js → mode-css-DeL1_Ux2.js} +1 -1
- package/{mode-javascript-CMj5EY1_.cjs → mode-javascript-3fpBCrSw.cjs} +1 -1
- package/{mode-javascript-DhzWmpbP.js → mode-javascript-ubzOQatm.js} +1 -1
- package/{mode-json-DVodBR_b.js → mode-json-8kgI-YWP.js} +1 -1
- package/{mode-json-XV8p3N7O.cjs → mode-json-CZmh6M8s.cjs} +1 -1
- package/{mode-mysql-Drh7iXaI.cjs → mode-mysql-BqLCuUh2.cjs} +1 -1
- package/{mode-mysql-CE1Dg0wc.js → mode-mysql-ByLQxPRX.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -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
|
-
|
|
49832
|
-
key:
|
|
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(
|
|
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-
|
|
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-
|
|
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-
|
|
76303
|
+
return import("./inner-DlP0jFiJ.js").then((n) => n.i);
|
|
76283
76304
|
});
|
|
76284
76305
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
76285
|
-
return import("./inner-
|
|
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-
|
|
76546
|
+
return import("./inner-DlP0jFiJ.js").then((n) => n.i);
|
|
76526
76547
|
});
|
|
76527
76548
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
76528
|
-
return import("./inner-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
82971
|
+
const currModule = import("./mode-css-DeL1_Ux2.js").then((n) => n.m);
|
|
82951
82972
|
currModule.then(() => {
|
|
82952
82973
|
this.init();
|
|
82953
82974
|
});
|