slw 0.9.53 → 0.9.55

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-4148bd9e.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-7ceb94e3.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
@@ -42521,7 +42521,7 @@ var js = js$1.exports;
42521
42521
  })(Q);
42522
42522
  })(js$1);
42523
42523
  var jsExports = js$1.exports;
42524
- const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_07db5a2f_lang = "", _withScopeId$7 = (Q) => (pushScopeId("data-v-07db5a2f"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
42524
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_23a4f447_lang = "", _withScopeId$7 = (Q) => (pushScopeId("data-v-23a4f447"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
42525
42525
  key: 0,
42526
42526
  class: "form-title"
42527
42527
  }, _hoisted_3$hX = ["onClick"], _hoisted_4$ax = ["onClick"], _hoisted_5$4X = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _sfc_main$c = {
@@ -42694,7 +42694,9 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
42694
42694
  var H, G, X;
42695
42695
  if (formConfig.value.params.linkUrl)
42696
42696
  return;
42697
- formLoading.value = !0;
42697
+ formLoading.value = !0, formConfig.value.columns.forEach((Z, K, ee) => {
42698
+ Z.hasOwnProperty("field") && !Z.hasOwnProperty("treeNode") && (Z.events.change = onFieldChange, Z.hasOwnProperty("search") && (Z.events.search = remoteSearch), Z.events.keyup = onFieldEnter, Z.events.click = onFieldClick), (Z == null ? void 0 : Z.dataType) === "IMG" && (uploadConfig.value.isHaveImgField = !0, fieldPreviewMap.value[Z.field] = []);
42699
+ }), await evalEvent(formConfig.value.params.formEvents.dataInit);
42698
42700
  let Q = !0;
42699
42701
  if (formConfig.value.formData) {
42700
42702
  formData.value = formConfig.value.formData, Q = formConfig.value.openType === "new", formConfig.value.openType === "view" && (formConfig.value.columns = XEUtils$1.clone(formConfig.value.columns, !0));
@@ -42706,9 +42708,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
42706
42708
  } else
42707
42709
  for (const Z in formConfig.value.columns)
42708
42710
  formConfig.value.columns[Z].type !== "seq" && formConfig.value.columns[Z].type !== "checkbox" && (formData.value[formConfig.value.columns[Z].field] = "");
42709
- uploadConfig.value.dataId = formData.value[formConfig.value.rowId], uploadConfig.value.regionId = formConfig.value.params._region_id, uploadConfig.value.isHavePicUploadBtn = formConfig.value.params.isHavePicUploadBtn, uploadConfig.value.openType = formConfig.value.openType, computeNewLine(formConfig.value), formConfig.value.columns.forEach((Z, K, ee) => {
42710
- Z.hasOwnProperty("field") && !Z.hasOwnProperty("treeNode") && (Z.events.change = onFieldChange, Z.hasOwnProperty("search") && (Z.events.search = remoteSearch), Z.events.keyup = onFieldEnter, Z.events.click = onFieldClick), (Z == null ? void 0 : Z.dataType) === "IMG" && (uploadConfig.value.isHaveImgField = !0, fieldPreviewMap.value[Z.field] = []);
42711
- }), formData.value._region_id = formConfig.value.params._region_id, await evalEvent(formConfig.value.params.formEvents.dataInit), await formInitData(formData.value, formConfig.value.params._region_id, Q), form.value.params = formConfig.value.params, formConfig.value.params.queryParams && Object.keys(formConfig.value.params.queryParams).length > 0 && formConfig.value.params.queryParams.unQuery !== !0 && searchData(formConfig.value.params.queryParams), formConfig.value.columns.map((Z) => {
42711
+ uploadConfig.value.dataId = formData.value[formConfig.value.rowId], uploadConfig.value.regionId = formConfig.value.params._region_id, uploadConfig.value.isHavePicUploadBtn = formConfig.value.params.isHavePicUploadBtn, uploadConfig.value.openType = formConfig.value.openType, computeNewLine(formConfig.value), formData.value._region_id = formConfig.value.params._region_id, await formInitData(formData.value, formConfig.value.params._region_id, Q), form.value.params = formConfig.value.params, formConfig.value.params.queryParams && Object.keys(formConfig.value.params.queryParams).length > 0 && formConfig.value.params.queryParams.unQuery !== !0 && searchData(formConfig.value.params.queryParams), formConfig.value.columns.map((Z) => {
42712
42712
  Z.hasOwnProperty("field") && !Z.hasOwnProperty("treeNode") && (fieldColumnMap.value[Z.field] = Z);
42713
42713
  }), !formConfig.value.params.linkUrl && (formConfig.value.type === "FORM" ? (regionMap.value[formConfig.value.params.code + "-" + preTag.value] = form.value, regionMap.value[formConfig.value.params.code] = form.value) : regionMap.value["Edit-" + formConfig.value.params.code + "-" + preTag.value] = form.value, throwFunction(form.value), await evalEvent(formConfig.value.params.formEvents.regionInit), nextTick(() => {
42714
42714
  formDataClone.value = XEUtils$1.clone(toRaw(formData.value), !0);
@@ -43324,7 +43324,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43324
43324
  rules: editRules.value,
43325
43325
  loading: unref(formLoading),
43326
43326
  "title-align": "right",
43327
- "title-width": "120",
43327
+ "title-width": "115",
43328
43328
  class: normalizeClass({ "single-row": unref(formConfig).params.singleRow })
43329
43329
  }, {
43330
43330
  default: withCtx(() => [
@@ -43418,6 +43418,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43418
43418
  createVNode(Z, {
43419
43419
  modelValue: unref(formData)[ne.field],
43420
43420
  "onUpdate:modelValue": (re) => unref(formData)[ne.field] = re,
43421
+ clearable: !1,
43421
43422
  onKeyup: (re) => onIconInputEnter(ne, re),
43422
43423
  onChange: (re) => onIconInputChange(ne)
43423
43424
  }, createSlots({ _: 2 }, [
@@ -43523,7 +43524,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43523
43524
  ]);
43524
43525
  };
43525
43526
  }
43526
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-07db5a2f"]]);
43527
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-23a4f447"]]);
43527
43528
  WindowForm.name = "slw-window-form";
43528
43529
  WindowForm.install = (Q) => {
43529
43530
  Q.component(WindowForm.name, WindowForm);
@@ -43864,7 +43865,7 @@ function P$2(Q, H, G, X, Z, K) {
43864
43865
  renderSlot(Q.$slots, "default")
43865
43866
  ], 4);
43866
43867
  }
43867
- 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 = {
43868
+ 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 = {
43868
43869
  __name: "window-layout",
43869
43870
  props: {
43870
43871
  layoutData: {
@@ -43916,7 +43917,7 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
43916
43917
  (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(K).child, (fe, pe) => (openBlock(), createBlock(unref(g$1), {
43917
43918
  key: fe.id,
43918
43919
  size: fe.splitRate * 100,
43919
- "min-size": fe.gridData && fe.gridData.type === "FORM" ? 20 : 0
43920
+ "min-size": fe.gridData && fe.gridData.type === "FORM" ? 10 : 0
43920
43921
  }, {
43921
43922
  default: withCtx(() => [
43922
43923
  fe.mode === "tab" ? (openBlock(), createBlock(ue, {
@@ -43999,7 +44000,7 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
43999
44000
  ]);
44000
44001
  };
44001
44002
  }
44002
- }, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-4e0ad047"]]);
44003
+ }, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-4e815669"]]);
44003
44004
  WindowLayout.name = "slw-window-layout";
44004
44005
  WindowLayout.install = (Q) => {
44005
44006
  Q.component(WindowLayout.name, WindowLayout);
@@ -59299,7 +59300,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
59299
59300
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
59300
59301
  setup(Q, { emit: H }) {
59301
59302
  const G = Q, X = defineAsyncComponent(
59302
- () => import("./index-e2d7bc6e.js")
59303
+ () => import("./index-6226b232.js")
59303
59304
  );
59304
59305
  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);
59305
59306
  re.value = createDesigner();
@@ -59384,7 +59385,7 @@ WindowDesigner.name = "slw-window-designer";
59384
59385
  WindowDesigner.install = (Q) => {
59385
59386
  Q.component(WindowDesigner.name, WindowDesigner);
59386
59387
  };
59387
- const windowIndex_vue_vue_type_style_index_0_scoped_f3042971_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-f3042971"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
59388
+ 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 = {
59388
59389
  __name: "window-index",
59389
59390
  props: {
59390
59391
  windowId: {
@@ -59516,7 +59517,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f3042971_lang = "", _withSco
59516
59517
  for (let ne = 0; ne < Q.length; ne++)
59517
59518
  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;
59518
59519
  for (let ne = 0; ne < Q.length; ne++) {
59519
- G === "H" && ne === 0 && Q[ne].width && Q[ne].width / 12 < 1 && (ee = computeSplitRate(ee, ne, Q[ne].width / 12));
59520
+ G === "H" && Q[ne].width && Q[ne].width / 12 < 1 && (ee = computeSplitRate(ee, ne, Q[ne].width / 12));
59520
59521
  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(
59521
59522
  getParentRegion(Q[ne].id),
59522
59523
  Q[ne].id,
@@ -60587,7 +60588,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f3042971_lang = "", _withSco
60587
60588
  ]);
60588
60589
  };
60589
60590
  }
60590
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f3042971"]]);
60591
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-eccc7177"]]);
60591
60592
  WindowIndex.name = "slw-window-index";
60592
60593
  WindowIndex.install = (Q) => {
60593
60594
  Q.component(WindowIndex.name, WindowIndex);
@@ -144300,7 +144301,7 @@ function reConsole() {
144300
144301
  }
144301
144302
  }
144302
144303
  console.info(
144303
- `%cSLW %cVer 0.9.53%c
144304
+ `%cSLW %cVer 0.9.55%c
144304
144305
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
144305
144306
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
144306
144307
  "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-4148bd9e.js";
1
+ import { i as m } from "./index-7ceb94e3.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {