slw 0.8.2 → 0.8.4

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
@@ -8511,7 +8511,7 @@ PictureUpload.name = "slw-picture-upload";
8511
8511
  PictureUpload.install = (Q) => {
8512
8512
  Q.component(PictureUpload.name, PictureUpload);
8513
8513
  };
8514
- const windowGrid_vue_vue_type_style_index_0_scoped_3fa4e071_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-3fa4e071"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8514
+ const windowGrid_vue_vue_type_style_index_0_scoped_f426c078_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-f426c078"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8515
8515
  class: "slw-window-grid-container",
8516
8516
  style: { height: "100%" }
8517
8517
  }, _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$au = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
@@ -8643,6 +8643,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_3fa4e071_lang = "", _withScop
8643
8643
  },
8644
8644
  ajax: {
8645
8645
  query: ({ page: H, sorts: X, filters: G, form: Z }, K) => {
8646
+ if (gridData.value.noSearchData) {
8647
+ delete gridData.value.noSearchData;
8648
+ return;
8649
+ }
8646
8650
  if (K != null && K.clearGrid) {
8647
8651
  for (let le in Z)
8648
8652
  Z[le] = null;
@@ -9787,6 +9791,12 @@ const windowGrid_vue_vue_type_style_index_0_scoped_3fa4e071_lang = "", _withScop
9787
9791
  )[0];
9788
9792
  G.fixed = H;
9789
9793
  }
9794
+ }, getQueryForm = (Q) => {
9795
+ let H = getCurRegion();
9796
+ if (Q && (H = getRegion(Q)), H) {
9797
+ const { form: X } = H.getProxyInfo();
9798
+ return X;
9799
+ }
9790
9800
  };
9791
9801
  return onMounted(async () => {
9792
9802
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
@@ -9858,7 +9868,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_3fa4e071_lang = "", _withScop
9858
9868
  search(Q);
9859
9869
  }, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
9860
9870
  setChecked(Q);
9861
- }, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = () => setCheckboxRowColor(), curRegion.value.setFormValue = () => setFormValue(), curRegion.value.setRowCellColor = () => setRowCellColor(), curRegion.value.setFormSelectOption = () => setFormSelectOption(), curRegion.value.getFormSelectOption = () => getFormSelectOption(), curRegion.value.setColumnFixed = () => setColumnFixed();
9871
+ }, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = () => setCheckboxRowColor(), curRegion.value.setFormValue = () => setFormValue(), curRegion.value.setRowCellColor = () => setRowCellColor(), curRegion.value.setFormSelectOption = () => setFormSelectOption(), curRegion.value.getFormSelectOption = () => getFormSelectOption(), curRegion.value.setColumnFixed = () => setColumnFixed(), curRegion.value.getQueryForm = () => getQueryForm();
9862
9872
  }), onUnmounted(() => {
9863
9873
  document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
9864
9874
  }), __expose({ gridReload, reload }), (Q, H) => {
@@ -10028,7 +10038,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_3fa4e071_lang = "", _withScop
10028
10038
  ]);
10029
10039
  };
10030
10040
  }
10031
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-3fa4e071"]]);
10041
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-f426c078"]]);
10032
10042
  WindowGrid.name = "slw-window-grid";
10033
10043
  WindowGrid.install = (Q) => {
10034
10044
  Q.component(WindowGrid.name, WindowGrid);
@@ -38865,7 +38875,7 @@ var js = js$1.exports;
38865
38875
  })(Q);
38866
38876
  })(js$1);
38867
38877
  var jsExports = js$1.exports;
38868
- const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_34e379b0_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-34e379b0"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
38878
+ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_9315c959_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-9315c959"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
38869
38879
  key: 0,
38870
38880
  style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
38871
38881
  }, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
@@ -38884,7 +38894,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
38884
38894
  const props = __props, componentMapping = inject("$componentMapping"), axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), $Modal = inject("$modal"), $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $vxeConfirm = inject("$vxeConfirm"), $T = inject("$t"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), focusInput = inject("$focusInput"), evalDefaultValue = inject("$evalDefaultValue");
38885
38895
  let regionMap = inject("$regionMap");
38886
38896
  const ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce");
38887
- let formConfig = useVModel(props, "formConfig", emits), gridData = formConfig.value, formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
38897
+ let formConfig = useVModel(props, "formConfig", emits), gridData = ref(formConfig.value), formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
38888
38898
  const $modal = $Modal;
38889
38899
  let uploadConfig = ref({
38890
38900
  show: !1,
@@ -39680,7 +39690,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39680
39690
  ]);
39681
39691
  };
39682
39692
  }
39683
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-34e379b0"]]);
39693
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-9315c959"]]);
39684
39694
  WindowForm.name = "slw-window-form";
39685
39695
  WindowForm.install = (Q) => {
39686
39696
  Q.component(WindowForm.name, WindowForm);
@@ -40313,7 +40323,7 @@ _sfc_main$2.name = "slw-preview-modal";
40313
40323
  _sfc_main$2.install = (Q) => {
40314
40324
  Q.component(_sfc_main$2.name, _sfc_main$2);
40315
40325
  };
40316
- const windowIndex_vue_vue_type_style_index_0_scoped_7185bce2_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-7185bce2"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
40326
+ const windowIndex_vue_vue_type_style_index_0_scoped_4b6e1351_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-4b6e1351"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
40317
40327
  __name: "window-index",
40318
40328
  props: {
40319
40329
  windowId: {
@@ -40412,7 +40422,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7185bce2_lang = "", _withSco
40412
40422
  }
40413
40423
  regionIdRegionMap.value[ne.id] = ne, layoutIdRegionMap.value[ne.layoutId] = ne;
40414
40424
  }), G.layouts.map((ne) => {
40415
- parentLayoutIdLayoutMap.value[ne.parentId] ? parentLayoutIdLayoutMap.value[ne.parentId].push(ne) : parentLayoutIdLayoutMap.value[ne.parentId] = [ne];
40425
+ !isNaN(ne.height) || ne.height.indexOf("px") > 0 ? ne.height = parseFloat(ne.height) : (ne.height.indexOf("%") > 0 || ne.height.indexOf("vh") > 0) && (ne.height = parseFloat(ne.height) / 100 * K), parentLayoutIdLayoutMap.value[ne.parentId] ? parentLayoutIdLayoutMap.value[ne.parentId].push(ne) : parentLayoutIdLayoutMap.value[ne.parentId] = [ne];
40416
40426
  });
40417
40427
  let ee = 0.5;
40418
40428
  G.layout === "V" ? G.layouts.length > 1 && G.layouts[0].height ? (ee = Math.round(G.layouts[0].height / K * 100) / 100, ee < 0.2 && (ee = 0.2)) : G.layouts.length === 1 && (ee = 1) : ee = G.layouts.length > 0 && G.layouts[0].width && G.layouts[0].width / 12 < 1 ? G.layouts[0].width / 12 : 0.5;
@@ -41441,7 +41451,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_7185bce2_lang = "", _withSco
41441
41451
  ]);
41442
41452
  };
41443
41453
  }
41444
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-7185bce2"]]);
41454
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-4b6e1351"]]);
41445
41455
  WindowIndex.name = "slw-window-index";
41446
41456
  WindowIndex.install = (Q) => {
41447
41457
  Q.component(WindowIndex.name, WindowIndex);
@@ -124240,7 +124250,7 @@ function reConsole() {
124240
124250
  }
124241
124251
  }
124242
124252
  console.info(
124243
- "%cSLW %cVer 0.8.2",
124253
+ "%cSLW %cVer 0.8.4",
124244
124254
  "color:#409EFF;font-size: 22px;font-weight:bolder",
124245
124255
  "color:#999;font-size: 12px"
124246
124256
  );