slw 1.0.0-beta.1 → 1.0.0-beta.2
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.
|
@@ -8525,7 +8525,7 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8525
8525
|
PictureUpload.install = (Q) => {
|
|
8526
8526
|
Q.component(PictureUpload.name, PictureUpload);
|
|
8527
8527
|
};
|
|
8528
|
-
const
|
|
8528
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_efb30b2d_lang = "", _withScopeId$9 = (Q) => (pushScopeId("data-v-efb30b2d"), Q = Q(), popScopeId(), Q), _hoisted_1$l2 = {
|
|
8529
8529
|
class: "slw-window-grid-container",
|
|
8530
8530
|
style: { height: "100%" }
|
|
8531
8531
|
}, _hoisted_2$kY = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$ay = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4Y = [
|
|
@@ -8535,7 +8535,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
8535
8535
|
], _hoisted_6$21 = {
|
|
8536
8536
|
key: 0,
|
|
8537
8537
|
style: { verticalAlign: "middle" }
|
|
8538
|
-
}, _hoisted_7$14 = ["id"], _hoisted_8$
|
|
8538
|
+
}, _hoisted_7$14 = ["id"], _hoisted_8$H = { class: "vxe-grid--form-wrapper" }, _hoisted_9$n = ["onClick"], _hoisted_10$q = ["id"], _hoisted_11$g = { style: { padding: "20px 0" } }, _sfc_main$e = {
|
|
8539
8539
|
__name: "window-grid",
|
|
8540
8540
|
props: {
|
|
8541
8541
|
gridData: {
|
|
@@ -8607,7 +8607,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
8607
8607
|
return typeof fun != "function" && eval("fun = " + fun), fun(...eventParams);
|
|
8608
8608
|
eval(fun);
|
|
8609
8609
|
} catch (Q) {
|
|
8610
|
-
console.error(Q,
|
|
8610
|
+
console.error(Q, gridData.value.params.windowTitle, eventParams.at(-1));
|
|
8611
8611
|
}
|
|
8612
8612
|
}
|
|
8613
8613
|
}, displayLogic = (displayStr, datax) => {
|
|
@@ -8702,7 +8702,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
8702
8702
|
try {
|
|
8703
8703
|
se = ce();
|
|
8704
8704
|
} catch (ue) {
|
|
8705
|
-
console.error(ue);
|
|
8705
|
+
console.error(ue, gridData.value.params.windowTitle, "表格查询前方法");
|
|
8706
8706
|
}
|
|
8707
8707
|
}), se === !1)
|
|
8708
8708
|
return {
|
|
@@ -8766,7 +8766,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
8766
8766
|
try {
|
|
8767
8767
|
re = ue(((he = se == null ? void 0 : se.data) == null ? void 0 : he.data) || []);
|
|
8768
8768
|
} catch (de) {
|
|
8769
|
-
console.error(de);
|
|
8769
|
+
console.error(de, gridData.value.params.windowTitle, "表格查询后方法");
|
|
8770
8770
|
}
|
|
8771
8771
|
});
|
|
8772
8772
|
}), typeof await oe > "u" || re === !1 ? {
|
|
@@ -8791,7 +8791,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
8791
8791
|
hasData: !(typeof Q > "u" || Object.keys(Q).length === 0),
|
|
8792
8792
|
...Q
|
|
8793
8793
|
}, G = Object.assign({}, X);
|
|
8794
|
-
if (delete G._region_id, gridData.value.params.parentData = getParentData(), getCheckedData().length <= 0 && emitButtonDisplayLogic({ ...Q, ...assembleParentData(gridData.value.params.parentData) }, H), rowIndex.value = H, X.hasData && (evalEvent(gridData.value.params.formEvents.rowClickFunction, Q), getCurRegion().setCurrentRow(Q)), callGridClickEvents(G, gridData.value.params._region_id), gridData.value.type == "EDIT_GRID") {
|
|
8794
|
+
if (delete G._region_id, gridData.value.params.parentData = getParentData(), getCheckedData().length <= 0 && emitButtonDisplayLogic({ ...Q, ...assembleParentData(gridData.value.params.parentData) }, H), rowIndex.value = H, X.hasData && (evalEvent(gridData.value.params.formEvents.rowClickFunction, Q, "行点击事件"), getCurRegion().setCurrentRow(Q)), callGridClickEvents(G, gridData.value.params._region_id), gridData.value.type == "EDIT_GRID") {
|
|
8795
8795
|
for (let ee in Q) {
|
|
8796
8796
|
let te = gridData.value.columns.filter((ne) => ne.field == ee)[0];
|
|
8797
8797
|
(Z = te == null ? void 0 : te.editRender) != null && Z.props.multiple && typeof Q[ee] == "string" && (Q[ee] = Q[ee].split(","));
|
|
@@ -8805,7 +8805,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
8805
8805
|
X.displayLogic && (X.showInGrid || (X.visible = displayLogic(X.displayLogic, Q)), X.btnShowInGrid[H] = X.showInGrid && displayLogic(X.displayLogic, Q), X.btnShow[H] = !X.showInGrid && X.showInGrid);
|
|
8806
8806
|
});
|
|
8807
8807
|
}, onRowDbClick = async (Q) => {
|
|
8808
|
-
gridData.value.addListener && Q.column.type == "seq" && Q.column.fixed == "left" && headerSeqCellDbClick(Q), gridData.value.params.formEvents.rowDbclickFunction ? await evalEvent(gridData.value.params.formEvents.rowDbclickFunction, Q.row) : gridData.value.type !== "EDIT_GRID" && commonEditData(Q.row, Q.rowIndex);
|
|
8808
|
+
gridData.value.addListener && Q.column.type == "seq" && Q.column.fixed == "left" && headerSeqCellDbClick(Q), gridData.value.params.formEvents.rowDbclickFunction ? await evalEvent(gridData.value.params.formEvents.rowDbclickFunction, Q.row, "行双击事件") : gridData.value.type !== "EDIT_GRID" && commonEditData(Q.row, Q.rowIndex);
|
|
8809
8809
|
}, toolBarButtonClick = async (Q, H, X) => {
|
|
8810
8810
|
if (Q.hasOwnProperty("button") && (Q = Q.button), gridData.value.type == "TREE_STRUCTURE") {
|
|
8811
8811
|
if (Q.type == "OPEN") {
|
|
@@ -9106,7 +9106,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
9106
9106
|
});
|
|
9107
9107
|
else
|
|
9108
9108
|
try {
|
|
9109
|
-
Q.clickFunction && await evalEvent("async " + Q.clickFunction, (G == null ? void 0 : G.length) > 1 ? G : H, Q) !== !1 && (Q.loading = !1);
|
|
9109
|
+
Q.clickFunction && await evalEvent("async " + Q.clickFunction, (G == null ? void 0 : G.length) > 1 ? G : H, Q, "按钮点击事件") !== !1 && (Q.loading = !1);
|
|
9110
9110
|
} catch (ne) {
|
|
9111
9111
|
console.error(ne), Q.loading = !1;
|
|
9112
9112
|
}
|
|
@@ -9307,9 +9307,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
9307
9307
|
break;
|
|
9308
9308
|
}
|
|
9309
9309
|
}
|
|
9310
|
-
evalEvent(Q.column.editRender.props.changeFunction, H, Z);
|
|
9310
|
+
evalEvent(Q.column.editRender.props.changeFunction, H, Z, "字段值更改方法");
|
|
9311
9311
|
} else
|
|
9312
|
-
evalEvent(Q.column.editRender.props.changeFunction, H, G, K);
|
|
9312
|
+
evalEvent(Q.column.editRender.props.changeFunction, H, G, K, "字段值更改方法");
|
|
9313
9313
|
}, success = (Q, H) => {
|
|
9314
9314
|
$vxeMessage({
|
|
9315
9315
|
content: Q,
|
|
@@ -9347,7 +9347,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
9347
9347
|
}, onFieldEnter = (Q, H) => {
|
|
9348
9348
|
if (H.key === "Enter" && Q.column.editRender.props.enterFunction) {
|
|
9349
9349
|
let X = Q.row[Q.column.field];
|
|
9350
|
-
evalEvent(Q.column.editRender.props.enterFunction, X, Q.column.field, Q.row);
|
|
9350
|
+
evalEvent(Q.column.editRender.props.enterFunction, X, Q.column.field, Q.row, "字段回车事件");
|
|
9351
9351
|
}
|
|
9352
9352
|
}, handleAddChildTableData = async () => {
|
|
9353
9353
|
let Q = {}, H = "";
|
|
@@ -9651,7 +9651,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
9651
9651
|
}, 400);
|
|
9652
9652
|
}, onScanIconClick = (Q, H) => {
|
|
9653
9653
|
const X = gridData.value.formConfig.items.filter((G) => G.field == H)[0];
|
|
9654
|
-
X.itemRender.props.clickFunction && evalEvent(X.itemRender.props.clickFunction, Q, H);
|
|
9654
|
+
X.itemRender.props.clickFunction && evalEvent(X.itemRender.props.clickFunction, Q, H, "扫码图标点击事件");
|
|
9655
9655
|
}, setFormScanValue = (Q, H) => {
|
|
9656
9656
|
queryFormData.value[Q] = H;
|
|
9657
9657
|
}, setFormValue = (Q, H) => {
|
|
@@ -9699,7 +9699,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
9699
9699
|
const X = Q.item.itemRender.props.changeFunction;
|
|
9700
9700
|
if (X) {
|
|
9701
9701
|
const G = Q.property, K = Q.data, Z = Q.item.itemRender.options;
|
|
9702
|
-
await evalEvent(X, H, G, K, Z);
|
|
9702
|
+
await evalEvent(X, H, G, K, Z, "查询条件字段值改变事件");
|
|
9703
9703
|
}
|
|
9704
9704
|
nextTick(() => {
|
|
9705
9705
|
reload();
|
|
@@ -9849,7 +9849,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
9849
9849
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
9850
9850
|
body: { options: bodyMenus.value },
|
|
9851
9851
|
visibleMethod
|
|
9852
|
-
}), await evalEvent(gridData.value.params.formEvents.dataInit), gridData.value.toolbarConfig.buttons.forEach((Q) => {
|
|
9852
|
+
}), await evalEvent(gridData.value.params.formEvents.dataInit, "数据初始化前"), gridData.value.toolbarConfig.buttons.forEach((Q) => {
|
|
9853
9853
|
typeof Q.type < "u" && Q.type.toLowerCase() === "edit" && (editBtn.value = Q), typeof Q.type < "u" && Q.type.toLowerCase() === "export" && (exportButton.value = Q), Q.hasOwnProperty("buttonRender") || (Q.buttonRender = {
|
|
9854
9854
|
name: "ElButton",
|
|
9855
9855
|
props: {
|
|
@@ -9886,7 +9886,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
9886
9886
|
queryFormData.value.hasOwnProperty(H) && !queryFormData.value[H] && (queryFormData.value[H] = gridData.value.params.queryParams[Q]);
|
|
9887
9887
|
}), gridData.value.params.queryFormData = queryFormData.value, gridData.value.columns.forEach((Q) => {
|
|
9888
9888
|
Q.hasOwnProperty("field") && !Q.hasOwnProperty("treeNode") && (Q.events.change = onFieldChange, Q.events["on-change"] = onFieldChange, Q.events.keyup = onFieldEnter, Q.editRender.events = Q.events, Q.itemRender.events = Q.events), Q.itemRender && Q.itemRender.props._select_id && (formSelectMap.value[Q.id] = Q);
|
|
9889
|
-
}), searchData(), regionMap.value[gridData.value.params.code + "-" + preTag.value] = curRegion.value, regionMap.value[gridData.value.params.code] = curRegion.value, evalEvent(gridData.value.params.formEvents.regionInit), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), curRegion.value.closeModal = () => {
|
|
9889
|
+
}), searchData(), regionMap.value[gridData.value.params.code + "-" + preTag.value] = curRegion.value, regionMap.value[gridData.value.params.code] = curRegion.value, evalEvent(gridData.value.params.formEvents.regionInit, "页面初始化触发"), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), curRegion.value.closeModal = () => {
|
|
9890
9890
|
closeModal && closeModal();
|
|
9891
9891
|
}, curRegion.value.closePreModal = () => {
|
|
9892
9892
|
closePreModal && closePreModal();
|
|
@@ -9971,7 +9971,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
9971
9971
|
}, null, 8, _hoisted_7$14)
|
|
9972
9972
|
]),
|
|
9973
9973
|
form: withCtx(() => [
|
|
9974
|
-
createElementVNode("div", _hoisted_8$
|
|
9974
|
+
createElementVNode("div", _hoisted_8$H, [
|
|
9975
9975
|
createVNode(te, {
|
|
9976
9976
|
ref: "queryForm",
|
|
9977
9977
|
data: unref(queryFormData)
|
|
@@ -10058,7 +10058,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
10058
10058
|
]),
|
|
10059
10059
|
_: 1
|
|
10060
10060
|
}, 8, ["collapseNode"])) : createCommentVNode("", !0),
|
|
10061
|
-
createVNode(ee,
|
|
10061
|
+
createVNode(ee, { span: "24" }, {
|
|
10062
10062
|
default: withCtx(() => [
|
|
10063
10063
|
createElementVNode("div", {
|
|
10064
10064
|
class: "other_item",
|
|
@@ -10160,7 +10160,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ec865958_lang = "", _withScop
|
|
|
10160
10160
|
]);
|
|
10161
10161
|
};
|
|
10162
10162
|
}
|
|
10163
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
10163
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-efb30b2d"]]);
|
|
10164
10164
|
WindowGrid.name = "slw-window-grid";
|
|
10165
10165
|
WindowGrid.install = (Q) => {
|
|
10166
10166
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -42472,10 +42472,10 @@ var js = js$1.exports;
|
|
|
42472
42472
|
})(Q);
|
|
42473
42473
|
})(js$1);
|
|
42474
42474
|
var jsExports = js$1.exports;
|
|
42475
|
-
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
42475
|
+
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_d4c73584_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-d4c73584"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kX = {
|
|
42476
42476
|
key: 0,
|
|
42477
42477
|
class: "form-title"
|
|
42478
|
-
}, _hoisted_3$hX = ["onClick"], _hoisted_4$ax = ["onClick"], _hoisted_5$4X = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _sfc_main$d = {
|
|
42478
|
+
}, _hoisted_3$hX = ["onClick"], _hoisted_4$ax = ["onClick"], _hoisted_5$4X = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _hoisted_8$G = ["onClick"], _sfc_main$d = {
|
|
42479
42479
|
__name: "window-form",
|
|
42480
42480
|
props: {
|
|
42481
42481
|
formConfig: {
|
|
@@ -42502,7 +42502,9 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42502
42502
|
}), fieldPreviewMap = ref({}), editorFocusField = ref("");
|
|
42503
42503
|
const localEditorViews = shallowRef({}), handleReady = (Q, H) => {
|
|
42504
42504
|
localEditorViews[Q] = H.view;
|
|
42505
|
-
}
|
|
42505
|
+
};
|
|
42506
|
+
let codemirrorDrawer = ref(!1), codemirrorTitle = ref(""), codemirrorCol = ref(null);
|
|
42507
|
+
const $Message = ref({
|
|
42506
42508
|
success(Q) {
|
|
42507
42509
|
success(Q);
|
|
42508
42510
|
},
|
|
@@ -42528,7 +42530,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42528
42530
|
return typeof fun != "function" && eval("fun = " + fun), fun(...eventParams);
|
|
42529
42531
|
eval(fun);
|
|
42530
42532
|
} catch (Q) {
|
|
42531
|
-
console.error(Q,
|
|
42533
|
+
console.error(Q, formConfig.value.params.windowTitle, eventParams.at(-1));
|
|
42532
42534
|
}
|
|
42533
42535
|
}
|
|
42534
42536
|
}, codeTranslationV3 = (Q) => {
|
|
@@ -42638,18 +42640,20 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42638
42640
|
}
|
|
42639
42641
|
], formConfig.value.columns.forEach((Z, ee, te) => {
|
|
42640
42642
|
Z.hasOwnProperty("field") && !Z.hasOwnProperty("treeNode") && (Z.events.change = onFieldChange, Z.events.keyup = onFieldEnter, Z.events.click = onFieldClick), (Z == null ? void 0 : Z.dataType) === "IMG" && (uploadConfig.value.isHaveImgField = !0, fieldPreviewMap.value[Z.field] = []);
|
|
42641
|
-
}), await evalEvent(formConfig.value.params.formEvents.dataInit);
|
|
42643
|
+
}), await evalEvent(formConfig.value.params.formEvents.dataInit, "数据初始化前");
|
|
42642
42644
|
let Q = !0;
|
|
42643
42645
|
if (formConfig.value.formData) {
|
|
42644
42646
|
formData.value = formConfig.value.formData, Q = formConfig.value.openType === "new", formConfig.value.openType === "view" && (formConfig.value.columns = XEUtils$4.clone(formConfig.value.columns, !0));
|
|
42645
42647
|
for (const Z of formConfig.value.columns)
|
|
42646
42648
|
formConfig.value.openType === "view" && ((H = Z.itemRender) == null ? void 0 : H.name) == "ElInput" && (Z.itemRender.props.readonly = !0), Z.dataType === "EDITOR" ? formData.value[Z.field] == null ? formData.value[Z.field] = "" : Z.language == "javascript" && (formData.value[Z.field] = jsExports.js_beautify(formData.value[Z.field], codeBeautifyConfig)) : (((X = Z.itemRender) == null ? void 0 : X.name) == "ElSelect" || ((G = Z.itemRender) == null ? void 0 : G.name) == "VxeSelect") && Z.itemRender.props.multiple && (formData.value[Z.field] = formData.value[Z.field] == "" ? [] : (K = formData.value[Z.field]) == null ? void 0 : K.split(","));
|
|
42647
|
-
} else
|
|
42649
|
+
} else {
|
|
42648
42650
|
for (const Z in formConfig.value.columns)
|
|
42649
42651
|
formConfig.value.columns[Z].type !== "seq" && formConfig.value.columns[Z].type !== "checkbox" && (formData.value[formConfig.value.columns[Z].field] = "");
|
|
42652
|
+
formConfig.value.formData = formData.value;
|
|
42653
|
+
}
|
|
42650
42654
|
uploadConfig.value.dataId = formData.value[formConfig.value.rowConfig.keyField], uploadConfig.value.regionId = formConfig.value.params._region_id, uploadConfig.value.isHavePicUploadBtn = formConfig.value.params.isHavePicUploadBtn, uploadConfig.value.openType = formConfig.value.openType, computeNewLine(formConfig.value), formData.value._region_id = formConfig.value.params._region_id, await formInitData(formData.value, formConfig.value.params._region_id, Q), form.value.params = formConfig.value.params, formConfig.value.params.queryParams && Object.keys(formConfig.value.params.queryParams).length > 0 && formConfig.value.params.queryParams.unQuery !== !0 && searchData(formConfig.value.params.queryParams), formConfig.value.columns.map((Z) => {
|
|
42651
42655
|
Z.hasOwnProperty("field") && !Z.hasOwnProperty("treeNode") && (fieldColumnMap.value[Z.field] = Z);
|
|
42652
|
-
}), !formConfig.value.params.linkUrl && (formConfig.value.type === "FORM" ? (regionMap.value[formConfig.value.params.code + "-" + preTag.value] = form.value, regionMap.value[formConfig.value.params.code] = form.value) : regionMap.value["Edit-" + formConfig.value.params.code + "-" + preTag.value] = form.value, throwFunction(form.value), await evalEvent(formConfig.value.params.formEvents.regionInit), nextTick(() => {
|
|
42656
|
+
}), !formConfig.value.params.linkUrl && (formConfig.value.type === "FORM" ? (regionMap.value[formConfig.value.params.code + "-" + preTag.value] = form.value, regionMap.value[formConfig.value.params.code] = form.value) : regionMap.value["Edit-" + formConfig.value.params.code + "-" + preTag.value] = form.value, throwFunction(form.value), await evalEvent(formConfig.value.params.formEvents.regionInit, "页面初始化触发"), nextTick(() => {
|
|
42653
42657
|
formDataClone.value = XEUtils$4.clone(toRaw(formData.value), !0);
|
|
42654
42658
|
}), formLoading.value = !1);
|
|
42655
42659
|
}), onUnmounted(() => {
|
|
@@ -42692,7 +42696,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42692
42696
|
}), form = ref(), submitData = (Q) => {
|
|
42693
42697
|
form.value.validate(async (H) => {
|
|
42694
42698
|
if (typeof H > "u") {
|
|
42695
|
-
let X = await evalEvent(formConfig.value.params.formEvents.beginSubmit, formData.value);
|
|
42699
|
+
let X = await evalEvent(formConfig.value.params.formEvents.beginSubmit, formData.value, "表单提交前触发");
|
|
42696
42700
|
if (typeof X < "u" && X === !1) {
|
|
42697
42701
|
emits("saveLoadingChange");
|
|
42698
42702
|
return;
|
|
@@ -42707,7 +42711,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42707
42711
|
content: Z.data.msg,
|
|
42708
42712
|
status: Z.data.result ? "success" : "error",
|
|
42709
42713
|
zIndex: 3e3
|
|
42710
|
-
}), Z.data.result && (uploadConfig.value.isHaveImgField && !uploadConfig.value.dataId && updatePictureDataId(Z.data.id), evalEvent(formConfig.value.params.formEvents.afterSubmit, formData.value, Z.data), typeof Q < "u" && (Q instanceof Object || Q === !0) && emits("gridReload", formData.value._region_id, formConfig.value.openType === "new" ? 0 : null)), nextTick(() => {
|
|
42714
|
+
}), Z.data.result && (uploadConfig.value.isHaveImgField && !uploadConfig.value.dataId && updatePictureDataId(Z.data.id), evalEvent(formConfig.value.params.formEvents.afterSubmit, formData.value, Z.data, "表单提交后触发"), typeof Q < "u" && (Q instanceof Object || Q === !0) && emits("gridReload", formData.value._region_id, formConfig.value.openType === "new" ? 0 : null)), nextTick(() => {
|
|
42711
42715
|
formDataClone.value = XEUtils$4.clone(toRaw(formData.value), !0);
|
|
42712
42716
|
});
|
|
42713
42717
|
}).catch((Z) => {
|
|
@@ -42729,7 +42733,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42729
42733
|
try {
|
|
42730
42734
|
switch (Q.type) {
|
|
42731
42735
|
case "EVENT":
|
|
42732
|
-
Q.windowId ? showPreView(Q.windowId, Q.name) : Q.clickFunction && await evalEvent("async " + Q.clickFunction, formData.value, Q), Q.loading = !1;
|
|
42736
|
+
Q.windowId ? showPreView(Q.windowId, Q.name) : Q.clickFunction && await evalEvent("async " + Q.clickFunction, formData.value, Q, "按钮点击事件"), Q.loading = !1;
|
|
42733
42737
|
break;
|
|
42734
42738
|
case "SUBMIT":
|
|
42735
42739
|
Q.requestPath && (formConfig.value.params.submitRequestPath = Q.requestPath), formConfig.value.openType = "submit", formData.value._button_id = Q._button_id, Q.loading = !1, submitData(Q);
|
|
@@ -42839,7 +42843,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42839
42843
|
), K.push(ee);
|
|
42840
42844
|
else if (formConfig.value.openType === "new" && ee.visible && ee.editRender.options && ee.editRender.options.length > 0) {
|
|
42841
42845
|
if (Q[ee.field] == "null" || Q[ee.field] == null)
|
|
42842
|
-
Q[ee.field] =
|
|
42846
|
+
Q[ee.field] = null;
|
|
42843
42847
|
else if (!Q[ee.field]) {
|
|
42844
42848
|
Q[ee.field] = ee.editRender.options[0].VALUE;
|
|
42845
42849
|
let te = {
|
|
@@ -42864,7 +42868,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42864
42868
|
oe
|
|
42865
42869
|
)), formConfig.value.openType === "new" && ne.visible && ee.data.data.length > 0) {
|
|
42866
42870
|
if (Q[ne.field] == "null" || Q[ne.field] == null)
|
|
42867
|
-
Q[ne.field] =
|
|
42871
|
+
Q[ne.field] = null;
|
|
42868
42872
|
else if (!Q[ne.field]) {
|
|
42869
42873
|
Q[ne.field] = ee.data.data[0].VALUE;
|
|
42870
42874
|
let oe = {
|
|
@@ -42910,7 +42914,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42910
42914
|
}
|
|
42911
42915
|
}
|
|
42912
42916
|
}
|
|
42913
|
-
evalEvent(Q.item.itemRender.props.changeFunction, H, X), readonlyLogic(), handleSelectTableField(Q.property), (G = formConfig.value.params.sqlLogicListenField) != null && G.includes(Q.property) && subQueryFields.value.forEach((K) => {
|
|
42917
|
+
evalEvent(Q.item.itemRender.props.changeFunction, H, X, "字段值更改方法"), readonlyLogic(), handleSelectTableField(Q.property), (G = formConfig.value.params.sqlLogicListenField) != null && G.includes(Q.property) && subQueryFields.value.forEach((K) => {
|
|
42914
42918
|
getSubQueryData(Q.data._region_id, K.id, K.field);
|
|
42915
42919
|
});
|
|
42916
42920
|
}, getSubQueryData = (Q, H, X) => {
|
|
@@ -42927,22 +42931,22 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42927
42931
|
}, onFieldEnter = (Q, H) => {
|
|
42928
42932
|
if (H.key === "Enter" && Q.item.itemRender.props.enterFunction) {
|
|
42929
42933
|
let X = Q.data[Q.property];
|
|
42930
|
-
evalEvent(Q.item.itemRender.props.enterFunction, X);
|
|
42934
|
+
evalEvent(Q.item.itemRender.props.enterFunction, X, "字段回车事件");
|
|
42931
42935
|
}
|
|
42932
42936
|
}, onFieldClick = (Q, H) => {
|
|
42933
42937
|
if (Q.item.itemRender.props.clickFunction) {
|
|
42934
42938
|
let X = Q.data[Q.property];
|
|
42935
|
-
evalEvent(Q.item.itemRender.props.clickFunction, X, Q.field);
|
|
42939
|
+
evalEvent(Q.item.itemRender.props.clickFunction, X, Q.field, "字段点击事件");
|
|
42936
42940
|
}
|
|
42937
42941
|
}, onScanIconClick = (Q) => {
|
|
42938
42942
|
if (Q.itemRender.props.clickFunction) {
|
|
42939
42943
|
let H = formData.value[Q.field];
|
|
42940
|
-
evalEvent(Q.itemRender.props.clickFunction, H, Q.field);
|
|
42944
|
+
evalEvent(Q.itemRender.props.clickFunction, H, Q.field, "扫码图标点击事件");
|
|
42941
42945
|
}
|
|
42942
42946
|
}, onIconInputEnter = (Q, H) => {
|
|
42943
|
-
H.key === "Enter" && Q.itemRender.props.enterFunction && evalEvent(Q.itemRender.props.enterFunction, formData.value[Q.field], Q.field);
|
|
42947
|
+
H.key === "Enter" && Q.itemRender.props.enterFunction && evalEvent(Q.itemRender.props.enterFunction, formData.value[Q.field], Q.field, "图标输入框回车事件");
|
|
42944
42948
|
}, onIconClick = (Q) => {
|
|
42945
|
-
Q.itemRender.props.iconClickFun && evalEvent(Q.itemRender.props.iconClickFun, formData.value[Q.field], Q.field);
|
|
42949
|
+
Q.itemRender.props.iconClickFun && evalEvent(Q.itemRender.props.iconClickFun, formData.value[Q.field], Q.field, "图标输入框图标点击事件");
|
|
42946
42950
|
}, onIconInputChange = (Q) => {
|
|
42947
42951
|
let H = {
|
|
42948
42952
|
data: formData.value,
|
|
@@ -43069,7 +43073,8 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43069
43073
|
else if (H == "swap") {
|
|
43070
43074
|
let K = G.doc.toString();
|
|
43071
43075
|
K = codeTranslationV3(K), K = K.replaceAll("this.$data.", "").replaceAll("this.$", "").replaceAll("this.", ""), formData.value[Q.field] = K;
|
|
43072
|
-
}
|
|
43076
|
+
} else
|
|
43077
|
+
H == "full" && (codemirrorDrawer.value = !0, codemirrorCol.value = Q, codemirrorTitle.value = Q.title);
|
|
43073
43078
|
X.focus();
|
|
43074
43079
|
}, setFieldElement = (Q, H) => {
|
|
43075
43080
|
let X = formConfig.value.columns.filter((G) => G.field == Q.toUpperCase())[0];
|
|
@@ -43098,12 +43103,12 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43098
43103
|
Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, X) => setValue(H, X), Q.checkSubmitData = () => checkSubmitData(), Q.searchData = (H) => searchData(H), Q.displayFormItem = (H, X) => displayFormItem(H, X), Q.reset = () => reset(), Q.clearData = () => clearData(), Q.setFieldName = (H, X) => setFieldName(H, X), Q.setFormItemProperty = (H, X, G) => setFormItemProperty(H, X, G), Q.getTableFieldSelectData = (H) => getTableFieldSelectData(H), Q.setFormSelectOption = (H, X) => setFormSelectOption(H, X);
|
|
43099
43104
|
};
|
|
43100
43105
|
return __expose({ submitData, validateDataChg, getValue, getRegion, getData }), (Q, H) => {
|
|
43101
|
-
const X = resolveComponent("el-icon"), G = resolveComponent("el-button"), K = resolveComponent("el-input"), Z = resolveComponent("vxe-form-item"), ee = resolveComponent("vxe-form-group"), te = resolveComponent("vxe-form"), ne = resolveComponent("el-dialog");
|
|
43106
|
+
const X = resolveComponent("el-icon"), G = resolveComponent("el-button"), K = resolveComponent("el-input"), Z = resolveComponent("vxe-form-item"), ee = resolveComponent("vxe-form-group"), te = resolveComponent("vxe-form"), ne = resolveComponent("el-dialog"), oe = resolveComponent("el-drawer");
|
|
43102
43107
|
return openBlock(), createElementBlock("div", _hoisted_1$l1, [
|
|
43103
43108
|
unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", {
|
|
43104
43109
|
key: 0,
|
|
43105
43110
|
class: "form-header-box",
|
|
43106
|
-
style: normalizeStyle(computeOnlyShowBtn.value ? "height: 100%" : "")
|
|
43111
|
+
style: normalizeStyle(computeOnlyShowBtn.value && unref(formConfig).params.buttonPosition.includes("TOP") ? "height: 100%" : "")
|
|
43107
43112
|
}, [
|
|
43108
43113
|
unref(formConfig).params.showTitle ? (openBlock(), createElementBlock("span", _hoisted_2$kX, toDisplayString(unref($T)(unref(formConfig).params.windowTitle)), 1)) : createCommentVNode("", !0),
|
|
43109
43114
|
buttons.value.length > 0 && unref(formConfig).params.buttonPosition.includes("TOP") ? (openBlock(), createElementBlock("div", {
|
|
@@ -43111,20 +43116,20 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43111
43116
|
class: "form-buttons",
|
|
43112
43117
|
style: normalizeStyle(computeOptBtnStyle.value("top"))
|
|
43113
43118
|
}, [
|
|
43114
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (
|
|
43115
|
-
key:
|
|
43119
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (re) => (openBlock(), createBlock(G, {
|
|
43120
|
+
key: re.id,
|
|
43116
43121
|
"auto-insert-space": "",
|
|
43117
|
-
style: normalizeStyle("margin: 2px 2px 2px 2px;" +
|
|
43122
|
+
style: normalizeStyle("margin: 2px 2px 2px 2px;" + re.css),
|
|
43118
43123
|
type: "primary",
|
|
43119
|
-
loading:
|
|
43120
|
-
onClick: (
|
|
43124
|
+
loading: re.loading,
|
|
43125
|
+
onClick: (ae) => btnClickFun(re)
|
|
43121
43126
|
}, createSlots({
|
|
43122
43127
|
default: withCtx(() => [
|
|
43123
|
-
createTextVNode(" " + toDisplayString(unref($T)(
|
|
43128
|
+
createTextVNode(" " + toDisplayString(unref($T)(re.name)), 1)
|
|
43124
43129
|
]),
|
|
43125
43130
|
_: 2
|
|
43126
43131
|
}, [
|
|
43127
|
-
|
|
43132
|
+
re.iconComponent ? {
|
|
43128
43133
|
name: "icon",
|
|
43129
43134
|
fn: withCtx(() => [
|
|
43130
43135
|
createVNode(X, {
|
|
@@ -43132,7 +43137,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43132
43137
|
style: { verticalAlign: "middle" }
|
|
43133
43138
|
}, {
|
|
43134
43139
|
default: withCtx(() => [
|
|
43135
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
43140
|
+
(openBlock(), createBlock(resolveDynamicComponent(re.iconComponent)))
|
|
43136
43141
|
]),
|
|
43137
43142
|
_: 2
|
|
43138
43143
|
}, 1024)
|
|
@@ -43153,88 +43158,93 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43153
43158
|
class: normalizeClass({ "single-row": unref(formConfig).params.singleRow })
|
|
43154
43159
|
}, {
|
|
43155
43160
|
default: withCtx(() => [
|
|
43156
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).params.columnsGroup, (
|
|
43161
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).params.columnsGroup, (re) => (openBlock(), createBlock(ee, {
|
|
43157
43162
|
span: "24",
|
|
43158
|
-
title:
|
|
43159
|
-
"content-class-name":
|
|
43163
|
+
title: re.title,
|
|
43164
|
+
"content-class-name": re.title ? "vxe-form--group-content-border" : "",
|
|
43160
43165
|
"title-bold": "",
|
|
43161
43166
|
vertical: ""
|
|
43162
43167
|
}, {
|
|
43163
43168
|
default: withCtx(() => [
|
|
43164
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(computeItemGroup.value(
|
|
43165
|
-
key:
|
|
43169
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(computeItemGroup.value(re), (ae) => (openBlock(), createElementBlock(Fragment, {
|
|
43170
|
+
key: ae.title
|
|
43166
43171
|
}, [
|
|
43167
|
-
|
|
43172
|
+
ae.colType !== "showInGrid" ? (openBlock(), createBlock(Z, {
|
|
43168
43173
|
key: 0,
|
|
43169
|
-
field:
|
|
43170
|
-
title: computeItemTitle.value(
|
|
43174
|
+
field: ae.field,
|
|
43175
|
+
title: computeItemTitle.value(ae.title),
|
|
43171
43176
|
"title-overflow": "tooltip",
|
|
43172
|
-
span: computeSpan.value(
|
|
43173
|
-
"item-render":
|
|
43174
|
-
"title-prefix":
|
|
43175
|
-
visible:
|
|
43176
|
-
style: normalizeStyle(
|
|
43177
|
-
"class-name": computeItemClass.value(
|
|
43178
|
-
"visible-method":
|
|
43177
|
+
span: computeSpan.value(ae),
|
|
43178
|
+
"item-render": ae.itemRender,
|
|
43179
|
+
"title-prefix": ae.titlePrefix,
|
|
43180
|
+
visible: ae.displayForm,
|
|
43181
|
+
style: normalizeStyle(ae.style),
|
|
43182
|
+
"class-name": computeItemClass.value(ae),
|
|
43183
|
+
"visible-method": ae.editRender.props.displayLogic ? displayLogicEvent : null
|
|
43179
43184
|
}, createSlots({ _: 2 }, [
|
|
43180
|
-
|
|
43185
|
+
ae.dataType === "EDITOR" ? {
|
|
43181
43186
|
name: "default",
|
|
43182
43187
|
fn: withCtx(() => [
|
|
43183
43188
|
createVNode(unref(T$2), {
|
|
43184
|
-
modelValue: unref(formData)[
|
|
43185
|
-
"onUpdate:modelValue": (
|
|
43186
|
-
extensions: [getCodeLanguagePlugin(
|
|
43187
|
-
onReady: (
|
|
43188
|
-
onFocus: (
|
|
43189
|
+
modelValue: unref(formData)[ae.field],
|
|
43190
|
+
"onUpdate:modelValue": (le) => unref(formData)[ae.field] = le,
|
|
43191
|
+
extensions: [getCodeLanguagePlugin(ae.language), unref(EditorView).lineWrapping],
|
|
43192
|
+
onReady: (le) => handleReady(ae.field, le),
|
|
43193
|
+
onFocus: (le) => isRef(editorFocusField) ? editorFocusField.value = ae.field : editorFocusField = ae.field,
|
|
43189
43194
|
"auto-destroy": ""
|
|
43190
43195
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "extensions", "onReady", "onFocus"]),
|
|
43191
43196
|
createElementVNode("div", {
|
|
43192
43197
|
class: "editor-operation-btn",
|
|
43193
|
-
style: normalizeStyle(computeEditorBtnStyle.value(
|
|
43198
|
+
style: normalizeStyle(computeEditorBtnStyle.value(ae.field))
|
|
43194
43199
|
}, [
|
|
43195
|
-
|
|
43200
|
+
ae.language == "javascript" ? (openBlock(), createElementBlock("i", {
|
|
43196
43201
|
key: 0,
|
|
43197
43202
|
title: "美化",
|
|
43198
43203
|
class: "iconfont icon-magic-stick",
|
|
43199
|
-
onClick: (
|
|
43204
|
+
onClick: (le) => onEditorBtnClick(ae, "beautify")
|
|
43200
43205
|
}, null, 8, _hoisted_3$hX)) : createCommentVNode("", !0),
|
|
43201
43206
|
createElementVNode("i", {
|
|
43202
43207
|
title: "全选",
|
|
43203
43208
|
class: "iconfont icon-check-square",
|
|
43204
|
-
onClick: (
|
|
43209
|
+
onClick: (le) => onEditorBtnClick(ae, "checkAll")
|
|
43205
43210
|
}, null, 8, _hoisted_4$ax),
|
|
43206
43211
|
createElementVNode("i", {
|
|
43207
43212
|
title: "复制",
|
|
43208
43213
|
class: "iconfont icon-document-copy",
|
|
43209
|
-
onClick: (
|
|
43214
|
+
onClick: (le) => onEditorBtnClick(ae, "copy")
|
|
43210
43215
|
}, null, 8, _hoisted_5$4X),
|
|
43211
43216
|
createElementVNode("i", {
|
|
43212
43217
|
title: "清空",
|
|
43213
43218
|
class: "iconfont icon-clear",
|
|
43214
|
-
onClick: (
|
|
43219
|
+
onClick: (le) => onEditorBtnClick(ae, "clear")
|
|
43215
43220
|
}, null, 8, _hoisted_6$20),
|
|
43216
|
-
|
|
43221
|
+
ae.language == "javascript" ? (openBlock(), createElementBlock("i", {
|
|
43217
43222
|
key: 1,
|
|
43218
43223
|
title: "组合式API转换",
|
|
43219
43224
|
class: "iconfont icon-swap",
|
|
43220
|
-
onClick: (
|
|
43221
|
-
}, null, 8, _hoisted_7$13)) : createCommentVNode("", !0)
|
|
43225
|
+
onClick: (le) => onEditorBtnClick(ae, "swap")
|
|
43226
|
+
}, null, 8, _hoisted_7$13)) : createCommentVNode("", !0),
|
|
43227
|
+
createElementVNode("i", {
|
|
43228
|
+
title: "放大",
|
|
43229
|
+
class: "iconfont icon-full-screen",
|
|
43230
|
+
onClick: (le) => onEditorBtnClick(ae, "full")
|
|
43231
|
+
}, null, 8, _hoisted_8$G)
|
|
43222
43232
|
], 4)
|
|
43223
43233
|
]),
|
|
43224
43234
|
key: "0"
|
|
43225
|
-
} :
|
|
43235
|
+
} : ae.dataType === "STRING" && ae.canScan === !0 ? {
|
|
43226
43236
|
name: "default",
|
|
43227
43237
|
fn: withCtx(() => [
|
|
43228
43238
|
createVNode(K, {
|
|
43229
|
-
modelValue: unref(formData)[
|
|
43230
|
-
"onUpdate:modelValue": (
|
|
43231
|
-
onKeyup: (
|
|
43232
|
-
onChange: (
|
|
43239
|
+
modelValue: unref(formData)[ae.field],
|
|
43240
|
+
"onUpdate:modelValue": (le) => unref(formData)[ae.field] = le,
|
|
43241
|
+
onKeyup: (le) => onIconInputEnter(ae, le),
|
|
43242
|
+
onChange: (le) => onIconInputChange(ae)
|
|
43233
43243
|
}, {
|
|
43234
43244
|
suffix: withCtx(() => [
|
|
43235
43245
|
createElementVNode("i", {
|
|
43236
43246
|
class: "iconfont icon-scan1",
|
|
43237
|
-
onClick: (
|
|
43247
|
+
onClick: (le) => onScanIconClick(ae),
|
|
43238
43248
|
style: { cursor: "pointer" }
|
|
43239
43249
|
}, null, 8, ["onClick"])
|
|
43240
43250
|
]),
|
|
@@ -43242,32 +43252,32 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43242
43252
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
|
|
43243
43253
|
]),
|
|
43244
43254
|
key: "1"
|
|
43245
|
-
} :
|
|
43255
|
+
} : ae.itemRender.props.suffixIconfont || ae.itemRender.props.prefixIconfont ? {
|
|
43246
43256
|
name: "default",
|
|
43247
43257
|
fn: withCtx(() => [
|
|
43248
43258
|
createVNode(K, {
|
|
43249
|
-
modelValue: unref(formData)[
|
|
43250
|
-
"onUpdate:modelValue": (
|
|
43259
|
+
modelValue: unref(formData)[ae.field],
|
|
43260
|
+
"onUpdate:modelValue": (le) => unref(formData)[ae.field] = le,
|
|
43251
43261
|
clearable: !1,
|
|
43252
|
-
onKeyup: (
|
|
43253
|
-
onChange: (
|
|
43262
|
+
onKeyup: (le) => onIconInputEnter(ae, le),
|
|
43263
|
+
onChange: (le) => onIconInputChange(ae)
|
|
43254
43264
|
}, createSlots({ _: 2 }, [
|
|
43255
|
-
|
|
43265
|
+
ae.itemRender.props.suffixIconfont ? {
|
|
43256
43266
|
name: "suffix",
|
|
43257
43267
|
fn: withCtx(() => [
|
|
43258
43268
|
createElementVNode("i", {
|
|
43259
|
-
class: normalizeClass("iconfont " +
|
|
43260
|
-
onClick: (
|
|
43269
|
+
class: normalizeClass("iconfont " + ae.itemRender.props.suffixIconfont),
|
|
43270
|
+
onClick: (le) => onIconClick(ae),
|
|
43261
43271
|
style: { cursor: "pointer" }
|
|
43262
43272
|
}, null, 10, ["onClick"])
|
|
43263
43273
|
]),
|
|
43264
43274
|
key: "0"
|
|
43265
|
-
} :
|
|
43275
|
+
} : ae.itemRender.props.prefixIconfont ? {
|
|
43266
43276
|
name: "prefix",
|
|
43267
43277
|
fn: withCtx(() => [
|
|
43268
43278
|
createElementVNode("i", {
|
|
43269
|
-
class: normalizeClass("iconfont " +
|
|
43270
|
-
onClick: (
|
|
43279
|
+
class: normalizeClass("iconfont " + ae.itemRender.props.prefixIconfont),
|
|
43280
|
+
onClick: (le) => onIconClick(ae),
|
|
43271
43281
|
style: { cursor: "pointer" }
|
|
43272
43282
|
}, null, 10, ["onClick"])
|
|
43273
43283
|
]),
|
|
@@ -43276,13 +43286,13 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43276
43286
|
]), 1032, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
|
|
43277
43287
|
]),
|
|
43278
43288
|
key: "2"
|
|
43279
|
-
} :
|
|
43289
|
+
} : ae.dataType === "IMG" ? {
|
|
43280
43290
|
name: "default",
|
|
43281
43291
|
fn: withCtx(() => [
|
|
43282
43292
|
createVNode(unref(PictureUpload), {
|
|
43283
43293
|
uploadConfig: unref(uploadConfig),
|
|
43284
|
-
filePreviewList: unref(fieldPreviewMap)[
|
|
43285
|
-
"onUpdate:filePreviewList": (
|
|
43294
|
+
filePreviewList: unref(fieldPreviewMap)[ae.field],
|
|
43295
|
+
"onUpdate:filePreviewList": (le) => unref(fieldPreviewMap)[ae.field] = le
|
|
43286
43296
|
}, null, 8, ["uploadConfig", "filePreviewList", "onUpdate:filePreviewList"])
|
|
43287
43297
|
]),
|
|
43288
43298
|
key: "3"
|
|
@@ -43298,20 +43308,20 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43298
43308
|
span: "24"
|
|
43299
43309
|
}, {
|
|
43300
43310
|
default: withCtx(() => [
|
|
43301
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (
|
|
43302
|
-
key:
|
|
43311
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (re) => (openBlock(), createBlock(G, {
|
|
43312
|
+
key: re.id,
|
|
43303
43313
|
"auto-insert-space": "",
|
|
43304
|
-
style: normalizeStyle("margin: 2px 2px 2px 2px;" +
|
|
43314
|
+
style: normalizeStyle("margin: 2px 2px 2px 2px;" + re.css),
|
|
43305
43315
|
type: "primary",
|
|
43306
|
-
loading:
|
|
43307
|
-
onClick: (
|
|
43316
|
+
loading: re.loading,
|
|
43317
|
+
onClick: (ae) => btnClickFun(re)
|
|
43308
43318
|
}, createSlots({
|
|
43309
43319
|
default: withCtx(() => [
|
|
43310
|
-
createTextVNode(" " + toDisplayString(unref($T)(
|
|
43320
|
+
createTextVNode(" " + toDisplayString(unref($T)(re.name)), 1)
|
|
43311
43321
|
]),
|
|
43312
43322
|
_: 2
|
|
43313
43323
|
}, [
|
|
43314
|
-
|
|
43324
|
+
re.iconComponent ? {
|
|
43315
43325
|
name: "icon",
|
|
43316
43326
|
fn: withCtx(() => [
|
|
43317
43327
|
createVNode(X, {
|
|
@@ -43319,7 +43329,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43319
43329
|
style: { verticalAlign: "middle" }
|
|
43320
43330
|
}, {
|
|
43321
43331
|
default: withCtx(() => [
|
|
43322
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
43332
|
+
(openBlock(), createBlock(resolveDynamicComponent(re.iconComponent)))
|
|
43323
43333
|
]),
|
|
43324
43334
|
_: 2
|
|
43325
43335
|
}, 1024)
|
|
@@ -43337,7 +43347,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43337
43347
|
ref: "pictureUploadModal",
|
|
43338
43348
|
width: "20%",
|
|
43339
43349
|
modelValue: unref(uploadConfig).show,
|
|
43340
|
-
"onUpdate:modelValue": H[0] || (H[0] = (
|
|
43350
|
+
"onUpdate:modelValue": H[0] || (H[0] = (re) => unref(uploadConfig).show = re),
|
|
43341
43351
|
"z-index": 1e3,
|
|
43342
43352
|
draggable: "",
|
|
43343
43353
|
"append-to-body": "",
|
|
@@ -43349,11 +43359,30 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43349
43359
|
createVNode(unref(PictureUpload), { uploadConfig: unref(uploadConfig) }, null, 8, ["uploadConfig"])
|
|
43350
43360
|
]),
|
|
43351
43361
|
_: 1
|
|
43362
|
+
}, 8, ["modelValue", "title"]),
|
|
43363
|
+
createVNode(oe, {
|
|
43364
|
+
modelValue: unref(codemirrorDrawer),
|
|
43365
|
+
"onUpdate:modelValue": H[4] || (H[4] = (re) => isRef(codemirrorDrawer) ? codemirrorDrawer.value = re : codemirrorDrawer = re),
|
|
43366
|
+
title: unref(codemirrorTitle),
|
|
43367
|
+
direction: "rtl",
|
|
43368
|
+
class: "codemirror-drawer"
|
|
43369
|
+
}, {
|
|
43370
|
+
default: withCtx(() => [
|
|
43371
|
+
createVNode(unref(T$2), {
|
|
43372
|
+
modelValue: unref(formData)[unref(codemirrorCol).field],
|
|
43373
|
+
"onUpdate:modelValue": H[1] || (H[1] = (re) => unref(formData)[unref(codemirrorCol).field] = re),
|
|
43374
|
+
extensions: [getCodeLanguagePlugin(unref(codemirrorCol).language), unref(EditorView).lineWrapping],
|
|
43375
|
+
onReady: H[2] || (H[2] = (re) => handleReady(unref(codemirrorCol).field, re)),
|
|
43376
|
+
onFocus: H[3] || (H[3] = (re) => isRef(editorFocusField) ? editorFocusField.value = unref(codemirrorCol).field : editorFocusField = unref(codemirrorCol).field),
|
|
43377
|
+
"auto-destroy": ""
|
|
43378
|
+
}, null, 8, ["modelValue", "extensions"])
|
|
43379
|
+
]),
|
|
43380
|
+
_: 1
|
|
43352
43381
|
}, 8, ["modelValue", "title"])
|
|
43353
43382
|
]);
|
|
43354
43383
|
};
|
|
43355
43384
|
}
|
|
43356
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
43385
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-d4c73584"]]);
|
|
43357
43386
|
WindowForm.name = "slw-window-form";
|
|
43358
43387
|
WindowForm.install = (Q) => {
|
|
43359
43388
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -59129,7 +59158,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
59129
59158
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
59130
59159
|
setup(Q, { emit: H }) {
|
|
59131
59160
|
const X = Q, G = defineAsyncComponent(
|
|
59132
|
-
() => import("./index-
|
|
59161
|
+
() => import("./index-7cd21b8e.js")
|
|
59133
59162
|
);
|
|
59134
59163
|
let K = useVModel(X, "type", H), Z = useVModel(X, "rootLayout", H), ee = useVModel(X, "viewData", H), te = useVModel(X, "rowData", H), ne = ref(0), oe = ref(null);
|
|
59135
59164
|
oe.value = createDesigner();
|
|
@@ -165522,7 +165551,7 @@ function reConsole() {
|
|
|
165522
165551
|
}
|
|
165523
165552
|
}
|
|
165524
165553
|
console.info(
|
|
165525
|
-
`%cSLW %cVer 1.0.0-beta.
|
|
165554
|
+
`%cSLW %cVer 1.0.0-beta.2%c
|
|
165526
165555
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
165527
165556
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
165528
165557
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|