slw 0.9.57 → 0.9.58
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-
|
|
2
|
+
import { _ as x, d as S, a as L, u as N } from "./index-a6162d01.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
|
@@ -43875,7 +43875,7 @@ function P$2(Q, H, G, X, Z, K) {
|
|
|
43875
43875
|
renderSlot(Q.$slots, "default")
|
|
43876
43876
|
], 4);
|
|
43877
43877
|
}
|
|
43878
|
-
const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "",
|
|
43878
|
+
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
43879
|
__name: "window-layout",
|
|
43880
43880
|
props: {
|
|
43881
43881
|
layoutData: {
|
|
@@ -43885,67 +43885,68 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
|
|
|
43885
43885
|
},
|
|
43886
43886
|
emits: ["update:layoutData"],
|
|
43887
43887
|
setup(Q, { expose: H, emit: G }) {
|
|
43888
|
-
const X = Q, Z = inject("$t");
|
|
43889
|
-
let
|
|
43890
|
-
const
|
|
43891
|
-
|
|
43892
|
-
}, 100),
|
|
43893
|
-
if (
|
|
43894
|
-
if (
|
|
43895
|
-
let
|
|
43896
|
-
|
|
43897
|
-
}
|
|
43898
|
-
|
|
43899
|
-
|
|
43888
|
+
const X = Q, Z = inject("$t"), K = inject("$regionMap");
|
|
43889
|
+
let ee = useVModel$1(X, "layoutData", G), te = ref(0);
|
|
43890
|
+
const ne = ref(), re = ref(), oe = ref(), ae = useDebounceFn$1((de) => {
|
|
43891
|
+
le(de);
|
|
43892
|
+
}, 100), le = (de) => {
|
|
43893
|
+
if (de) {
|
|
43894
|
+
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) {
|
|
43895
|
+
let he = ee.value.child[0].gridData.params.curHeight - ee.value.height * ee.value.splitRate;
|
|
43896
|
+
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);
|
|
43897
|
+
}
|
|
43898
|
+
ee.value.mode === "horizontal" && ee.value.child.forEach((he, ue) => {
|
|
43899
|
+
he.gridData && (he.gridData.params.singleRow = !1, he.gridData.type == "FORM" && de[ue].size <= de[ue].min + 5 && (he.gridData.params.singleRow = !0));
|
|
43900
43900
|
});
|
|
43901
43901
|
}
|
|
43902
|
-
},
|
|
43903
|
-
if (
|
|
43904
|
-
|
|
43902
|
+
}, se = (de, he) => {
|
|
43903
|
+
if (de.gridData)
|
|
43904
|
+
de.gridData.params.curHeight += he, de.height += he;
|
|
43905
43905
|
else {
|
|
43906
|
-
|
|
43907
|
-
for (let
|
|
43908
|
-
|
|
43906
|
+
de.height += he;
|
|
43907
|
+
for (let ue = 0; ue < de.child.length; ue++)
|
|
43908
|
+
se(de.child[ue], he);
|
|
43909
43909
|
}
|
|
43910
|
-
},
|
|
43911
|
-
var
|
|
43912
|
-
(
|
|
43910
|
+
}, ce = (de, he) => {
|
|
43911
|
+
var ue;
|
|
43912
|
+
(ue = re.value) == null || ue.gridReload(de, he);
|
|
43913
43913
|
};
|
|
43914
43914
|
return onMounted(() => {
|
|
43915
|
-
|
|
43916
|
-
|
|
43915
|
+
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);
|
|
43916
|
+
}), H({ gridReload: ce }), (de, he) => {
|
|
43917
|
+
const ue = resolveComponent("window-layout", !0), fe = resolveComponent("el-tab-pane"), pe = resolveComponent("el-tabs");
|
|
43917
43918
|
return openBlock(), createElementBlock("div", _hoisted_1$k$, [
|
|
43918
|
-
unref(
|
|
43919
|
+
unref(ee).child && unref(ee).child.length > 0 && unref(ee).mode !== "tab" ? (openBlock(), createBlock(unref(M$1), {
|
|
43919
43920
|
key: 0,
|
|
43920
43921
|
class: "default-theme",
|
|
43921
|
-
horizontal: unref(
|
|
43922
|
+
horizontal: unref(ee).mode !== "horizontal",
|
|
43922
43923
|
"push-other-panes": !1,
|
|
43923
43924
|
style: { backgroundColor: "#fff" },
|
|
43924
|
-
onResize: unref(
|
|
43925
|
+
onResize: unref(ae)
|
|
43925
43926
|
}, {
|
|
43926
43927
|
default: withCtx(() => [
|
|
43927
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(
|
|
43928
|
-
key:
|
|
43929
|
-
size:
|
|
43930
|
-
"min-size":
|
|
43928
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(ee).child, (me, ve) => (openBlock(), createBlock(unref(g$1), {
|
|
43929
|
+
key: me.id,
|
|
43930
|
+
size: me.splitRate * 100,
|
|
43931
|
+
"min-size": me.gridData && me.gridData.type === "FORM" ? 10 : 0
|
|
43931
43932
|
}, {
|
|
43932
43933
|
default: withCtx(() => [
|
|
43933
|
-
|
|
43934
|
+
me.mode === "tab" ? (openBlock(), createBlock(pe, {
|
|
43934
43935
|
type: "border-card",
|
|
43935
|
-
key:
|
|
43936
|
+
key: me.id
|
|
43936
43937
|
}, {
|
|
43937
43938
|
default: withCtx(() => [
|
|
43938
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
43939
|
-
key:
|
|
43940
|
-
tab: unref(Z)(
|
|
43941
|
-
label: unref(Z)(
|
|
43942
|
-
title: unref(Z)(
|
|
43939
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(me.child, (ge, we) => (openBlock(), createBlock(fe, {
|
|
43940
|
+
key: ge.id,
|
|
43941
|
+
tab: unref(Z)(ge.name),
|
|
43942
|
+
label: unref(Z)(ge.name),
|
|
43943
|
+
title: unref(Z)(ge.name),
|
|
43943
43944
|
forceRender: !0
|
|
43944
43945
|
}, {
|
|
43945
43946
|
default: withCtx(() => [
|
|
43946
|
-
createVNode(
|
|
43947
|
-
"layout-data":
|
|
43948
|
-
"onUpdate:layoutData": (
|
|
43947
|
+
createVNode(ue, {
|
|
43948
|
+
"layout-data": me.child[we],
|
|
43949
|
+
"onUpdate:layoutData": (_e) => me.child[we] = _e
|
|
43949
43950
|
}, null, 8, ["layout-data", "onUpdate:layoutData"])
|
|
43950
43951
|
]),
|
|
43951
43952
|
_: 2
|
|
@@ -43953,32 +43954,32 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
|
|
|
43953
43954
|
]),
|
|
43954
43955
|
_: 2
|
|
43955
43956
|
}, 1024)) : createCommentVNode("", !0),
|
|
43956
|
-
|
|
43957
|
+
me.mode !== "tab" ? (openBlock(), createBlock(ue, mergeProps$1({
|
|
43957
43958
|
key: 1,
|
|
43958
|
-
"layout-data": unref(
|
|
43959
|
-
"onUpdate:layoutData": (
|
|
43960
|
-
},
|
|
43959
|
+
"layout-data": unref(ee).child[ve],
|
|
43960
|
+
"onUpdate:layoutData": (ge) => unref(ee).child[ve] = ge
|
|
43961
|
+
}, de.$attrs), null, 16, ["layout-data", "onUpdate:layoutData"])) : createCommentVNode("", !0)
|
|
43961
43962
|
]),
|
|
43962
43963
|
_: 2
|
|
43963
43964
|
}, 1032, ["size", "min-size"]))), 128))
|
|
43964
43965
|
]),
|
|
43965
43966
|
_: 1
|
|
43966
43967
|
}, 8, ["horizontal", "onResize"])) : createCommentVNode("", !0),
|
|
43967
|
-
unref(
|
|
43968
|
-
key: unref(
|
|
43968
|
+
unref(ee).child && unref(ee).child.length > 0 && unref(ee).mode === "tab" ? (openBlock(), createBlock(pe, {
|
|
43969
|
+
key: unref(ee).id
|
|
43969
43970
|
}, {
|
|
43970
43971
|
default: withCtx(() => [
|
|
43971
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(
|
|
43972
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(ee).child, (me, ve) => (openBlock(), createBlock(fe, {
|
|
43972
43973
|
forceRender: !0,
|
|
43973
|
-
key:
|
|
43974
|
-
tab: unref(Z)(
|
|
43975
|
-
label: unref(Z)(
|
|
43976
|
-
title: unref(Z)(
|
|
43974
|
+
key: me.id,
|
|
43975
|
+
tab: unref(Z)(me.name),
|
|
43976
|
+
label: unref(Z)(me.name),
|
|
43977
|
+
title: unref(Z)(me.name)
|
|
43977
43978
|
}, {
|
|
43978
43979
|
default: withCtx(() => [
|
|
43979
|
-
createVNode(
|
|
43980
|
-
"layout-data": unref(
|
|
43981
|
-
"onUpdate:layoutData": (
|
|
43980
|
+
createVNode(ue, {
|
|
43981
|
+
"layout-data": unref(ee).child[ve],
|
|
43982
|
+
"onUpdate:layoutData": (ge) => unref(ee).child[ve] = ge
|
|
43982
43983
|
}, null, 8, ["layout-data", "onUpdate:layoutData"])
|
|
43983
43984
|
]),
|
|
43984
43985
|
_: 2
|
|
@@ -43986,31 +43987,33 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
|
|
|
43986
43987
|
]),
|
|
43987
43988
|
_: 1
|
|
43988
43989
|
})) : createCommentVNode("", !0),
|
|
43989
|
-
unref(
|
|
43990
|
-
unref(
|
|
43990
|
+
unref(ee).gridData && (!unref(ee).child || unref(ee).child.length === 0) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
43991
|
+
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
43992
|
key: 0,
|
|
43992
43993
|
ref_key: "xGrid",
|
|
43993
|
-
ref:
|
|
43994
|
-
gridData: unref(
|
|
43995
|
-
"onUpdate:gridData":
|
|
43996
|
-
},
|
|
43997
|
-
unref(
|
|
43994
|
+
ref: re,
|
|
43995
|
+
gridData: unref(ee).gridData,
|
|
43996
|
+
"onUpdate:gridData": he[0] || (he[0] = (me) => unref(ee).gridData = me)
|
|
43997
|
+
}, de.$attrs), null, 16, ["gridData"])) : createCommentVNode("", !0),
|
|
43998
|
+
unref(ee).gridData.type === "FORM" ? (openBlock(), createBlock(unref(WindowForm), {
|
|
43998
43999
|
key: 1,
|
|
43999
44000
|
ref_key: "xForm",
|
|
44000
|
-
ref:
|
|
44001
|
-
"form-config": unref(
|
|
44002
|
-
"onUpdate:formConfig":
|
|
44003
|
-
onGridReload:
|
|
44001
|
+
ref: ne,
|
|
44002
|
+
"form-config": unref(ee).gridData,
|
|
44003
|
+
"onUpdate:formConfig": he[1] || (he[1] = (me) => unref(ee).gridData = me),
|
|
44004
|
+
onGridReload: ce
|
|
44004
44005
|
}, null, 8, ["form-config"])) : createCommentVNode("", !0),
|
|
44005
|
-
unref(
|
|
44006
|
+
unref(ee).gridData.type == "LINK" ? (openBlock(), createBlock(resolveDynamicComponent(unref(ee).gridData.params.linkComponentView), {
|
|
44006
44007
|
key: 2,
|
|
44007
|
-
|
|
44008
|
+
ref_key: "xLink",
|
|
44009
|
+
ref: oe,
|
|
44010
|
+
componentData: unref(ee).gridData.params
|
|
44008
44011
|
}, null, 8, ["componentData"])) : createCommentVNode("", !0)
|
|
44009
44012
|
], 64)) : createCommentVNode("", !0)
|
|
44010
44013
|
]);
|
|
44011
44014
|
};
|
|
44012
44015
|
}
|
|
44013
|
-
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
44016
|
+
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-bfe94e8e"]]);
|
|
44014
44017
|
WindowLayout.name = "slw-window-layout";
|
|
44015
44018
|
WindowLayout.install = (Q) => {
|
|
44016
44019
|
Q.component(WindowLayout.name, WindowLayout);
|
|
@@ -59310,7 +59313,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
59310
59313
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
59311
59314
|
setup(Q, { emit: H }) {
|
|
59312
59315
|
const G = Q, X = defineAsyncComponent(
|
|
59313
|
-
() => import("./index-
|
|
59316
|
+
() => import("./index-1a70276a.js")
|
|
59314
59317
|
);
|
|
59315
59318
|
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
59319
|
re.value = createDesigner();
|
|
@@ -144312,7 +144315,7 @@ function reConsole() {
|
|
|
144312
144315
|
}
|
|
144313
144316
|
}
|
|
144314
144317
|
console.info(
|
|
144315
|
-
`%cSLW %cVer 0.9.
|
|
144318
|
+
`%cSLW %cVer 0.9.58%c
|
|
144316
144319
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
144317
144320
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
144318
144321
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED