slw 0.9.12 → 0.9.14
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/lib/index.js +19 -27
- package/lib/index.umd.cjs +6 -6
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -8524,7 +8524,7 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8524
8524
|
PictureUpload.install = (Q) => {
|
|
8525
8525
|
Q.component(PictureUpload.name, PictureUpload);
|
|
8526
8526
|
};
|
|
8527
|
-
const
|
|
8527
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_2377c247_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-2377c247"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
|
|
8528
8528
|
class: "slw-window-grid-container",
|
|
8529
8529
|
style: { height: "100%" }
|
|
8530
8530
|
}, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$av = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4V = [
|
|
@@ -8729,7 +8729,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_933b04ff_lang = "", _withScop
|
|
|
8729
8729
|
}) : !0, $e = ge.showInGrid && _e, ve = !ge.showInGrid && _e;
|
|
8730
8730
|
if (ge.btnShowInGrid[pe] = $e, ge.btnShow[pe] = ve, ce = ce || $e, $e)
|
|
8731
8731
|
if (ge.iconComponent)
|
|
8732
|
-
me
|
|
8732
|
+
me = me + 0.7;
|
|
8733
8733
|
else {
|
|
8734
8734
|
let ke = ge.name.match(/[\u4e00-\u9fa5]/g);
|
|
8735
8735
|
if (ke) {
|
|
@@ -8746,7 +8746,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_933b04ff_lang = "", _withScop
|
|
|
8746
8746
|
let he = !1;
|
|
8747
8747
|
gridData.value.columns.forEach((fe) => {
|
|
8748
8748
|
if (fe.colId == "_operation_" && fe.title == "操作") {
|
|
8749
|
-
fe.width != de * 60 && (he = !0, fe.width = de * 60);
|
|
8749
|
+
fe.width != de * 60 && de * 60 >= 60 && (he = !0, fe.width = de * 60);
|
|
8750
8750
|
return;
|
|
8751
8751
|
}
|
|
8752
8752
|
}), he && getCurRegion().loadColumn(gridData.value.columns), le.data.data.length > rowIndex.value ? se = le.data.data[rowIndex.value] : se = le.data.data[0];
|
|
@@ -10123,7 +10123,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_933b04ff_lang = "", _withScop
|
|
|
10123
10123
|
]);
|
|
10124
10124
|
};
|
|
10125
10125
|
}
|
|
10126
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
10126
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-2377c247"]]);
|
|
10127
10127
|
WindowGrid.name = "slw-window-grid";
|
|
10128
10128
|
WindowGrid.install = (Q) => {
|
|
10129
10129
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -40577,7 +40577,7 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
40577
40577
|
_sfc_main$2.install = (Q) => {
|
|
40578
40578
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
40579
40579
|
};
|
|
40580
|
-
const
|
|
40580
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_90a61690_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-90a61690"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
40581
40581
|
__name: "window-index",
|
|
40582
40582
|
props: {
|
|
40583
40583
|
windowId: {
|
|
@@ -40593,12 +40593,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7ff35b5d_lang = "", _withSco
|
|
|
40593
40593
|
},
|
|
40594
40594
|
emits: ["update:queryParams", "on-load-success", "close"],
|
|
40595
40595
|
setup(__props, { emit }) {
|
|
40596
|
-
const props = __props;
|
|
40597
|
-
let queryParams = useVModel(props, "queryParams", emit);
|
|
40598
|
-
const xModal = ref();
|
|
40599
|
-
let menuName = ref(""), rootLayout = ref({}), layoutHeight = ref(0), formConfig = ref({}), formRules = ref({}), regionIdRegionMap = ref({}), layoutIdRegionMap = ref({}), parentLayoutIdLayoutMap = ref({}), preViewShow = ref(!1), preViewLoading = ref(!1), preViewFooterShow = ref(!1), editModalLoading = ref(!1), preWindowId = ref(""), preWindowName = ref(""), preQueryParams = ref(null), preViewSubmitFun = ref(null), preViewCloseFun = ref(null), preViewWidth = ref(null), preViewHeight = ref(null), preViewCode = ref(""), componentModalData = ref({}), componentModalTitle = ref(""), isAutoSave = ref(!1), saveDataBtnLoading = ref(!1), preModalData = ref({}), preModalTitle = ref(""), regionMap = ref({});
|
|
40600
|
-
const axios = inject("$axios"), $components = inject("$components"), $componentsPath = inject("$componentsPath");
|
|
40601
|
-
let preRegionMap;
|
|
40596
|
+
const props = __props, axios = inject("$axios"), $components = inject("$components"), $componentsPath = inject("$componentsPath"), $Modal = inject("$modal"), $Message = inject("$message"), $qs = inject("$qs"), hiprint = inject("$hiprint", ""), serverPrint = inject("$serverPrint", ""), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $crypto = inject("$crypto"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t");
|
|
40602
40597
|
try {
|
|
40603
40598
|
if (preRegionMap = inject("$regionMap", ""), preRegionMap) {
|
|
40604
40599
|
let Q = preRegionMap;
|
|
@@ -40606,15 +40601,14 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7ff35b5d_lang = "", _withSco
|
|
|
40606
40601
|
}
|
|
40607
40602
|
} catch (Q) {
|
|
40608
40603
|
}
|
|
40609
|
-
|
|
40604
|
+
let queryParams = useVModel(props, "queryParams", emit);
|
|
40605
|
+
const xModal = ref();
|
|
40606
|
+
let menuName = ref(""), rootLayout = ref({}), layoutHeight = ref(0), formConfig = ref({}), formRules = ref({}), regionIdRegionMap = ref({}), layoutIdRegionMap = ref({}), parentLayoutIdLayoutMap = ref({}), preViewShow = ref(!1), preViewLoading = ref(!1), preViewFooterShow = ref(!1), editModalLoading = ref(!1), preWindowId = ref(""), preWindowName = ref(""), preQueryParams = ref(null), preViewSubmitFun = ref(null), preViewCloseFun = ref(null), preViewWidth = ref(null), preViewHeight = ref(null), preViewCode = ref(""), componentModalData = ref({}), componentModalTitle = ref(""), isAutoSave = ref(!1), saveDataBtnLoading = ref(!1), preModalData = ref({}), preModalTitle = ref(""), regionMap = ref({}), preRegionMap;
|
|
40607
|
+
const gridClickEvents = ref([]), $modal = $Modal, $message = $Message, preTag = computed(() => props.windowId || ""), modalHeaderSlotName = computed(() => "header"), addGridClickEvent = (Q) => {
|
|
40610
40608
|
gridClickEvents.value.push(Q);
|
|
40611
|
-
}
|
|
40612
|
-
provide("$addGridClickEvent", addGridClickEvent);
|
|
40613
|
-
const callGridClickEvents = (Q, H) => {
|
|
40609
|
+
}, callGridClickEvents = (Q, H) => {
|
|
40614
40610
|
gridClickEvents.value.forEach((G) => G(Q, H));
|
|
40615
|
-
}
|
|
40616
|
-
provide("$callGridClickEvents", callGridClickEvents);
|
|
40617
|
-
const $Modal = inject("$modal"), $modal = $Modal, $Message = inject("$message"), $message = $Message, $qs = inject("$qs"), hiprint = inject("$hiprint", ""), serverPrint = inject("$serverPrint", ""), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $crypto = inject("$crypto"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), getOffsetHeight = () => window.document.body.offsetHeight * 0.6 + "px", evalEvent = (curEvent, ...eventParams) => {
|
|
40611
|
+
}, heightConversion = (Q) => (!isNaN(Q) || Q.indexOf("px") > 0 ? Q = parseFloat(Q) : (Q.indexOf("%") > 0 || Q.indexOf("vh") > 0) && (Q = parseFloat(Q) / 100 * (layoutHeight.value - 100)), Q), getOffsetHeight = () => formConfig.value.height ? heightConversion(formConfig.value.height) : window.document.body.offsetHeight * 0.6 + "px", evalEvent = (curEvent, ...eventParams) => {
|
|
40618
40612
|
if (curEvent) {
|
|
40619
40613
|
if (typeof curEvent == "function")
|
|
40620
40614
|
return curEvent(...eventParams);
|
|
@@ -40660,9 +40654,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7ff35b5d_lang = "", _withSco
|
|
|
40660
40654
|
Q = H[X];
|
|
40661
40655
|
}
|
|
40662
40656
|
return Q;
|
|
40663
|
-
}
|
|
40664
|
-
provide("$evalDefaultValue", evalDefaultValue);
|
|
40665
|
-
const clear = () => {
|
|
40657
|
+
}, clear = () => {
|
|
40666
40658
|
menuName.value = "", rootLayout.value = {}, layoutHeight.value = 0, formConfig.value = {}, formRules.value = {}, regionIdRegionMap.value = {}, layoutIdRegionMap.value = {}, parentLayoutIdLayoutMap.value = {}, preViewShow.value = !1, preViewLoading.value = !1, preViewFooterShow.value = !1, preWindowId.value = "", preWindowName.value = "", preQueryParams.value = null, preViewSubmitFun.value = null, preViewCloseFun.value = null, preViewWidth.value = null, preViewHeight.value = null, preViewCode.value = "", componentModalData.value = {}, componentModalTitle.value = "", isAutoSave.value = !1, saveDataBtnLoading.value = !1, preModalData.value = {}, preModalTitle.value = "", preRegionMap || (regionMap.value = {});
|
|
40667
40659
|
}, getInitData = async (Q) => {
|
|
40668
40660
|
let G = (await axios.post("/window/init", { id: Q })).data;
|
|
@@ -40676,7 +40668,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7ff35b5d_lang = "", _withSco
|
|
|
40676
40668
|
}
|
|
40677
40669
|
regionIdRegionMap.value[ne.id] = ne, layoutIdRegionMap.value[ne.layoutId] = ne;
|
|
40678
40670
|
}), X.layouts.map((ne) => {
|
|
40679
|
-
|
|
40671
|
+
ne.height = heightConversion(ne.height), parentLayoutIdLayoutMap.value[ne.parentId] ? parentLayoutIdLayoutMap.value[ne.parentId].push(ne) : parentLayoutIdLayoutMap.value[ne.parentId] = [ne];
|
|
40680
40672
|
});
|
|
40681
40673
|
let ee = 0.5;
|
|
40682
40674
|
X.layout === "V" ? X.layouts.length > 1 && X.layouts[0].height ? (ee = Math.round(X.layouts[0].height / K * 100) / 100, ee < 0.2 && (ee = 0.2)) : X.layouts.length === 1 && (ee = 1) : ee = X.layouts.length > 0 && X.layouts[0].width && X.layouts[0].width / 12 < 1 ? X.layouts[0].width / 12 : 0.5;
|
|
@@ -41233,7 +41225,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7ff35b5d_lang = "", _withSco
|
|
|
41233
41225
|
className: ce,
|
|
41234
41226
|
dataType: oe[se].dataType,
|
|
41235
41227
|
title: de,
|
|
41236
|
-
visible: oe[se].displayGrid,
|
|
41228
|
+
visible: se == 0 && Z.type === "TREE" ? !1 : oe[se].displayGrid,
|
|
41237
41229
|
displayForm: oe[se].displayForm,
|
|
41238
41230
|
remoteSearch: oe[se].remoteSearch,
|
|
41239
41231
|
sortable: oe[se].allowSort,
|
|
@@ -41393,7 +41385,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7ff35b5d_lang = "", _withSco
|
|
|
41393
41385
|
}, ctrlSSave = (Q) => {
|
|
41394
41386
|
Q.keyCode === 83 && (navigator.platform.match("Mac") ? Q.metaKey : Q.ctrlKey) && (Q.preventDefault(), saveData(!0));
|
|
41395
41387
|
}, xForm = ref(), saveData = async (Q) => {
|
|
41396
|
-
saveDataBtnLoading.value || (saveDataBtnLoading.value = !0, xForm.value.submitData(Q), typeof Q == "boolean" && !Q && (saveDataBtnLoading.value = !1));
|
|
41388
|
+
saveDataBtnLoading.value || !xForm.value || (saveDataBtnLoading.value = !0, xForm.value.submitData(Q), typeof Q == "boolean" && !Q && (saveDataBtnLoading.value = !1));
|
|
41397
41389
|
}, saveLoadingChange = () => {
|
|
41398
41390
|
saveDataBtnLoading.value = !1;
|
|
41399
41391
|
}, checkColumnMethod = ({ column: Q }) => !(Q.type === "seq" || Q.type === "checkbox"), updateData = (Q, H) => {
|
|
@@ -41500,7 +41492,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7ff35b5d_lang = "", _withSco
|
|
|
41500
41492
|
document.removeEventListener("keydown", ctrlSSave);
|
|
41501
41493
|
}), watch([() => props.windowId, () => props.queryParams], () => {
|
|
41502
41494
|
loadData(), settPageHeight();
|
|
41503
|
-
}), provide("$showPreView", showPreView), provide("$showPreViewClose", showPreViewClose), provide("$preViewCloseCallback", preViewCloseCallback), provide("$openModal", openModal), provide("$closeModal", closeModal), provide("$closePreModal", closePreModal), provide("$rowDbClick", openEditWin), provide("$regionMap", regionMap), provide("$getRegion", getRegion), provide("$hiprint", hiprint), provide("$serverPrint", serverPrint), provide("$focusInput", focusInput), provide("$addOnActivatedFun", addOnActivatedFun), provide("$debounce", debounce), (Q, H) => {
|
|
41495
|
+
}), provide("$addGridClickEvent", addGridClickEvent), provide("$callGridClickEvents", callGridClickEvents), provide("$evalDefaultValue", evalDefaultValue), provide("$showPreView", showPreView), provide("$showPreViewClose", showPreViewClose), provide("$preViewCloseCallback", preViewCloseCallback), provide("$openModal", openModal), provide("$closeModal", closeModal), provide("$closePreModal", closePreModal), provide("$rowDbClick", openEditWin), provide("$regionMap", regionMap), provide("$getRegion", getRegion), provide("$hiprint", hiprint), provide("$serverPrint", serverPrint), provide("$focusInput", focusInput), provide("$addOnActivatedFun", addOnActivatedFun), provide("$debounce", debounce), (Q, H) => {
|
|
41504
41496
|
const G = resolveComponent("el-tab-pane"), X = resolveComponent("el-tabs"), Z = resolveComponent("el-scrollbar"), K = resolveComponent("el-checkbox"), ee = resolveComponent("arrow-back"), te = resolveComponent("el-icon"), ne = resolveComponent("el-button"), re = resolveComponent("arrow-forward"), oe = resolveComponent("el-button-group"), ae = resolveComponent("save"), le = resolveComponent("close"), se = resolveComponent("el-space"), ce = resolveComponent("el-dialog"), de = resolveComponent("window-index", !0);
|
|
41505
41497
|
return openBlock(), createElementBlock("div", _hoisted_1$kR, [
|
|
41506
41498
|
(openBlock(), createBlock(unref(WindowLayout), {
|
|
@@ -41754,7 +41746,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7ff35b5d_lang = "", _withSco
|
|
|
41754
41746
|
]);
|
|
41755
41747
|
};
|
|
41756
41748
|
}
|
|
41757
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
41749
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-90a61690"]]);
|
|
41758
41750
|
WindowIndex.name = "slw-window-index";
|
|
41759
41751
|
WindowIndex.install = (Q) => {
|
|
41760
41752
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -125356,7 +125348,7 @@ function reConsole() {
|
|
|
125356
125348
|
}
|
|
125357
125349
|
}
|
|
125358
125350
|
console.info(
|
|
125359
|
-
`%cSLW %cVer 0.9.
|
|
125351
|
+
`%cSLW %cVer 0.9.14%c
|
|
125360
125352
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
125361
125353
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
125362
125354
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|