slw 0.9.14 → 0.9.15

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_2377c247_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-2377c247"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8527
+ const windowGrid_vue_vue_type_style_index_0_scoped_9fff2282_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-9fff2282"), 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 = [
@@ -9864,7 +9864,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_2377c247_lang = "", _withScop
9864
9864
  }
9865
9865
  return !0;
9866
9866
  };
9867
- return watch(
9867
+ watch(
9868
9868
  () => {
9869
9869
  var Q;
9870
9870
  return (Q = curRegion.value) == null ? void 0 : Q.getRecordset();
@@ -9881,7 +9881,15 @@ const windowGrid_vue_vue_type_style_index_0_scoped_2377c247_lang = "", _withScop
9881
9881
  }));
9882
9882
  },
9883
9883
  { deep: !0 }
9884
- ), onMounted(async () => {
9884
+ );
9885
+ const setCurrentRowByRowIndex = (Q, H) => {
9886
+ let G = getCurRegion();
9887
+ if (Q && (G = getRegion(Q)), G) {
9888
+ const X = G.getTableData().visibleData;
9889
+ evalEvent(G.params.formEvents.rowClickFunction, X[H]), G.setCurrentRow(X[H]);
9890
+ }
9891
+ };
9892
+ return onMounted(async () => {
9885
9893
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
9886
9894
  body: { options: bodyMenus.value },
9887
9895
  visibleMethod
@@ -9952,7 +9960,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_2377c247_lang = "", _withScop
9952
9960
  search(Q);
9953
9961
  }, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
9954
9962
  setChecked(Q);
9955
- }, 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();
9963
+ }, 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(), curRegion.value.setCurrentRowByRowIndex = () => setCurrentRowByRowIndex();
9956
9964
  }), onUnmounted(() => {
9957
9965
  document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
9958
9966
  }), __expose({ gridReload, reload }), (Q, H) => {
@@ -10123,7 +10131,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_2377c247_lang = "", _withScop
10123
10131
  ]);
10124
10132
  };
10125
10133
  }
10126
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-2377c247"]]);
10134
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-9fff2282"]]);
10127
10135
  WindowGrid.name = "slw-window-grid";
10128
10136
  WindowGrid.install = (Q) => {
10129
10137
  Q.component(WindowGrid.name, WindowGrid);
@@ -125348,7 +125356,7 @@ function reConsole() {
125348
125356
  }
125349
125357
  }
125350
125358
  console.info(
125351
- `%cSLW %cVer 0.9.14%c
125359
+ `%cSLW %cVer 0.9.15%c
125352
125360
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
125353
125361
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
125354
125362
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",