slw 0.5.996 → 0.5.997
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 +14 -9
- package/lib/index.umd.cjs +4 -4
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -37022,7 +37022,7 @@ const pseudoClasses = /* @__PURE__ */ [
|
|
|
37022
37022
|
function css$1() {
|
|
37023
37023
|
return new LanguageSupport(cssLanguage, cssLanguage.data.of({ autocomplete: cssCompletionSource }));
|
|
37024
37024
|
}
|
|
37025
|
-
const
|
|
37025
|
+
const windowForm_vue_vue_type_style_index_0_scoped_a62820bf_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-a62820bf"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
|
|
37026
37026
|
key: 0,
|
|
37027
37027
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
37028
37028
|
}, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
|
|
@@ -37577,6 +37577,11 @@ const windowForm_vue_vue_type_style_index_0_scoped_746b7ba2_lang = "", _withScop
|
|
|
37577
37577
|
}
|
|
37578
37578
|
};
|
|
37579
37579
|
onFieldChange(H);
|
|
37580
|
+
}, displayFormItem = (Q, H) => {
|
|
37581
|
+
let G = document.getElementById(Q.toUpperCase());
|
|
37582
|
+
for (; G && !G.className.split(" ").includes("vxe-form--item"); )
|
|
37583
|
+
G = G.parentElement;
|
|
37584
|
+
G.style.display = H;
|
|
37580
37585
|
}, success = (Q, H) => {
|
|
37581
37586
|
$vxeMessage({
|
|
37582
37587
|
content: Q,
|
|
@@ -37610,7 +37615,7 @@ const windowForm_vue_vue_type_style_index_0_scoped_746b7ba2_lang = "", _withScop
|
|
|
37610
37615
|
(G) => G.type !== "seq" && G.type !== "checkbox" && G.fixed !== "left"
|
|
37611
37616
|
);
|
|
37612
37617
|
for (let [G, X] of H.entries())
|
|
37613
|
-
if (X.visible
|
|
37618
|
+
if (X.visible || X.displayForm && G > 0) {
|
|
37614
37619
|
X.fwidth = X.fwidth ? X.fwidth : 12;
|
|
37615
37620
|
let Z = H[G - 1];
|
|
37616
37621
|
Number(X.fwidth) > 24 ? (X.aLine = !0, X.residue = 0) : (X.aLine = !1, X.residue = 24 - Number(X.fwidth), Z && (Z.aLine || Z.residue - Number(X.fwidth) < 0) || G == 0 ? X.residue = 24 - Number(X.fwidth) : Z.residue - Number(X.fwidth) >= 0 && (X.residue = Z.residue - Number(X.fwidth))), (X.itemRender.props.newLine === !0 || X.itemRender.props.newLine === "Y") && (Z.fwidth = Number(Z.fwidth) + Number(Z.residue), Z.residue = 0, X.residue = 24 - Number(X.fwidth));
|
|
@@ -37787,7 +37792,7 @@ const windowForm_vue_vue_type_style_index_0_scoped_746b7ba2_lang = "", _withScop
|
|
|
37787
37792
|
]);
|
|
37788
37793
|
};
|
|
37789
37794
|
}
|
|
37790
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
37795
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a62820bf"]]);
|
|
37791
37796
|
WindowForm.name = "slw-window-form";
|
|
37792
37797
|
WindowForm.install = (Q) => {
|
|
37793
37798
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -38291,7 +38296,7 @@ const _hoisted_1$kT = ["src"], _sfc_main$3 = {
|
|
|
38291
38296
|
watch(
|
|
38292
38297
|
() => G.actionData,
|
|
38293
38298
|
async (fe) => {
|
|
38294
|
-
fe.type === "show" ? (te.value = !0, fe.params && typeof fe.params.width < "u" && (le.value = fe.params.width), fe.params && typeof fe.params.height < "u" && (typeof fe.params.height == "number" || fe.params.height.indexOf("px") > 0 ? (se.value = parseInt(fe.params.height) / document.documentElement.clientHeight * 100, se.value = Math.floor(se.value)) : fe.params.height.indexOf("%") > 0 || fe.params.height.indexOf("vh") > 0 ? se.value = parseInt(fe.params.height) : se.value = 75), fe.params && typeof fe.params.fullscreen < "u" && (re.value = fe.params.fullscreen), fe.params && typeof fe.params.zIndex < "u" && (oe.value = fe.params.zIndex), ae.value = XEUtils$1.clone(toRaw(fe.params), !0), fe.showComponent && (ne.value = (await de[`${he}/${fe.showComponent}`]()).default)) : te.value = !1;
|
|
38299
|
+
fe.type === "show" ? (te.value = !0, fe.params && typeof fe.params.width < "u" && (le.value = fe.params.width), fe.params && typeof fe.params.height < "u" && (typeof fe.params.height == "number" || fe.params.height.indexOf("px") > 0 ? (se.value = parseInt(fe.params.height) / document.documentElement.clientHeight * 100, se.value = Math.floor(se.value)) : fe.params.height.indexOf("%") > 0 || fe.params.height.indexOf("vh") > 0 ? se.value = parseInt(fe.params.height) : se.value = 75), fe.params && typeof fe.params.fullscreen < "u" && (re.value = fe.params.fullscreen), fe.params && typeof fe.params.zIndex < "u" && (oe.value = fe.params.zIndex), ae.value = XEUtils$1.clone(toRaw(fe.params), !0), fe.showComponent && (ne.value = (await de[`${he}/${fe.showComponent}`]()).default)) : (ne.value = "", te.value = !1);
|
|
38295
38300
|
},
|
|
38296
38301
|
{ deep: !0 }
|
|
38297
38302
|
);
|
|
@@ -38419,7 +38424,7 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
38419
38424
|
_sfc_main$2.install = (Q) => {
|
|
38420
38425
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
38421
38426
|
};
|
|
38422
|
-
const
|
|
38427
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_d1f16970_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-d1f16970"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
38423
38428
|
__name: "window-index",
|
|
38424
38429
|
props: {
|
|
38425
38430
|
windowId: {
|
|
@@ -39214,9 +39219,9 @@ const windowIndex_vue_vue_type_style_index_0_scoped_9f348366_lang = "", _withSco
|
|
|
39214
39219
|
} else
|
|
39215
39220
|
Z ? Q() : K && (formConfig.value.showEdit = Q);
|
|
39216
39221
|
}, editPreData = () => {
|
|
39217
|
-
isAutoSave.value && saveData(!1), --formConfig.value.rowIndex < 0 && (formConfig.value.rowIndex = formConfig.value.tableData.length - 1), formConfig.value.formData = formConfig.value.tableData[formConfig.value.rowIndex];
|
|
39222
|
+
isAutoSave.value && (formConfig.value.tableData[formConfig.value.rowIndex] = formConfig.value.formData, saveData(!1)), --formConfig.value.rowIndex < 0 && (formConfig.value.rowIndex = formConfig.value.tableData.length - 1), formConfig.value.formData = formConfig.value.tableData[formConfig.value.rowIndex];
|
|
39218
39223
|
}, editAfterData = () => {
|
|
39219
|
-
isAutoSave.value && saveData(!1), ++formConfig.value.rowIndex >= formConfig.value.tableData.length && (formConfig.value.rowIndex = 0), formConfig.value.formData = formConfig.value.tableData[formConfig.value.rowIndex];
|
|
39224
|
+
isAutoSave.value && (formConfig.value.tableData[formConfig.value.rowIndex] = formConfig.value.formData, saveData(!1)), ++formConfig.value.rowIndex >= formConfig.value.tableData.length && (formConfig.value.rowIndex = 0), formConfig.value.formData = formConfig.value.tableData[formConfig.value.rowIndex];
|
|
39220
39225
|
}, settPageHeight = () => {
|
|
39221
39226
|
props.height ? props.height.indexOf("%") > 0 ? layoutHeight.value = document.documentElement.clientHeight / 100 * parseInt(props.height) : layoutHeight.value = parseInt(props.height) : layoutHeight.value = document.documentElement.clientHeight;
|
|
39222
39227
|
}, jumpDesign = async (Q, H, G) => {
|
|
@@ -39525,7 +39530,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_9f348366_lang = "", _withSco
|
|
|
39525
39530
|
]);
|
|
39526
39531
|
};
|
|
39527
39532
|
}
|
|
39528
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
39533
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-d1f16970"]]);
|
|
39529
39534
|
WindowIndex.name = "slw-window-index";
|
|
39530
39535
|
WindowIndex.install = (Q) => {
|
|
39531
39536
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -122292,7 +122297,7 @@ function reConsole() {
|
|
|
122292
122297
|
}
|
|
122293
122298
|
}
|
|
122294
122299
|
console.info(
|
|
122295
|
-
"%cSLW %cVer 0.5.
|
|
122300
|
+
"%cSLW %cVer 0.5.997",
|
|
122296
122301
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
122297
122302
|
"color:#999;font-size: 12px"
|
|
122298
122303
|
);
|