element-less 0.0.88 → 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 +10 -3
- package/custom/list/index.d.ts +9 -1
- package/custom/list/src/list.d.ts +1 -0
- package/custom/list/src/list.vue.d.ts +5 -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-DAZadiS8.js → index-CUsnchfn.js} +61 -22
- package/{index-Bx8snkLs.cjs → index-DOS6OcXo.cjs} +1 -1
- package/{inner-DuPFL8WF.cjs → inner-CiPNYaAI.cjs} +1 -1
- package/{inner-gOxdY2Ct.js → inner-DlP0jFiJ.js} +1 -1
- package/{innerItem-B5bCKBCN.cjs → innerItem-BsebdqB-.cjs} +1 -1
- package/{innerItem-8X4fKihQ.js → innerItem-Ch4_omgD.js} +1 -1
- package/{mode-csharp-CjDkg840.js → mode-csharp-BFO2L0o7.js} +1 -1
- package/{mode-csharp-DTraWOEd.cjs → mode-csharp-DbS3UNAM.cjs} +1 -1
- package/{mode-css-D_3d4ISv.cjs → mode-css-D4H7xLQE.cjs} +1 -1
- package/{mode-css-CfhIU3hT.js → mode-css-DeL1_Ux2.js} +1 -1
- package/{mode-javascript-CUd_-Trn.cjs → mode-javascript-3fpBCrSw.cjs} +1 -1
- package/{mode-javascript-BzQNdnO0.js → mode-javascript-ubzOQatm.js} +1 -1
- package/{mode-json-Cm7gxvCg.js → mode-json-8kgI-YWP.js} +1 -1
- package/{mode-json-CYYBlroV.cjs → mode-json-CZmh6M8s.cjs} +1 -1
- package/{mode-mysql-BvKbQo5u.cjs → mode-mysql-BqLCuUh2.cjs} +1 -1
- package/{mode-mysql-CEZ-Y8Tl.js → mode-mysql-ByLQxPRX.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -49292,6 +49292,14 @@ const listProps = buildProps({
|
|
|
49292
49292
|
type: Boolean,
|
|
49293
49293
|
default: true
|
|
49294
49294
|
},
|
|
49295
|
+
/**
|
|
49296
|
+
* @description 新增项插入位置
|
|
49297
|
+
*/
|
|
49298
|
+
insertPosition: {
|
|
49299
|
+
type: String,
|
|
49300
|
+
values: ["start", "end"],
|
|
49301
|
+
default: "end"
|
|
49302
|
+
},
|
|
49295
49303
|
/**
|
|
49296
49304
|
* @description 是否可修改
|
|
49297
49305
|
*/
|
|
@@ -49426,6 +49434,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
49426
49434
|
}
|
|
49427
49435
|
return [props2.itemClassName, "listitem", "flex"];
|
|
49428
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"}`);
|
|
49429
49439
|
watch(
|
|
49430
49440
|
() => {
|
|
49431
49441
|
const value = modelValue.value;
|
|
@@ -49525,16 +49535,26 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
49525
49535
|
} else {
|
|
49526
49536
|
currItem = notObjectArray.value ? "" : {};
|
|
49527
49537
|
}
|
|
49538
|
+
const insertAtStart = props2.insertPosition === "start";
|
|
49528
49539
|
if (!props2.itemKey) {
|
|
49529
|
-
|
|
49540
|
+
const wrappedItem = { itemKey: newId, value: currItem };
|
|
49541
|
+
if (insertAtStart) {
|
|
49542
|
+
dropData.value.unshift(wrappedItem);
|
|
49543
|
+
} else {
|
|
49544
|
+
dropData.value.push(wrappedItem);
|
|
49545
|
+
}
|
|
49530
49546
|
syncModelValueFromDropData();
|
|
49531
49547
|
} else {
|
|
49532
|
-
|
|
49548
|
+
if (insertAtStart) {
|
|
49549
|
+
dropData.value.unshift(currItem);
|
|
49550
|
+
} else {
|
|
49551
|
+
dropData.value.push(currItem);
|
|
49552
|
+
}
|
|
49533
49553
|
}
|
|
49534
|
-
const
|
|
49535
|
-
const
|
|
49536
|
-
if (
|
|
49537
|
-
wrapActivitys.value.push(
|
|
49554
|
+
const insertedItem = insertAtStart ? dropData.value[0] : dropData.value.at(-1);
|
|
49555
|
+
const insertedId = insertedItem && typeof insertedItem === "object" ? insertedItem[currItemKey.value] : void 0;
|
|
49556
|
+
if (insertedId) {
|
|
49557
|
+
wrapActivitys.value.push(insertedId);
|
|
49538
49558
|
}
|
|
49539
49559
|
}
|
|
49540
49560
|
function handleRemove(item) {
|
|
@@ -49595,6 +49615,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
49595
49615
|
});
|
|
49596
49616
|
return (_ctx, _cache) => {
|
|
49597
49617
|
var _a, _b;
|
|
49618
|
+
const _component_el_button = resolveComponent("el-button");
|
|
49598
49619
|
const _component_Delete = resolveComponent("Delete");
|
|
49599
49620
|
const _component_el_icon = resolveComponent("el-icon");
|
|
49600
49621
|
const _component_el_popconfirm = resolveComponent("el-popconfirm");
|
|
@@ -49603,7 +49624,6 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
49603
49624
|
const _component_Remove = resolveComponent("Remove");
|
|
49604
49625
|
const _component_Plus = resolveComponent("Plus");
|
|
49605
49626
|
const _component_Minus = resolveComponent("Minus");
|
|
49606
|
-
const _component_el_button = resolveComponent("el-button");
|
|
49607
49627
|
return openBlock(), createBlock(resolveDynamicComponent(outContainer.value), mergeProps({
|
|
49608
49628
|
class: "els-list",
|
|
49609
49629
|
ref_key: "listRef",
|
|
@@ -49614,6 +49634,25 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
49614
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"}`
|
|
49615
49635
|
}), {
|
|
49616
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),
|
|
49617
49656
|
createVNode(unref(draggable), mergeProps({
|
|
49618
49657
|
list: dropData.value,
|
|
49619
49658
|
handle: ".el-icon-rank"
|
|
@@ -49691,7 +49730,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
49691
49730
|
])) : (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
49692
49731
|
createElementVNode("div", _hoisted_6$9, toDisplayString(index + 1), 1),
|
|
49693
49732
|
createElementVNode("div", _hoisted_7$7, [
|
|
49694
|
-
_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, {
|
|
49695
49734
|
key: 0,
|
|
49696
49735
|
class: "el-icon-add",
|
|
49697
49736
|
onClick: handleAdd
|
|
@@ -49810,10 +49849,10 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
49810
49849
|
]),
|
|
49811
49850
|
_: 3
|
|
49812
49851
|
}, 16, ["list", "item-key"]),
|
|
49813
|
-
|
|
49814
|
-
key:
|
|
49852
|
+
showAddButton.value && _ctx.insertPosition === "end" ? (openBlock(), createElementBlock("div", {
|
|
49853
|
+
key: 1,
|
|
49815
49854
|
class: normalizeClass(["els-list-bottom", [{ "els-list-add": !unref(isMobile) }]]),
|
|
49816
|
-
style: normalizeStyle(
|
|
49855
|
+
style: normalizeStyle(addButtonStyle.value)
|
|
49817
49856
|
}, [
|
|
49818
49857
|
renderSlot(_ctx.$slots, "add", {}, () => [
|
|
49819
49858
|
createVNode(_component_el_button, {
|
|
@@ -49835,7 +49874,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
49835
49874
|
};
|
|
49836
49875
|
}
|
|
49837
49876
|
});
|
|
49838
|
-
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"]]);
|
|
49839
49878
|
const ElsList = withInstall$1(List);
|
|
49840
49879
|
const _hoisted_1$17 = { class: "custom-block-title" };
|
|
49841
49880
|
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
@@ -75223,7 +75262,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
75223
75262
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
75224
75263
|
setup(__props, { emit: __emit }) {
|
|
75225
75264
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
75226
|
-
return import("./innerItem-
|
|
75265
|
+
return import("./innerItem-Ch4_omgD.js");
|
|
75227
75266
|
});
|
|
75228
75267
|
const { getValue: getValue2 } = useProps();
|
|
75229
75268
|
const tagID = getValue2("tagID");
|
|
@@ -76261,10 +76300,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
76261
76300
|
emits: ["update:modelValue"],
|
|
76262
76301
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
76263
76302
|
const DynamicRenderInner = defineAsyncComponent(() => {
|
|
76264
|
-
return import("./inner-
|
|
76303
|
+
return import("./inner-DlP0jFiJ.js").then((n) => n.i);
|
|
76265
76304
|
});
|
|
76266
76305
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
76267
|
-
return import("./inner-
|
|
76306
|
+
return import("./inner-DlP0jFiJ.js").then((n) => n.f);
|
|
76268
76307
|
});
|
|
76269
76308
|
const props2 = __props;
|
|
76270
76309
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -76504,10 +76543,10 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
76504
76543
|
emits: ["update:modelValue"],
|
|
76505
76544
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
76506
76545
|
const DynamicRenderInnerAsync = defineAsyncComponent(() => {
|
|
76507
|
-
return import("./inner-
|
|
76546
|
+
return import("./inner-DlP0jFiJ.js").then((n) => n.i);
|
|
76508
76547
|
});
|
|
76509
76548
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
76510
|
-
return import("./inner-
|
|
76549
|
+
return import("./inner-DlP0jFiJ.js").then((n) => n.f);
|
|
76511
76550
|
});
|
|
76512
76551
|
const props2 = __props;
|
|
76513
76552
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -82909,27 +82948,27 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
|
|
|
82909
82948
|
__publicField(this, "editor", ref());
|
|
82910
82949
|
onMounted(() => {
|
|
82911
82950
|
if (props2.language === "json") {
|
|
82912
|
-
const currModule = import("./mode-json-
|
|
82951
|
+
const currModule = import("./mode-json-8kgI-YWP.js").then((n) => n.m);
|
|
82913
82952
|
currModule.then(() => {
|
|
82914
82953
|
this.init();
|
|
82915
82954
|
});
|
|
82916
82955
|
} else if (props2.language === "javascript") {
|
|
82917
|
-
const currModule = import("./mode-javascript-
|
|
82956
|
+
const currModule = import("./mode-javascript-ubzOQatm.js").then((n) => n.m);
|
|
82918
82957
|
currModule.then(() => {
|
|
82919
82958
|
this.init();
|
|
82920
82959
|
});
|
|
82921
82960
|
} else if (props2.language === "csharp") {
|
|
82922
|
-
const currModule = import("./mode-csharp-
|
|
82961
|
+
const currModule = import("./mode-csharp-BFO2L0o7.js").then((n) => n.m);
|
|
82923
82962
|
currModule.then(() => {
|
|
82924
82963
|
this.init();
|
|
82925
82964
|
});
|
|
82926
82965
|
} else if (props2.language === "mysql") {
|
|
82927
|
-
const currModule = import("./mode-mysql-
|
|
82966
|
+
const currModule = import("./mode-mysql-ByLQxPRX.js").then((n) => n.m);
|
|
82928
82967
|
currModule.then(() => {
|
|
82929
82968
|
this.init();
|
|
82930
82969
|
});
|
|
82931
82970
|
} else if (props2.language === "css") {
|
|
82932
|
-
const currModule = import("./mode-css-
|
|
82971
|
+
const currModule = import("./mode-css-DeL1_Ux2.js").then((n) => n.m);
|
|
82933
82972
|
currModule.then(() => {
|
|
82934
82973
|
this.init();
|
|
82935
82974
|
});
|