slw 0.7.6 → 0.7.7
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.
- package/lib/index.js +21 -11
- package/lib/index.umd.cjs +4 -4
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -38865,7 +38865,7 @@ var js = js$1.exports;
|
|
|
38865
38865
|
})(Q);
|
|
38866
38866
|
})(js$1);
|
|
38867
38867
|
var jsExports = js$1.exports;
|
|
38868
|
-
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
38868
|
+
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_a5b54b04_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-a5b54b04"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
|
|
38869
38869
|
key: 0,
|
|
38870
38870
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
38871
38871
|
}, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
|
|
@@ -39166,17 +39166,26 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39166
39166
|
}, formInitData = async (Q, H, X) => {
|
|
39167
39167
|
if (X) {
|
|
39168
39168
|
let G = {}, Z = {};
|
|
39169
|
-
|
|
39169
|
+
formConfig.value.params.queryParams && Object.keys(formConfig.value.params.queryParams).forEach((K) => {
|
|
39170
|
+
G["PARAMS." + K] = formConfig.value.params.queryParams[K];
|
|
39171
|
+
}), formConfig.value.params.parentData && Object.keys(formConfig.value.params.parentData).forEach((K) => {
|
|
39170
39172
|
Z["PARENT." + K] = formConfig.value.params.parentData[K];
|
|
39171
39173
|
}), await axios.post("window/defaultValue", $qs.stringify({ _region_id: H })).then((K) => {
|
|
39172
39174
|
if (K.data.result && K.data.data)
|
|
39173
39175
|
for (let ee in K.data.data) {
|
|
39174
39176
|
let te = K.data.data[ee];
|
|
39175
|
-
Q[ee] = evalDefaultValue(te, {
|
|
39177
|
+
if (Q[ee] = evalDefaultValue(te, {
|
|
39176
39178
|
...Q,
|
|
39177
39179
|
...G,
|
|
39178
39180
|
...Z
|
|
39179
|
-
})
|
|
39181
|
+
}), Q[ee]) {
|
|
39182
|
+
let ne = {
|
|
39183
|
+
data: Q,
|
|
39184
|
+
item: formConfig.value.columns.filter((re) => re.field == ee)[0],
|
|
39185
|
+
property: ee
|
|
39186
|
+
};
|
|
39187
|
+
onFieldChange(ne);
|
|
39188
|
+
}
|
|
39180
39189
|
}
|
|
39181
39190
|
});
|
|
39182
39191
|
}
|
|
@@ -39656,7 +39665,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39656
39665
|
]);
|
|
39657
39666
|
};
|
|
39658
39667
|
}
|
|
39659
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
39668
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a5b54b04"]]);
|
|
39660
39669
|
WindowForm.name = "slw-window-form";
|
|
39661
39670
|
WindowForm.install = (Q) => {
|
|
39662
39671
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -39997,7 +40006,7 @@ function P$1(Q, H, X, G, Z, K) {
|
|
|
39997
40006
|
renderSlot(Q.$slots, "default")
|
|
39998
40007
|
], 4);
|
|
39999
40008
|
}
|
|
40000
|
-
const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "",
|
|
40009
|
+
const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", windowLayout_vue_vue_type_style_index_0_scoped_ce781476_lang = "", _withScopeId$1 = (Q) => (pushScopeId("data-v-ce781476"), Q = Q(), popScopeId(), Q), _hoisted_1$kU = { class: "slw-window-layout-container" }, _sfc_main$4 = {
|
|
40001
40010
|
__name: "window-layout",
|
|
40002
40011
|
props: {
|
|
40003
40012
|
layoutData: {
|
|
@@ -40055,6 +40064,7 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
40055
40064
|
}, {
|
|
40056
40065
|
default: withCtx(() => [
|
|
40057
40066
|
fe.mode === "tab" ? (openBlock(), createBlock(pe, {
|
|
40067
|
+
type: "card",
|
|
40058
40068
|
key: fe.id
|
|
40059
40069
|
}, {
|
|
40060
40070
|
default: withCtx(() => [
|
|
@@ -40133,7 +40143,7 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
40133
40143
|
]);
|
|
40134
40144
|
};
|
|
40135
40145
|
}
|
|
40136
|
-
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
40146
|
+
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-ce781476"]]);
|
|
40137
40147
|
WindowLayout.name = "slw-window-layout";
|
|
40138
40148
|
WindowLayout.install = (Q) => {
|
|
40139
40149
|
Q.component(WindowLayout.name, WindowLayout);
|
|
@@ -40288,7 +40298,7 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
40288
40298
|
_sfc_main$2.install = (Q) => {
|
|
40289
40299
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
40290
40300
|
};
|
|
40291
|
-
const
|
|
40301
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_defaad7b_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-defaad7b"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
40292
40302
|
__name: "window-index",
|
|
40293
40303
|
props: {
|
|
40294
40304
|
windowId: {
|
|
@@ -41041,7 +41051,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c9d3b0b2_lang = "", _withSco
|
|
|
41041
41051
|
}, checkColumnMethod = ({ column: Q }) => !(Q.type === "seq" || Q.type === "checkbox"), updateData = (Q, H) => {
|
|
41042
41052
|
rootLayout.value = H;
|
|
41043
41053
|
}, showPreView = (Q, H, X, G) => {
|
|
41044
|
-
preWindowName.value = H, X && (preQueryParams.value = X), G && (G.preViewFooterShow && (preViewFooterShow.value = G.preViewFooterShow), G.preViewSubmitFun && (preViewSubmitFun.value = G.preViewSubmitFun), G.preViewCloseFun && (preViewCloseFun.value = G.preViewCloseFun), G.preViewCode && (preViewCode.value = G.preViewCode), G.width && (preViewWidth.value = G.width), G.height && (
|
|
41054
|
+
preWindowName.value = H, X && (preQueryParams.value = X), G && (G.preViewFooterShow && (preViewFooterShow.value = G.preViewFooterShow), G.preViewSubmitFun && (preViewSubmitFun.value = G.preViewSubmitFun), G.preViewCloseFun && (preViewCloseFun.value = G.preViewCloseFun), G.preViewCode && (preViewCode.value = G.preViewCode), G.width && (preViewWidth.value = G.width), G.height && (!isNaN(G.height) || G.height.indexOf("px") > 0 ? (preViewHeight.value = parseFloat(G.height) / document.documentElement.clientHeight * 100, preViewHeight.value = Math.floor(preViewHeight.value)) : G.height.indexOf("%") > 0 || G.height.indexOf("vh") > 0 ? preViewHeight.value = parseFloat(G.height) : preViewHeight.value = 75)), preWindowId.value = Q, preViewShow.value = !preViewShow.value, preViewLoading.value = !0;
|
|
41045
41055
|
}, preViewLoadSuccess = () => {
|
|
41046
41056
|
preViewLoading.value = !1;
|
|
41047
41057
|
}, preViewxModal = ref(), showPreViewClose = () => {
|
|
@@ -41415,7 +41425,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c9d3b0b2_lang = "", _withSco
|
|
|
41415
41425
|
]);
|
|
41416
41426
|
};
|
|
41417
41427
|
}
|
|
41418
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
41428
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-defaad7b"]]);
|
|
41419
41429
|
WindowIndex.name = "slw-window-index";
|
|
41420
41430
|
WindowIndex.install = (Q) => {
|
|
41421
41431
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -124214,7 +124224,7 @@ function reConsole() {
|
|
|
124214
124224
|
}
|
|
124215
124225
|
}
|
|
124216
124226
|
console.info(
|
|
124217
|
-
"%cSLW %cVer 0.7.
|
|
124227
|
+
"%cSLW %cVer 0.7.7",
|
|
124218
124228
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
124219
124229
|
"color:#999;font-size: 12px"
|
|
124220
124230
|
);
|