slw 0.9.57 → 0.9.59

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-1ca39e89.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-ee5fe542.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_e2ba1b26_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-e2ba1b26"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = {
8528
+ const windowGrid_vue_vue_type_style_index_0_scoped_43645152_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-43645152"), 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 = [
@@ -8535,7 +8535,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e2ba1b26_lang = "", _withScop
8535
8535
  ], _hoisted_6$21 = ["onClick"], _hoisted_7$14 = ["id"], _hoisted_8$G = {
8536
8536
  key: 0,
8537
8537
  style: { verticalAlign: "middle" }
8538
- }, _hoisted_9$n = { style: { padding: "20px 0" } }, _sfc_main$d = {
8538
+ }, _hoisted_9$n = ["id"], _hoisted_10$q = { style: { padding: "20px 0" } }, _sfc_main$d = {
8539
8539
  __name: "window-grid",
8540
8540
  props: {
8541
8541
  gridData: {
@@ -10129,6 +10129,12 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e2ba1b26_lang = "", _withScop
10129
10129
  } : void 0
10130
10130
  ]), 1032, ["iconComponent", "style", "onClick"]))), 128))
10131
10131
  ]),
10132
+ top: withCtx(({}) => [
10133
+ createElementVNode("div", {
10134
+ class: "table_top_wrapper",
10135
+ id: "table_top_" + unref(gridData).params.code
10136
+ }, null, 8, _hoisted_9$n)
10137
+ ]),
10132
10138
  _: 1
10133
10139
  }, 16, ["class"]),
10134
10140
  createVNode(oe, {
@@ -10186,7 +10192,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e2ba1b26_lang = "", _withScop
10186
10192
  "on-success": importSuccess
10187
10193
  }, {
10188
10194
  default: withCtx(() => [
10189
- createElementVNode("div", _hoisted_9$n, [
10195
+ createElementVNode("div", _hoisted_10$q, [
10190
10196
  createVNode(te, { width: 50 }),
10191
10197
  createElementVNode("p", null, toDisplayString(unref($T)("点击或拖文件到此处上传")), 1)
10192
10198
  ])
@@ -10217,7 +10223,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e2ba1b26_lang = "", _withScop
10217
10223
  ]);
10218
10224
  };
10219
10225
  }
10220
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e2ba1b26"]]);
10226
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-43645152"]]);
10221
10227
  WindowGrid.name = "slw-window-grid";
10222
10228
  WindowGrid.install = (Q) => {
10223
10229
  Q.component(WindowGrid.name, WindowGrid);
@@ -43875,7 +43881,7 @@ function P$2(Q, H, G, X, Z, K) {
43875
43881
  renderSlot(Q.$slots, "default")
43876
43882
  ], 4);
43877
43883
  }
43878
- 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 = {
43884
+ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", windowLayout_vue_vue_type_style_index_0_scoped_bfe94e8e_lang = "", _withScopeId$6 = (Q) => (pushScopeId("data-v-bfe94e8e"), Q = Q(), popScopeId(), Q), _hoisted_1$k$ = { class: "slw-window-layout-container" }, _sfc_main$b = {
43879
43885
  __name: "window-layout",
43880
43886
  props: {
43881
43887
  layoutData: {
@@ -43885,67 +43891,68 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
43885
43891
  },
43886
43892
  emits: ["update:layoutData"],
43887
43893
  setup(Q, { expose: H, emit: G }) {
43888
- const X = Q, Z = inject("$t");
43889
- let K = useVModel$1(X, "layoutData", G), ee = ref(0);
43890
- const te = ref(), ne = ref(), re = useDebounceFn$1((se) => {
43891
- oe(se);
43892
- }, 100), oe = (se) => {
43893
- if (se) {
43894
- if (K.value.child[0].splitRate = se[0].size / 100, K.value.mode === "vertical" && K.value.child && K.value.child.length === 2 && K.value.child[0].gridData) {
43895
- let ce = K.value.child[0].gridData.params.curHeight - K.value.height * K.value.splitRate;
43896
- K.value.child[0].gridData.params.curHeight = K.value.height * K.value.splitRate, K.value.child[0].height = K.value.child[0].gridData.params.curHeight, Number(K.value.child[0].gridData.params.curHeight) !== Number(ee.value) && ae(K.value.child[1], ce), ee.value = Number(K.value.child[0].gridData.params.curHeight);
43897
- }
43898
- K.value.mode === "horizontal" && K.value.child.forEach((ce, de) => {
43899
- ce.gridData && (ce.gridData.params.singleRow = !1, ce.gridData.type == "FORM" && se[de].size <= se[de].min + 5 && (ce.gridData.params.singleRow = !0));
43894
+ const X = Q, Z = inject("$t"), K = inject("$regionMap");
43895
+ let ee = useVModel$1(X, "layoutData", G), te = ref(0);
43896
+ const ne = ref(), re = ref(), oe = ref(), ae = useDebounceFn$1((de) => {
43897
+ le(de);
43898
+ }, 100), le = (de) => {
43899
+ if (de) {
43900
+ if (ee.value.child[0].splitRate = de[0].size / 100, ee.value.mode === "vertical" && ee.value.child && ee.value.child.length === 2 && ee.value.child[0].gridData) {
43901
+ let he = ee.value.child[0].gridData.params.curHeight - ee.value.height * ee.value.splitRate;
43902
+ ee.value.child[0].gridData.params.curHeight = ee.value.height * ee.value.splitRate, ee.value.child[0].height = ee.value.child[0].gridData.params.curHeight, Number(ee.value.child[0].gridData.params.curHeight) !== Number(te.value) && se(ee.value.child[1], he), te.value = Number(ee.value.child[0].gridData.params.curHeight);
43903
+ }
43904
+ ee.value.mode === "horizontal" && ee.value.child.forEach((he, ue) => {
43905
+ he.gridData && (he.gridData.params.singleRow = !1, he.gridData.type == "FORM" && de[ue].size <= de[ue].min + 5 && (he.gridData.params.singleRow = !0));
43900
43906
  });
43901
43907
  }
43902
- }, ae = (se, ce) => {
43903
- if (se.gridData)
43904
- se.gridData.params.curHeight += ce, se.height += ce;
43908
+ }, se = (de, he) => {
43909
+ if (de.gridData)
43910
+ de.gridData.params.curHeight += he, de.height += he;
43905
43911
  else {
43906
- se.height += ce;
43907
- for (let de = 0; de < se.child.length; de++)
43908
- ae(se.child[de], ce);
43912
+ de.height += he;
43913
+ for (let ue = 0; ue < de.child.length; ue++)
43914
+ se(de.child[ue], he);
43909
43915
  }
43910
- }, le = (se, ce) => {
43911
- var de;
43912
- (de = ne.value) == null || de.gridReload(se, ce);
43916
+ }, ce = (de, he) => {
43917
+ var ue;
43918
+ (ue = re.value) == null || ue.gridReload(de, he);
43913
43919
  };
43914
43920
  return onMounted(() => {
43915
- }), H({ gridReload: le }), (se, ce) => {
43916
- const de = resolveComponent("window-layout", !0), he = resolveComponent("el-tab-pane"), ue = resolveComponent("el-tabs");
43921
+ ee.value.gridData && (!ee.value.child || ee.value.child.length === 0) && ee.value.gridData.type == "LINK" && (K.value[ee.value.gridData.params.code + "-" + ee.value.gridData.params.preTag] = oe.value, K.value[ee.value.gridData.params.code] = oe.value);
43922
+ }), H({ gridReload: ce }), (de, he) => {
43923
+ const ue = resolveComponent("window-layout", !0), fe = resolveComponent("el-tab-pane"), pe = resolveComponent("el-tabs");
43917
43924
  return openBlock(), createElementBlock("div", _hoisted_1$k$, [
43918
- unref(K).child && unref(K).child.length > 0 && unref(K).mode !== "tab" ? (openBlock(), createBlock(unref(M$1), {
43925
+ unref(ee).child && unref(ee).child.length > 0 && unref(ee).mode !== "tab" ? (openBlock(), createBlock(unref(M$1), {
43919
43926
  key: 0,
43920
43927
  class: "default-theme",
43921
- horizontal: unref(K).mode !== "horizontal",
43928
+ horizontal: unref(ee).mode !== "horizontal",
43922
43929
  "push-other-panes": !1,
43923
43930
  style: { backgroundColor: "#fff" },
43924
- onResize: unref(re)
43931
+ onResize: unref(ae)
43925
43932
  }, {
43926
43933
  default: withCtx(() => [
43927
- (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(K).child, (fe, pe) => (openBlock(), createBlock(unref(g$1), {
43928
- key: fe.id,
43929
- size: fe.splitRate * 100,
43930
- "min-size": fe.gridData && fe.gridData.type === "FORM" ? 10 : 0
43934
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(ee).child, (me, ve) => (openBlock(), createBlock(unref(g$1), {
43935
+ key: me.id,
43936
+ size: me.splitRate * 100,
43937
+ "min-size": me.gridData && me.gridData.type === "FORM" ? 10 : 0
43931
43938
  }, {
43932
43939
  default: withCtx(() => [
43933
- fe.mode === "tab" ? (openBlock(), createBlock(ue, {
43940
+ me.mode === "tab" ? (openBlock(), createBlock(pe, {
43934
43941
  type: "border-card",
43935
- key: fe.id
43942
+ key: me.id
43936
43943
  }, {
43937
43944
  default: withCtx(() => [
43938
- (openBlock(!0), createElementBlock(Fragment, null, renderList(fe.child, (me, ve) => (openBlock(), createBlock(he, {
43939
- key: me.id,
43940
- tab: unref(Z)(me.name),
43941
- label: unref(Z)(me.name),
43942
- title: unref(Z)(me.name),
43945
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(me.child, (ge, we) => (openBlock(), createBlock(fe, {
43946
+ key: ge.id,
43947
+ tab: unref(Z)(ge.name),
43948
+ label: unref(Z)(ge.name),
43949
+ title: unref(Z)(ge.name),
43943
43950
  forceRender: !0
43944
43951
  }, {
43945
43952
  default: withCtx(() => [
43946
- createVNode(de, {
43947
- "layout-data": fe.child[ve],
43948
- "onUpdate:layoutData": (ge) => fe.child[ve] = ge
43953
+ createVNode(ue, {
43954
+ "layout-data": me.child[we],
43955
+ "onUpdate:layoutData": (_e) => me.child[we] = _e
43949
43956
  }, null, 8, ["layout-data", "onUpdate:layoutData"])
43950
43957
  ]),
43951
43958
  _: 2
@@ -43953,32 +43960,32 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
43953
43960
  ]),
43954
43961
  _: 2
43955
43962
  }, 1024)) : createCommentVNode("", !0),
43956
- fe.mode !== "tab" ? (openBlock(), createBlock(de, mergeProps$1({
43963
+ me.mode !== "tab" ? (openBlock(), createBlock(ue, mergeProps$1({
43957
43964
  key: 1,
43958
- "layout-data": unref(K).child[pe],
43959
- "onUpdate:layoutData": (me) => unref(K).child[pe] = me
43960
- }, se.$attrs), null, 16, ["layout-data", "onUpdate:layoutData"])) : createCommentVNode("", !0)
43965
+ "layout-data": unref(ee).child[ve],
43966
+ "onUpdate:layoutData": (ge) => unref(ee).child[ve] = ge
43967
+ }, de.$attrs), null, 16, ["layout-data", "onUpdate:layoutData"])) : createCommentVNode("", !0)
43961
43968
  ]),
43962
43969
  _: 2
43963
43970
  }, 1032, ["size", "min-size"]))), 128))
43964
43971
  ]),
43965
43972
  _: 1
43966
43973
  }, 8, ["horizontal", "onResize"])) : createCommentVNode("", !0),
43967
- unref(K).child && unref(K).child.length > 0 && unref(K).mode === "tab" ? (openBlock(), createBlock(ue, {
43968
- key: unref(K).id
43974
+ unref(ee).child && unref(ee).child.length > 0 && unref(ee).mode === "tab" ? (openBlock(), createBlock(pe, {
43975
+ key: unref(ee).id
43969
43976
  }, {
43970
43977
  default: withCtx(() => [
43971
- (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(K).child, (fe, pe) => (openBlock(), createBlock(he, {
43978
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(ee).child, (me, ve) => (openBlock(), createBlock(fe, {
43972
43979
  forceRender: !0,
43973
- key: fe.id,
43974
- tab: unref(Z)(fe.name),
43975
- label: unref(Z)(fe.name),
43976
- title: unref(Z)(fe.name)
43980
+ key: me.id,
43981
+ tab: unref(Z)(me.name),
43982
+ label: unref(Z)(me.name),
43983
+ title: unref(Z)(me.name)
43977
43984
  }, {
43978
43985
  default: withCtx(() => [
43979
- createVNode(de, {
43980
- "layout-data": unref(K).child[pe],
43981
- "onUpdate:layoutData": (me) => unref(K).child[pe] = me
43986
+ createVNode(ue, {
43987
+ "layout-data": unref(ee).child[ve],
43988
+ "onUpdate:layoutData": (ge) => unref(ee).child[ve] = ge
43982
43989
  }, null, 8, ["layout-data", "onUpdate:layoutData"])
43983
43990
  ]),
43984
43991
  _: 2
@@ -43986,31 +43993,33 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
43986
43993
  ]),
43987
43994
  _: 1
43988
43995
  })) : createCommentVNode("", !0),
43989
- unref(K).gridData && (!unref(K).child || unref(K).child.length === 0) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
43990
- unref(K).gridData.type === "GRID" || unref(K).gridData.type === "EDIT_GRID" || unref(K).gridData.type === "TREE" || unref(K).gridData.type === "TREE_STRUCTURE" ? (openBlock(), createBlock(unref(WindowGrid), mergeProps$1({
43996
+ unref(ee).gridData && (!unref(ee).child || unref(ee).child.length === 0) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
43997
+ unref(ee).gridData.type === "GRID" || unref(ee).gridData.type === "EDIT_GRID" || unref(ee).gridData.type === "TREE" || unref(ee).gridData.type === "TREE_STRUCTURE" ? (openBlock(), createBlock(unref(WindowGrid), mergeProps$1({
43991
43998
  key: 0,
43992
43999
  ref_key: "xGrid",
43993
- ref: ne,
43994
- gridData: unref(K).gridData,
43995
- "onUpdate:gridData": ce[0] || (ce[0] = (fe) => unref(K).gridData = fe)
43996
- }, se.$attrs), null, 16, ["gridData"])) : createCommentVNode("", !0),
43997
- unref(K).gridData.type === "FORM" ? (openBlock(), createBlock(unref(WindowForm), {
44000
+ ref: re,
44001
+ gridData: unref(ee).gridData,
44002
+ "onUpdate:gridData": he[0] || (he[0] = (me) => unref(ee).gridData = me)
44003
+ }, de.$attrs), null, 16, ["gridData"])) : createCommentVNode("", !0),
44004
+ unref(ee).gridData.type === "FORM" ? (openBlock(), createBlock(unref(WindowForm), {
43998
44005
  key: 1,
43999
44006
  ref_key: "xForm",
44000
- ref: te,
44001
- "form-config": unref(K).gridData,
44002
- "onUpdate:formConfig": ce[1] || (ce[1] = (fe) => unref(K).gridData = fe),
44003
- onGridReload: le
44007
+ ref: ne,
44008
+ "form-config": unref(ee).gridData,
44009
+ "onUpdate:formConfig": he[1] || (he[1] = (me) => unref(ee).gridData = me),
44010
+ onGridReload: ce
44004
44011
  }, null, 8, ["form-config"])) : createCommentVNode("", !0),
44005
- unref(K).gridData.type == "LINK" ? (openBlock(), createBlock(resolveDynamicComponent(unref(K).gridData.params.linkComponentView), {
44012
+ unref(ee).gridData.type == "LINK" ? (openBlock(), createBlock(resolveDynamicComponent(unref(ee).gridData.params.linkComponentView), {
44006
44013
  key: 2,
44007
- componentData: unref(K).gridData.params
44014
+ ref_key: "xLink",
44015
+ ref: oe,
44016
+ componentData: unref(ee).gridData.params
44008
44017
  }, null, 8, ["componentData"])) : createCommentVNode("", !0)
44009
44018
  ], 64)) : createCommentVNode("", !0)
44010
44019
  ]);
44011
44020
  };
44012
44021
  }
44013
- }, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-4e815669"]]);
44022
+ }, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-bfe94e8e"]]);
44014
44023
  WindowLayout.name = "slw-window-layout";
44015
44024
  WindowLayout.install = (Q) => {
44016
44025
  Q.component(WindowLayout.name, WindowLayout);
@@ -59310,7 +59319,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
59310
59319
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
59311
59320
  setup(Q, { emit: H }) {
59312
59321
  const G = Q, X = defineAsyncComponent(
59313
- () => import("./index-2c00e43f.js")
59322
+ () => import("./index-50b21fd7.js")
59314
59323
  );
59315
59324
  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);
59316
59325
  re.value = createDesigner();
@@ -144312,7 +144321,7 @@ function reConsole() {
144312
144321
  }
144313
144322
  }
144314
144323
  console.info(
144315
- `%cSLW %cVer 0.9.57%c
144324
+ `%cSLW %cVer 0.9.59%c
144316
144325
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
144317
144326
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
144318
144327
  "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-1ca39e89.js";
1
+ import { i as m } from "./index-ee5fe542.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {