element-less 0.0.65 → 0.0.67
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/show.vue.d.ts +1 -16
- 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/elementui/table/index.d.ts +4 -0
- package/elementui/table/src/table.vue.d.ts +4 -0
- package/elementui/table-column/index.d.ts +63 -63
- package/elementui/table-column/src/tableColumn.d.ts +1 -1
- package/elementui/table-column/src/tableColumn.vue.d.ts +3 -3
- package/elementui/table-column/src/tableColumnBool.vue.d.ts +3 -3
- package/elementui/table-column/src/tableColumnCheckbox.vue.d.ts +3 -3
- package/elementui/table-column/src/tableColumnEnum.vue.d.ts +3 -3
- package/elementui/table-column/src/tableColumnExpand.vue.d.ts +3 -3
- package/elementui/table-column/src/tableColumnHeader.vue.d.ts +3 -3
- package/elementui/table-column/src/tableColumnImage.vue.d.ts +3 -3
- package/elementui/table-column/src/tableColumnOperate.vue.d.ts +3 -3
- package/elementui/table-column/src/tableColumnSelect.vue.d.ts +3 -3
- package/{index-DNsbHXNf.js → index-0bMe833F.js} +142 -40
- package/index-HzZewaBA.cjs +1 -0
- package/inner-BU0ghsCk.cjs +1 -0
- package/{inner-C0sncydy.js → inner-DLy3GSYM.js} +25 -16
- package/{innerItem-i8d5bo1K.cjs → innerItem-C7lmc_rr.cjs} +1 -1
- package/{innerItem-B8FxZ1Fo.js → innerItem-DghmopSK.js} +1 -1
- package/{mode-csharp-D18rCWw2.js → mode-csharp-DeSzug7R.js} +1 -1
- package/{mode-csharp-yHI7YNCS.cjs → mode-csharp-v1w5Y7pJ.cjs} +1 -1
- package/{mode-css-ClMCyVMY.js → mode-css-DlOYj8_Q.js} +1 -1
- package/{mode-css-BY93bEma.cjs → mode-css-swaaKdmw.cjs} +1 -1
- package/{mode-javascript-BFxU1GVh.cjs → mode-javascript-0snmn4EJ.cjs} +1 -1
- package/{mode-javascript-CtvBeQM5.js → mode-javascript-Uc61t92C.js} +1 -1
- package/{mode-json-C-nBmrFz.cjs → mode-json-B1fWqeH1.cjs} +1 -1
- package/{mode-json-CU5fqs_U.js → mode-json-Bv08Ewma.js} +1 -1
- package/{mode-mysql-BucGANuW.js → mode-mysql-BCslcP33.js} +1 -1
- package/{mode-mysql-D-niVKxb.cjs → mode-mysql-CUNhvYot.cjs} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/index-BqbBK64b.cjs +0 -1
- package/inner-DLicIeO4.cjs +0 -1
|
@@ -38772,9 +38772,12 @@ const tableColumnProps = Object.assign({}, defaults_default$1, buildProps({
|
|
|
38772
38772
|
*/
|
|
38773
38773
|
isLocaleString: Boolean,
|
|
38774
38774
|
/**
|
|
38775
|
-
* @description
|
|
38775
|
+
* @description 是否可编辑,true=显式开启,false=显式屏蔽,undefined=继承table级isEdit
|
|
38776
38776
|
*/
|
|
38777
|
-
isEdit:
|
|
38777
|
+
isEdit: {
|
|
38778
|
+
type: Boolean,
|
|
38779
|
+
default: void 0
|
|
38780
|
+
},
|
|
38778
38781
|
/**
|
|
38779
38782
|
* @description 编辑字段名,多个用逗号分割
|
|
38780
38783
|
*/
|
|
@@ -39212,7 +39215,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
39212
39215
|
key: 0,
|
|
39213
39216
|
innerHTML: row[_ctx.prop]
|
|
39214
39217
|
}, null, 8, _hoisted_2$v)) : createCommentVNode("", true)
|
|
39215
|
-
]) : !unref(tableGlobalData).isEdit && (!row.edit ||
|
|
39218
|
+
]) : (_ctx.isEdit === false || !unref(tableGlobalData).isEdit && (!row.edit || _ctx.isEdit !== true)) && _ctx.prop ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
39216
39219
|
_ctx.type == "image" ? (openBlock(), createBlock(_component_els_image, {
|
|
39217
39220
|
key: 0,
|
|
39218
39221
|
"empty-desc": _ctx.imageEmptyDesc,
|
|
@@ -40204,7 +40207,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
40204
40207
|
});
|
|
40205
40208
|
watch(tableData, (val) => {
|
|
40206
40209
|
updateBottomScroll();
|
|
40207
|
-
emits2("update:modelValue", val);
|
|
40210
|
+
emits2("update:modelValue", val.map(({ edit: _e, saveDataLoading: _s, ...rest }) => rest));
|
|
40208
40211
|
}, { immediate: true });
|
|
40209
40212
|
watch(() => props2.pageSize, (val) => {
|
|
40210
40213
|
currPageSize.value = val;
|
|
@@ -41882,6 +41885,21 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
41882
41885
|
ref_for: true
|
|
41883
41886
|
}, { row, $index }), void 0, true)
|
|
41884
41887
|
]),
|
|
41888
|
+
edit: withCtx((slotProps) => [
|
|
41889
|
+
_ctx.$slots["edit-" + (column.id || column.prop)] ? renderSlot(_ctx.$slots, "edit-" + (column.id || column.prop), mergeProps({
|
|
41890
|
+
key: 0,
|
|
41891
|
+
ref_for: true
|
|
41892
|
+
}, slotProps), void 0, true) : (openBlock(), createBlock(resolveDynamicComponent((column.editComponent || {}).name || "els-input"), mergeProps({
|
|
41893
|
+
key: 1,
|
|
41894
|
+
required: column.required,
|
|
41895
|
+
requiredMessage: column.requiredMessage,
|
|
41896
|
+
prop: column.prop,
|
|
41897
|
+
modelValue: slotProps.row[column.prop],
|
|
41898
|
+
"onUpdate:modelValue": ($event) => slotProps.row[column.prop] = $event
|
|
41899
|
+
}, { ref_for: true }, (column.editComponent || {}).props || {}, {
|
|
41900
|
+
aIndex: slotProps.$index
|
|
41901
|
+
}), null, 16, ["required", "requiredMessage", "prop", "modelValue", "onUpdate:modelValue", "aIndex"]))
|
|
41902
|
+
]),
|
|
41885
41903
|
_: 2
|
|
41886
41904
|
}, 1040);
|
|
41887
41905
|
}), 128)) : renderSlot(_ctx.$slots, "default", { key: 1 }, void 0, true),
|
|
@@ -42056,7 +42074,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
42056
42074
|
};
|
|
42057
42075
|
}
|
|
42058
42076
|
});
|
|
42059
|
-
const Table$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1_, [["__scopeId", "data-v-
|
|
42077
|
+
const Table$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1_, [["__scopeId", "data-v-3219fa3f"]]);
|
|
42060
42078
|
const ElsTable = withInstall$1(Table$1);
|
|
42061
42079
|
const treeProps = buildProps({
|
|
42062
42080
|
...formItemProps$1,
|
|
@@ -50758,7 +50776,7 @@ const property_radio = [
|
|
|
50758
50776
|
"circle": false,
|
|
50759
50777
|
"autoInsertSpace": false,
|
|
50760
50778
|
"tag": "button",
|
|
50761
|
-
"eventClick": `currNode["default"]
|
|
50779
|
+
"eventClick": `refs[currNode["default"]?.keyID]?.addRow({
|
|
50762
50780
|
id:utils.shortid(),
|
|
50763
50781
|
label:'',
|
|
50764
50782
|
value:'',
|
|
@@ -50963,7 +50981,7 @@ const property_radio = [
|
|
|
50963
50981
|
"circle": false,
|
|
50964
50982
|
"autoInsertSpace": false,
|
|
50965
50983
|
"tag": "button",
|
|
50966
|
-
"eventClick": `currNode["default"]
|
|
50984
|
+
"eventClick": `refs[currNode["default"]?.keyID]?.addRow({
|
|
50967
50985
|
id:utils.shortid(),
|
|
50968
50986
|
label:'',
|
|
50969
50987
|
value:'',
|
|
@@ -51177,7 +51195,7 @@ const property_radio = [
|
|
|
51177
51195
|
"circle": false,
|
|
51178
51196
|
"autoInsertSpace": false,
|
|
51179
51197
|
"tag": "button",
|
|
51180
|
-
"eventClick": `currNode["default"]
|
|
51198
|
+
"eventClick": `refs[currNode["default"]?.keyID]?.addRow({
|
|
51181
51199
|
id:utils.shortid(),
|
|
51182
51200
|
label:'',
|
|
51183
51201
|
value:'',
|
|
@@ -51786,7 +51804,7 @@ const property_checkbox = [
|
|
|
51786
51804
|
"circle": false,
|
|
51787
51805
|
"autoInsertSpace": false,
|
|
51788
51806
|
"tag": "button",
|
|
51789
|
-
"eventClick": `currNode["default"]
|
|
51807
|
+
"eventClick": `refs[currNode["default"]?.keyID]?.addRow({
|
|
51790
51808
|
id:utils.shortid(),
|
|
51791
51809
|
label:'',
|
|
51792
51810
|
value:'',
|
|
@@ -52291,7 +52309,7 @@ const property_select = [
|
|
|
52291
52309
|
"circle": false,
|
|
52292
52310
|
"autoInsertSpace": false,
|
|
52293
52311
|
"tag": "button",
|
|
52294
|
-
"eventClick": `currNode["default"]
|
|
52312
|
+
"eventClick": `refs[currNode["default"]?.keyID]?.addRow({
|
|
52295
52313
|
id:utils.shortid(),
|
|
52296
52314
|
label:'',
|
|
52297
52315
|
value:'',
|
|
@@ -52496,7 +52514,7 @@ const property_select = [
|
|
|
52496
52514
|
"circle": false,
|
|
52497
52515
|
"autoInsertSpace": false,
|
|
52498
52516
|
"tag": "button",
|
|
52499
|
-
"eventClick": `currNode["default"]
|
|
52517
|
+
"eventClick": `refs[currNode["default"]?.keyID]?.addRow({
|
|
52500
52518
|
id:utils.shortid(),
|
|
52501
52519
|
label:'',
|
|
52502
52520
|
value:'',
|
|
@@ -52710,7 +52728,7 @@ const property_select = [
|
|
|
52710
52728
|
"circle": false,
|
|
52711
52729
|
"autoInsertSpace": false,
|
|
52712
52730
|
"tag": "button",
|
|
52713
|
-
"eventClick": `currNode["default"]
|
|
52731
|
+
"eventClick": `refs[currNode["default"]?.keyID]?.addRow({
|
|
52714
52732
|
id:utils.shortid(),
|
|
52715
52733
|
label:'',
|
|
52716
52734
|
value:'',
|
|
@@ -66129,7 +66147,7 @@ const property_table = [
|
|
|
66129
66147
|
"columns": [
|
|
66130
66148
|
{
|
|
66131
66149
|
"id": "label",
|
|
66132
|
-
"label": "
|
|
66150
|
+
"label": "列名称",
|
|
66133
66151
|
"prop": "label",
|
|
66134
66152
|
"width": "",
|
|
66135
66153
|
"showSummary": false,
|
|
@@ -66197,6 +66215,22 @@ const property_table = [
|
|
|
66197
66215
|
{
|
|
66198
66216
|
"label": "image",
|
|
66199
66217
|
"value": "image"
|
|
66218
|
+
},
|
|
66219
|
+
{
|
|
66220
|
+
"label": "enum",
|
|
66221
|
+
"value": "enum"
|
|
66222
|
+
},
|
|
66223
|
+
{
|
|
66224
|
+
"label": "operate",
|
|
66225
|
+
"value": "operate"
|
|
66226
|
+
},
|
|
66227
|
+
{
|
|
66228
|
+
"label": "select",
|
|
66229
|
+
"value": "select"
|
|
66230
|
+
},
|
|
66231
|
+
{
|
|
66232
|
+
"label": "expand",
|
|
66233
|
+
"value": "expand"
|
|
66200
66234
|
}
|
|
66201
66235
|
]
|
|
66202
66236
|
}
|
|
@@ -66463,13 +66497,13 @@ const property_table = [
|
|
|
66463
66497
|
"circle": false,
|
|
66464
66498
|
"autoInsertSpace": false,
|
|
66465
66499
|
"tag": "button",
|
|
66466
|
-
"eventClick": `currNode["default"]
|
|
66500
|
+
"eventClick": `refs[currNode["default"]?.keyID]?.addRow({
|
|
66467
66501
|
id:utils.shortid(),
|
|
66468
66502
|
label:'',
|
|
66469
66503
|
prop:'',
|
|
66470
66504
|
type:'default',
|
|
66471
66505
|
width:'',
|
|
66472
|
-
isEdit:
|
|
66506
|
+
isEdit:undefined,
|
|
66473
66507
|
editComponent:{name:'els-input',props:{}}
|
|
66474
66508
|
})`
|
|
66475
66509
|
},
|
|
@@ -70416,7 +70450,7 @@ const property_cascader = [
|
|
|
70416
70450
|
"circle": false,
|
|
70417
70451
|
"autoInsertSpace": false,
|
|
70418
70452
|
"tag": "button",
|
|
70419
|
-
"eventClick": `currNode["default"]
|
|
70453
|
+
"eventClick": `refs[currNode["default"]?.keyID]?.addRow({
|
|
70420
70454
|
id:utils.shortid(),
|
|
70421
70455
|
label:'',
|
|
70422
70456
|
value:'',
|
|
@@ -73307,7 +73341,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
73307
73341
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
73308
73342
|
setup(__props, { emit: __emit }) {
|
|
73309
73343
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
73310
|
-
return import("./innerItem-
|
|
73344
|
+
return import("./innerItem-DghmopSK.js");
|
|
73311
73345
|
});
|
|
73312
73346
|
const { getValue: getValue2 } = useProps();
|
|
73313
73347
|
const tagID = getValue2("tagID");
|
|
@@ -74279,10 +74313,10 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
74279
74313
|
emits: ["update:modelValue"],
|
|
74280
74314
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
74281
74315
|
const DynamicRenderInner = defineAsyncComponent(() => {
|
|
74282
|
-
return import("./inner-
|
|
74316
|
+
return import("./inner-DLy3GSYM.js").then((n) => n.i);
|
|
74283
74317
|
});
|
|
74284
74318
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
74285
|
-
return import("./inner-
|
|
74319
|
+
return import("./inner-DLy3GSYM.js").then((n) => n.f);
|
|
74286
74320
|
});
|
|
74287
74321
|
const props2 = __props;
|
|
74288
74322
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -74512,10 +74546,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
74512
74546
|
emits: ["update:modelValue"],
|
|
74513
74547
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
74514
74548
|
const DynamicRenderInnerAsync = defineAsyncComponent(() => {
|
|
74515
|
-
return import("./inner-
|
|
74549
|
+
return import("./inner-DLy3GSYM.js").then((n) => n.i);
|
|
74516
74550
|
});
|
|
74517
74551
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
74518
|
-
return import("./inner-
|
|
74552
|
+
return import("./inner-DLy3GSYM.js").then((n) => n.f);
|
|
74519
74553
|
});
|
|
74520
74554
|
const props2 = __props;
|
|
74521
74555
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -74724,6 +74758,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
74724
74758
|
}
|
|
74725
74759
|
});
|
|
74726
74760
|
const DynamicRenderAsync = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-a96b65cd"]]);
|
|
74761
|
+
const renderAsync = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
74762
|
+
__proto__: null,
|
|
74763
|
+
default: DynamicRenderAsync
|
|
74764
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
74727
74765
|
const ElsRender = withInstall$1(DynamicRender);
|
|
74728
74766
|
const ElsRenderAsync = withInstall$1(DynamicRenderAsync);
|
|
74729
74767
|
const _sfc_main$1i = {};
|
|
@@ -75956,20 +75994,22 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
75956
75994
|
]),
|
|
75957
75995
|
_: 1
|
|
75958
75996
|
}),
|
|
75959
|
-
currSelectItem.value.componentGroup === "Form" ? (openBlock(), createBlock(_component_els_input, {
|
|
75960
|
-
key: 0,
|
|
75961
|
-
label: "名称",
|
|
75962
|
-
prop: "keyName"
|
|
75963
|
-
})) : createCommentVNode("", true),
|
|
75964
75997
|
currSelectItem.value.formItem ? (openBlock(), createBlock(_component_els_input, {
|
|
75965
|
-
key:
|
|
75998
|
+
key: 0,
|
|
75966
75999
|
label: "字段名",
|
|
75967
76000
|
prop: "keyCode",
|
|
76001
|
+
tip: "数据的字段名称",
|
|
75968
76002
|
trim: "",
|
|
75969
76003
|
onInput: handleChangeKeyCode,
|
|
75970
76004
|
validMethod: unref(validationCode),
|
|
75971
76005
|
required: currSelectItem.value.componentGroup !== "Container" && currSelectItem.value.componentGroup !== "Show"
|
|
75972
76006
|
}, null, 8, ["validMethod", "required"])) : createCommentVNode("", true),
|
|
76007
|
+
currSelectItem.value.componentGroup === "Form" ? (openBlock(), createBlock(_component_els_input, {
|
|
76008
|
+
key: 1,
|
|
76009
|
+
label: "名称",
|
|
76010
|
+
prop: "keyName",
|
|
76011
|
+
tip: "显示在页面上的名称"
|
|
76012
|
+
})) : createCommentVNode("", true),
|
|
75973
76013
|
currSelectItem.value.dataTypeName != "Array" && currSelectItem.value.componentGroup === "Form" && dataTypeData.value.length > 1 ? (openBlock(), createBlock(_component_els_select, {
|
|
75974
76014
|
key: 2,
|
|
75975
76015
|
label: "数据类型",
|
|
@@ -76059,7 +76099,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
76059
76099
|
};
|
|
76060
76100
|
}
|
|
76061
76101
|
});
|
|
76062
|
-
const DynamicDesignerViewBaseSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$D, [["__scopeId", "data-v-
|
|
76102
|
+
const DynamicDesignerViewBaseSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$D, [["__scopeId", "data-v-1e06d172"]]);
|
|
76063
76103
|
const _hoisted_1$m = { class: "se-root" };
|
|
76064
76104
|
const _hoisted_2$f = { class: "se-margin-zone" };
|
|
76065
76105
|
const _hoisted_3$e = { class: "se-row" };
|
|
@@ -77125,6 +77165,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
77125
77165
|
},
|
|
77126
77166
|
emits: ["update:nodeItem"],
|
|
77127
77167
|
setup(__props) {
|
|
77168
|
+
const DynamicRenderAsync2 = defineAsyncComponent(() => Promise.resolve().then(() => renderAsync));
|
|
77128
77169
|
const nodeItem = useModel$1(__props, "nodeItem");
|
|
77129
77170
|
const props2 = __props;
|
|
77130
77171
|
const { componentProps, renderContent } = useDesigner(props2, nodeItem);
|
|
@@ -77144,16 +77185,30 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
77144
77185
|
return copyProps;
|
|
77145
77186
|
});
|
|
77146
77187
|
return (_ctx, _cache) => {
|
|
77188
|
+
var _a;
|
|
77147
77189
|
const _component_els_tip = resolveComponent("els-tip");
|
|
77148
|
-
return componentName.value ? (openBlock(), createBlock(resolveDynamicComponent(componentName.value), normalizeProps(mergeProps({ key: 0 }, currProps.value)), {
|
|
77190
|
+
return componentName.value ? (openBlock(), createBlock(resolveDynamicComponent(componentName.value), normalizeProps(mergeProps({ key: 0 }, currProps.value)), createSlots({
|
|
77149
77191
|
default: withCtx(() => [
|
|
77150
77192
|
innerContent.value ? (openBlock(), createElementBlock("span", {
|
|
77151
77193
|
key: 0,
|
|
77152
77194
|
innerHTML: unref(renderContent)(innerContent.value)
|
|
77153
77195
|
}, null, 8, _hoisted_1$j)) : createCommentVNode("", true)
|
|
77154
77196
|
]),
|
|
77155
|
-
_:
|
|
77156
|
-
},
|
|
77197
|
+
_: 2
|
|
77198
|
+
}, [
|
|
77199
|
+
renderList((_a = nodeItem.value.slots) == null ? void 0 : _a.filter((ele) => ele.children.length), (slot) => {
|
|
77200
|
+
return {
|
|
77201
|
+
name: slot.name,
|
|
77202
|
+
fn: withCtx((slotProps) => [
|
|
77203
|
+
createVNode(unref(DynamicRenderAsync2), {
|
|
77204
|
+
config: slot.children,
|
|
77205
|
+
modelValue: (slotProps == null ? void 0 : slotProps.row) !== void 0 ? slotProps.row : {},
|
|
77206
|
+
globalData: Object.assign({}, slotProps)
|
|
77207
|
+
}, null, 8, ["config", "modelValue", "globalData"])
|
|
77208
|
+
])
|
|
77209
|
+
};
|
|
77210
|
+
})
|
|
77211
|
+
]), 1040)) : (openBlock(), createBlock(_component_els_tip, {
|
|
77157
77212
|
key: 1,
|
|
77158
77213
|
type: "danger"
|
|
77159
77214
|
}, {
|
|
@@ -77198,6 +77253,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
77198
77253
|
setValue({
|
|
77199
77254
|
setSlotVisible
|
|
77200
77255
|
});
|
|
77256
|
+
watch(
|
|
77257
|
+
() => {
|
|
77258
|
+
var _a;
|
|
77259
|
+
return (_a = nodeItem.value.slots) == null ? void 0 : _a.some((s) => s.name.startsWith("edit-"));
|
|
77260
|
+
},
|
|
77261
|
+
(hasEditSlots) => {
|
|
77262
|
+
if (hasEditSlots) slotVisible.value = true;
|
|
77263
|
+
},
|
|
77264
|
+
{ immediate: true }
|
|
77265
|
+
);
|
|
77201
77266
|
return (_ctx, _cache) => {
|
|
77202
77267
|
var _a, _b, _c, _d;
|
|
77203
77268
|
const _component_els_form_node = resolveComponent("els-form-node");
|
|
@@ -77283,7 +77348,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
77283
77348
|
default: withCtx(() => [
|
|
77284
77349
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(nodeItem.value.slots, (slot) => {
|
|
77285
77350
|
return openBlock(), createBlock(_component_els_option, {
|
|
77286
|
-
label: `插槽[${slot.name}]`
|
|
77351
|
+
label: slot.label || `插槽[${slot.name}]`
|
|
77287
77352
|
}, {
|
|
77288
77353
|
default: withCtx(() => [
|
|
77289
77354
|
createElementVNode("div", _hoisted_2$d, [
|
|
@@ -77309,7 +77374,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
77309
77374
|
};
|
|
77310
77375
|
}
|
|
77311
77376
|
});
|
|
77312
|
-
const DynamicDesignerViewInner = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["__scopeId", "data-v-
|
|
77377
|
+
const DynamicDesignerViewInner = /* @__PURE__ */ _export_sfc$1(_sfc_main$x, [["__scopeId", "data-v-39ddb864"]]);
|
|
77313
77378
|
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
77314
77379
|
__name: "form",
|
|
77315
77380
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -77763,7 +77828,7 @@ const _hoisted_16$1 = { class: "confirm-title confirm-yes-title" };
|
|
|
77763
77828
|
const _hoisted_17$1 = { class: "confirm-body confirm-yes-body" };
|
|
77764
77829
|
const _hoisted_18$1 = {
|
|
77765
77830
|
key: 1,
|
|
77766
|
-
style: { "position": "relative" }
|
|
77831
|
+
style: { "position": "relative", "min-width": "0", "overflow": "hidden" }
|
|
77767
77832
|
};
|
|
77768
77833
|
const _hoisted_19$1 = { class: "els-dynamic-d-view-propertys" };
|
|
77769
77834
|
const _hoisted_20$1 = { class: "preview-header" };
|
|
@@ -78194,6 +78259,43 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
78194
78259
|
return null;
|
|
78195
78260
|
}
|
|
78196
78261
|
});
|
|
78262
|
+
function syncColumnEditSlots(node, columns, tableIsEdit) {
|
|
78263
|
+
if (!node.slots) node.slots = [];
|
|
78264
|
+
const editCols = (Array.isArray(columns) ? columns : []).filter(
|
|
78265
|
+
(c) => c.isEdit === true || c.isEdit !== false && tableIsEdit
|
|
78266
|
+
);
|
|
78267
|
+
editCols.forEach((col) => {
|
|
78268
|
+
if (!col.id) col.id = col.prop || utils.shortid();
|
|
78269
|
+
});
|
|
78270
|
+
node.slots = node.slots.filter(
|
|
78271
|
+
(s) => !s.name.startsWith("edit-") || editCols.some((c) => "edit-" + c.id === s.name)
|
|
78272
|
+
);
|
|
78273
|
+
editCols.forEach((col) => {
|
|
78274
|
+
const name2 = "edit-" + col.id;
|
|
78275
|
+
const existing = node.slots.find((s) => s.name === name2);
|
|
78276
|
+
if (!existing) {
|
|
78277
|
+
node.slots.push({ name: name2, label: (col.label || col.prop || name2) + " 编辑", children: [] });
|
|
78278
|
+
} else {
|
|
78279
|
+
existing.label = (col.label || col.prop || name2) + " 编辑";
|
|
78280
|
+
}
|
|
78281
|
+
});
|
|
78282
|
+
}
|
|
78283
|
+
watch(
|
|
78284
|
+
() => {
|
|
78285
|
+
var _a2, _b2, _c, _d, _e, _f;
|
|
78286
|
+
return [
|
|
78287
|
+
(_c = (_b2 = (_a2 = currSelectItem.value) == null ? void 0 : _a2.config) == null ? void 0 : _b2.baseConfig) == null ? void 0 : _c.columns,
|
|
78288
|
+
(_f = (_e = (_d = currSelectItem.value) == null ? void 0 : _d.config) == null ? void 0 : _e.baseConfig) == null ? void 0 : _f.isEdit
|
|
78289
|
+
];
|
|
78290
|
+
},
|
|
78291
|
+
([columns, tableIsEdit]) => {
|
|
78292
|
+
var _a2;
|
|
78293
|
+
if (!currSelectItem.value) return;
|
|
78294
|
+
if (!Array.isArray(columns) && !((_a2 = currSelectItem.value.slots) == null ? void 0 : _a2.some((s) => s.name.startsWith("edit-")))) return;
|
|
78295
|
+
syncColumnEditSlots(currSelectItem.value, Array.isArray(columns) ? columns : [], tableIsEdit);
|
|
78296
|
+
},
|
|
78297
|
+
{ deep: true, immediate: true }
|
|
78298
|
+
);
|
|
78197
78299
|
const allFormFields = computed(() => {
|
|
78198
78300
|
const result = [];
|
|
78199
78301
|
function collect(items, containerPath = [], containerKeyNames = []) {
|
|
@@ -79345,7 +79447,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
79345
79447
|
};
|
|
79346
79448
|
}
|
|
79347
79449
|
});
|
|
79348
|
-
const DesignerView = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["__scopeId", "data-v-
|
|
79450
|
+
const DesignerView = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["__scopeId", "data-v-db97206d"]]);
|
|
79349
79451
|
const ElsDesignerView = withInstall$1(DesignerView);
|
|
79350
79452
|
(function(Prism2) {
|
|
79351
79453
|
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
@@ -80084,31 +80186,31 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
|
|
|
80084
80186
|
__publicField(this, "editor", ref());
|
|
80085
80187
|
onMounted(() => {
|
|
80086
80188
|
if (props2.language === "json") {
|
|
80087
|
-
const currModule = import("./mode-json-
|
|
80189
|
+
const currModule = import("./mode-json-Bv08Ewma.js").then((n) => n.m);
|
|
80088
80190
|
currModule.then((res) => {
|
|
80089
80191
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
80090
80192
|
this.init();
|
|
80091
80193
|
});
|
|
80092
80194
|
} else if (props2.language === "javascript") {
|
|
80093
|
-
const currModule = import("./mode-javascript-
|
|
80195
|
+
const currModule = import("./mode-javascript-Uc61t92C.js").then((n) => n.m);
|
|
80094
80196
|
currModule.then((res) => {
|
|
80095
80197
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
80096
80198
|
this.init();
|
|
80097
80199
|
});
|
|
80098
80200
|
} else if (props2.language === "csharp") {
|
|
80099
|
-
const currModule = import("./mode-csharp-
|
|
80201
|
+
const currModule = import("./mode-csharp-DeSzug7R.js").then((n) => n.m);
|
|
80100
80202
|
currModule.then((res) => {
|
|
80101
80203
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
80102
80204
|
this.init();
|
|
80103
80205
|
});
|
|
80104
80206
|
} else if (props2.language === "mysql") {
|
|
80105
|
-
const currModule = import("./mode-mysql-
|
|
80207
|
+
const currModule = import("./mode-mysql-BCslcP33.js").then((n) => n.m);
|
|
80106
80208
|
currModule.then((res) => {
|
|
80107
80209
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
80108
80210
|
this.init();
|
|
80109
80211
|
});
|
|
80110
80212
|
} else if (props2.language === "css") {
|
|
80111
|
-
const currModule = import("./mode-css-
|
|
80213
|
+
const currModule = import("./mode-css-DlOYj8_Q.js").then((n) => n.m);
|
|
80112
80214
|
currModule.then((res) => {
|
|
80113
80215
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
80114
80216
|
this.init();
|