slw 0.5.993 → 0.5.994

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_0eb504fd_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-0eb504fd"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
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 = {
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 = [
@@ -9719,6 +9719,11 @@ const windowGrid_vue_vue_type_style_index_0_scoped_0eb504fd_lang = "", _withScop
9719
9719
  }, setFormValue = (Q, H) => {
9720
9720
  let G = gridData.value.formConfig.items.filter((X) => X.field == Q)[0];
9721
9721
  G && (G.itemRender.defaultValue = H);
9722
+ }, setFormSelectOption = (Q, H, G = []) => {
9723
+ let X = getCurRegion();
9724
+ Q && (X = getRegion(Q));
9725
+ let Z = X.formConfig.items.filter((K) => K.field == H)[0];
9726
+ Z && (Z.itemRender.options = G);
9722
9727
  };
9723
9728
  return onMounted(async () => {
9724
9729
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
@@ -9790,7 +9795,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_0eb504fd_lang = "", _withScop
9790
9795
  search(Q);
9791
9796
  }, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
9792
9797
  setChecked(Q);
9793
- }, 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();
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();
9794
9799
  }), onUnmounted(() => {
9795
9800
  document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
9796
9801
  }), __expose({ gridReload, reload }), (Q, H) => {
@@ -9960,7 +9965,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_0eb504fd_lang = "", _withScop
9960
9965
  ]);
9961
9966
  };
9962
9967
  }
9963
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-0eb504fd"]]);
9968
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-e7c84c01"]]);
9964
9969
  WindowGrid.name = "slw-window-grid";
9965
9970
  WindowGrid.install = (Q) => {
9966
9971
  Q.component(WindowGrid.name, WindowGrid);
@@ -122258,7 +122263,7 @@ function reConsole() {
122258
122263
  }
122259
122264
  }
122260
122265
  console.info(
122261
- "%cSLW %cVer 0.5.993",
122266
+ "%cSLW %cVer 0.5.994",
122262
122267
  "color:#409EFF;font-size: 22px;font-weight:bolder",
122263
122268
  "color:#999;font-size: 12px"
122264
122269
  );