slw 0.9.50 → 0.9.52

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-0bb382de.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-c7986903.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
@@ -8525,7 +8525,7 @@ PictureUpload.name = "slw-picture-upload";
8525
8525
  PictureUpload.install = (Q) => {
8526
8526
  Q.component(PictureUpload.name, PictureUpload);
8527
8527
  };
8528
- const windowGrid_vue_vue_type_style_index_0_scoped_8c23864e_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-8c23864e"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = {
8528
+ const windowGrid_vue_vue_type_style_index_0_scoped_ba3572a6_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-ba3572a6"), Q = Q(), popScopeId(), Q), _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 = [
@@ -8765,7 +8765,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8c23864e_lang = "", _withScop
8765
8765
  me.width != de * 60 && de * 60 >= 60 && (fe = !0, me.width = de.toFixed(1) * 60);
8766
8766
  return;
8767
8767
  }
8768
- }), fe && getCurRegion().loadColumn(gridData.value.columns), gridData.value.params.rowIndex != null && (he = gridData.value.params.rowIndex), le.data.data.length > he ? se = le.data.data[he] : se = le.data.data[0];
8768
+ }), fe && getCurRegion().loadColumn(gridData.value.columns), gridData.value.params.rowIndex != null && (rowIndex.value = gridData.value.params.rowIndex), le.data.data.length > rowIndex.value ? se = le.data.data[rowIndex.value] : se = le.data.data[0];
8769
8769
  const pe = getCurRegion();
8770
8770
  if (pe) {
8771
8771
  const me = pe.getColumnById("_operation_");
@@ -10201,7 +10201,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8c23864e_lang = "", _withScop
10201
10201
  ]);
10202
10202
  };
10203
10203
  }
10204
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-8c23864e"]]);
10204
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ba3572a6"]]);
10205
10205
  WindowGrid.name = "slw-window-grid";
10206
10206
  WindowGrid.install = (Q) => {
10207
10207
  Q.component(WindowGrid.name, WindowGrid);
@@ -50499,7 +50499,7 @@ function useCommon() {
50499
50499
  changeSwitchValue
50500
50500
  };
50501
50501
  }
50502
- const index_vue_vue_type_style_index_0_scoped_de8f2c09_lang = "", _sfc_main$7 = {
50502
+ const index_vue_vue_type_style_index_0_scoped_fe9489ce_lang = "", _sfc_main$7 = {
50503
50503
  name: "ToolbarPanel",
50504
50504
  mixins: [],
50505
50505
  inject: ["$getInitData"],
@@ -50578,8 +50578,16 @@ const index_vue_vue_type_style_index_0_scoped_de8f2c09_lang = "", _sfc_main$7 =
50578
50578
  name: this.designer.windowFormData.NAME,
50579
50579
  layouts: Q,
50580
50580
  regions: H
50581
- };
50582
- console.log(G);
50581
+ }, X = await this.axios.postJson(
50582
+ "/windowDesign/save",
50583
+ G
50584
+ );
50585
+ if (X != null && X.data.result && X.data.status == 200) {
50586
+ this.$message.success("保存数据成功!");
50587
+ let Z = await this.$getInitData(G.id);
50588
+ this.designer.reloadInitDesigner(Z);
50589
+ } else
50590
+ this.$message.error("保存数据失败!");
50583
50591
  }).catch((Q) => {
50584
50592
  Q !== "cancel" && console.error(Q);
50585
50593
  });
@@ -50720,7 +50728,7 @@ const index_vue_vue_type_style_index_0_scoped_de8f2c09_lang = "", _sfc_main$7 =
50720
50728
  return Q;
50721
50729
  }
50722
50730
  }
50723
- }, _withScopeId$5 = (Q) => (pushScopeId("data-v-de8f2c09"), Q = Q(), popScopeId(), Q), _hoisted_1$kX = { class: "toolbar-container" }, _hoisted_2$kV = { class: "left-toolbar" }, _hoisted_3$hW = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-weibiaoti545" }, null, -1)), _hoisted_4$aw = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-huifu" }, null, -1)), _hoisted_5$4W = { class: "right-toolbar" }, _hoisted_6$1$ = { class: "right-toolbar-con" }, _hoisted_7$12 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-delete" }, null, -1)), _hoisted_8$F = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-view" }, null, -1)), _hoisted_9$m = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-save" }, null, -1));
50731
+ }, _withScopeId$5 = (Q) => (pushScopeId("data-v-fe9489ce"), Q = Q(), popScopeId(), Q), _hoisted_1$kX = { class: "toolbar-container" }, _hoisted_2$kV = { class: "left-toolbar" }, _hoisted_3$hW = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-weibiaoti545" }, null, -1)), _hoisted_4$aw = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-huifu" }, null, -1)), _hoisted_5$4W = { class: "right-toolbar" }, _hoisted_6$1$ = { class: "right-toolbar-con" }, _hoisted_7$12 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-delete" }, null, -1)), _hoisted_8$F = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-view" }, null, -1)), _hoisted_9$m = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-save" }, null, -1));
50724
50732
  function _sfc_render$3(Q, H, G, X, Z, K) {
50725
50733
  const ee = resolveComponent("el-button"), te = resolveComponent("el-tooltip"), ne = resolveComponent("PreviewModal");
50726
50734
  return openBlock(), createElementBlock(Fragment, null, [
@@ -50812,7 +50820,7 @@ function _sfc_render$3(Q, H, G, X, Z, K) {
50812
50820
  }, null, 8, ["preViewModal", "designer"])
50813
50821
  ], 64);
50814
50822
  }
50815
- const ToolbarPanel = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-de8f2c09"]]), containers$1 = [
50823
+ const ToolbarPanel = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-fe9489ce"]]), containers$1 = [
50816
50824
  {
50817
50825
  name: "垂直布局",
50818
50826
  layout: "V",
@@ -59281,7 +59289,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
59281
59289
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
59282
59290
  setup(Q, { emit: H }) {
59283
59291
  const G = Q, X = defineAsyncComponent(
59284
- () => import("./index-3e0354ab.js")
59292
+ () => import("./index-1c61a74f.js")
59285
59293
  );
59286
59294
  let Z = useVModel(G, "type", H), K = useVModel(G, "rootLayout", H), ee = useVModel(G, "viewData", H), te = useVModel(G, "rowData", H), ne = ref(0), re = ref(null);
59287
59295
  re.value = createDesigner();
@@ -144279,7 +144287,7 @@ function reConsole() {
144279
144287
  }
144280
144288
  }
144281
144289
  console.info(
144282
- `%cSLW %cVer 0.9.50%c
144290
+ `%cSLW %cVer 0.9.52%c
144283
144291
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
144284
144292
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
144285
144293
  "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-0bb382de.js";
1
+ import { i as m } from "./index-c7986903.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {