slw 0.9.49 → 0.9.50

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 = (Q) => {
8526
8526
  Q.component(PictureUpload.name, PictureUpload);
8527
8527
  };
8528
- const windowGrid_vue_vue_type_style_index_0_scoped_e21742bd_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-e21742bd"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = {
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 = {
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 = [
@@ -8565,6 +8565,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e21742bd_lang = "", _withScop
8565
8565
  const preTag = computed(() => gridData.value.params.preTag || ""), computeExcelUrl = computed(() => {
8566
8566
  let Q = getCurRegion();
8567
8567
  return Q.params.newImportUrl ? Q.params.newImportUrl : importUrl.value;
8568
+ }), computeGridClass = computed(() => {
8569
+ let Q = "";
8570
+ return gridData.value.addListener && (Q = "cell--area"), (gridData.value.type == "TREE" || gridData.value.type == "TREE_STRUCTURE") && (Q += " vxe-grid-tree"), Q;
8568
8571
  }), showButtons = (Q, H) => gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" ? gridData.value.toolbarConfig.buttons.filter(
8569
8572
  (G) => G.showInGrid && G.btnShowInGrid[H._INDEX]
8570
8573
  ) : gridData.value.toolbarConfig.buttons.filter(
@@ -9931,12 +9934,25 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e21742bd_lang = "", _withScop
9931
9934
  });
9932
9935
  }, headerCustomClick = ({ type: Q, $event: H }) => {
9933
9936
  if (Q == "confirm" || Q == "reset") {
9934
- let G = getCurRegion().getColumns(), X = G.filter((K) => K.field).map((K) => K.field), Z = {
9937
+ let X = getCurRegion().getColumns().filter((K) => K.field).map((K) => K.field), Z = {
9935
9938
  _region_id: gridData.value.params._region_id,
9936
- cols: G
9939
+ cols: X
9937
9940
  };
9938
- axios.post("", Z).then((K) => {
9939
- K.data.result || console.error(err);
9941
+ axios.request({
9942
+ headers: {
9943
+ "Content-Type": "application/json;charset=utf-8",
9944
+ ...httpHeaders()
9945
+ },
9946
+ method: "post",
9947
+ url: "/window/selfGridColumn",
9948
+ type: "json",
9949
+ data: Z
9950
+ }).then((K) => {
9951
+ K.data.result || $vxeMessage({
9952
+ content: K.data.msg,
9953
+ status: "error",
9954
+ zIndex: 3e3
9955
+ });
9940
9956
  }).catch((K) => {
9941
9957
  console.error(K);
9942
9958
  });
@@ -10027,7 +10043,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e21742bd_lang = "", _withScop
10027
10043
  createVNode(ee, mergeProps$1({
10028
10044
  ref_key: "curRegion",
10029
10045
  ref: curRegion,
10030
- class: { "cell--area": unref(gridData).addListener },
10046
+ class: computeGridClass.value,
10031
10047
  "keep-source": ""
10032
10048
  }, unref(gridData), {
10033
10049
  onEditActived: editActived,
@@ -10185,7 +10201,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e21742bd_lang = "", _withScop
10185
10201
  ]);
10186
10202
  };
10187
10203
  }
10188
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e21742bd"]]);
10204
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-8c23864e"]]);
10189
10205
  WindowGrid.name = "slw-window-grid";
10190
10206
  WindowGrid.install = (Q) => {
10191
10207
  Q.component(WindowGrid.name, WindowGrid);
@@ -42499,7 +42515,7 @@ var js = js$1.exports;
42499
42515
  })(Q);
42500
42516
  })(js$1);
42501
42517
  var jsExports = js$1.exports;
42502
- const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_d4d8ec11_lang = "", _withScopeId$7 = (Q) => (pushScopeId("data-v-d4d8ec11"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
42518
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_5c78fbcc_lang = "", _withScopeId$7 = (Q) => (pushScopeId("data-v-5c78fbcc"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
42503
42519
  key: 0,
42504
42520
  class: "form-header-box"
42505
42521
  }, _hoisted_3$hX = {
@@ -43497,7 +43513,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43497
43513
  ]);
43498
43514
  };
43499
43515
  }
43500
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-d4d8ec11"]]);
43516
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-5c78fbcc"]]);
43501
43517
  WindowForm.name = "slw-window-form";
43502
43518
  WindowForm.install = (Q) => {
43503
43519
  Q.component(WindowForm.name, WindowForm);
@@ -59265,7 +59281,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
59265
59281
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
59266
59282
  setup(Q, { emit: H }) {
59267
59283
  const G = Q, X = defineAsyncComponent(
59268
- () => import("./index-c6ea4a24.js")
59284
+ () => import("./index-3e0354ab.js")
59269
59285
  );
59270
59286
  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);
59271
59287
  re.value = createDesigner();
@@ -144263,7 +144279,7 @@ function reConsole() {
144263
144279
  }
144264
144280
  }
144265
144281
  console.info(
144266
- `%cSLW %cVer 0.9.49%c
144282
+ `%cSLW %cVer 0.9.50%c
144267
144283
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
144268
144284
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
144269
144285
  "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-d51bbd94.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-0bb382de.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-d51bbd94.js";
1
+ import { i as m } from "./index-0bb382de.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {