slw 0.9.13 → 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_933b04ff_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-933b04ff"), 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 = [
@@ -8729,7 +8729,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_933b04ff_lang = "", _withScop
8729
8729
  }) : !0, $e = ge.showInGrid && _e, ve = !ge.showInGrid && _e;
8730
8730
  if (ge.btnShowInGrid[pe] = $e, ge.btnShow[pe] = ve, ce = ce || $e, $e)
8731
8731
  if (ge.iconComponent)
8732
- me++;
8732
+ me = me + 0.7;
8733
8733
  else {
8734
8734
  let ke = ge.name.match(/[\u4e00-\u9fa5]/g);
8735
8735
  if (ke) {
@@ -8746,7 +8746,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_933b04ff_lang = "", _withScop
8746
8746
  let he = !1;
8747
8747
  gridData.value.columns.forEach((fe) => {
8748
8748
  if (fe.colId == "_operation_" && fe.title == "操作") {
8749
- fe.width != de * 60 && (he = !0, fe.width = de * 60);
8749
+ fe.width != de * 60 && de * 60 >= 60 && (he = !0, fe.width = de * 60);
8750
8750
  return;
8751
8751
  }
8752
8752
  }), he && getCurRegion().loadColumn(gridData.value.columns), le.data.data.length > rowIndex.value ? se = le.data.data[rowIndex.value] : se = le.data.data[0];
@@ -9864,7 +9864,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_933b04ff_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_933b04ff_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_933b04ff_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_933b04ff_lang = "", _withScop
10123
10131
  ]);
10124
10132
  };
10125
10133
  }
10126
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-933b04ff"]]);
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);
@@ -40577,7 +40585,7 @@ _sfc_main$2.name = "slw-preview-modal";
40577
40585
  _sfc_main$2.install = (Q) => {
40578
40586
  Q.component(_sfc_main$2.name, _sfc_main$2);
40579
40587
  };
40580
- const windowIndex_vue_vue_type_style_index_0_scoped_edbee1af_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-edbee1af"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
40588
+ const windowIndex_vue_vue_type_style_index_0_scoped_90a61690_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-90a61690"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
40581
40589
  __name: "window-index",
40582
40590
  props: {
40583
40591
  windowId: {
@@ -41225,7 +41233,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_edbee1af_lang = "", _withSco
41225
41233
  className: ce,
41226
41234
  dataType: oe[se].dataType,
41227
41235
  title: de,
41228
- visible: oe[se].displayGrid,
41236
+ visible: se == 0 && Z.type === "TREE" ? !1 : oe[se].displayGrid,
41229
41237
  displayForm: oe[se].displayForm,
41230
41238
  remoteSearch: oe[se].remoteSearch,
41231
41239
  sortable: oe[se].allowSort,
@@ -41746,7 +41754,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_edbee1af_lang = "", _withSco
41746
41754
  ]);
41747
41755
  };
41748
41756
  }
41749
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-edbee1af"]]);
41757
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-90a61690"]]);
41750
41758
  WindowIndex.name = "slw-window-index";
41751
41759
  WindowIndex.install = (Q) => {
41752
41760
  Q.component(WindowIndex.name, WindowIndex);
@@ -125348,7 +125356,7 @@ function reConsole() {
125348
125356
  }
125349
125357
  }
125350
125358
  console.info(
125351
- `%cSLW %cVer 0.9.13%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;",