slw 0.9.77 → 0.9.80

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.
@@ -1,5 +1,5 @@
1
1
  import { pushScopeId as P, popScopeId as V, createElementVNode as h, resolveComponent as g, openBlock as o, createElementBlock as p, createBlock as f, normalizeClass as T, normalizeStyle as A, withModifiers as R, withCtx as r, renderSlot as q, createCommentVNode as _, Fragment as B, createVNode as s, mergeProps as k, renderList as j, toDisplayString as E, normalizeProps as K, guardReactiveProps as Q, resolveDynamicComponent as Z, defineAsyncComponent as $, computed as F, unref as D, withDirectives as ee, vShow as te } from "vue";
2
- import { _ as x, d as S, a as L, u as N } from "./index-f32eea1d.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-f75bf5b9.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
@@ -1,7 +1,7 @@
1
1
  var wi = Object.defineProperty;
2
2
  var xi = (H, Q, Z) => Q in H ? wi(H, Q, { enumerable: !0, configurable: !0, writable: !0, value: Z }) : H[Q] = Z;
3
3
  var Uo = (H, Q, Z) => (xi(H, typeof Q != "symbol" ? Q + "" : Q, Z), Z);
4
- import { shallowRef, watchEffect, readonly, ref, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, version as version$1, isRef, unref, computed, reactive, toRefs as toRefs$2, toRef as toRef$2, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive, defineComponent, shallowReactive, h as h$3, Fragment, TransitionGroup, onUpdated, markRaw, isReadonly, onBeforeUpdate, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, withCtx, createElementVNode, createCommentVNode, renderList, createBlock, toRaw, mergeProps as mergeProps$1, resolveDynamicComponent, normalizeStyle, createSlots, toDisplayString, normalizeProps, guardReactiveProps, createTextVNode, renderSlot, withModifiers, defineAsyncComponent, onActivated, isVNode, Comment, Text as Text$2, Transition, Teleport, render as render$1, cloneVNode, withDirectives, resolveDirective, vShow, camelize as camelize$2, createStaticVNode, createApp, onDeactivated } from "vue";
4
+ import { shallowRef, watchEffect, readonly, ref, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, version as version$1, isRef, unref, computed, reactive, toRefs as toRefs$2, toRef as toRef$2, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive, defineComponent, shallowReactive, h as h$3, Fragment, TransitionGroup, onUpdated, markRaw, isReadonly, onBeforeUpdate, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, withCtx, createElementVNode, createCommentVNode, renderList, createBlock, toRaw, onDeactivated, mergeProps as mergeProps$1, resolveDynamicComponent, normalizeStyle, createSlots, toDisplayString, withModifiers, normalizeProps, guardReactiveProps, createTextVNode, renderSlot, defineAsyncComponent, onActivated, isVNode, Comment, Text as Text$2, Transition, Teleport, render as render$1, cloneVNode, withDirectives, resolveDirective, vShow, camelize as camelize$2, createStaticVNode, createApp } from "vue";
5
5
  import { useRoute } from "vue-router";
6
6
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
7
  function getDefaultExportFromCjs(H) {
@@ -8525,20 +8525,20 @@ PictureUpload.name = "slw-picture-upload";
8525
8525
  PictureUpload.install = (H) => {
8526
8526
  H.component(PictureUpload.name, PictureUpload);
8527
8527
  };
8528
- const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-e10cb502"), H = H(), popScopeId(), H), _hoisted_1$l1 = {
8529
- class: "slw-window-grid-container",
8530
- style: { height: "100%" }
8531
- }, _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$ay = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4Y = [
8528
+ const windowGrid_vue_vue_type_style_index_0_scoped_cad781e7_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-cad781e7"), H = H(), popScopeId(), H), _hoisted_1$l1 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_4$ay = [
8529
+ _hoisted_1$l1,
8532
8530
  _hoisted_2$kY,
8533
- _hoisted_3$hY,
8534
- _hoisted_4$ay
8535
- ], _hoisted_6$21 = ["onClick"], _hoisted_7$14 = ["id"], _hoisted_8$G = ["id"], _hoisted_9$n = {
8531
+ _hoisted_3$hY
8532
+ ], _hoisted_5$4Y = ["onClick"], _hoisted_6$21 = ["id"], _hoisted_7$14 = ["id"], _hoisted_8$G = {
8536
8533
  key: 0,
8537
8534
  style: { verticalAlign: "middle" }
8538
- }, _hoisted_10$q = ["id"], _hoisted_11$g = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("i", {
8535
+ }, _hoisted_9$n = ["id"], _hoisted_10$q = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("i", {
8539
8536
  class: "iconfont icon-carryout",
8540
8537
  style: { cursor: "pointer", padding: "0" }
8541
- }, null, -1)), _hoisted_12$8 = { style: { "font-size": "18px", "margin-right": "8px" } }, _hoisted_13$4 = { style: { padding: "20px 0" } }, _sfc_main$d = {
8538
+ }, null, -1)), _hoisted_11$g = { style: { "font-size": "18px", "margin-right": "8px" } }, _hoisted_12$8 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("i", {
8539
+ class: "iconfont icon-pushpin-fill",
8540
+ style: { cursor: "pointer", padding: "0" }
8541
+ }, null, -1)), _hoisted_13$4 = { style: { padding: "20px 0" } }, _sfc_main$d = {
8542
8542
  __name: "window-grid",
8543
8543
  props: {
8544
8544
  gridData: {
@@ -8566,7 +8566,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
8566
8566
  ]
8567
8567
  ]), editBtn = ref(null), exportButton = ref(null), uploadData = ref({}), queryTimeout = ref(null), formSelectMap = ref({}), isEditGridInitData = ref(!1);
8568
8568
  const otherItem = ref(), tableTop = ref(), queryTop = ref();
8569
- let otherItemComponent = shallowRef(), tableTopComponent = shallowRef(), queryTopComponent = shallowRef();
8569
+ let otherItemComponent = shallowRef(), tableTopComponent = shallowRef(), queryTopComponent = shallowRef(), checkedGridVisible = ref(!1), checkedGridFixed = ref(!1);
8570
8570
  const preTag = computed(() => gridData.value.params.preTag || ""), computeExcelUrl = computed(() => {
8571
8571
  let H = getCurRegion();
8572
8572
  return H.params.newImportUrl ? H.params.newImportUrl : importUrl.value;
@@ -8635,13 +8635,21 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
8635
8635
  showHeaderOverflow: !0,
8636
8636
  align: null,
8637
8637
  columnConfig: {
8638
+ useKey: !0,
8638
8639
  resizable: !0
8639
8640
  },
8641
+ rowConfig: {
8642
+ useKey: !0,
8643
+ keyField: "id",
8644
+ isCurrent: !0,
8645
+ isHover: !0
8646
+ },
8640
8647
  rowId: Q,
8641
8648
  columns: Z,
8642
8649
  toolbarConfig: {
8643
8650
  slots: {
8644
- buttons: "toolbar_buttons"
8651
+ buttons: "toolbar_buttons",
8652
+ tools: "toolbar_tool"
8645
8653
  },
8646
8654
  custom: !0
8647
8655
  },
@@ -8649,7 +8657,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
8649
8657
  }, !0;
8650
8658
  } else
8651
8659
  (H == null ? void 0 : H.length) == 0 && removeCheckedRow.value && (checkedGridOptions.value.data = []);
8652
- return !1;
8660
+ return checkedGridVisible.value = !1, !1;
8653
8661
  });
8654
8662
  let removeCheckedRow = ref(null);
8655
8663
  const removeRowEvent = (H) => {
@@ -8866,11 +8874,11 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
8866
8874
  const me = ve.getColumnById("_operation_");
8867
8875
  me && he && ve.showColumn(me);
8868
8876
  }
8869
- !isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(se), ((de = (ce = checkedGridOptions.value) == null ? void 0 : ce.data) == null ? void 0 : de.length) > 0 && checkedGridOptions.value.data.forEach((me) => {
8870
- getCurRegion().setCheckboxRow(me, !0);
8871
- });
8877
+ !isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(se);
8872
8878
  }
8873
- rowClickCommon(se, rowIndex.value), queryAfterList && queryAfterList.length > 0 && queryAfterList.forEach((he) => {
8879
+ ((de = (ce = checkedGridOptions.value) == null ? void 0 : ce.data) == null ? void 0 : de.length) > 0 && checkedGridOptions.value.data.forEach((he) => {
8880
+ getCurRegion().setCheckboxRow(he, !0);
8881
+ }), rowClickCommon(se, rowIndex.value), queryAfterList && queryAfterList.length > 0 && queryAfterList.forEach((he) => {
8874
8882
  var ue;
8875
8883
  if (he && typeof he == "function")
8876
8884
  try {
@@ -8937,7 +8945,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
8937
8945
  }
8938
8946
  Q.length > 0 && (Q = Q[0]);
8939
8947
  }
8940
- switch (typeof Z < "u" ? H.btnLoad[Z] = !0 : H.loading = !0, H.type) {
8948
+ switch (typeof Z < "u" ? (H.buttonRender.props.loading = computed(() => H.btnLoad[Z]), H.btnLoad[Z] = !0) : (H.buttonRender.props.loading = computed(() => H.loading), H.loading = !0), H.type) {
8941
8949
  case "NEW":
8942
8950
  let G = {};
8943
8951
  gridData.value.params.addChildData && gridData.value.params.childRegionCode.forEach((ne) => {
@@ -9248,34 +9256,37 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
9248
9256
  }, clearCheckedReserveData = () => {
9249
9257
  getCurRegion().clearCheckboxReserve(), checkedGridOptions.value && (checkedGridOptions.value.data = []);
9250
9258
  }, headerCheckboxChange = ({ checked: H, row: Q, rowIndex: Z }) => {
9259
+ var G, K;
9251
9260
  let X = getCheckedData();
9252
9261
  if (X.length > 0)
9253
- gridData.value.toolbarConfig.buttons.forEach((G) => {
9254
- G.displayLogic && !G.showInGrid && X.some((K) => {
9255
- if (G.visible = G.displayLogic ? displayLogic(G.displayLogic, {
9256
- ...K,
9262
+ gridData.value.toolbarConfig.buttons.forEach((ee) => {
9263
+ ee.displayLogic && !ee.showInGrid && X.some((te) => {
9264
+ if (ee.visible = ee.displayLogic ? displayLogic(ee.displayLogic, {
9265
+ ...te,
9257
9266
  ...assembleParentData(gridData.value.params.parentData)
9258
- }) : !0, !G.visible)
9267
+ }) : !0, !ee.visible)
9259
9268
  return !0;
9260
9269
  });
9261
9270
  });
9262
9271
  else {
9263
- const G = getSelectRecord();
9264
- gridData.value.toolbarConfig.buttons.forEach((K) => {
9265
- K.displayLogic && !K.showInGrid && (K.visible = displayLogic(K.displayLogic, {
9266
- ...G,
9272
+ const ee = getSelectRecord();
9273
+ gridData.value.toolbarConfig.buttons.forEach((te) => {
9274
+ te.displayLogic && !te.showInGrid && (te.visible = displayLogic(te.displayLogic, {
9275
+ ...ee,
9267
9276
  ...assembleParentData(gridData.value.params.parentData)
9268
9277
  }));
9269
9278
  });
9270
9279
  }
9271
- Q ? rowClickCommon(Q, Z) : allCheckboxFunList && allCheckboxFunList.length > 0 && allCheckboxFunList.forEach((G) => {
9272
- if (G && typeof G == "function")
9280
+ Q ? rowClickCommon(Q, Z) : (!H && ((K = (G = checkedGridOptions.value) == null ? void 0 : G.data) == null ? void 0 : K.length) > 0 && checkedGridOptions.value.data.forEach((ee) => {
9281
+ removeRowEvent(ee);
9282
+ }), allCheckboxFunList && allCheckboxFunList.length > 0 && allCheckboxFunList.forEach((ee) => {
9283
+ if (ee && typeof ee == "function")
9273
9284
  try {
9274
- G(X);
9275
- } catch (K) {
9276
- console.error(K);
9285
+ ee(X);
9286
+ } catch (te) {
9287
+ console.error(te);
9277
9288
  }
9278
- });
9289
+ }));
9279
9290
  }, getSelectRecord = () => {
9280
9291
  const H = getCurRegion();
9281
9292
  return H ? H.getCurrentRecord() : null;
@@ -10080,6 +10091,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
10080
10091
  }
10081
10092
  getCurRegion().recalculate(!0);
10082
10093
  }
10094
+ }, closeCheckedPopover = () => {
10095
+ checkedGridFixed.value || (checkedGridVisible.value = !1);
10083
10096
  };
10084
10097
  return onMounted(async () => {
10085
10098
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
@@ -10154,15 +10167,21 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
10154
10167
  setChecked(H);
10155
10168
  }, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (H) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (H, Q) => setCheckboxRowColor(H, Q), curRegion.value.setFormValue = (H, Q) => setFormValue(H, Q), curRegion.value.setRowCellColor = (H, Q, Z, X) => setRowCellColor(H, Q, Z, X), curRegion.value.setFormSelectOption = (H, Q, Z) => setFormSelectOption(H, Q, Z), curRegion.value.getFormSelectOption = (H, Q) => getFormSelectOption(H, Q), curRegion.value.setColumnFixed = (H, Q) => setColumnFixed(H, Q), curRegion.value.getQueryForm = (H) => getQueryForm(H), curRegion.value.setCurrentRowByRowIndex = (H, Q) => setCurrentRowByRowIndex(H, Q), curRegion.value.setUploadData = (H) => setUploadData(H), curRegion.value.setCheckMethod = (H) => setCheckMethod(H), curRegion.value.setButtonDisplay = (H, Q) => setButtonDisplay(H, Q), curRegion.value.addColumn = (H) => addColumn(H), curRegion.value.clearCheckedReserveData = () => clearCheckedReserveData();
10156
10169
  }), onUnmounted(() => {
10157
- document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
10170
+ checkedGridVisible.value = !1, checkedGridFixed.value = !1, document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
10171
+ }), onDeactivated(() => {
10172
+ checkedGridVisible.value = !1, checkedGridFixed.value = !1;
10158
10173
  }), __expose({ gridReload, reload }), (H, Q) => {
10159
10174
  const Z = resolveComponent("el-input"), X = resolveComponent("el-icon"), G = resolveComponent("el-tooltip"), K = resolveComponent("el-button"), ee = resolveComponent("vxe-button"), te = resolveComponent("vxe-grid"), ne = resolveComponent("el-popover"), re = resolveComponent("cloud-upload"), oe = resolveComponent("el-upload"), ae = resolveComponent("download-outline"), le = resolveComponent("el-dialog");
10160
- return openBlock(), createElementBlock("div", _hoisted_1$l1, [
10175
+ return openBlock(), createElementBlock("div", {
10176
+ class: "slw-window-grid-container",
10177
+ style: { height: "100%" },
10178
+ onClick: closeCheckedPopover
10179
+ }, [
10161
10180
  createElementVNode("div", {
10162
10181
  class: "vxe-table--cell-area",
10163
10182
  ref_key: "cellarea",
10164
10183
  ref: cellarea
10165
- }, _hoisted_5$4Y, 512),
10184
+ }, _hoisted_4$ay, 512),
10166
10185
  createVNode(te, mergeProps$1({
10167
10186
  ref_key: "curRegion",
10168
10187
  ref: curRegion,
@@ -10191,7 +10210,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
10191
10210
  class: "iconfont icon-scan1",
10192
10211
  onClick: (de) => onScanIconClick(se[ce], ce),
10193
10212
  style: { cursor: "pointer" }
10194
- }, null, 8, _hoisted_6$21)
10213
+ }, null, 8, _hoisted_5$4Y)
10195
10214
  ]),
10196
10215
  _: 2
10197
10216
  }, 1032, ["modelValue", "onUpdate:modelValue"])
@@ -10208,7 +10227,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
10208
10227
  ref_key: "queryTop",
10209
10228
  ref: queryTop
10210
10229
  }, null, 512)) : createCommentVNode("", !0)
10211
- ], 8, _hoisted_7$14)
10230
+ ], 8, _hoisted_6$21)
10212
10231
  ];
10213
10232
  }),
10214
10233
  query_bottom: withCtx(({ data: se, property: ce }) => {
@@ -10223,7 +10242,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
10223
10242
  ref_key: "otherItem",
10224
10243
  ref: otherItem
10225
10244
  }, null, 512)) : createCommentVNode("", !0)
10226
- ], 8, _hoisted_8$G)
10245
+ ], 8, _hoisted_7$14)
10227
10246
  ];
10228
10247
  }),
10229
10248
  operation: withCtx(({ row: se, rowIndex: ce }) => [
@@ -10238,7 +10257,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
10238
10257
  onClick: (he) => toolBarButtonClick(de, se, ce)
10239
10258
  }, createSlots({
10240
10259
  default: withCtx(() => [
10241
- !de.iconComponent || typeof de.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_9$n, toDisplayString(unref($T)(de.name)), 1)) : createCommentVNode("", !0)
10260
+ !de.iconComponent || typeof de.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_8$G, toDisplayString(unref($T)(de.name)), 1)) : createCommentVNode("", !0)
10242
10261
  ]),
10243
10262
  _: 2
10244
10263
  }, [
@@ -10279,7 +10298,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
10279
10298
  ref_key: "tableTop",
10280
10299
  ref: tableTop
10281
10300
  }, null, 512)) : createCommentVNode("", !0)
10282
- ], 8, _hoisted_10$q)
10301
+ ], 8, _hoisted_9$n)
10283
10302
  ];
10284
10303
  }),
10285
10304
  checkbox_tool: withCtx(({}) => [
@@ -10287,17 +10306,21 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
10287
10306
  key: 0,
10288
10307
  placement: "right",
10289
10308
  width: 500,
10290
- "popper-style": "max-height: 90vh;overflow: auto;",
10309
+ "popper-style": "max-height: 90vh;overflow-y: auto;overflow-x: hidden;",
10310
+ visible: unref(checkedGridVisible),
10291
10311
  trigger: "click"
10292
10312
  }, {
10293
10313
  reference: withCtx(() => [
10294
10314
  createVNode(K, {
10295
10315
  circle: "",
10296
10316
  style: { "margin-right": "0.8em" },
10297
- title: "已勾选数据"
10317
+ title: "已勾选数据",
10318
+ onClick: Q[0] || (Q[0] = withModifiers((se) => {
10319
+ isRef(checkedGridVisible) ? checkedGridVisible.value = !unref(checkedGridVisible) : checkedGridVisible = !unref(checkedGridVisible), isRef(checkedGridFixed) ? checkedGridFixed.value = !1 : checkedGridFixed = !1;
10320
+ }, ["stop"]))
10298
10321
  }, {
10299
10322
  default: withCtx(() => [
10300
- _hoisted_11$g
10323
+ _hoisted_10$q
10301
10324
  ]),
10302
10325
  _: 1
10303
10326
  })
@@ -10305,12 +10328,12 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
10305
10328
  default: withCtx(() => [
10306
10329
  createVNode(te, normalizeProps(guardReactiveProps(unref(checkedGridOptions))), {
10307
10330
  toolbar_buttons: withCtx(() => [
10308
- createElementVNode("b", _hoisted_12$8, toDisplayString(unref($T)("已勾选数据")), 1),
10331
+ createElementVNode("b", _hoisted_11$g, toDisplayString(unref($T)("已勾选数据")), 1),
10309
10332
  createVNode(ee, {
10310
10333
  status: "danger",
10311
10334
  size: "mini",
10312
10335
  content: unref($T)("全部删除"),
10313
- onClick: Q[0] || (Q[0] = (se) => removeAllRowEvent())
10336
+ onClick: Q[1] || (Q[1] = (se) => removeAllRowEvent())
10314
10337
  }, null, 8, ["content"])
10315
10338
  ]),
10316
10339
  operate: withCtx(({ row: se }) => [
@@ -10321,20 +10344,33 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
10321
10344
  onClick: (ce) => removeRowEvent(se)
10322
10345
  }, null, 8, ["content", "onClick"])
10323
10346
  ]),
10347
+ toolbar_tool: withCtx(() => [
10348
+ createVNode(K, {
10349
+ circle: "",
10350
+ title: "固定",
10351
+ style: normalizeStyle(unref(checkedGridFixed) ? "color:#409eff;border-color: #c6e2ff;" : ""),
10352
+ onClick: Q[2] || (Q[2] = (se) => isRef(checkedGridFixed) ? checkedGridFixed.value = !unref(checkedGridFixed) : checkedGridFixed = !unref(checkedGridFixed))
10353
+ }, {
10354
+ default: withCtx(() => [
10355
+ _hoisted_12$8
10356
+ ]),
10357
+ _: 1
10358
+ }, 8, ["style"])
10359
+ ]),
10324
10360
  _: 1
10325
10361
  }, 16)
10326
10362
  ]),
10327
10363
  _: 1
10328
- })) : createCommentVNode("", !0)
10364
+ }, 8, ["visible"])) : createCommentVNode("", !0)
10329
10365
  ]),
10330
10366
  _: 1
10331
10367
  }, 16, ["class"]),
10332
10368
  createVNode(le, {
10333
10369
  ref: "importModal",
10334
10370
  modelValue: unref(isImport),
10335
- "onUpdate:modelValue": Q[1] || (Q[1] = (se) => isRef(isImport) ? isImport.value = se : isImport = se),
10371
+ "onUpdate:modelValue": Q[3] || (Q[3] = (se) => isRef(isImport) ? isImport.value = se : isImport = se),
10336
10372
  visible: unref(isImport),
10337
- "onUpdate:visible": Q[2] || (Q[2] = (se) => isRef(isImport) ? isImport.value = se : isImport = se),
10373
+ "onUpdate:visible": Q[4] || (Q[4] = (se) => isRef(isImport) ? isImport.value = se : isImport = se),
10338
10374
  zIndex: 1e3,
10339
10375
  title: unref($T)("Excel导入"),
10340
10376
  width: "500px",
@@ -10398,7 +10434,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
10398
10434
  ref: "pictureUploadModal",
10399
10435
  width: "20%",
10400
10436
  modelValue: unref(uploadConfig).show,
10401
- "onUpdate:modelValue": Q[3] || (Q[3] = (se) => unref(uploadConfig).show = se),
10437
+ "onUpdate:modelValue": Q[5] || (Q[5] = (se) => unref(uploadConfig).show = se),
10402
10438
  "z-index": 1e3,
10403
10439
  draggable: "",
10404
10440
  "append-to-body": "",
@@ -10415,7 +10451,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e10cb502_lang = "", _withScop
10415
10451
  ]);
10416
10452
  };
10417
10453
  }
10418
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e10cb502"]]);
10454
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-cad781e7"]]);
10419
10455
  WindowGrid.name = "slw-window-grid";
10420
10456
  WindowGrid.install = (H) => {
10421
10457
  H.component(WindowGrid.name, WindowGrid);
@@ -62546,7 +62582,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
62546
62582
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
62547
62583
  setup(H, { emit: Q }) {
62548
62584
  const Z = H, X = defineAsyncComponent(
62549
- () => import("./index-0e392e99.js")
62585
+ () => import("./index-c55c0f79.js")
62550
62586
  );
62551
62587
  let G = useVModel(Z, "type", Q), K = useVModel(Z, "rootLayout", Q), ee = useVModel(Z, "viewData", Q), te = useVModel(Z, "rowData", Q), ne = ref(0), re = ref(null);
62552
62588
  re.value = createDesigner();
@@ -62631,7 +62667,7 @@ WindowDesigner.name = "slw-window-designer";
62631
62667
  WindowDesigner.install = (H) => {
62632
62668
  H.component(WindowDesigner.name, WindowDesigner);
62633
62669
  };
62634
- const windowIndex_vue_vue_type_style_index_0_scoped_995b2510_lang = "", _withScopeId = (H) => (pushScopeId("data-v-995b2510"), H = H(), popScopeId(), H), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
62670
+ const windowIndex_vue_vue_type_style_index_0_scoped_bcc7dd4b_lang = "", _withScopeId = (H) => (pushScopeId("data-v-bcc7dd4b"), H = H(), popScopeId(), H), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
62635
62671
  __name: "window-index",
62636
62672
  props: {
62637
62673
  windowId: {
@@ -63462,8 +63498,16 @@ const windowIndex_vue_vue_type_style_index_0_scoped_995b2510_lang = "", _withSco
63462
63498
  });
63463
63499
  }, closePreModal = () => {
63464
63500
  preViewxModal.value.close ? preViewxModal.value.close() : preViewShow.value = !1;
63465
- }, ctrlSSave = (H) => {
63466
- H.keyCode === 83 && (navigator.platform.match("Mac") ? H.metaKey : H.ctrlKey) && (H.preventDefault(), saveData(!0));
63501
+ };
63502
+ let ctrlTimeout = null, lastExecTime = 0;
63503
+ const ctrlSSave = (H) => {
63504
+ if (H.keyCode === 83 && (navigator.platform.match("Mac") ? H.metaKey : H.ctrlKey)) {
63505
+ H.preventDefault();
63506
+ const Q = Date.now();
63507
+ Q - lastExecTime >= 1e3 ? (ctrlTimeout && (clearTimeout(ctrlTimeout), ctrlTimeout = null), lastExecTime = Q, saveData(!0)) : ctrlTimeout || (ctrlTimeout = setTimeout(() => {
63508
+ ctrlTimeout = null;
63509
+ }, 1e3 - (Q - lastExecTime)));
63510
+ }
63467
63511
  }, xForm = ref(), saveData = async (H) => {
63468
63512
  saveDataBtnLoading.value || !xForm.value || (saveDataBtnLoading.value = !0, xForm.value.submitData(H), typeof H == "boolean" && !H && (saveDataBtnLoading.value = !1));
63469
63513
  }, saveLoadingChange = () => {
@@ -63846,7 +63890,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_995b2510_lang = "", _withSco
63846
63890
  ]);
63847
63891
  };
63848
63892
  }
63849
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-995b2510"]]);
63893
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-bcc7dd4b"]]);
63850
63894
  WindowIndex.name = "slw-window-index";
63851
63895
  WindowIndex.install = (H) => {
63852
63896
  H.component(WindowIndex.name, WindowIndex);
@@ -147558,7 +147602,7 @@ function reConsole() {
147558
147602
  }
147559
147603
  }
147560
147604
  console.info(
147561
- `%cSLW %cVer 0.9.77%c
147605
+ `%cSLW %cVer 0.9.80%c
147562
147606
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
147563
147607
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
147564
147608
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as m } from "./index-f32eea1d.js";
1
+ import { i as m } from "./index-f75bf5b9.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {