slw 0.9.52 → 0.9.54

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,17 +8525,17 @@ 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_ba3572a6_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-ba3572a6"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = {
8528
+ const windowGrid_vue_vue_type_style_index_0_scoped_edfa3df5_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-edfa3df5"), 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 = [
8532
8532
  _hoisted_2$kY,
8533
8533
  _hoisted_3$hY,
8534
8534
  _hoisted_4$ay
8535
- ], _hoisted_6$21 = ["onClick"], _hoisted_7$14 = {
8535
+ ], _hoisted_6$21 = ["onClick"], _hoisted_7$14 = ["id"], _hoisted_8$G = {
8536
8536
  key: 0,
8537
8537
  style: { verticalAlign: "middle" }
8538
- }, _hoisted_8$H = { style: { padding: "20px 0" } }, _sfc_main$d = {
8538
+ }, _hoisted_9$n = { style: { padding: "20px 0" } }, _sfc_main$d = {
8539
8539
  __name: "window-grid",
8540
8540
  props: {
8541
8541
  gridData: {
@@ -10072,6 +10072,12 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ba3572a6_lang = "", _withScop
10072
10072
  _: 2
10073
10073
  }, 1032, ["modelValue", "onUpdate:modelValue"])
10074
10074
  ]),
10075
+ other_item: withCtx(({ data: ae, property: le }) => [
10076
+ createElementVNode("div", {
10077
+ class: "other_item",
10078
+ id: "other_item_" + unref(gridData).params.code
10079
+ }, null, 8, _hoisted_7$14)
10080
+ ]),
10075
10081
  operation: withCtx(({ row: ae, rowIndex: le }) => [
10076
10082
  (openBlock(!0), createElementBlock(Fragment, null, renderList(showButtons(le, ae), (se) => (openBlock(), createBlock(K, {
10077
10083
  key: se._button_id,
@@ -10084,7 +10090,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ba3572a6_lang = "", _withScop
10084
10090
  onClick: (ce) => toolBarButtonClick(se, ae, le)
10085
10091
  }, createSlots({
10086
10092
  default: withCtx(() => [
10087
- !se.iconComponent || typeof se.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_7$14, toDisplayString(unref($T)(se.name)), 1)) : createCommentVNode("", !0)
10093
+ !se.iconComponent || typeof se.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_8$G, toDisplayString(unref($T)(se.name)), 1)) : createCommentVNode("", !0)
10088
10094
  ]),
10089
10095
  _: 2
10090
10096
  }, [
@@ -10170,7 +10176,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ba3572a6_lang = "", _withScop
10170
10176
  "on-success": importSuccess
10171
10177
  }, {
10172
10178
  default: withCtx(() => [
10173
- createElementVNode("div", _hoisted_8$H, [
10179
+ createElementVNode("div", _hoisted_9$n, [
10174
10180
  createVNode(te, { width: 50 }),
10175
10181
  createElementVNode("p", null, toDisplayString(unref($T)("点击或拖文件到此处上传")), 1)
10176
10182
  ])
@@ -10201,7 +10207,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ba3572a6_lang = "", _withScop
10201
10207
  ]);
10202
10208
  };
10203
10209
  }
10204
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ba3572a6"]]);
10210
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-edfa3df5"]]);
10205
10211
  WindowGrid.name = "slw-window-grid";
10206
10212
  WindowGrid.install = (Q) => {
10207
10213
  Q.component(WindowGrid.name, WindowGrid);
@@ -42515,13 +42521,10 @@ var js = js$1.exports;
42515
42521
  })(Q);
42516
42522
  })(js$1);
42517
42523
  var jsExports = js$1.exports;
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 = {
42519
- key: 0,
42520
- class: "form-header-box"
42521
- }, _hoisted_3$hX = {
42524
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_9295608a_lang = "", _withScopeId$7 = (Q) => (pushScopeId("data-v-9295608a"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
42522
42525
  key: 0,
42523
42526
  class: "form-title"
42524
- }, _hoisted_4$ax = ["onClick"], _hoisted_5$4X = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _hoisted_8$G = ["onClick"], _sfc_main$c = {
42527
+ }, _hoisted_3$hX = ["onClick"], _hoisted_4$ax = ["onClick"], _hoisted_5$4X = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _sfc_main$c = {
42525
42528
  __name: "window-form",
42526
42529
  props: {
42527
42530
  formConfig: {
@@ -42664,7 +42667,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
42664
42667
  H = "justify-content: flex-start;";
42665
42668
  break;
42666
42669
  case "TOP_CENTER":
42667
- H = "justify-content: center;";
42670
+ H = "justify-content: center;", computeOnlyShowBtn.value && (H = "justify-content: center;height: 100%;align-items: center;");
42668
42671
  break;
42669
42672
  case "TOP_RIGHT":
42670
42673
  H = "justify-content: flex-end;";
@@ -42683,6 +42686,9 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
42683
42686
  break;
42684
42687
  }
42685
42688
  return H;
42689
+ }), computeOnlyShowBtn = computed(() => {
42690
+ let Q = !1;
42691
+ return formConfig.value.columns.filter((G) => G.displayForm).length == 0 && (Q = !0), Q;
42686
42692
  });
42687
42693
  onMounted(async () => {
42688
42694
  var H, G, X;
@@ -43269,8 +43275,12 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43269
43275
  return __expose({ submitData, validateDataChg, getValue, getRegion, getData }), (Q, H) => {
43270
43276
  const G = resolveComponent("el-icon"), X = resolveComponent("el-button"), Z = resolveComponent("el-input"), K = resolveComponent("vxe-form-item"), ee = resolveComponent("vxe-form"), te = resolveComponent("el-dialog");
43271
43277
  return openBlock(), createElementBlock("div", _hoisted_1$l0, [
43272
- unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", _hoisted_2$kX, [
43273
- unref(formConfig).params.showTitle ? (openBlock(), createElementBlock("span", _hoisted_3$hX, toDisplayString(unref($T)(unref(formConfig).params.windowTitle)), 1)) : createCommentVNode("", !0),
43278
+ unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", {
43279
+ key: 0,
43280
+ class: "form-header-box",
43281
+ style: normalizeStyle(computeOnlyShowBtn.value ? "height: 100%" : "")
43282
+ }, [
43283
+ unref(formConfig).params.showTitle ? (openBlock(), createElementBlock("span", _hoisted_2$kX, toDisplayString(unref($T)(unref(formConfig).params.windowTitle)), 1)) : createCommentVNode("", !0),
43274
43284
  buttons.value.length > 0 && unref(formConfig).params.buttonPosition.includes("TOP") ? (openBlock(), createElementBlock("div", {
43275
43285
  key: 1,
43276
43286
  class: "form-buttons",
@@ -43306,7 +43316,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43306
43316
  } : void 0
43307
43317
  ]), 1032, ["style", "loading", "onClick"]))), 128))
43308
43318
  ], 4)) : createCommentVNode("", !0)
43309
- ])) : createCommentVNode("", !0),
43319
+ ], 4)) : createCommentVNode("", !0),
43310
43320
  createVNode(ee, {
43311
43321
  ref_key: "form",
43312
43322
  ref: form,
@@ -43314,7 +43324,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43314
43324
  rules: editRules.value,
43315
43325
  loading: unref(formLoading),
43316
43326
  "title-align": "right",
43317
- "title-width": "120",
43327
+ "title-width": "115",
43318
43328
  class: normalizeClass({ "single-row": unref(formConfig).params.singleRow })
43319
43329
  }, {
43320
43330
  default: withCtx(() => [
@@ -43357,28 +43367,28 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43357
43367
  title: "美化",
43358
43368
  class: "iconfont icon-magic-stick",
43359
43369
  onClick: (re) => onEditorBtnClick(ne, "beautify")
43360
- }, null, 8, _hoisted_4$ax)) : createCommentVNode("", !0),
43370
+ }, null, 8, _hoisted_3$hX)) : createCommentVNode("", !0),
43361
43371
  createElementVNode("i", {
43362
43372
  title: "全选",
43363
43373
  class: "iconfont icon-check-square",
43364
43374
  onClick: (re) => onEditorBtnClick(ne, "checkAll")
43365
- }, null, 8, _hoisted_5$4X),
43375
+ }, null, 8, _hoisted_4$ax),
43366
43376
  createElementVNode("i", {
43367
43377
  title: "复制",
43368
43378
  class: "iconfont icon-document-copy",
43369
43379
  onClick: (re) => onEditorBtnClick(ne, "copy")
43370
- }, null, 8, _hoisted_6$20),
43380
+ }, null, 8, _hoisted_5$4X),
43371
43381
  createElementVNode("i", {
43372
43382
  title: "清空",
43373
43383
  class: "iconfont icon-clear",
43374
43384
  onClick: (re) => onEditorBtnClick(ne, "clear")
43375
- }, null, 8, _hoisted_7$13),
43385
+ }, null, 8, _hoisted_6$20),
43376
43386
  ne.language == "javascript" ? (openBlock(), createElementBlock("i", {
43377
43387
  key: 1,
43378
43388
  title: "组合式API转换",
43379
43389
  class: "iconfont icon-swap",
43380
43390
  onClick: (re) => onEditorBtnClick(ne, "swap")
43381
- }, null, 8, _hoisted_8$G)) : createCommentVNode("", !0)
43391
+ }, null, 8, _hoisted_7$13)) : createCommentVNode("", !0)
43382
43392
  ], 4)
43383
43393
  ]),
43384
43394
  key: "0"
@@ -43513,7 +43523,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43513
43523
  ]);
43514
43524
  };
43515
43525
  }
43516
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-5c78fbcc"]]);
43526
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-9295608a"]]);
43517
43527
  WindowForm.name = "slw-window-form";
43518
43528
  WindowForm.install = (Q) => {
43519
43529
  Q.component(WindowForm.name, WindowForm);
@@ -43854,7 +43864,7 @@ function P$2(Q, H, G, X, Z, K) {
43854
43864
  renderSlot(Q.$slots, "default")
43855
43865
  ], 4);
43856
43866
  }
43857
- const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", windowLayout_vue_vue_type_style_index_0_scoped_4e0ad047_lang = "", _withScopeId$6 = (Q) => (pushScopeId("data-v-4e0ad047"), Q = Q(), popScopeId(), Q), _hoisted_1$k$ = { class: "slw-window-layout-container" }, _sfc_main$b = {
43867
+ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", windowLayout_vue_vue_type_style_index_0_scoped_4e815669_lang = "", _withScopeId$6 = (Q) => (pushScopeId("data-v-4e815669"), Q = Q(), popScopeId(), Q), _hoisted_1$k$ = { class: "slw-window-layout-container" }, _sfc_main$b = {
43858
43868
  __name: "window-layout",
43859
43869
  props: {
43860
43870
  layoutData: {
@@ -43906,7 +43916,7 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
43906
43916
  (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(K).child, (fe, pe) => (openBlock(), createBlock(unref(g$1), {
43907
43917
  key: fe.id,
43908
43918
  size: fe.splitRate * 100,
43909
- "min-size": fe.gridData && fe.gridData.type === "FORM" ? 20 : 0
43919
+ "min-size": fe.gridData && fe.gridData.type === "FORM" ? 10 : 0
43910
43920
  }, {
43911
43921
  default: withCtx(() => [
43912
43922
  fe.mode === "tab" ? (openBlock(), createBlock(ue, {
@@ -43989,7 +43999,7 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
43989
43999
  ]);
43990
44000
  };
43991
44001
  }
43992
- }, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-4e0ad047"]]);
44002
+ }, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-4e815669"]]);
43993
44003
  WindowLayout.name = "slw-window-layout";
43994
44004
  WindowLayout.install = (Q) => {
43995
44005
  Q.component(WindowLayout.name, WindowLayout);
@@ -59289,7 +59299,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
59289
59299
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
59290
59300
  setup(Q, { emit: H }) {
59291
59301
  const G = Q, X = defineAsyncComponent(
59292
- () => import("./index-1c61a74f.js")
59302
+ () => import("./index-3db86d58.js")
59293
59303
  );
59294
59304
  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);
59295
59305
  re.value = createDesigner();
@@ -59374,7 +59384,7 @@ WindowDesigner.name = "slw-window-designer";
59374
59384
  WindowDesigner.install = (Q) => {
59375
59385
  Q.component(WindowDesigner.name, WindowDesigner);
59376
59386
  };
59377
- const windowIndex_vue_vue_type_style_index_0_scoped_e74c82c7_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-e74c82c7"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
59387
+ const windowIndex_vue_vue_type_style_index_0_scoped_eccc7177_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-eccc7177"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
59378
59388
  __name: "window-index",
59379
59389
  props: {
59380
59390
  windowId: {
@@ -59506,7 +59516,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_e74c82c7_lang = "", _withSco
59506
59516
  for (let ne = 0; ne < Q.length; ne++)
59507
59517
  Z === "TAB" ? ee[ne] = 1 : G === "V" ? Q[ne].height && ne != Q.length - 1 ? (ee[ne] = (Q[ne].height / X).toFixed(2), te = te - ee[ne]) : ne == Q.length - 1 ? ee[ne] = te : (ee[ne] = te / (Q.length - Object.keys(ee).length), te = te - ee[ne]) : ee[ne] = 1 / Q.length;
59508
59518
  for (let ne = 0; ne < Q.length; ne++) {
59509
- G === "H" && ne === 0 && Q[ne].width && Q[ne].width / 12 < 1 && (ee = computeSplitRate(ee, ne, Q[ne].width / 12));
59519
+ G === "H" && Q[ne].width && Q[ne].width / 12 < 1 && (ee = computeSplitRate(ee, ne, Q[ne].width / 12));
59510
59520
  let re = ee[ne], ae = X - 60, le = parentLayoutIdLayoutMap.value[H].length, se = G === "H" ? X : G === "V" ? Q.length === 1 || le === 1 ? X : Q[ne].height ? Q[ne].height : X * re : ae, ce = await joinFieldInfo(
59511
59521
  getParentRegion(Q[ne].id),
59512
59522
  Q[ne].id,
@@ -59866,6 +59876,9 @@ const windowIndex_vue_vue_type_style_index_0_scoped_e74c82c7_lang = "", _withSco
59866
59876
  ]
59867
59877
  },
59868
59878
  visible: !ae
59879
+ }), X.formConfig.items.push({
59880
+ span: 24,
59881
+ slots: { default: "other_item" }
59869
59882
  });
59870
59883
  }
59871
59884
  let ee = Z.buttons, te = !1, ne = !1;
@@ -60574,7 +60587,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_e74c82c7_lang = "", _withSco
60574
60587
  ]);
60575
60588
  };
60576
60589
  }
60577
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e74c82c7"]]);
60590
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-eccc7177"]]);
60578
60591
  WindowIndex.name = "slw-window-index";
60579
60592
  WindowIndex.install = (Q) => {
60580
60593
  Q.component(WindowIndex.name, WindowIndex);
@@ -144287,7 +144300,7 @@ function reConsole() {
144287
144300
  }
144288
144301
  }
144289
144302
  console.info(
144290
- `%cSLW %cVer 0.9.52%c
144303
+ `%cSLW %cVer 0.9.54%c
144291
144304
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
144292
144305
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
144293
144306
  "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-c7986903.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-1a075776.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-c7986903.js";
1
+ import { i as m } from "./index-1a075776.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {