slw 0.9.18 → 0.9.20
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 +23 -14
- 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_9be6ad8e_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-9be6ad8e"), 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 = [
|
|
@@ -8709,7 +8709,14 @@ const windowGrid_vue_vue_type_style_index_0_scoped_eb6696c9_lang = "", _withScop
|
|
|
8709
8709
|
}) : localStorage.setItem(
|
|
8710
8710
|
gridData.value.params._region_id + preTag.value,
|
|
8711
8711
|
JSON.stringify(Z)
|
|
8712
|
-
), gridData.value.params.queryForm = XEUtils$1.clone(ne, !0)
|
|
8712
|
+
), gridData.value.params.queryForm = XEUtils$1.clone(ne, !0), queryBeforeList && queryBeforeList.length > 0 && queryBeforeList.forEach((le) => {
|
|
8713
|
+
if (le && typeof le == "function")
|
|
8714
|
+
try {
|
|
8715
|
+
le();
|
|
8716
|
+
} catch (se) {
|
|
8717
|
+
console.error(se);
|
|
8718
|
+
}
|
|
8719
|
+
});
|
|
8713
8720
|
const oe = axios.post(
|
|
8714
8721
|
"/window/data/" + gridData.value.params.datasourceCode,
|
|
8715
8722
|
ne
|
|
@@ -8938,7 +8945,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_eb6696c9_lang = "", _withScop
|
|
|
8938
8945
|
preTag: preTag.value,
|
|
8939
8946
|
showEdit: !0,
|
|
8940
8947
|
width: gridData.value.params.newWidth ? gridData.value.params.newWidth : "800px",
|
|
8941
|
-
height: gridData.value.params.newHeight ? gridData.value.params.newHeight : "
|
|
8948
|
+
height: gridData.value.params.newHeight ? gridData.value.params.newHeight : "",
|
|
8942
8949
|
childForm: Z
|
|
8943
8950
|
}, Z && Object.keys(Z).length > 0 && (ne.width = "85vw"), ne.params.queryParams !== null && typeof ne.params.queryParams < "u" && (ne.params.queryParams.unQuery = !0), ne.params.parentData = getParentData(), ne._reload = () => reload(), rowDbClick(ne);
|
|
8944
8951
|
}
|
|
@@ -9131,7 +9138,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_eb6696c9_lang = "", _withScop
|
|
|
9131
9138
|
preTag: preTag.value,
|
|
9132
9139
|
showEdit: !0,
|
|
9133
9140
|
width: gridData.value.params.editWidth ? gridData.value.params.editWidth : "800px",
|
|
9134
|
-
height: gridData.value.params.editHeight ? gridData.value.params.editHeight : "
|
|
9141
|
+
height: gridData.value.params.editHeight ? gridData.value.params.editHeight : "",
|
|
9135
9142
|
tableData: getCanEditData(),
|
|
9136
9143
|
rowIndex: H
|
|
9137
9144
|
}, X.params.queryParams !== null && typeof X.params.queryParams < "u" && (X.params.queryParams.unQuery = !0), X.formData._button_id = gridData.value.params.edit_button_id, X._reload = () => reload(), rowDbClick(X);
|
|
@@ -9889,6 +9896,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_eb6696c9_lang = "", _withScop
|
|
|
9889
9896
|
const X = G.getTableData().visibleData;
|
|
9890
9897
|
G.setCurrentRow(X[H]);
|
|
9891
9898
|
}
|
|
9899
|
+
}, queryBeforeList = [], addProxyQueryBeforeFun = (Q) => {
|
|
9900
|
+
queryBeforeList.push(Q);
|
|
9892
9901
|
};
|
|
9893
9902
|
return onMounted(async () => {
|
|
9894
9903
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
@@ -10132,7 +10141,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_eb6696c9_lang = "", _withScop
|
|
|
10132
10141
|
]);
|
|
10133
10142
|
};
|
|
10134
10143
|
}
|
|
10135
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
10144
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-9be6ad8e"]]);
|
|
10136
10145
|
WindowGrid.name = "slw-window-grid";
|
|
10137
10146
|
WindowGrid.install = (Q) => {
|
|
10138
10147
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -40586,7 +40595,7 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
40586
40595
|
_sfc_main$2.install = (Q) => {
|
|
40587
40596
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
40588
40597
|
};
|
|
40589
|
-
const
|
|
40598
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_85f00972_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-85f00972"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
40590
40599
|
__name: "window-index",
|
|
40591
40600
|
props: {
|
|
40592
40601
|
windowId: {
|
|
@@ -40603,18 +40612,18 @@ const windowIndex_vue_vue_type_style_index_0_scoped_89c288c0_lang = "", _withSco
|
|
|
40603
40612
|
emits: ["update:queryParams", "on-load-success", "close"],
|
|
40604
40613
|
setup(__props, { emit }) {
|
|
40605
40614
|
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");
|
|
40615
|
+
let queryParams = useVModel(props, "queryParams", emit);
|
|
40616
|
+
const xModal = ref();
|
|
40617
|
+
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;
|
|
40618
|
+
const gridClickEvents = ref([]), $modal = $Modal, $message = $Message;
|
|
40606
40619
|
try {
|
|
40607
|
-
if (preRegionMap = inject("$regionMap"
|
|
40620
|
+
if (preRegionMap = inject("$regionMap", ""), preRegionMap) {
|
|
40608
40621
|
let Q = preRegionMap;
|
|
40609
40622
|
regionMap.value = Q.value;
|
|
40610
40623
|
}
|
|
40611
40624
|
} catch (Q) {
|
|
40612
|
-
console.log(Q);
|
|
40613
40625
|
}
|
|
40614
|
-
|
|
40615
|
-
const xModal = ref();
|
|
40616
|
-
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;
|
|
40617
|
-
const gridClickEvents = ref([]), $modal = $Modal, $message = $Message, preTag = computed(() => props.windowId || ""), modalHeaderSlotName = computed(() => "header"), addGridClickEvent = (Q) => {
|
|
40626
|
+
const preTag = computed(() => props.windowId || ""), modalHeaderSlotName = computed(() => "header"), addGridClickEvent = (Q) => {
|
|
40618
40627
|
gridClickEvents.value.push(Q);
|
|
40619
40628
|
}, callGridClickEvents = (Q, H) => {
|
|
40620
40629
|
gridClickEvents.value.forEach((G) => G(Q, H));
|
|
@@ -41756,7 +41765,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_89c288c0_lang = "", _withSco
|
|
|
41756
41765
|
]);
|
|
41757
41766
|
};
|
|
41758
41767
|
}
|
|
41759
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
41768
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-85f00972"]]);
|
|
41760
41769
|
WindowIndex.name = "slw-window-index";
|
|
41761
41770
|
WindowIndex.install = (Q) => {
|
|
41762
41771
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -125358,7 +125367,7 @@ function reConsole() {
|
|
|
125358
125367
|
}
|
|
125359
125368
|
}
|
|
125360
125369
|
console.info(
|
|
125361
|
-
`%cSLW %cVer 0.9.
|
|
125370
|
+
`%cSLW %cVer 0.9.20%c
|
|
125362
125371
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
125363
125372
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
125364
125373
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|