slw 1.0.0-beta.14.1 → 1.0.0-beta.14.3

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_81900fbc_lang = "", _withScopeId$9 = (Q) => (pushScopeId("data-v-81900fbc"), Q = Q(), popScopeId(), Q), _hoisted_1$l2 = {
8528
+ const windowGrid_vue_vue_type_style_index_0_scoped_8e3f4843_lang = "", _withScopeId$9 = (Q) => (pushScopeId("data-v-8e3f4843"), Q = Q(), popScopeId(), Q), _hoisted_1$l2 = {
8529
8529
  class: "slw-window-grid-container",
8530
8530
  style: { height: "100%" }
8531
8531
  }, _hoisted_2$kZ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hZ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$az = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4Z = [
@@ -8576,12 +8576,18 @@ const windowGrid_vue_vue_type_style_index_0_scoped_81900fbc_lang = "", _withScop
8576
8576
  let X = gridData.value.formConfig.items.filter((G) => G.folding).map((G) => G.field);
8577
8577
  if (X.length > 0) {
8578
8578
  let G = !1;
8579
- X.forEach((K) => {
8580
- if (queryFormData.value[K]) {
8579
+ for (let K of X)
8580
+ if (queryFormData.value[K] instanceof Array)
8581
+ if (queryFormData.value[K].length > 0) {
8582
+ G = !0;
8583
+ break;
8584
+ } else
8585
+ continue;
8586
+ else if (queryFormData.value[K]) {
8581
8587
  G = !0;
8582
- return;
8588
+ break;
8583
8589
  }
8584
- }), G && (Q += " form-folding");
8590
+ G && (Q += " form-folding");
8585
8591
  }
8586
8592
  }
8587
8593
  return Q;
@@ -9283,15 +9289,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_81900fbc_lang = "", _withScop
9283
9289
  getCurRegion().remove(Q);
9284
9290
  }, exportCurrentData = async () => {
9285
9291
  exportButton.value ? getCurRegion().exportData() : $message.error($T("您没有导出数据权限!"));
9286
- }, exportData = async () => {
9292
+ }, exportData = async (Q) => {
9287
9293
  if (exportButton.value) {
9288
- const Q = Object.assign(
9289
- {
9290
- _button_id: exportButton.value._button_id
9291
- },
9292
- gridData.value.params.queryFormData
9293
- );
9294
- gridData.value.params.parentRowId && (Q[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), await axios.export("/window/export?data=" + base64Encode(JSON.stringify(Q)), {}), exportButton.value.loading = !1;
9294
+ const H = Object.assign({ _button_id: exportButton.value._button_id }, gridData.value.params.queryFormData);
9295
+ gridData.value.params.parentRowId && (H[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), Q && (H._file_name = Q), await axios.export("/window/export?data=" + base64Encode(JSON.stringify(H)), {}), exportButton.value.loading = !1;
9295
9296
  } else
9296
9297
  $message.error($T("您没有导出数据权限!"));
9297
9298
  }, search = (Q) => {
@@ -10087,18 +10088,21 @@ const windowGrid_vue_vue_type_style_index_0_scoped_81900fbc_lang = "", _withScop
10087
10088
  } : void 0
10088
10089
  ]), 1032, ["iconComponent", "style", "onClick"]))), 128))
10089
10090
  ]),
