slw 0.9.19 → 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 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 windowGrid_vue_vue_type_style_index_0_scoped_eb6696c9_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-eb6696c9"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
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 : "700px",
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 : "700px",
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-eb6696c9"]]);
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);
@@ -125358,7 +125367,7 @@ function reConsole() {
125358
125367
  }
125359
125368
  }
125360
125369
  console.info(
125361
- `%cSLW %cVer 0.9.19%c
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;",