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-
|
|
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
|
|
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",
|
|
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-
|
|
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 = "",
|
|
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
|
|
43890
|
-
const
|
|
43891
|
-
|
|
43892
|
-
}, 100),
|
|
43893
|
-
if (
|
|
43894
|
-
if (
|
|
43895
|
-
let
|
|
43896
|
-
|
|
43897
|
-
}
|
|
43898
|
-
|
|
43899
|
-
|
|
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
|
-
},
|
|
43903
|
-
if (
|
|
43904
|
-
|
|
43908
|
+
}, se = (de, he) => {
|
|
43909
|
+
if (de.gridData)
|
|
43910
|
+
de.gridData.params.curHeight += he, de.height += he;
|
|
43905
43911
|
else {
|
|
43906
|
-
|
|
43907
|
-
for (let
|
|
43908
|
-
|
|
43912
|
+
de.height += he;
|
|
43913
|
+
for (let ue = 0; ue < de.child.length; ue++)
|
|
43914
|
+
se(de.child[ue], he);
|
|
43909
43915
|
}
|
|
43910
|
-
},
|
|
43911
|
-
var
|
|
43912
|
-
(
|
|
43916
|
+
}, ce = (de, he) => {
|
|
43917
|
+
var ue;
|
|
43918
|
+
(ue = re.value) == null || ue.gridReload(de, he);
|
|
43913
43919
|
};
|
|
43914
43920
|
return onMounted(() => {
|
|
43915
|
-
|
|
43916
|
-
|
|
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(
|
|
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(
|
|
43928
|
+
horizontal: unref(ee).mode !== "horizontal",
|
|
43922
43929
|
"push-other-panes": !1,
|
|
43923
43930
|
style: { backgroundColor: "#fff" },
|
|
43924
|
-
onResize: unref(
|
|
43931
|
+
onResize: unref(ae)
|
|
43925
43932
|
}, {
|
|
43926
43933
|
default: withCtx(() => [
|
|
43927
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(
|
|
43928
|
-
key:
|
|
43929
|
-
size:
|
|
43930
|
-
"min-size":
|
|
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
|
-
|
|
43940
|
+
me.mode === "tab" ? (openBlock(), createBlock(pe, {
|
|
43934
43941
|
type: "border-card",
|
|
43935
|
-
key:
|
|
43942
|
+
key: me.id
|
|
43936
43943
|
}, {
|
|
43937
43944
|
default: withCtx(() => [
|
|
43938
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
43939
|
-
key:
|
|
43940
|
-
tab: unref(Z)(
|
|
43941
|
-
label: unref(Z)(
|
|
43942
|
-
title: unref(Z)(
|
|
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(
|
|
43947
|
-
"layout-data":
|
|
43948
|
-
"onUpdate:layoutData": (
|
|
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
|
-
|
|
43963
|
+
me.mode !== "tab" ? (openBlock(), createBlock(ue, mergeProps$1({
|
|
43957
43964
|
key: 1,
|
|
43958
|
-
"layout-data": unref(
|
|
43959
|
-
"onUpdate:layoutData": (
|
|
43960
|
-
},
|
|
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(
|
|
43968
|
-
key: unref(
|
|
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(
|
|
43978
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(ee).child, (me, ve) => (openBlock(), createBlock(fe, {
|
|
43972
43979
|
forceRender: !0,
|
|
43973
|
-
key:
|
|
43974
|
-
tab: unref(Z)(
|
|
43975
|
-
label: unref(Z)(
|
|
43976
|
-
title: unref(Z)(
|
|
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(
|
|
43980
|
-
"layout-data": unref(
|
|
43981
|
-
"onUpdate:layoutData": (
|
|
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(
|
|
43990
|
-
unref(
|
|
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:
|
|
43994
|
-
gridData: unref(
|
|
43995
|
-
"onUpdate:gridData":
|
|
43996
|
-
},
|
|
43997
|
-
unref(
|
|
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:
|
|
44001
|
-
"form-config": unref(
|
|
44002
|
-
"onUpdate:formConfig":
|
|
44003
|
-
onGridReload:
|
|
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(
|
|
44012
|
+
unref(ee).gridData.type == "LINK" ? (openBlock(), createBlock(resolveDynamicComponent(unref(ee).gridData.params.linkComponentView), {
|
|
44006
44013
|
key: 2,
|
|
44007
|
-
|
|
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-
|
|
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-
|
|
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.
|
|
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