slw 0.9.14 → 0.9.16

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_660f6e2c_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-660f6e2c"), 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 = [
@@ -8749,7 +8749,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_2377c247_lang = "", _withScop
8749
8749
  fe.width != de * 60 && de * 60 >= 60 && (he = !0, fe.width = de * 60);
8750
8750
  return;
8751
8751
  }
8752
- }), he && getCurRegion().loadColumn(gridData.value.columns), le.data.data.length > rowIndex.value ? se = le.data.data[rowIndex.value] : se = le.data.data[0];
8752
+ }), he && getCurRegion().loadColumn(gridData.value.columns), gridData.value.params.rowIndex && (rowIndex.value = gridData.value.params.rowIndex), le.data.data.length > rowIndex.value ? se = le.data.data[rowIndex.value] : se = le.data.data[0];
8753
8753
  const ue = getCurRegion();
8754
8754
  if (ue) {
8755
8755
  const fe = ue.getColumnById("_operation_");
@@ -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,16 @@ 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 = async (Q, H) => {
9886
+ let G = getCurRegion();
9887
+ if (Q && (G = getRegion(Q)), G) {
9888
+ gridData.value.params.rowIndex = H;
9889
+ const X = G.getTableData().visibleData;
9890
+ G.setCurrentRow(X[H]);
9891
+ }
9892
+ };
9893
+ return onMounted(async () => {
9885
9894
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
9886
9895
  body: { options: bodyMenus.value },
9887
9896
  visibleMethod
@@ -9952,7 +9961,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_2377c247_lang = "", _withScop
9952
9961
  search(Q);
9953
9962
  }, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
9954
9963
  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();
9964
+ }, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (Q, H) => setCheckboxRowColor(Q, H), curRegion.value.setFormValue = (Q, H) => setFormValue(Q, H), curRegion.value.setRowCellColor = (Q, H, G, X) => setRowCellColor(Q, H, G, X), curRegion.value.setFormSelectOption = (Q, H, G) => setFormSelectOption(Q, H, G), curRegion.value.getFormSelectOption = (Q, H) => getFormSelectOption(Q, H), curRegion.value.setColumnFixed = (Q, H) => setColumnFixed(Q, H), curRegion.value.getQueryForm = (Q) => getQueryForm(Q), curRegion.value.setCurrentRowByRowIndex = (Q, H) => setCurrentRowByRowIndex(Q, H);
9956
9965
  }), onUnmounted(() => {
9957
9966
  document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
9958
9967
  }), __expose({ gridReload, reload }), (Q, H) => {
@@ -10123,7 +10132,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_2377c247_lang = "", _withScop
10123
10132
  ]);
10124
10133
  };
10125
10134
  }
10126
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-2377c247"]]);
10135
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-660f6e2c"]]);
10127
10136
  WindowGrid.name = "slw-window-grid";
10128
10137
  WindowGrid.install = (Q) => {
10129
10138
  Q.component(WindowGrid.name, WindowGrid);
@@ -125348,7 +125357,7 @@ function reConsole() {
125348
125357
  }
125349
125358
  }
125350
125359
  console.info(
125351
- `%cSLW %cVer 0.9.14%c
125360
+ `%cSLW %cVer 0.9.16%c
125352
125361
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
125353
125362
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
125354
125363
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",