slw 0.9.75 → 0.9.77

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-1c295a78.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-f32eea1d.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
@@ -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_685b2c84_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-685b2c84"), H = H(), popScopeId(), H), _hoisted_1$l1 = {
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
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 = [
8532
8532
  _hoisted_2$kY,
8533
8533
  _hoisted_3$hY,
8534
8534
  _hoisted_4$ay
8535
- ], _hoisted_6$21 = ["onClick"], _hoisted_7$14 = ["id"], _hoisted_8$G = {
8535
+ ], _hoisted_6$21 = ["onClick"], _hoisted_7$14 = ["id"], _hoisted_8$G = ["id"], _hoisted_9$n = {
8536
8536
  key: 0,
8537
8537
  style: { verticalAlign: "middle" }
8538
- }, _hoisted_9$n = ["id"], _hoisted_10$q = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("i", {
8538
+ }, _hoisted_10$q = ["id"], _hoisted_11$g = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("i", {
8539
8539
  class: "iconfont icon-carryout",
8540
8540
  style: { cursor: "pointer", padding: "0" }
8541
- }, null, -1)), _hoisted_11$g = { style: { "font-size": "18px", "margin-right": "8px" } }, _hoisted_12$8 = { style: { padding: "20px 0" } }, _sfc_main$d = {
8541
+ }, null, -1)), _hoisted_12$8 = { style: { "font-size": "18px", "margin-right": "8px" } }, _hoisted_13$4 = { style: { padding: "20px 0" } }, _sfc_main$d = {
8542
8542
  __name: "window-grid",
8543
8543
  props: {
8544
8544
  gridData: {
@@ -8565,8 +8565,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
8565
8565
  { code: "contract", name: $T("收缩节点"), disabled: !1 }
8566
8566
  ]
8567
8567
  ]), editBtn = ref(null), exportButton = ref(null), uploadData = ref({}), queryTimeout = ref(null), formSelectMap = ref({}), isEditGridInitData = ref(!1);
8568
- const otherItem = ref(), tableTop = ref();
8569
- let otherItemComponent = shallowRef(), tableTopComponent = shallowRef();
8568
+ const otherItem = ref(), tableTop = ref(), queryTop = ref();
8569
+ let otherItemComponent = shallowRef(), tableTopComponent = shallowRef(), queryTopComponent = shallowRef();
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;
@@ -10066,7 +10066,20 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
10066
10066
  }, allCheckboxFunList = [], addAllCheckboxFun = (H) => {
10067
10067
  allCheckboxFunList.push(H);
10068
10068
  }, setGridSlotsVuePath = async (H, Q) => {
10069
- gridData.value.params.slotsVuePath || (gridData.value.params.slotsVuePath = {}), Q == "other_item" ? otherItemComponent.value = (await $components[`${$componentsPath}/${H}`]()).default : Q == "table_top" && (tableTopComponent.value = (await $components[`${$componentsPath}/${H}`]()).default), (otherItemComponent.value || tableTopComponent.value) && (gridData.value.params.slotsVuePath[Q] = H, await nextTick(), regionMap.value[Q + "-" + gridData.value.params.code + "-" + gridData.value.params.preTag] = Q == "other_item" ? otherItem.value : tableTop.value, regionMap.value[Q + "-" + gridData.value.params.code] = Q == "other_item" ? otherItem.value : tableTop.value, getCurRegion().recalculate(!0));
10069
+ if (gridData.value.params.slotsVuePath || (gridData.value.params.slotsVuePath = {}), Q == "other_item" ? otherItemComponent.value = (await $components[`${$componentsPath}/${H}`]()).default : Q == "table_top" ? tableTopComponent.value = (await $components[`${$componentsPath}/${H}`]()).default : Q == "query_top" && (queryTopComponent.value = (await $components[`${$componentsPath}/${H}`]()).default), otherItemComponent.value || tableTopComponent.value || queryTopComponent.value) {
10070
+ switch (gridData.value.params.slotsVuePath[Q] = H, await nextTick(), Q) {
10071
+ case "other_item":
10072
+ regionMap.value[Q + "-" + gridData.value.params.code + "-" + gridData.value.params.preTag] = otherItem.value, regionMap.value[Q + "-" + gridData.value.params.code] = otherItem.value;
10073
+ break;
10074
+ case "table_top":
10075
+ regionMap.value[Q + "-" + gridData.value.params.code + "-" + gridData.value.params.preTag] = tableTop.value, regionMap.value[Q + "-" + gridData.value.params.code] = tableTop.value;
10076
+ break;
10077
+ case "query_top":
10078
+ regionMap.value[Q + "-" + gridData.value.params.code + "-" + gridData.value.params.preTag] = queryTop.value, regionMap.value[Q + "-" + gridData.value.params.code] = queryTop.value;
10079
+ break;
10080
+ }
10081
+ getCurRegion().recalculate(!0);
10082
+ }
10070
10083
  };
10071
10084
  return onMounted(async () => {
10072
10085
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
@@ -10183,11 +10196,26 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
10183
10196
  _: 2
10184
10197
  }, 1032, ["modelValue", "onUpdate:modelValue"])
10185
10198
  ]),
10186
- other_item: withCtx(({ data: se, property: ce }) => {
10199
+ query_top: withCtx(({ data: se, property: ce }) => {
10200
+ var de;
10201
+ return [
10202
+ createElementVNode("div", {
10203
+ class: "query_top",
10204
+ id: "query_top_" + unref(gridData).params.code
10205
+ }, [
10206
+ (de = unref(gridData).params.slotsVuePath) != null && de.query_top ? (openBlock(), createBlock(resolveDynamicComponent(unref(queryTopComponent)), {
10207
+ key: 0,
10208
+ ref_key: "queryTop",
10209
+ ref: queryTop
10210
+ }, null, 512)) : createCommentVNode("", !0)
10211
+ ], 8, _hoisted_7$14)
10212
+ ];
10213
+ }),
10214
+ query_bottom: withCtx(({ data: se, property: ce }) => {
10187
10215
  var de;
10188
10216
  return [
10189
10217
  createElementVNode("div", {
10190
- class: "other_item",
10218
+ class: "query_bottom",
10191
10219
  id: "other_item_" + unref(gridData).params.code
10192
10220
  }, [
10193
10221
  (de = unref(gridData).params.slotsVuePath) != null && de.other_item ? (openBlock(), createBlock(resolveDynamicComponent(unref(otherItemComponent)), {
@@ -10195,7 +10223,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
10195
10223
  ref_key: "otherItem",
10196
10224
  ref: otherItem
10197
10225
  }, null, 512)) : createCommentVNode("", !0)
10198
- ], 8, _hoisted_7$14)
10226
+ ], 8, _hoisted_8$G)
10199
10227
  ];
10200
10228
  }),
10201
10229
  operation: withCtx(({ row: se, rowIndex: ce }) => [
@@ -10210,7 +10238,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
10210
10238
  onClick: (he) => toolBarButtonClick(de, se, ce)
10211
10239
  }, createSlots({
10212
10240
  default: withCtx(() => [
10213
- !de.iconComponent || typeof de.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_8$G, toDisplayString(unref($T)(de.name)), 1)) : createCommentVNode("", !0)
10241
+ !de.iconComponent || typeof de.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_9$n, toDisplayString(unref($T)(de.name)), 1)) : createCommentVNode("", !0)
10214
10242
  ]),
10215
10243
  _: 2
10216
10244
  }, [
@@ -10251,7 +10279,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
10251
10279
  ref_key: "tableTop",
10252
10280
  ref: tableTop
10253
10281
  }, null, 512)) : createCommentVNode("", !0)
10254
- ], 8, _hoisted_9$n)
10282
+ ], 8, _hoisted_10$q)
10255
10283
  ];
10256
10284
  }),
10257
10285
  checkbox_tool: withCtx(({}) => [
@@ -10259,6 +10287,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
10259
10287
  key: 0,
10260
10288
  placement: "right",
10261
10289
  width: 500,
10290
+ "popper-style": "max-height: 90vh;overflow: auto;",
10262
10291
  trigger: "click"
10263
10292
  }, {
10264
10293
  reference: withCtx(() => [
@@ -10268,7 +10297,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
10268
10297
  title: "已勾选数据"
10269
10298
  }, {
10270
10299
  default: withCtx(() => [
10271
- _hoisted_10$q
10300
+ _hoisted_11$g
10272
10301
  ]),
10273
10302
  _: 1
10274
10303
  })
@@ -10276,7 +10305,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
10276
10305
  default: withCtx(() => [
10277
10306
  createVNode(te, normalizeProps(guardReactiveProps(unref(checkedGridOptions))), {
10278
10307
  toolbar_buttons: withCtx(() => [
10279
- createElementVNode("b", _hoisted_11$g, toDisplayString(unref($T)("已勾选数据")), 1),
10308
+ createElementVNode("b", _hoisted_12$8, toDisplayString(unref($T)("已勾选数据")), 1),
10280
10309
  createVNode(ee, {
10281
10310
  status: "danger",
10282
10311
  size: "mini",
@@ -10355,7 +10384,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
10355
10384
  "on-success": importSuccess
10356
10385
  }, {
10357
10386
  default: withCtx(() => [
10358
- createElementVNode("div", _hoisted_12$8, [
10387
+ createElementVNode("div", _hoisted_13$4, [
10359
10388
  createVNode(re, { width: 50 }),
10360
10389
  createElementVNode("p", null, toDisplayString(unref($T)("点击或拖文件到此处上传")), 1)
10361
10390
  ])
@@ -10386,7 +10415,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_685b2c84_lang = "", _withScop
10386
10415
  ]);
10387
10416
  };
10388
10417
  }
10389
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-685b2c84"]]);
10418
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e10cb502"]]);
10390
10419
  WindowGrid.name = "slw-window-grid";
10391
10420
  WindowGrid.install = (H) => {
10392
10421
  H.component(WindowGrid.name, WindowGrid);
@@ -62517,7 +62546,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
62517
62546
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
62518
62547
  setup(H, { emit: Q }) {
62519
62548
  const Z = H, X = defineAsyncComponent(
62520
- () => import("./index-41d0603f.js")
62549
+ () => import("./index-0e392e99.js")
62521
62550
  );
62522
62551
  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);
62523
62552
  re.value = createDesigner();
@@ -62602,7 +62631,7 @@ WindowDesigner.name = "slw-window-designer";
62602
62631
  WindowDesigner.install = (H) => {
62603
62632
  H.component(WindowDesigner.name, WindowDesigner);
62604
62633
  };
62605
- const windowIndex_vue_vue_type_style_index_0_scoped_f5b3abee_lang = "", _withScopeId = (H) => (pushScopeId("data-v-f5b3abee"), H = H(), popScopeId(), H), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
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 = {
62606
62635
  __name: "window-index",
62607
62636
  props: {
62608
62637
  windowId: {
@@ -63103,9 +63132,12 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f5b3abee_lang = "", _withSco
63103
63132
  visible: !ae
63104
63133
  });
63105
63134
  }
63106
- X.formConfig.items.push({
63135
+ X.formConfig.items.unshift({
63136
+ span: 24,
63137
+ slots: { default: "query_top" }
63138
+ }), X.formConfig.items.push({
63107
63139
  span: 24,
63108
- slots: { default: "other_item" }
63140
+ slots: { default: "query_bottom" }
63109
63141
  });
63110
63142
  let ee = G.buttons, te = !1, ne = !1;
63111
63143
  G.showTitle && X.toolbarConfig.buttons.push({
@@ -63814,7 +63846,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f5b3abee_lang = "", _withSco
63814
63846
  ]);
63815
63847
  };
63816
63848
  }
63817
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f5b3abee"]]);
63849
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-995b2510"]]);
63818
63850
  WindowIndex.name = "slw-window-index";
63819
63851
  WindowIndex.install = (H) => {
63820
63852
  H.component(WindowIndex.name, WindowIndex);
@@ -147526,7 +147558,7 @@ function reConsole() {
147526
147558
  }
147527
147559
  }
147528
147560
  console.info(
147529
- `%cSLW %cVer 0.9.75%c
147561
+ `%cSLW %cVer 0.9.77%c
147530
147562
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
147531
147563
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
147532
147564
  "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-1c295a78.js";
1
+ import { i as m } from "./index-f32eea1d.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {