slw 1.0.0-beta.11 → 1.0.0-beta.12

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-7d1a1d7f.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-ed748dab.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_9c9d16d3_lang = "", _withScopeId$9 = (Q) => (pushScopeId("data-v-9c9d16d3"), Q = Q(), popScopeId(), Q), _hoisted_1$l2 = {
8528
+ const windowGrid_vue_vue_type_style_index_0_scoped_27867b98_lang = "", _withScopeId$9 = (Q) => (pushScopeId("data-v-27867b98"), 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 = [
@@ -8549,7 +8549,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_9c9d16d3_lang = "", _withScop
8549
8549
  emits: ["update:gridData", "jumpDesign"],
8550
8550
  setup(__props, { expose: __expose, emit }) {
8551
8551
  const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), regionMap = inject("$regionMap"), focusInput = inject("$focusInput"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), httpHeaders = inject("$httpHeaders"), addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), toggleModalLoading = inject("$toggleModalLoading"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $vxeOpen = inject("$vxeOpen"), $vxeReadFile = inject("$vxeReadFile"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), evalDefaultValue = inject("$evalDefaultValue"), callGridClickEvents = inject("$callGridClickEvents"), ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $components = inject("$components"), $componentsPath = inject("$componentsPath"), $externalFun = inject("$externalFun"), beginEdit = inject("$beginEdit"), endEdit = inject("$endEdit"), route = useRoute();
8552
- let success = inject("$success"), error = inject("$error"), gridData = useVModel$1(props, "gridData", emit), rowIndex = ref(0), isImport = ref(!1), importUrl = ref(`${(axios == null ? void 0 : axios.baseUrl) || ""}/window/import`), importBtnId = ref(""), uploadConfig = ref({
8552
+ let success = inject("$success", null), error = inject("$error", null), gridData = useVModel$1(props, "gridData", emit), rowIndex = ref(0), isImport = ref(!1), importUrl = ref(`${(axios == null ? void 0 : axios.baseUrl) || ""}/window/import`), importBtnId = ref(""), uploadConfig = ref({
8553
8553
  show: !1,
8554
8554
  dataId: "",
8555
8555
  regionId: "",
@@ -9837,6 +9837,15 @@ const windowGrid_vue_vue_type_style_index_0_scoped_9c9d16d3_lang = "", _withScop
9837
9837
  return;
9838
9838
  }
9839
9839
  });
9840
+ }, computeNewLine = () => {
9841
+ let Q = gridData.value.formConfig.items.filter((H) => H.visible);
9842
+ for (let [H, X] of Q.entries())
9843
+ if (H > 0) {
9844
+ X.span = X.span ? X.span : 12;
9845
+ let G = Q[H - 1];
9846
+ Number(X.span) > 24 ? (X.aLine = !0, X.residue = 0) : (X.aLine = !1, X.residue = 24 - Number(X.span), G && (G.aLine || G.residue - Number(X.span) < 0) || H == 0 ? X.residue = 24 - Number(X.span) : G.residue - Number(X.span) >= 0 && (X.residue = G.residue - Number(X.span))), (X.itemRender.props.newLine === !0 || X.itemRender.props.newLine === "Y") && (G.span = Number(G.span) + Number(G.residue), G.residue = 0, X.residue = 24 - Number(X.span));
9847
+ } else
9848
+ H == 0 && (X.span = X.span ? Number(X.span) : 12, X.residue = X.span > 24 ? 0 : 24 - Number(X.span));
9840
9849
  };
9841
9850
  return onMounted(async () => {
9842
9851
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
@@ -9856,7 +9865,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_9c9d16d3_lang = "", _withScop
9856
9865
  },
9857
9866
  events: { click: toolBarButtonClick }
9858
9867
  });
9859
- }), gridData.value.formConfig.items.forEach((Q) => {
9868
+ }), computeNewLine(), gridData.value.formConfig.items.forEach((Q) => {
9860
9869
  var H, X, G, K;
9861
9870
  if (queryFormData.value[Q.field] = null, (H = Q == null ? void 0 : Q.itemRender) != null && H.defaultValue && (queryFormData.value[Q.field] = Q.itemRender.defaultValue), (G = (X = Q == null ? void 0 : Q.itemRender) == null ? void 0 : X.events) != null && G.hasOwnProperty("change") && (Q.itemRender.events.change = onQueryFieldChange), Q.querys && getSelectorData({ _region_id: gridData.value.params._region_id }, Q.querys.id, Q.querys.selectorId).then((Z) => {
9862
9871
  const ee = Z.map((te) => Object.assign(
@@ -10178,7 +10187,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_9c9d16d3_lang = "", _withScop
10178
10187
  ]);
10179
10188
  };
10180
10189
  }
10181
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-9c9d16d3"]]);
10190
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-27867b98"]]);
10182
10191
  WindowGrid.name = "slw-window-grid";
10183
10192
  WindowGrid.install = (Q) => {
10184
10193
  Q.component(WindowGrid.name, WindowGrid);
@@ -42490,7 +42499,7 @@ var js = js$1.exports;
42490
42499
  })(Q);
42491
42500
  })(js$1);
42492
42501
  var jsExports = js$1.exports;
42493
- const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_ced375e6_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-ced375e6"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
42502
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_22828ab0_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-22828ab0"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
42494
42503
  key: 0,
42495
42504
  class: "form-title"
42496
42505
  }, _hoisted_3$hY = ["onClick"], _hoisted_4$ay = ["onClick"], _hoisted_5$4Y = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _hoisted_8$G = ["onClick"], _sfc_main$d = {
@@ -42505,7 +42514,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
42505
42514
  const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), toggleModalLoading = inject("$toggleModalLoading"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $vxeMessage = inject("$vxeMessage"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $vxeConfirm = inject("$vxeConfirm"), $T = inject("$t"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), focusInput = inject("$focusInput"), evalDefaultValue = inject("$evalDefaultValue");
42506
42515
  let regionMap = inject("$regionMap");
42507
42516
  const ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), endEdit = inject("$endEdit"), route = useRoute();
42508
- let success = inject("$success"), error = inject("$error"), formConfig = useVModel$1(props, "formConfig", emits), gridData = ref(formConfig.value), formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
42517
+ let success = inject("$success", null), error = inject("$error", null), formConfig = useVModel$1(props, "formConfig", emits), gridData = ref(formConfig.value), formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
42509
42518
  const $modal = $Modal;
42510
42519
  let uploadConfig = ref({
42511
42520
  show: !1,
@@ -43428,7 +43437,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43428
43437
  ]);
43429
43438
  };
43430
43439
  }
43431
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ced375e6"]]);
43440
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-22828ab0"]]);
43432
43441
  WindowForm.name = "slw-window-form";
43433
43442
  WindowForm.install = (Q) => {
43434
43443
  Q.component(WindowForm.name, WindowForm);
@@ -59205,7 +59214,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
59205
59214
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
59206
59215
  setup(Q, { emit: H }) {
59207
59216
  const X = Q, G = defineAsyncComponent(
59208
- () => import("./index-fcb3b122.js")
59217
+ () => import("./index-00c74bd6.js")
59209
59218
  );
59210
59219
  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);
59211
59220
  oe.value = createDesigner();
@@ -59290,7 +59299,7 @@ WindowDesigner.name = "slw-window-designer";
59290
59299
  WindowDesigner.install = (Q) => {
59291
59300
  Q.component(WindowDesigner.name, WindowDesigner);
59292
59301
  };
59293
- const windowIndex_vue_vue_type_style_index_0_scoped_21f3837c_lang = "", _withScopeId$1 = (Q) => (pushScopeId("data-v-21f3837c"), Q = Q(), popScopeId(), Q), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
59302
+ const windowIndex_vue_vue_type_style_index_0_scoped_60f64c7e_lang = "", _withScopeId$1 = (Q) => (pushScopeId("data-v-60f64c7e"), Q = Q(), popScopeId(), Q), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
59294
59303
  __name: "window-index",
59295
59304
  props: {
59296
59305
  windowId: {
@@ -60424,7 +60433,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_21f3837c_lang = "", _withSco
60424
60433
  ]);
60425
60434
  };
60426
60435
  }
60427
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-21f3837c"]]);
60436
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-60f64c7e"]]);
60428
60437
  WindowIndex.name = "slw-window-index";
60429
60438
  WindowIndex.install = (Q) => {
60430
60439
  Q.component(WindowIndex.name, WindowIndex);
@@ -127334,7 +127343,7 @@ const CryptoJS = /* @__PURE__ */ getDefaultExportFromCjs(cryptoJsExports), decry
127334
127343
  padding: CryptoJS.pad.Pkcs7
127335
127344
  }).ciphertext.toString();
127336
127345
  }
127337
- }, FilterComponent_vue_vue_type_style_index_0_scoped_d9189950_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-d9189950"), Q = Q(), popScopeId(), Q), _hoisted_1 = {
127346
+ }, FilterComponent_vue_vue_type_style_index_0_scoped_0474707b_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-0474707b"), Q = Q(), popScopeId(), Q), _hoisted_1 = {
127338
127347
  key: 0,
127339
127348
  class: "slw-filter-component"
127340
127349
  }, _hoisted_2 = {
@@ -127359,7 +127368,7 @@ const CryptoJS = /* @__PURE__ */ getDefaultExportFromCjs(cryptoJsExports), decry
127359
127368
  const ue = de.filter((pe) => pe.field == le.field.toLowerCase())[0];
127360
127369
  if (ue) {
127361
127370
  const { itemRender: pe } = ue, { props: fe } = pe;
127362
- G.value = pe.name, G.value == "VxeSelect" ? K.value = pe.options : G.value.includes("ElDate") ? Z.value = fe.type : G.value == "ElTimePicker" ? (Z.value = fe.type, ee.value = fe.isRange) : G.value == "ElInputNumber" && (te.value = fe, fe.isRange && (X.value.data = [0, 0]));
127371
+ G.value = pe.name, G.value == "VxeSelect" || G.value == "ElSelect" ? K.value = pe.options : G.value.includes("ElDate") ? Z.value = fe.type : G.value == "ElTimePicker" ? (Z.value = fe.type, ee.value = fe.isRange) : G.value == "ElInputNumber" && (te.value = fe, fe.isRange && (X.value.data = [0, 0]));
127363
127372
  }
127364
127373
  }
127365
127374
  }
@@ -127382,7 +127391,7 @@ const CryptoJS = /* @__PURE__ */ getDefaultExportFromCjs(cryptoJsExports), decry
127382
127391
  }, ne), ne(), (ae, le) => {
127383
127392
  const se = resolveComponent("vxe-select"), ce = resolveComponent("el-date-picker"), de = resolveComponent("el-time-picker"), he = resolveComponent("el-input"), ue = resolveComponent("el-input-number"), pe = resolveComponent("vxe-input");
127384
127393
  return unref(X) ? (openBlock(), createElementBlock("div", _hoisted_1, [
127385
- unref(G) == "VxeSelect" ? (openBlock(), createBlock(se, {
127394
+ unref(G) == "VxeSelect" || unref(G) == "ElSelect" ? (openBlock(), createBlock(se, {
127386
127395
  key: 0,
127387
127396
  modelValue: unref(X).data,
127388
127397
  "onUpdate:modelValue": le[0] || (le[0] = (fe) => unref(X).data = fe),
@@ -127460,7 +127469,7 @@ const CryptoJS = /* @__PURE__ */ getDefaultExportFromCjs(cryptoJsExports), decry
127460
127469
  ])) : createCommentVNode("", !0);
127461
127470
  };
127462
127471
  }
127463
- }, FilterComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d9189950"]]);
127472
+ }, FilterComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0474707b"]]);
127464
127473
  function _isSlot(Q) {
127465
127474
  return typeof Q == "function" || Object.prototype.toString.call(Q) === "[object Object]" && !isVNode(Q);
127466
127475
  }
@@ -165713,7 +165722,7 @@ function reConsole() {
165713
165722
  }
165714
165723
  }
165715
165724
  console.info(
165716
- `%cSLW %cVer 1.0.0-beta.11%c
165725
+ `%cSLW %cVer 1.0.0-beta.12%c
165717
165726
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
165718
165727
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
165719
165728
  "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-7d1a1d7f.js";
1
+ import { i as m } from "./index-ed748dab.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {