slw 0.9.69 → 0.9.70

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.
@@ -8525,7 +8525,7 @@ 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_bd149a4a_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-bd149a4a"), H = H(), popScopeId(), H), _hoisted_1$l1 = {
8528
+ const windowGrid_vue_vue_type_style_index_0_scoped_3e4e596d_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-3e4e596d"), H = H(), popScopeId(), H), _hoisted_1$l1 = {
8529
8529
  class: "slw-window-grid-container",
8530
8530
  style: { height: "100%" }
8531
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 = [
@@ -8596,11 +8596,30 @@ const windowGrid_vue_vue_type_style_index_0_scoped_bd149a4a_lang = "", _withScop
8596
8596
  if ((H == null ? void 0 : H.length) > 0) {
8597
8597
  const Q = gridData.value.rowId;
8598
8598
  if (removeCheckedRow.value) {
8599
- let X = H.findIndex((G) => G[Q] == removeCheckedRow.value[Q]);
8600
- X >= 0 && H.splice(X, 1);
8599
+ let G = H.findIndex(
8600
+ (K) => K[Q] == removeCheckedRow.value[Q]
8601
+ );
8602
+ G >= 0 && H.splice(G, 1);
8601
8603
  }
8602
- let Z = gridData.value.columns.filter((X) => X.field);
8603
- return Z.unshift({ title: "操作", width: 100, align: "center", slots: { default: "operate" } }), checkedGridOptions.value = {
8604
+ let Z = [
8605
+ {
8606
+ title: "操作",
8607
+ width: 100,
8608
+ align: "center",
8609
+ slots: { default: "operate" }
8610
+ }
8611
+ ];
8612
+ gridData.value.columns.forEach((G) => {
8613
+ if (G.field) {
8614
+ let K = XEUtils$1.clone(toRaw(G), !0);
8615
+ checkedGridShowCols.value && (checkedGridShowCols.value.includes(K.field.toLowerCase()) ? K.visible = !0 : K.visible = !1), Z.push(K);
8616
+ }
8617
+ });
8618
+ let X = XEUtils$1.clone(H, !0);
8619
+ return X.forEach((G) => {
8620
+ for (let K in G)
8621
+ G["_" + K + "_NAME"] && (G[K] = G["_" + K + "_NAME"]);
8622
+ }), checkedGridOptions.value = {
8604
8623
  border: !0,
8605
8624
  showOverflow: "title",
8606
8625
  showHeaderOverflow: !0,
@@ -8619,7 +8638,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_bd149a4a_lang = "", _withScop
8619
8638
  ],
8620
8639
  custom: !0
8621
8640
  },
8622
- data: H
8641
+ data: X
8623
8642
  }, !0;
8624
8643
  }
8625
8644
  return !1;
@@ -8627,6 +8646,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_bd149a4a_lang = "", _withScop
8627
8646
  let removeCheckedRow = ref(null);
8628
8647
  const removeRowEvent = (H) => {
8629
8648
  removeCheckedRow.value = H, getCurRegion().setCheckboxRow(H, !1);
8649
+ };
8650
+ let checkedGridShowCols = ref(null);
8651
+ const setCheckedGridShowCols = (H) => {
8652
+ checkedGridShowCols.value = H;
8630
8653
  }, showButtons = (H, Q) => gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" ? gridData.value.toolbarConfig.buttons.filter(
8631
8654
  (Z) => Z.showInGrid && Z.btnShowInGrid[Q._INDEX]
8632
8655
  ) : gridData.value.toolbarConfig.buttons.filter(
@@ -10304,7 +10327,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_bd149a4a_lang = "", _withScop
10304
10327
  ]);
10305
10328
  };
10306
10329
  }
10307
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-bd149a4a"]]);
10330
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-3e4e596d"]]);
10308
10331
  WindowGrid.name = "slw-window-grid";
10309
10332
  WindowGrid.install = (H) => {
10310
10333
  H.component(WindowGrid.name, WindowGrid);
@@ -62414,7 +62437,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
62414
62437
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
62415
62438
  setup(H, { emit: Q }) {
62416
62439
  const Z = H, X = defineAsyncComponent(
62417
- () => import("./index-c0486e96.js")
62440
+ () => import("./index-ff3f7764.js")
62418
62441
  );
62419
62442
  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);
62420
62443
  re.value = createDesigner();
@@ -147423,7 +147446,7 @@ function reConsole() {
147423
147446
  }
147424
147447
  }
147425
147448
  console.info(
147426
- `%cSLW %cVer 0.9.69%c
147449
+ `%cSLW %cVer 0.9.70%c
147427
147450
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
147428
147451
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
147429
147452
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
@@ -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-23d72455.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-4fbe1fbb.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as m } from "./index-23d72455.js";
1
+ import { i as m } from "./index-4fbe1fbb.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {