slw 1.0.0-alpha.3 → 1.0.0-alpha.5
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_33131aad_lang = "", _withScopeId$9 = (Q) => (pushScopeId("data-v-33131aad"), 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 = [
|
|
@@ -8661,61 +8661,50 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f42eb57c_lang = "", _withScop
|
|
|
8661
8661
|
total: "data.count"
|
|
8662
8662
|
},
|
|
8663
8663
|
ajax: {
|
|
8664
|
-
query: async ({ page: H, sorts: X, filters: G, form: K }
|
|
8665
|
-
var
|
|
8664
|
+
query: async ({ page: H, sorts: X, filters: G, form: K }) => {
|
|
8665
|
+
var le;
|
|
8666
8666
|
if (gridData.value.noSearchData) {
|
|
8667
8667
|
delete gridData.value.noSearchData;
|
|
8668
8668
|
return;
|
|
8669
8669
|
}
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
status: 200
|
|
8679
|
-
};
|
|
8680
|
-
}
|
|
8681
|
-
let ee = getParentRegion(), te = null;
|
|
8682
|
-
ee != null && ee.params && (te = ee.params.subtableSearchExParams);
|
|
8683
|
-
const ne = Object.assign({}, gridData.value.params.queryParams, queryFormData.value, Z, te);
|
|
8684
|
-
Object.entries(ne).forEach(([ce, ue]) => {
|
|
8685
|
-
var he;
|
|
8686
|
-
if (ue == null && (queryFormData.value[ce] = null), ne[ce] instanceof Array) {
|
|
8687
|
-
let de = gridData.value.formConfig.items.filter((ge) => ge.field == ce)[0], fe = (he = de == null ? void 0 : de.itemRender) == null ? void 0 : he.name, pe = XEUtils$4.clone(ne[ce], !0);
|
|
8688
|
-
fe == "ElTimePicker" ? (ne[ce] = pe[0], ne["end_" + ce] = pe[1]) : ["ElDateRangePicker", "ElDateTimeRangePicker"].includes(fe) && (ne[ce] = pe[0], ne["end_" + ce] = pe[1], queryFormData.value[ce] = pe[0], queryFormData.value["end_" + ce] = pe[1]);
|
|
8670
|
+
let Z = getParentRegion(), ee = null;
|
|
8671
|
+
Z != null && Z.params && (ee = Z.params.subtableSearchExParams);
|
|
8672
|
+
const te = Object.assign({}, queryFormData.value, ee);
|
|
8673
|
+
Object.entries(te).forEach(([se, ce]) => {
|
|
8674
|
+
var ue;
|
|
8675
|
+
if (ce == null && (queryFormData.value[se] = null), te[se] instanceof Array) {
|
|
8676
|
+
let he = gridData.value.formConfig.items.filter((pe) => pe.field == se)[0], de = (ue = he == null ? void 0 : he.itemRender) == null ? void 0 : ue.name, fe = XEUtils$4.clone(te[se], !0);
|
|
8677
|
+
de == "ElTimePicker" ? (te[se] = fe[0], te["end_" + se] = fe[1]) : ["ElDateRangePicker", "ElDateTimeRangePicker"].includes(de) && (te[se] = fe[0], te["end_" + se] = fe[1], queryFormData.value[se] = fe[0], queryFormData.value["end_" + se] = fe[1]);
|
|
8689
8678
|
}
|
|
8690
8679
|
});
|
|
8691
|
-
const
|
|
8692
|
-
|
|
8693
|
-
for (let { property:
|
|
8694
|
-
let
|
|
8695
|
-
if ((
|
|
8696
|
-
let
|
|
8697
|
-
|
|
8698
|
-
} else if ((
|
|
8699
|
-
let
|
|
8700
|
-
|
|
8680
|
+
const ne = X[0];
|
|
8681
|
+
ne && (te.$_sort_column = ne.property, te.$_sort_type = ne.order);
|
|
8682
|
+
for (let { property: se, datas: ce } of G) {
|
|
8683
|
+
let ue = ce.join(","), he = gridData.value.columns.filter((de) => de.field == se)[0];
|
|
8684
|
+
if ((he == null ? void 0 : he.dataType) == "LIST" && ((le = he == null ? void 0 : he.itemRender.options) == null ? void 0 : le.length) > 0) {
|
|
8685
|
+
let de = he.itemRender.options.filter((fe) => fe.label.indexOf(ue) > -1)[0];
|
|
8686
|
+
de && (ue = de.value);
|
|
8687
|
+
} else if ((he == null ? void 0 : he.dataType) == "TABLE") {
|
|
8688
|
+
let fe = (await getSelectorData({ _region_id: gridData.value.params._region_id }, he.id, he.selectorId)).filter((pe) => pe.NAME.indexOf(ue) > -1)[0];
|
|
8689
|
+
fe && (ue = fe.VALUE);
|
|
8701
8690
|
}
|
|
8702
|
-
|
|
8691
|
+
te[se.toLowerCase()] = ue;
|
|
8703
8692
|
}
|
|
8704
|
-
if (
|
|
8705
|
-
|
|
8706
|
-
}), Q ? Object.keys(Q).forEach((
|
|
8707
|
-
const
|
|
8708
|
-
|
|
8709
|
-
}) : localStorage.setItem(gridData.value.params._region_id + preTag.value, JSON.stringify(queryFormData.value)), gridData.value.params.exportForm = XEUtils$4.clone(
|
|
8710
|
-
let
|
|
8711
|
-
if (queryBeforeList.forEach((
|
|
8712
|
-
if (
|
|
8693
|
+
if (te.page = H.currentPage, te.limit = H.pageSize, te._region_id = gridData.value.params._region_id, gridData.value.params.parentRowId && (te[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), Object.keys(te).forEach((se) => {
|
|
8694
|
+
te[se] instanceof Object && (te[se] = Object.values(te[se]).join());
|
|
8695
|
+
}), Q ? Object.keys(Q).forEach((se) => {
|
|
8696
|
+
const ce = se.toLowerCase();
|
|
8697
|
+
te.hasOwnProperty(ce) && (te[ce] = Q[se]);
|
|
8698
|
+
}) : localStorage.setItem(gridData.value.params._region_id + preTag.value, JSON.stringify(queryFormData.value)), gridData.value.params.exportForm = XEUtils$4.clone(te, !0), queryBeforeList && queryBeforeList.length > 0) {
|
|
8699
|
+
let se = {};
|
|
8700
|
+
if (queryBeforeList.forEach((ce) => {
|
|
8701
|
+
if (ce && typeof ce == "function")
|
|
8713
8702
|
try {
|
|
8714
|
-
|
|
8715
|
-
} catch (
|
|
8716
|
-
console.error(
|
|
8703
|
+
se = ce();
|
|
8704
|
+
} catch (ue) {
|
|
8705
|
+
console.error(ue);
|
|
8717
8706
|
}
|
|
8718
|
-
}),
|
|
8707
|
+
}), se === !1)
|
|
8719
8708
|
return {
|
|
8720
8709
|
data: {
|
|
8721
8710
|
data: [],
|
|
@@ -8724,69 +8713,69 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f42eb57c_lang = "", _withScop
|
|
|
8724
8713
|
status: 200
|
|
8725
8714
|
};
|
|
8726
8715
|
}
|
|
8727
|
-
const
|
|
8728
|
-
let
|
|
8729
|
-
return
|
|
8730
|
-
let
|
|
8731
|
-
if (
|
|
8732
|
-
let
|
|
8733
|
-
|
|
8734
|
-
let
|
|
8735
|
-
gridData.value.toolbarConfig.buttons.forEach((
|
|
8736
|
-
if (typeof
|
|
8737
|
-
|
|
8738
|
-
const
|
|
8739
|
-
...
|
|
8716
|
+
const oe = axios.post("/window/data/" + gridData.value.params.datasourceCode, te);
|
|
8717
|
+
let re = {};
|
|
8718
|
+
return oe.then((se) => {
|
|
8719
|
+
let ce = {};
|
|
8720
|
+
if (se && se.data && se.data.result && se.data.data && se.data.data.length > 0) {
|
|
8721
|
+
let fe = function(ve) {
|
|
8722
|
+
ve.forEach((me, _e) => {
|
|
8723
|
+
let we = 0;
|
|
8724
|
+
gridData.value.toolbarConfig.buttons.forEach((xe) => {
|
|
8725
|
+
if (typeof xe.type < "u") {
|
|
8726
|
+
xe.btnLoad[de] = !1;
|
|
8727
|
+
const $e = xe.displayLogic ? displayLogic(xe.displayLogic, {
|
|
8728
|
+
...me,
|
|
8740
8729
|
...assembleParentData(gridData.value.params.parentData)
|
|
8741
|
-
}) : !0,
|
|
8742
|
-
if (
|
|
8743
|
-
if (
|
|
8744
|
-
|
|
8730
|
+
}) : !0, ke = xe.showInGrid && $e, Se = !xe.showInGrid && $e;
|
|
8731
|
+
if (xe.btnShowInGrid[de] = ke, xe.btnShow[de] = Se, ue = ue || ke, ke)
|
|
8732
|
+
if (xe.iconComponent)
|
|
8733
|
+
we = we + 0.7;
|
|
8745
8734
|
else {
|
|
8746
|
-
let
|
|
8747
|
-
if (
|
|
8748
|
-
let
|
|
8749
|
-
|
|
8735
|
+
let Ee = xe.name.match(/[\u4e00-\u9fa5]/g);
|
|
8736
|
+
if (Ee) {
|
|
8737
|
+
let Pe = Math.ceil(Ee.length / 2);
|
|
8738
|
+
we += Pe;
|
|
8750
8739
|
} else {
|
|
8751
|
-
let
|
|
8752
|
-
|
|
8740
|
+
let Pe = Math.ceil(xe.name.length / 6);
|
|
8741
|
+
we += Pe;
|
|
8753
8742
|
}
|
|
8754
8743
|
}
|
|
8755
8744
|
}
|
|
8756
|
-
}),
|
|
8745
|
+
}), we > he && (he = we), me._INDEX = de, de++, me._CHILDS && me._CHILDS.length > 0 && fe(me._CHILDS);
|
|
8757
8746
|
});
|
|
8758
|
-
},
|
|
8759
|
-
|
|
8760
|
-
let
|
|
8761
|
-
gridData.value.columns.forEach((
|
|
8762
|
-
if (
|
|
8763
|
-
|
|
8747
|
+
}, ue = !1, he = 0, de = 0;
|
|
8748
|
+
fe(se.data.data);
|
|
8749
|
+
let pe = !1;
|
|
8750
|
+
gridData.value.columns.forEach((ve) => {
|
|
8751
|
+
if (ve.colId == "_operation_" && ve.title == "操作") {
|
|
8752
|
+
ve.width != he * 60 && he * 60 >= 60 && (pe = !0, ve.width = he.toFixed(1) * 60);
|
|
8764
8753
|
return;
|
|
8765
8754
|
}
|
|
8766
|
-
}),
|
|
8767
|
-
const
|
|
8768
|
-
if (
|
|
8769
|
-
const
|
|
8770
|
-
|
|
8755
|
+
}), pe && getCurRegion().loadColumn(gridData.value.columns), gridData.value.params.rowIndex != null && (rowIndex.value = gridData.value.params.rowIndex), se.data.data.length > rowIndex.value ? ce = se.data.data[rowIndex.value] : ce = se.data.data[0];
|
|
8756
|
+
const ge = getCurRegion();
|
|
8757
|
+
if (ge) {
|
|
8758
|
+
const ve = ge.getColumnById("_operation_");
|
|
8759
|
+
ve && ue && ge.showColumn(ve);
|
|
8771
8760
|
}
|
|
8772
|
-
!isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(
|
|
8761
|
+
!isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(ce);
|
|
8773
8762
|
}
|
|
8774
|
-
rowClickCommon(
|
|
8775
|
-
var
|
|
8776
|
-
if (
|
|
8763
|
+
rowClickCommon(ce, rowIndex.value), queryAfterList && queryAfterList.length > 0 && queryAfterList.forEach((ue) => {
|
|
8764
|
+
var he;
|
|
8765
|
+
if (ue && typeof ue == "function")
|
|
8777
8766
|
try {
|
|
8778
|
-
|
|
8779
|
-
} catch (
|
|
8780
|
-
console.error(
|
|
8767
|
+
re = ue(((he = se == null ? void 0 : se.data) == null ? void 0 : he.data) || []);
|
|
8768
|
+
} catch (de) {
|
|
8769
|
+
console.error(de);
|
|
8781
8770
|
}
|
|
8782
8771
|
});
|
|
8783
|
-
}), typeof await
|
|
8772
|
+
}), typeof await oe > "u" || re === !1 ? {
|
|
8784
8773
|
data: {
|
|
8785
8774
|
data: [],
|
|
8786
8775
|
count: 0
|
|
8787
8776
|
},
|
|
8788
8777
|
status: 200
|
|
8789
|
-
} :
|
|
8778
|
+
} : oe;
|
|
8790
8779
|
}
|
|
8791
8780
|
}
|
|
8792
8781
|
}, gridData.value.params.parentRegionId && (gridData.value.proxyConfig.autoLoad = !1);
|
|
@@ -9151,14 +9140,16 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f42eb57c_lang = "", _withScop
|
|
|
9151
9140
|
}, G.params.queryParams !== null && typeof G.params.queryParams < "u" && (G.params.queryParams.unQuery = !0), G.formData._button_id = gridData.value.params.edit_button_id, G._reload = () => reload(), rowDbClick(G);
|
|
9152
9141
|
}, reload = () => {
|
|
9153
9142
|
var Q;
|
|
9154
|
-
(Q = getCurRegion()) == null || Q.commitProxy("
|
|
9143
|
+
(Q = getCurRegion()) == null || Q.commitProxy("reload");
|
|
9155
9144
|
}, clearGrid = () => {
|
|
9156
|
-
|
|
9145
|
+
for (let Q in queryFormData.value)
|
|
9146
|
+
queryFormData.value[Q] = null;
|
|
9147
|
+
localStorage.setItem(gridData.value.params._region_id + preTag.value, JSON.stringify(queryFormData.value)), getCurRegion().reloadData();
|
|
9157
9148
|
}, resetGrid = () => {
|
|
9158
9149
|
var Q;
|
|
9159
9150
|
for (let H in queryFormData.value)
|
|
9160
9151
|
queryFormData.value[H] = null;
|
|
9161
|
-
(Q = getCurRegion()) == null || Q.commitProxy("
|
|
9152
|
+
(Q = getCurRegion()) == null || Q.commitProxy("reload");
|
|
9162
9153
|
}, getCheckedData = () => {
|
|
9163
9154
|
const Q = getCurRegion();
|
|
9164
9155
|
return Q ? Q.getCheckboxRecords().concat(Q.getCheckboxReserveRecords()) : null;
|
|
@@ -9183,7 +9174,14 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f42eb57c_lang = "", _withScop
|
|
|
9183
9174
|
}));
|
|
9184
9175
|
});
|
|
9185
9176
|
}
|
|
9186
|
-
H
|
|
9177
|
+
H ? rowClickCommon(H, X) : allCheckboxFunList && allCheckboxFunList.length > 0 && allCheckboxFunList.forEach((K) => {
|
|
9178
|
+
if (K && typeof K == "function")
|
|
9179
|
+
try {
|
|
9180
|
+
K(G);
|
|
9181
|
+
} catch (Z) {
|
|
9182
|
+
console.error(Z);
|
|
9183
|
+
}
|
|
9184
|
+
});
|
|
9187
9185
|
}, getSelectRecord = () => {
|
|
9188
9186
|
const Q = getCurRegion();
|
|
9189
9187
|
return Q ? Q.getCurrentRecord() : null;
|
|
@@ -9837,6 +9835,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f42eb57c_lang = "", _withScop
|
|
|
9837
9835
|
G._field_id = H, G._select_id = X;
|
|
9838
9836
|
let K = await axios.post("/window/selector", $qs.stringify(G));
|
|
9839
9837
|
return (Z = K == null ? void 0 : K.data) == null ? void 0 : Z.data;
|
|
9838
|
+
}, allCheckboxFunList = [], addAllCheckboxFun = (Q) => {
|
|
9839
|
+
allCheckboxFunList.push(Q);
|
|
9840
9840
|
};
|
|
9841
9841
|
return onMounted(async () => {
|
|
9842
9842
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
@@ -9851,7 +9851,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f42eb57c_lang = "", _withScop
|
|
|
9851
9851
|
size: "default",
|
|
9852
9852
|
type: Q.viewType,
|
|
9853
9853
|
style: Q.css,
|
|
9854
|
-
loading: Q.btnLoad[rowIndex
|
|
9854
|
+
loading: Q.btnLoad[rowIndex],
|
|
9855
9855
|
plain: Q.plain
|
|
9856
9856
|
},
|
|
9857
9857
|
events: { click: toolBarButtonClick }
|
|
@@ -9874,6 +9874,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f42eb57c_lang = "", _withScop
|
|
|
9874
9874
|
return te.setHours(23), te.setMinutes(59), te.setSeconds(59), ee.valueOf() > te.valueOf();
|
|
9875
9875
|
};
|
|
9876
9876
|
}
|
|
9877
|
+
}), gridData.value.params.queryParams && Object.keys(gridData.value.params.queryParams).forEach((Q) => {
|
|
9878
|
+
const H = Q.toLowerCase();
|
|
9879
|
+
queryFormData.value.hasOwnProperty(H) && !queryFormData.value[H] && (queryFormData.value[H] = gridData.value.params.queryParams[Q]);
|
|
9877
9880
|
}), gridData.value.params.queryFormData = queryFormData.value, gridData.value.columns.forEach((Q) => {
|
|
9878
9881
|
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);
|
|
9879
9882
|
}), 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 = () => {
|
|
@@ -10150,7 +10153,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f42eb57c_lang = "", _withScop
|
|
|
10150
10153
|
]);
|
|
10151
10154
|
};
|
|
10152
10155
|
}
|
|
10153
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
10156
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-33131aad"]]);
|
|
10154
10157
|
WindowGrid.name = "slw-window-grid";
|
|
10155
10158
|
WindowGrid.install = (Q) => {
|
|
10156
10159
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -42462,7 +42465,7 @@ var js = js$1.exports;
|
|
|
42462
42465
|
})(Q);
|
|
42463
42466
|
})(js$1);
|
|
42464
42467
|
var jsExports = js$1.exports;
|
|
42465
|
-
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
42468
|
+
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_dd626eb7_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-dd626eb7"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kX = {
|
|
42466
42469
|
key: 0,
|
|
42467
42470
|
class: "form-title"
|
|
42468
42471
|
}, _hoisted_3$hX = ["onClick"], _hoisted_4$ax = ["onClick"], _hoisted_5$4X = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _sfc_main$d = {
|
|
@@ -42553,7 +42556,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42553
42556
|
for (let X = 0; X < H.length; X++) {
|
|
42554
42557
|
let G = formConfig.value.editRules[H[X]], K = formConfig.value.columns.filter((Z) => Z.field == H[X])[0];
|
|
42555
42558
|
if (K) {
|
|
42556
|
-
(K.dataType == "TABLE" || K.dataType == "LIST") && (G[0].validator = ({ itemValue: ee, rule: te, rules: ne, data: oe, field: re }) => {
|
|
42559
|
+
G[0].required && (K.dataType == "TABLE" || K.dataType == "LIST") && (G[0].validator = ({ itemValue: ee, rule: te, rules: ne, data: oe, field: re }) => {
|
|
42557
42560
|
if (!oe[re] || oe[re].length == 0)
|
|
42558
42561
|
return new Error(te.message);
|
|
42559
42562
|
});
|
|
@@ -42616,12 +42619,17 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42616
42619
|
}), computeOnlyShowBtn = computed(() => {
|
|
42617
42620
|
let Q = !1;
|
|
42618
42621
|
return formConfig.value.columns.filter((X) => X.displayForm).length == 0 && (Q = !0), Q;
|
|
42619
|
-
});
|
|
42622
|
+
}), computeTitleWidth = computed(() => formConfig.value.params.formTitleWidth ? formConfig.value.params.formTitleWidth : "115"), computeItemGroup = computed(() => (Q) => formConfig.value.params.setColumnsGroup ? Q.children : formConfig.value.columns);
|
|
42620
42623
|
onMounted(async () => {
|
|
42621
42624
|
var H, X, G, K;
|
|
42622
42625
|
if (formConfig.value.params.linkUrl)
|
|
42623
42626
|
return;
|
|
42624
|
-
formLoading.value = !0, formConfig.value.
|
|
42627
|
+
formLoading.value = !0, formConfig.value.params.columnsGroup = [
|
|
42628
|
+
{
|
|
42629
|
+
title: "",
|
|
42630
|
+
children: []
|
|
42631
|
+
}
|
|
42632
|
+
], formConfig.value.columns.forEach((Z, ee, te) => {
|
|
42625
42633
|
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] = []);
|
|
42626
42634
|
}), await evalEvent(formConfig.value.params.formEvents.dataInit);
|
|
42627
42635
|
let Q = !0;
|
|
@@ -42703,7 +42711,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42703
42711
|
for (let X in Object.values(H)) {
|
|
42704
42712
|
const G = Object.values(H)[X];
|
|
42705
42713
|
setTimeout(() => {
|
|
42706
|
-
$message.error(G[0][0].rule
|
|
42714
|
+
$message.error(G[0][0].rule.message);
|
|
42707
42715
|
}, X * 800);
|
|
42708
42716
|
}
|
|
42709
42717
|
emits("saveLoadingChange");
|
|
@@ -43061,11 +43069,29 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43061
43069
|
X && (X.itemRender.name = H, H == "ElCheckbox" && nextTick(() => {
|
|
43062
43070
|
formData.value[Q.toUpperCase()] = [];
|
|
43063
43071
|
}));
|
|
43072
|
+
}, setTitleWidth = (Q) => {
|
|
43073
|
+
formConfig.value.params.formTitleWidth = Q;
|
|
43074
|
+
}, setFormGroup = (Q) => {
|
|
43075
|
+
if (Q instanceof Array && Q.length > 0) {
|
|
43076
|
+
formConfig.value.params.setColumnsGroup = !0;
|
|
43077
|
+
let H = Q.reduce((X, G) => X.concat(G.children), []);
|
|
43078
|
+
formConfig.value.columns.forEach((X) => {
|
|
43079
|
+
X.field && !H.includes(X.field.toLowerCase()) && formConfig.value.params.columnsGroup[0].children.push(X);
|
|
43080
|
+
}), Q.forEach((X) => {
|
|
43081
|
+
let G = {
|
|
43082
|
+
title: X.title,
|
|
43083
|
+
children: []
|
|
43084
|
+
};
|
|
43085
|
+
formConfig.value.columns.forEach((K) => {
|
|
43086
|
+
K.field && X.children.includes(K.field.toLowerCase()) && G.children.push(K);
|
|
43087
|
+
}), formConfig.value.params.columnsGroup.push(G);
|
|
43088
|
+
});
|
|
43089
|
+
}
|
|
43064
43090
|
}, throwFunction = (Q) => {
|
|
43065
43091
|
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);
|
|
43066
43092
|
};
|
|
43067
43093
|
return __expose({ submitData, validateDataChg, getValue, getRegion, getData }), (Q, H) => {
|
|
43068
|
-
const X = resolveComponent("el-icon"), G = resolveComponent("el-button"), K = resolveComponent("el-input"), Z = resolveComponent("vxe-form-item"), ee = resolveComponent("vxe-form"), te = resolveComponent("el-dialog");
|
|
43094
|
+
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");
|
|
43069
43095
|
return openBlock(), createElementBlock("div", _hoisted_1$l1, [
|
|
43070
43096
|
unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", {
|
|
43071
43097
|
key: 0,
|
|
@@ -43078,20 +43104,20 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43078
43104
|
class: "form-buttons",
|
|
43079
43105
|
style: normalizeStyle(computeOptBtnStyle.value("top"))
|
|
43080
43106
|
}, [
|
|
43081
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (
|
|
43082
|
-
key:
|
|
43107
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (oe) => (openBlock(), createBlock(G, {
|
|
43108
|
+
key: oe.id,
|
|
43083
43109
|
"auto-insert-space": "",
|
|
43084
|
-
style: normalizeStyle("margin: 2px 2px 2px 2px;" +
|
|
43110
|
+
style: normalizeStyle("margin: 2px 2px 2px 2px;" + oe.css),
|
|
43085
43111
|
type: "primary",
|
|
43086
|
-
loading:
|
|
43087
|
-
onClick: (
|
|
43112
|
+
loading: oe.loading,
|
|
43113
|
+
onClick: (re) => btnClickFun(oe)
|
|
43088
43114
|
}, createSlots({
|
|
43089
43115
|
default: withCtx(() => [
|
|
43090
|
-
createTextVNode(" " + toDisplayString(unref($T)(
|
|
43116
|
+
createTextVNode(" " + toDisplayString(unref($T)(oe.name)), 1)
|
|
43091
43117
|
]),
|
|
43092
43118
|
_: 2
|
|
43093
43119
|
}, [
|
|
43094
|
-
|
|
43120
|
+
oe.iconComponent ? {
|
|
43095
43121
|
name: "icon",
|
|
43096
43122
|
fn: withCtx(() => [
|
|
43097
43123
|
createVNode(X, {
|
|
@@ -43099,7 +43125,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43099
43125
|
style: { verticalAlign: "middle" }
|
|
43100
43126
|
}, {
|
|
43101
43127
|
default: withCtx(() => [
|
|
43102
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
43128
|
+
(openBlock(), createBlock(resolveDynamicComponent(oe.iconComponent)))
|
|
43103
43129
|
]),
|
|
43104
43130
|
_: 2
|
|
43105
43131
|
}, 1024)
|
|
@@ -43109,165 +43135,176 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43109
43135
|
]), 1032, ["style", "loading", "onClick"]))), 128))
|
|
43110
43136
|
], 4)) : createCommentVNode("", !0)
|
|
43111
43137
|
], 4)) : createCommentVNode("", !0),
|
|
43112
|
-
createVNode(
|
|
43138
|
+
createVNode(te, {
|
|
43113
43139
|
ref_key: "form",
|
|
43114
43140
|
ref: form,
|
|
43115
43141
|
data: unref(formData),
|
|
43116
43142
|
rules: editRules.value,
|
|
43117
43143
|
loading: unref(formLoading),
|
|
43118
43144
|
"title-align": "right",
|
|
43119
|
-
"title-width":
|
|
43145
|
+
"title-width": computeTitleWidth.value,
|
|
43120
43146
|
class: normalizeClass({ "single-row": unref(formConfig).params.singleRow })
|
|
43121
43147
|
}, {
|
|
43122
43148
|
default: withCtx(() => [
|
|
43123
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).
|
|
43124
|
-
|
|
43125
|
-
|
|
43126
|
-
|
|
43127
|
-
|
|
43128
|
-
|
|
43129
|
-
|
|
43130
|
-
|
|
43131
|
-
|
|
43132
|
-
|
|
43133
|
-
|
|
43134
|
-
|
|
43135
|
-
|
|
43136
|
-
|
|
43137
|
-
|
|
43138
|
-
|
|
43139
|
-
|
|
43140
|
-
|
|
43141
|
-
|
|
43142
|
-
|
|
43143
|
-
|
|
43144
|
-
|
|
43145
|
-
|
|
43146
|
-
|
|
43147
|
-
|
|
43148
|
-
|
|
43149
|
-
|
|
43150
|
-
|
|
43151
|
-
|
|
43152
|
-
|
|
43153
|
-
|
|
43154
|
-
|
|
43155
|
-
|
|
43156
|
-
|
|
43157
|
-
|
|
43158
|
-
|
|
43159
|
-
|
|
43160
|
-
|
|
43161
|
-
|
|
43162
|
-
|
|
43163
|
-
|
|
43164
|
-
|
|
43165
|
-
|
|
43166
|
-
|
|
43167
|
-
|
|
43168
|
-
onClick: (oe) => onEditorBtnClick(ne, "copy")
|
|
43169
|
-
}, null, 8, _hoisted_5$4X),
|
|
43170
|
-
createElementVNode("i", {
|
|
43171
|
-
title: "清空",
|
|
43172
|
-
class: "iconfont icon-clear",
|
|
43173
|
-
onClick: (oe) => onEditorBtnClick(ne, "clear")
|
|
43174
|
-
}, null, 8, _hoisted_6$20),
|
|
43175
|
-
ne.language == "javascript" ? (openBlock(), createElementBlock("i", {
|
|
43176
|
-
key: 1,
|
|
43177
|
-
title: "组合式API转换",
|
|
43178
|
-
class: "iconfont icon-swap",
|
|
43179
|
-
onClick: (oe) => onEditorBtnClick(ne, "swap")
|
|
43180
|
-
}, null, 8, _hoisted_7$13)) : createCommentVNode("", !0)
|
|
43181
|
-
], 4)
|
|
43182
|
-
]),
|
|
43183
|
-
key: "0"
|
|
43184
|
-
} : ne.dataType === "STRING" && ne.canScan === !0 ? {
|
|
43185
|
-
name: "default",
|
|
43186
|
-
fn: withCtx(() => [
|
|
43187
|
-
createVNode(K, {
|
|
43188
|
-
modelValue: unref(formData)[ne.field],
|
|
43189
|
-
"onUpdate:modelValue": (oe) => unref(formData)[ne.field] = oe,
|
|
43190
|
-
onKeyup: (oe) => onIconInputEnter(ne, oe),
|
|
43191
|
-
onChange: (oe) => onIconInputChange(ne)
|
|
43192
|
-
}, {
|
|
43193
|
-
suffix: withCtx(() => [
|
|
43194
|
-
createElementVNode("i", {
|
|
43195
|
-
class: "iconfont icon-scan1",
|
|
43196
|
-
onClick: (oe) => onScanIconClick(ne),
|
|
43197
|
-
style: { cursor: "pointer" }
|
|
43198
|
-
}, null, 8, ["onClick"])
|
|
43199
|
-
]),
|
|
43200
|
-
_: 2
|
|
43201
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
|
|
43202
|
-
]),
|
|
43203
|
-
key: "1"
|
|
43204
|
-
} : ne.itemRender.props.suffixIconfont || ne.itemRender.props.prefixIconfont ? {
|
|
43205
|
-
name: "default",
|
|
43206
|
-
fn: withCtx(() => [
|
|
43207
|
-
createVNode(K, {
|
|
43208
|
-
modelValue: unref(formData)[ne.field],
|
|
43209
|
-
"onUpdate:modelValue": (oe) => unref(formData)[ne.field] = oe,
|
|
43210
|
-
clearable: !1,
|
|
43211
|
-
onKeyup: (oe) => onIconInputEnter(ne, oe),
|
|
43212
|
-
onChange: (oe) => onIconInputChange(ne)
|
|
43213
|
-
}, createSlots({ _: 2 }, [
|
|
43214
|
-
ne.itemRender.props.suffixIconfont ? {
|
|
43215
|
-
name: "suffix",
|
|
43216
|
-
fn: withCtx(() => [
|
|
43149
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).params.columnsGroup, (oe) => (openBlock(), createBlock(ee, {
|
|
43150
|
+
span: "24",
|
|
43151
|
+
title: oe.title,
|
|
43152
|
+
"content-class-name": oe.title ? "vxe-form--group-content-border" : "",
|
|
43153
|
+
"title-bold": "",
|
|
43154
|
+
vertical: ""
|
|
43155
|
+
}, {
|
|
43156
|
+
default: withCtx(() => [
|
|
43157
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(computeItemGroup.value(oe), (re) => (openBlock(), createElementBlock(Fragment, {
|
|
43158
|
+
key: re.title
|
|
43159
|
+
}, [
|
|
43160
|
+
re.colType !== "showInGrid" ? (openBlock(), createBlock(Z, {
|
|
43161
|
+
key: 0,
|
|
43162
|
+
field: re.field,
|
|
43163
|
+
title: computeItemTitle.value(re.title),
|
|
43164
|
+
"title-overflow": "tooltip",
|
|
43165
|
+
span: computeSpan.value(re),
|
|
43166
|
+
"item-render": re.itemRender,
|
|
43167
|
+
"title-prefix": re.titlePrefix,
|
|
43168
|
+
visible: re.displayForm,
|
|
43169
|
+
style: normalizeStyle(re.style),
|
|
43170
|
+
"class-name": computeItemClass.value(re),
|
|
43171
|
+
"visible-method": re.editRender.props.displayLogic ? displayLogicEvent : null
|
|
43172
|
+
}, createSlots({ _: 2 }, [
|
|
43173
|
+
re.dataType === "EDITOR" ? {
|
|
43174
|
+
name: "default",
|
|
43175
|
+
fn: withCtx(() => [
|
|
43176
|
+
createVNode(unref(T$2), {
|
|
43177
|
+
modelValue: unref(formData)[re.field],
|
|
43178
|
+
"onUpdate:modelValue": (ae) => unref(formData)[re.field] = ae,
|
|
43179
|
+
extensions: [getCodeLanguagePlugin(re.language), unref(EditorView).lineWrapping],
|
|
43180
|
+
onReady: (ae) => handleReady(re.field, ae),
|
|
43181
|
+
onFocus: (ae) => isRef(editorFocusField) ? editorFocusField.value = re.field : editorFocusField = re.field,
|
|
43182
|
+
"auto-destroy": ""
|
|
43183
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "extensions", "onReady", "onFocus"]),
|
|
43184
|
+
createElementVNode("div", {
|
|
43185
|
+
class: "editor-operation-btn",
|
|
43186
|
+
style: normalizeStyle(computeEditorBtnStyle.value(re.field))
|
|
43187
|
+
}, [
|
|
43188
|
+
re.language == "javascript" ? (openBlock(), createElementBlock("i", {
|
|
43189
|
+
key: 0,
|
|
43190
|
+
title: "美化",
|
|
43191
|
+
class: "iconfont icon-magic-stick",
|
|
43192
|
+
onClick: (ae) => onEditorBtnClick(re, "beautify")
|
|
43193
|
+
}, null, 8, _hoisted_3$hX)) : createCommentVNode("", !0),
|
|
43217
43194
|
createElementVNode("i", {
|
|
43218
|
-
|
|
43219
|
-
|
|
43220
|
-
|
|
43221
|
-
}, null,
|
|
43222
|
-
]),
|
|
43223
|
-
key: "0"
|
|
43224
|
-
} : ne.itemRender.props.prefixIconfont ? {
|
|
43225
|
-
name: "prefix",
|
|
43226
|
-
fn: withCtx(() => [
|
|
43195
|
+
title: "全选",
|
|
43196
|
+
class: "iconfont icon-check-square",
|
|
43197
|
+
onClick: (ae) => onEditorBtnClick(re, "checkAll")
|
|
43198
|
+
}, null, 8, _hoisted_4$ax),
|
|
43227
43199
|
createElementVNode("i", {
|
|
43228
|
-
|
|
43229
|
-
|
|
43230
|
-
|
|
43231
|
-
}, null,
|
|
43232
|
-
|
|
43233
|
-
|
|
43234
|
-
|
|
43235
|
-
|
|
43236
|
-
|
|
43237
|
-
|
|
43238
|
-
|
|
43239
|
-
|
|
43240
|
-
|
|
43241
|
-
|
|
43242
|
-
|
|
43243
|
-
|
|
43244
|
-
|
|
43245
|
-
|
|
43246
|
-
|
|
43247
|
-
|
|
43248
|
-
|
|
43249
|
-
|
|
43250
|
-
|
|
43200
|
+
title: "复制",
|
|
43201
|
+
class: "iconfont icon-document-copy",
|
|
43202
|
+
onClick: (ae) => onEditorBtnClick(re, "copy")
|
|
43203
|
+
}, null, 8, _hoisted_5$4X),
|
|
43204
|
+
createElementVNode("i", {
|
|
43205
|
+
title: "清空",
|
|
43206
|
+
class: "iconfont icon-clear",
|
|
43207
|
+
onClick: (ae) => onEditorBtnClick(re, "clear")
|
|
43208
|
+
}, null, 8, _hoisted_6$20),
|
|
43209
|
+
re.language == "javascript" ? (openBlock(), createElementBlock("i", {
|
|
43210
|
+
key: 1,
|
|
43211
|
+
title: "组合式API转换",
|
|
43212
|
+
class: "iconfont icon-swap",
|
|
43213
|
+
onClick: (ae) => onEditorBtnClick(re, "swap")
|
|
43214
|
+
}, null, 8, _hoisted_7$13)) : createCommentVNode("", !0)
|
|
43215
|
+
], 4)
|
|
43216
|
+
]),
|
|
43217
|
+
key: "0"
|
|
43218
|
+
} : re.dataType === "STRING" && re.canScan === !0 ? {
|
|
43219
|
+
name: "default",
|
|
43220
|
+
fn: withCtx(() => [
|
|
43221
|
+
createVNode(K, {
|
|
43222
|
+
modelValue: unref(formData)[re.field],
|
|
43223
|
+
"onUpdate:modelValue": (ae) => unref(formData)[re.field] = ae,
|
|
43224
|
+
onKeyup: (ae) => onIconInputEnter(re, ae),
|
|
43225
|
+
onChange: (ae) => onIconInputChange(re)
|
|
43226
|
+
}, {
|
|
43227
|
+
suffix: withCtx(() => [
|
|
43228
|
+
createElementVNode("i", {
|
|
43229
|
+
class: "iconfont icon-scan1",
|
|
43230
|
+
onClick: (ae) => onScanIconClick(re),
|
|
43231
|
+
style: { cursor: "pointer" }
|
|
43232
|
+
}, null, 8, ["onClick"])
|
|
43233
|
+
]),
|
|
43234
|
+
_: 2
|
|
43235
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
|
|
43236
|
+
]),
|
|
43237
|
+
key: "1"
|
|
43238
|
+
} : re.itemRender.props.suffixIconfont || re.itemRender.props.prefixIconfont ? {
|
|
43239
|
+
name: "default",
|
|
43240
|
+
fn: withCtx(() => [
|
|
43241
|
+
createVNode(K, {
|
|
43242
|
+
modelValue: unref(formData)[re.field],
|
|
43243
|
+
"onUpdate:modelValue": (ae) => unref(formData)[re.field] = ae,
|
|
43244
|
+
clearable: !1,
|
|
43245
|
+
onKeyup: (ae) => onIconInputEnter(re, ae),
|
|
43246
|
+
onChange: (ae) => onIconInputChange(re)
|
|
43247
|
+
}, createSlots({ _: 2 }, [
|
|
43248
|
+
re.itemRender.props.suffixIconfont ? {
|
|
43249
|
+
name: "suffix",
|
|
43250
|
+
fn: withCtx(() => [
|
|
43251
|
+
createElementVNode("i", {
|
|
43252
|
+
class: normalizeClass("iconfont " + re.itemRender.props.suffixIconfont),
|
|
43253
|
+
onClick: (ae) => onIconClick(re),
|
|
43254
|
+
style: { cursor: "pointer" }
|
|
43255
|
+
}, null, 10, ["onClick"])
|
|
43256
|
+
]),
|
|
43257
|
+
key: "0"
|
|
43258
|
+
} : re.itemRender.props.prefixIconfont ? {
|
|
43259
|
+
name: "prefix",
|
|
43260
|
+
fn: withCtx(() => [
|
|
43261
|
+
createElementVNode("i", {
|
|
43262
|
+
class: normalizeClass("iconfont " + re.itemRender.props.prefixIconfont),
|
|
43263
|
+
onClick: (ae) => onIconClick(re),
|
|
43264
|
+
style: { cursor: "pointer" }
|
|
43265
|
+
}, null, 10, ["onClick"])
|
|
43266
|
+
]),
|
|
43267
|
+
key: "1"
|
|
43268
|
+
} : void 0
|
|
43269
|
+
]), 1032, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
|
|
43270
|
+
]),
|
|
43271
|
+
key: "2"
|
|
43272
|
+
} : re.dataType === "IMG" ? {
|
|
43273
|
+
name: "default",
|
|
43274
|
+
fn: withCtx(() => [
|
|
43275
|
+
createVNode(unref(PictureUpload), {
|
|
43276
|
+
uploadConfig: unref(uploadConfig),
|
|
43277
|
+
filePreviewList: unref(fieldPreviewMap)[re.field],
|
|
43278
|
+
"onUpdate:filePreviewList": (ae) => unref(fieldPreviewMap)[re.field] = ae
|
|
43279
|
+
}, null, 8, ["uploadConfig", "filePreviewList", "onUpdate:filePreviewList"])
|
|
43280
|
+
]),
|
|
43281
|
+
key: "3"
|
|
43282
|
+
} : void 0
|
|
43283
|
+
]), 1032, ["field", "title", "span", "item-render", "title-prefix", "visible", "style", "class-name", "visible-method"])) : createCommentVNode("", !0)
|
|
43284
|
+
], 64))), 128))
|
|
43285
|
+
]),
|
|
43286
|
+
_: 2
|
|
43287
|
+
}, 1032, ["title", "content-class-name"]))), 256)),
|
|
43251
43288
|
unref(formConfig).type === "FORM" && buttons.value.length > 0 && unref(formConfig).params.buttonPosition.includes("BOTTOM") ? (openBlock(), createBlock(Z, {
|
|
43252
43289
|
key: 0,
|
|
43253
43290
|
align: computeOptBtnStyle.value("bottom"),
|
|
43254
43291
|
span: "24"
|
|
43255
43292
|
}, {
|
|
43256
43293
|
default: withCtx(() => [
|
|
43257
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (
|
|
43258
|
-
key:
|
|
43294
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (oe) => (openBlock(), createBlock(G, {
|
|
43295
|
+
key: oe.id,
|
|
43259
43296
|
"auto-insert-space": "",
|
|
43260
|
-
style: normalizeStyle("margin: 2px 2px 2px 2px;" +
|
|
43297
|
+
style: normalizeStyle("margin: 2px 2px 2px 2px;" + oe.css),
|
|
43261
43298
|
type: "primary",
|
|
43262
|
-
loading:
|
|
43263
|
-
onClick: (
|
|
43299
|
+
loading: oe.loading,
|
|
43300
|
+
onClick: (re) => btnClickFun(oe)
|
|
43264
43301
|
}, createSlots({
|
|
43265
43302
|
default: withCtx(() => [
|
|
43266
|
-
createTextVNode(" " + toDisplayString(unref($T)(
|
|
43303
|
+
createTextVNode(" " + toDisplayString(unref($T)(oe.name)), 1)
|
|
43267
43304
|
]),
|
|
43268
43305
|
_: 2
|
|
43269
43306
|
}, [
|
|
43270
|
-
|
|
43307
|
+
oe.iconComponent ? {
|
|
43271
43308
|
name: "icon",
|
|
43272
43309
|
fn: withCtx(() => [
|
|
43273
43310
|
createVNode(X, {
|
|
@@ -43275,7 +43312,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43275
43312
|
style: { verticalAlign: "middle" }
|
|
43276
43313
|
}, {
|
|
43277
43314
|
default: withCtx(() => [
|
|
43278
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
43315
|
+
(openBlock(), createBlock(resolveDynamicComponent(oe.iconComponent)))
|
|
43279
43316
|
]),
|
|
43280
43317
|
_: 2
|
|
43281
43318
|
}, 1024)
|
|
@@ -43288,12 +43325,12 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43288
43325
|
}, 8, ["align"])) : createCommentVNode("", !0)
|
|
43289
43326
|
]),
|
|
43290
43327
|
_: 1
|
|
43291
|
-
}, 8, ["data", "rules", "loading", "class"]),
|
|
43292
|
-
createVNode(
|
|
43328
|
+
}, 8, ["data", "rules", "loading", "title-width", "class"]),
|
|
43329
|
+
createVNode(ne, {
|
|
43293
43330
|
ref: "pictureUploadModal",
|
|
43294
43331
|
width: "20%",
|
|
43295
43332
|
modelValue: unref(uploadConfig).show,
|
|
43296
|
-
"onUpdate:modelValue": H[0] || (H[0] = (
|
|
43333
|
+
"onUpdate:modelValue": H[0] || (H[0] = (oe) => unref(uploadConfig).show = oe),
|
|
43297
43334
|
"z-index": 1e3,
|
|
43298
43335
|
draggable: "",
|
|
43299
43336
|
"append-to-body": "",
|
|
@@ -43309,7 +43346,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43309
43346
|
]);
|
|
43310
43347
|
};
|
|
43311
43348
|
}
|
|
43312
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
43349
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dd626eb7"]]);
|
|
43313
43350
|
WindowForm.name = "slw-window-form";
|
|
43314
43351
|
WindowForm.install = (Q) => {
|
|
43315
43352
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -59085,7 +59122,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
59085
59122
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
59086
59123
|
setup(Q, { emit: H }) {
|
|
59087
59124
|
const X = Q, G = defineAsyncComponent(
|
|
59088
|
-
() => import("./index-
|
|
59125
|
+
() => import("./index-30bdf62f.js")
|
|
59089
59126
|
);
|
|
59090
59127
|
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);
|
|
59091
59128
|
oe.value = createDesigner();
|
|
@@ -165456,7 +165493,7 @@ function reConsole() {
|
|
|
165456
165493
|
}
|
|
165457
165494
|
}
|
|
165458
165495
|
console.info(
|
|
165459
|
-
`%cSLW %cVer 1.0.0-alpha.
|
|
165496
|
+
`%cSLW %cVer 1.0.0-alpha.5%c
|
|
165460
165497
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
165461
165498
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
165462
165499
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|