slw 0.5.985 → 0.5.986

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_bb0e601d_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-bb0e601d"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8514
+ const windowGrid_vue_vue_type_style_index_0_scoped_782e24fb_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-782e24fb"), 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$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
@@ -9694,8 +9694,11 @@ const windowGrid_vue_vue_type_style_index_0_scoped_bb0e601d_lang = "", _withScop
9694
9694
  }, onScanIconClick = (Q, H) => {
9695
9695
  const G = gridData.value.formConfig.items.filter((X) => X.field == H)[0];
9696
9696
  G.itemRender.props.clickFunction && evalEvent(G.itemRender.props.clickFunction, Q, H);
9697
+ }, setFormValue = (Q, H) => {
9698
+ let G = gridData.value.formConfig.items.filter((X) => X.field == Q)[0];
9699
+ G && (G.itemRender.defaultValue = H);
9697
9700
  };
9698
- onMounted(() => {
9701
+ return onMounted(() => {
9699
9702
  gridData.value.addListener && getCurRegion() && addListener(), evalEvent(gridData.value.params.formEvents.dataInit), gridData.value.toolbarConfig.buttons.forEach((Q) => {
9700
9703
  typeof Q.type < "u" && Q.type.toLowerCase() === "edit" && (editBtn.value = Q), typeof Q.type < "u" && Q.type.toLowerCase() === "export" && (exportButton.value = Q), Q.hasOwnProperty("buttonRender") || (Q.buttonRender = {
9701
9704
  name: "ElButton",
@@ -9765,14 +9768,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_bb0e601d_lang = "", _withScop
9765
9768
  search(Q);
9766
9769
  }, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
9767
9770
  setChecked(Q);
9768
- }, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = () => setCheckboxRowColor();
9771
+ }, 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();
9769
9772
  }), onUnmounted(() => {
9770
9773
  document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
9771
- });
9772
- const setValue = (Q, H) => {
9773
- gridData.value.formConfig.formData[Q.toUpperCase()] = H;
9774
- };
9775
- return __expose({ gridReload, reload }), (Q, H) => {
9774
+ }), __expose({ gridReload, reload }), (Q, H) => {
9776
9775
  const G = resolveComponent("el-input"), X = resolveComponent("el-icon"), Z = resolveComponent("el-tooltip"), K = resolveComponent("el-button"), ee = resolveComponent("vxe-grid"), te = resolveComponent("cloud-upload"), ne = resolveComponent("el-upload"), re = resolveComponent("download-outline"), oe = resolveComponent("el-dialog");
9777
9776
  return openBlock(), createElementBlock("div", _hoisted_1$kW, [
9778
9777
  createElementVNode("div", {
@@ -9939,7 +9938,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_bb0e601d_lang = "", _withScop
9939
9938
  ]);
9940
9939
  };
9941
9940
  }
9942
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-bb0e601d"]]);
9941
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-782e24fb"]]);
9943
9942
  WindowGrid.name = "slw-window-grid";
9944
9943
  WindowGrid.install = (Q) => {
9945
9944
  Q.component(WindowGrid.name, WindowGrid);
@@ -122220,7 +122219,7 @@ function reConsole() {
122220
122219
  }
122221
122220
  }
122222
122221
  console.info(
122223
- "%cSLW %cVer 0.5.985",
122222
+ "%cSLW %cVer 0.5.986",
122224
122223
  "color:#409EFF;font-size: 22px;font-weight:bolder",
122225
122224
  "color:#999;font-size: 12px"
122226
122225
  );