slw 0.5.994 → 0.5.995

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_e7c84c01_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-e7c84c01"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8514
+ const windowGrid_vue_vue_type_style_index_0_scoped_e45797c7_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-e45797c7"), 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 = [
@@ -9724,6 +9724,29 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e7c84c01_lang = "", _withScop
9724
9724
  Q && (X = getRegion(Q));
9725
9725
  let Z = X.formConfig.items.filter((K) => K.field == H)[0];
9726
9726
  Z && (Z.itemRender.options = G);
9727
+ }, getFormSelectOption = async (Q, H) => {
9728
+ let G = getCurRegion();
9729
+ Q && (G = getRegion(Q));
9730
+ let X = G.formConfig.items.filter((K) => K.field == H)[0], Z = [];
9731
+ if (X.querys) {
9732
+ const K = await axios.post(
9733
+ "/window/selector",
9734
+ $qs.stringify({
9735
+ _region_id: G.params._region_id,
9736
+ _field_id: X.querys.id,
9737
+ _select_id: X.querys.selectorId
9738
+ })
9739
+ );
9740
+ K.data.result && K.data.data && (Z = K.data.data.map((ee) => Object.assign(
9741
+ {
9742
+ value: ee.VALUE,
9743
+ label: ee.NAME
9744
+ },
9745
+ ee
9746
+ )));
9747
+ } else
9748
+ Z = X.itemRender.options;
9749
+ return Z;
9727
9750
  };
9728
9751
  return onMounted(async () => {
9729
9752
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
@@ -9795,7 +9818,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e7c84c01_lang = "", _withScop
9795
9818
  search(Q);
9796
9819
  }, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
9797
9820
  setChecked(Q);
9798
- }, 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();
9821
+ }, 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();
9799
9822
  }), onUnmounted(() => {
9800
9823
  document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
9801
9824
  }), __expose({ gridReload, reload }), (Q, H) => {
@@ -9965,7 +9988,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e7c84c01_lang = "", _withScop
9965
9988
  ]);
9966
9989
  };
9967
9990
  }
9968
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-e7c84c01"]]);
9991
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-e45797c7"]]);
9969
9992
  WindowGrid.name = "slw-window-grid";
9970
9993
  WindowGrid.install = (Q) => {
9971
9994
  Q.component(WindowGrid.name, WindowGrid);
@@ -122263,7 +122286,7 @@ function reConsole() {
122263
122286
  }
122264
122287
  }
122265
122288
  console.info(
122266
- "%cSLW %cVer 0.5.994",
122289
+ "%cSLW %cVer 0.5.995",
122267
122290
  "color:#409EFF;font-size: 22px;font-weight:bolder",
122268
122291
  "color:#999;font-size: 12px"
122269
122292
  );