slw 0.9.56 → 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: {},
|
|
@@ -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
|
|
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 = {
|
|
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 = [
|
|
@@ -8773,7 +8773,15 @@ const windowGrid_vue_vue_type_style_index_0_scoped_edfa3df5_lang = "", _withScop
|
|
|
8773
8773
|
}
|
|
8774
8774
|
!isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(se);
|
|
8775
8775
|
}
|
|
8776
|
-
rowClickCommon(se, rowIndex.value)
|
|
8776
|
+
rowClickCommon(se, rowIndex.value), queryAfterList && queryAfterList.length > 0 && queryAfterList.forEach((ce) => {
|
|
8777
|
+
var de;
|
|
8778
|
+
if (ce && typeof ce == "function")
|
|
8779
|
+
try {
|
|
8780
|
+
ce(((de = le == null ? void 0 : le.data) == null ? void 0 : de.data) || []);
|
|
8781
|
+
} catch (he) {
|
|
8782
|
+
console.error(he);
|
|
8783
|
+
}
|
|
8784
|
+
});
|
|
8777
8785
|
}), typeof await oe > "u" ? {
|
|
8778
8786
|
data: {
|
|
8779
8787
|
data: [],
|
|
@@ -9957,6 +9965,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_edfa3df5_lang = "", _withScop
|
|
|
9957
9965
|
console.error(K);
|
|
9958
9966
|
});
|
|
9959
9967
|
}
|
|
9968
|
+
}, queryAfterList = [], addProxyQueryAfterFun = (Q) => {
|
|
9969
|
+
queryAfterList.push(Q);
|
|
9960
9970
|
};
|
|
9961
9971
|
return onMounted(async () => {
|
|
9962
9972
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
@@ -10207,7 +10217,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_edfa3df5_lang = "", _withScop
|
|
|
10207
10217
|
]);
|
|
10208
10218
|
};
|
|
10209
10219
|
}
|
|
10210
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10220
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e2ba1b26"]]);
|
|
10211
10221
|
WindowGrid.name = "slw-window-grid";
|
|
10212
10222
|
WindowGrid.install = (Q) => {
|
|
10213
10223
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -43865,7 +43875,7 @@ function P$2(Q, H, G, X, Z, K) {
|
|
|
43865
43875
|
renderSlot(Q.$slots, "default")
|
|
43866
43876
|
], 4);
|
|
43867
43877
|
}
|
|
43868
|
-
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 = {
|
|
43869
43879
|
__name: "window-layout",
|
|
43870
43880
|
props: {
|
|
43871
43881
|
layoutData: {
|
|
@@ -43875,67 +43885,68 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
|
|
|
43875
43885
|
},
|
|
43876
43886
|
emits: ["update:layoutData"],
|
|
43877
43887
|
setup(Q, { expose: H, emit: G }) {
|
|
43878
|
-
const X = Q, Z = inject("$t");
|
|
43879
|
-
let
|
|
43880
|
-
const
|
|
43881
|
-
|
|
43882
|
-
}, 100),
|
|
43883
|
-
if (
|
|
43884
|
-
if (
|
|
43885
|
-
let
|
|
43886
|
-
|
|
43887
|
-
}
|
|
43888
|
-
|
|
43889
|
-
|
|
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));
|
|
43890
43900
|
});
|
|
43891
43901
|
}
|
|
43892
|
-
},
|
|
43893
|
-
if (
|
|
43894
|
-
|
|
43902
|
+
}, se = (de, he) => {
|
|
43903
|
+
if (de.gridData)
|
|
43904
|
+
de.gridData.params.curHeight += he, de.height += he;
|
|
43895
43905
|
else {
|
|
43896
|
-
|
|
43897
|
-
for (let
|
|
43898
|
-
|
|
43906
|
+
de.height += he;
|
|
43907
|
+
for (let ue = 0; ue < de.child.length; ue++)
|
|
43908
|
+
se(de.child[ue], he);
|
|
43899
43909
|
}
|
|
43900
|
-
},
|
|
43901
|
-
var
|
|
43902
|
-
(
|
|
43910
|
+
}, ce = (de, he) => {
|
|
43911
|
+
var ue;
|
|
43912
|
+
(ue = re.value) == null || ue.gridReload(de, he);
|
|
43903
43913
|
};
|
|
43904
43914
|
return onMounted(() => {
|
|
43905
|
-
|
|
43906
|
-
|
|
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");
|
|
43907
43918
|
return openBlock(), createElementBlock("div", _hoisted_1$k$, [
|
|
43908
|
-
unref(
|
|
43919
|
+
unref(ee).child && unref(ee).child.length > 0 && unref(ee).mode !== "tab" ? (openBlock(), createBlock(unref(M$1), {
|
|
43909
43920
|
key: 0,
|
|
43910
43921
|
class: "default-theme",
|
|
43911
|
-
horizontal: unref(
|
|
43922
|
+
horizontal: unref(ee).mode !== "horizontal",
|
|
43912
43923
|
"push-other-panes": !1,
|
|
43913
43924
|
style: { backgroundColor: "#fff" },
|
|
43914
|
-
onResize: unref(
|
|
43925
|
+
onResize: unref(ae)
|
|
43915
43926
|
}, {
|
|
43916
43927
|
default: withCtx(() => [
|
|
43917
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(
|
|
43918
|
-
key:
|
|
43919
|
-
size:
|
|
43920
|
-
"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
|
|
43921
43932
|
}, {
|
|
43922
43933
|
default: withCtx(() => [
|
|
43923
|
-
|
|
43934
|
+
me.mode === "tab" ? (openBlock(), createBlock(pe, {
|
|
43924
43935
|
type: "border-card",
|
|
43925
|
-
key:
|
|
43936
|
+
key: me.id
|
|
43926
43937
|
}, {
|
|
43927
43938
|
default: withCtx(() => [
|
|
43928
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
43929
|
-
key:
|
|
43930
|
-
tab: unref(Z)(
|
|
43931
|
-
label: unref(Z)(
|
|
43932
|
-
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),
|
|
43933
43944
|
forceRender: !0
|
|
43934
43945
|
}, {
|
|
43935
43946
|
default: withCtx(() => [
|
|
43936
|
-
createVNode(
|
|
43937
|
-
"layout-data":
|
|
43938
|
-
"onUpdate:layoutData": (
|
|
43947
|
+
createVNode(ue, {
|
|
43948
|
+
"layout-data": me.child[we],
|
|
43949
|
+
"onUpdate:layoutData": (_e) => me.child[we] = _e
|
|
43939
43950
|
}, null, 8, ["layout-data", "onUpdate:layoutData"])
|
|
43940
43951
|
]),
|
|
43941
43952
|
_: 2
|
|
@@ -43943,32 +43954,32 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
|
|
|
43943
43954
|
]),
|
|
43944
43955
|
_: 2
|
|
43945
43956
|
}, 1024)) : createCommentVNode("", !0),
|
|
43946
|
-
|
|
43957
|
+
me.mode !== "tab" ? (openBlock(), createBlock(ue, mergeProps$1({
|
|
43947
43958
|
key: 1,
|
|
43948
|
-
"layout-data": unref(
|
|
43949
|
-
"onUpdate:layoutData": (
|
|
43950
|
-
},
|
|
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)
|
|
43951
43962
|
]),
|
|
43952
43963
|
_: 2
|
|
43953
43964
|
}, 1032, ["size", "min-size"]))), 128))
|
|
43954
43965
|
]),
|
|
43955
43966
|
_: 1
|
|
43956
43967
|
}, 8, ["horizontal", "onResize"])) : createCommentVNode("", !0),
|
|
43957
|
-
unref(
|
|
43958
|
-
key: unref(
|
|
43968
|
+
unref(ee).child && unref(ee).child.length > 0 && unref(ee).mode === "tab" ? (openBlock(), createBlock(pe, {
|
|
43969
|
+
key: unref(ee).id
|
|
43959
43970
|
}, {
|
|
43960
43971
|
default: withCtx(() => [
|
|
43961
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(
|
|
43972
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(ee).child, (me, ve) => (openBlock(), createBlock(fe, {
|
|
43962
43973
|
forceRender: !0,
|
|
43963
|
-
key:
|
|
43964
|
-
tab: unref(Z)(
|
|
43965
|
-
label: unref(Z)(
|
|
43966
|
-
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)
|
|
43967
43978
|
}, {
|
|
43968
43979
|
default: withCtx(() => [
|
|
43969
|
-
createVNode(
|
|
43970
|
-
"layout-data": unref(
|
|
43971
|
-
"onUpdate:layoutData": (
|
|
43980
|
+
createVNode(ue, {
|
|
43981
|
+
"layout-data": unref(ee).child[ve],
|
|
43982
|
+
"onUpdate:layoutData": (ge) => unref(ee).child[ve] = ge
|
|
43972
43983
|
}, null, 8, ["layout-data", "onUpdate:layoutData"])
|
|
43973
43984
|
]),
|
|
43974
43985
|
_: 2
|
|
@@ -43976,31 +43987,33 @@ const g$1 = /* @__PURE__ */ S$2(x$2, [["render", P$2]]), splitpanes = "", window
|
|
|
43976
43987
|
]),
|
|
43977
43988
|
_: 1
|
|
43978
43989
|
})) : createCommentVNode("", !0),
|
|
43979
|
-
unref(
|
|
43980
|
-
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({
|
|
43981
43992
|
key: 0,
|
|
43982
43993
|
ref_key: "xGrid",
|
|
43983
|
-
ref:
|
|
43984
|
-
gridData: unref(
|
|
43985
|
-
"onUpdate:gridData":
|
|
43986
|
-
},
|
|
43987
|
-
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), {
|
|
43988
43999
|
key: 1,
|
|
43989
44000
|
ref_key: "xForm",
|
|
43990
|
-
ref:
|
|
43991
|
-
"form-config": unref(
|
|
43992
|
-
"onUpdate:formConfig":
|
|
43993
|
-
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
|
|
43994
44005
|
}, null, 8, ["form-config"])) : createCommentVNode("", !0),
|
|
43995
|
-
unref(
|
|
44006
|
+
unref(ee).gridData.type == "LINK" ? (openBlock(), createBlock(resolveDynamicComponent(unref(ee).gridData.params.linkComponentView), {
|
|
43996
44007
|
key: 2,
|
|
43997
|
-
|
|
44008
|
+
ref_key: "xLink",
|
|
44009
|
+
ref: oe,
|
|
44010
|
+
componentData: unref(ee).gridData.params
|
|
43998
44011
|
}, null, 8, ["componentData"])) : createCommentVNode("", !0)
|
|
43999
44012
|
], 64)) : createCommentVNode("", !0)
|
|
44000
44013
|
]);
|
|
44001
44014
|
};
|
|
44002
44015
|
}
|
|
44003
|
-
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
44016
|
+
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-bfe94e8e"]]);
|
|
44004
44017
|
WindowLayout.name = "slw-window-layout";
|
|
44005
44018
|
WindowLayout.install = (Q) => {
|
|
44006
44019
|
Q.component(WindowLayout.name, WindowLayout);
|
|
@@ -59300,7 +59313,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
59300
59313
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
59301
59314
|
setup(Q, { emit: H }) {
|
|
59302
59315
|
const G = Q, X = defineAsyncComponent(
|
|
59303
|
-
() => import("./index-
|
|
59316
|
+
() => import("./index-1a70276a.js")
|
|
59304
59317
|
);
|
|
59305
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);
|
|
59306
59319
|
re.value = createDesigner();
|
|
@@ -144302,7 +144315,7 @@ function reConsole() {
|
|
|
144302
144315
|
}
|
|
144303
144316
|
}
|
|
144304
144317
|
console.info(
|
|
144305
|
-
`%cSLW %cVer 0.9.
|
|
144318
|
+
`%cSLW %cVer 0.9.58%c
|
|
144306
144319
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
144307
144320
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
144308
144321
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED