slw 0.9.15 → 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_9fff2282_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-9fff2282"), 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_9fff2282_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_");
@@ -9882,11 +9882,12 @@ const windowGrid_vue_vue_type_style_index_0_scoped_9fff2282_lang = "", _withScop
9882
9882
  },
9883
9883
  { deep: !0 }
9884
9884
  );
9885
- const setCurrentRowByRowIndex = (Q, H) => {
9885
+ const setCurrentRowByRowIndex = async (Q, H) => {
9886
9886
  let G = getCurRegion();
9887
9887
  if (Q && (G = getRegion(Q)), G) {
9888
+ gridData.value.params.rowIndex = H;
9888
9889
  const X = G.getTableData().visibleData;
9889
- evalEvent(G.params.formEvents.rowClickFunction, X[H]), G.setCurrentRow(X[H]);
9890
+ G.setCurrentRow(X[H]);
9890
9891
  }
9891
9892
  };
9892
9893
  return onMounted(async () => {
@@ -9960,7 +9961,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_9fff2282_lang = "", _withScop
9960
9961
  search(Q);
9961
9962
  }, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
9962
9963
  setChecked(Q);
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();
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);
9964
9965
  }), onUnmounted(() => {
9965
9966
  document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
9966
9967
  }), __expose({ gridReload, reload }), (Q, H) => {
@@ -10131,7 +10132,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_9fff2282_lang = "", _withScop
10131
10132
  ]);
10132
10133
  };
10133
10134
  }
10134
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-9fff2282"]]);
10135
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-660f6e2c"]]);
10135
10136
  WindowGrid.name = "slw-window-grid";
10136
10137
  WindowGrid.install = (Q) => {
10137
10138
  Q.component(WindowGrid.name, WindowGrid);
@@ -125356,7 +125357,7 @@ function reConsole() {
125356
125357
  }
125357
125358
  }
125358
125359
  console.info(
125359
- `%cSLW %cVer 0.9.15%c
125360
+ `%cSLW %cVer 0.9.16%c
125360
125361
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
125361
125362
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
125362
125363
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",