10090
- top: withCtx(() => [
10091
- createElementVNode("div", {
10092
- class: "table_top_wrapper",
10093
- id: "table_top_" + unref(gridData).params.code
10094
- }, [
10095
- unref(gridData).params.slotsVuePath && unref(gridData).params.slotsVuePath.table_top ? (openBlock(), createBlock(resolveDynamicComponent(unref(tableTopComponent)), {
10096
- key: 0,
10097
- ref_key: "tableTop",
10098
- ref: tableTop
10099
- }, null, 512)) : createCommentVNode("", !0)
10100
- ], 8, _hoisted_7$14)
10101
- ]),
10091
+ top: withCtx(() => {
10092
+ var ue;
10093
+ return [
10094
+ createElementVNode("div", {
10095
+ class: "table_top_wrapper",
10096
+ id: "table_top_" + unref(gridData).params.code
10097
+ }, [
10098
+ (ue = unref(gridData).params.slotsVuePath) != null && ue.table_top ? (openBlock(), createBlock(resolveDynamicComponent(unref(tableTopComponent)), {
10099
+ key: 0,
10100
+ ref_key: "tableTop",
10101
+ ref: tableTop
10102
+ }, null, 512)) : createCommentVNode("", !0)
10103
+ ], 8, _hoisted_7$14)
10104
+ ];
10105
+ }),
10102
10106
  form: withCtx(() => [
10103
10107
  createElementVNode("div", _hoisted_8$H, [
10104
10108
  createVNode(te, {
@@ -10201,18 +10205,21 @@ const windowGrid_vue_vue_type_style_index_0_scoped_81900fbc_lang = "", _withScop
10201
10205
  _: 1
10202
10206
  }, 8, ["collapseNode"])) : createCommentVNode("", !0),
10203
10207
  createVNode(ee, { span: "24" }, {
10204
- default: withCtx(() => [
10205
- createElementVNode("div", {
10206
- class: "other_item",
10207
- id: "other_item_" + unref(gridData).params.code
10208
- }, [
10209
- unref(gridData).params.slotsVuePath && unref(gridData).params.slotsVuePath.other_item ? (openBlock(), createBlock(resolveDynamicComponent(unref(otherItemComponent)), {
10210
- key: 0,
10211
- ref_key: "otherItem",
10212
- ref: otherItem
10213
- }, null, 512)) : createCommentVNode("", !0)
10214
- ], 8, _hoisted_14$1)
10215
- ]),
10208
+ default: withCtx(() => {
10209
+ var ue;
10210
+ return [
10211
+ createElementVNode("div", {
10212
+ class: "other_item",
10213
+ id: "other_item_" + unref(gridData).params.code
10214
+ }, [
10215
+ (ue = unref(gridData).params.slotsVuePath) != null && ue.other_item ? (openBlock(), createBlock(resolveDynamicComponent(unref(otherItemComponent)), {
10216
+ key: 0,
10217
+ ref_key: "otherItem",
10218
+ ref: otherItem
10219
+ }, null, 512)) : createCommentVNode("", !0)
10220
+ ], 8, _hoisted_14$1)
10221
+ ];
10222
+ }),
10216
10223
  _: 1
10217
10224
  })
10218
10225
  ]),
@@ -10353,7 +10360,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_81900fbc_lang = "", _withScop
10353
10360
  ]);
10354
10361
  };
10355
10362
  }
10356
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-81900fbc"]]);
10363
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-8e3f4843"]]);
10357
10364
  WindowGrid.name = "slw-window-grid";
10358
10365
  WindowGrid.install = (Q) => {
10359
10366
  Q.component(WindowGrid.name, WindowGrid);
@@ -59401,7 +59408,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
59401
59408
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
59402
59409
  setup(Q, { emit: H }) {
59403
59410
  const X = Q, G = defineAsyncComponent(
59404
- () => import("./index-430f5e83.js")
59411
+ () => import("./index-b0b8a2b8.js")
59405
59412
  );
59406
59413
  let K = useVModel(X, "type", H), Z = useVModel(X, "rootLayout", H), ee = useVModel(X, "viewData", H), te = useVModel(X, "rowData", H), ne = ref(0), oe = ref(null);
59407
59414
  oe.value = createDesigner();
@@ -165901,7 +165908,7 @@ function reConsole() {
165901
165908
  }
165902
165909
  }
165903
165910
  console.info(
165904
- `%cSLW %cVer 1.0.0-beta.14.1%c
165911
+ `%cSLW %cVer 1.0.0-beta.14.3%c
165905
165912
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
165906
165913
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
165907
165914
  "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-cbbf79fd.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-5deb38fb.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-cbbf79fd.js";
1
+ import { i as m } from "./index-5deb38fb.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {