slw 0.7.0 → 0.7.2
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 +17 -17
- package/lib/index.umd.cjs +5 -5
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -8511,7 +8511,7 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8511
8511
|
PictureUpload.install = (Q) => {
|
|
8512
8512
|
Q.component(PictureUpload.name, PictureUpload);
|
|
8513
8513
|
};
|
|
8514
|
-
const
|
|
8514
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_01a38616_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-01a38616"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
|
|
8515
8515
|
class: "slw-window-grid-container",
|
|
8516
8516
|
style: { height: "100%" }
|
|
8517
8517
|
}, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
|
|
@@ -9763,16 +9763,16 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e7c2c578_lang = "", _withScop
|
|
|
9763
9763
|
X = Z.itemRender.options;
|
|
9764
9764
|
}
|
|
9765
9765
|
return X;
|
|
9766
|
-
}, footerSum = (Q) => {
|
|
9767
|
-
const
|
|
9768
|
-
let
|
|
9769
|
-
return
|
|
9770
|
-
|
|
9771
|
-
}),
|
|
9772
|
-
},
|
|
9773
|
-
|
|
9766
|
+
}, footerSum = (Q, H = 2) => {
|
|
9767
|
+
const G = (Z, K) => {
|
|
9768
|
+
let ee = 0;
|
|
9769
|
+
return Z.forEach((te) => {
|
|
9770
|
+
ee += Number(te[K]);
|
|
9771
|
+
}), ee.toFixed(H);
|
|
9772
|
+
}, X = ({ columns: Z, data: K }) => [
|
|
9773
|
+
Z.map((ee, te) => te === 2 ? "和值" : Q.includes(ee.field) ? G(K, ee.field) : "")
|
|
9774
9774
|
];
|
|
9775
|
-
gridData.value.showFooter = !0, gridData.value.footerMethod =
|
|
9775
|
+
gridData.value.showFooter = !0, gridData.value.footerMethod = X;
|
|
9776
9776
|
}, setColumnFixed = (Q, H = "left") => {
|
|
9777
9777
|
let G = getCurRegion();
|
|
9778
9778
|
if (G) {
|
|
@@ -9783,7 +9783,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e7c2c578_lang = "", _withScop
|
|
|
9783
9783
|
}
|
|
9784
9784
|
};
|
|
9785
9785
|
return onMounted(async () => {
|
|
9786
|
-
|
|
9786
|
+
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
9787
9787
|
body: { options: bodyMenus.value },
|
|
9788
9788
|
visibleMethod
|
|
9789
9789
|
}), await evalEvent(gridData.value.params.formEvents.dataInit), gridData.value.toolbarConfig.buttons.forEach((Q) => {
|
|
@@ -10022,7 +10022,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e7c2c578_lang = "", _withScop
|
|
|
10022
10022
|
]);
|
|
10023
10023
|
};
|
|
10024
10024
|
}
|
|
10025
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
10025
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-01a38616"]]);
|
|
10026
10026
|
WindowGrid.name = "slw-window-grid";
|
|
10027
10027
|
WindowGrid.install = (Q) => {
|
|
10028
10028
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -38859,7 +38859,7 @@ var js = js$1.exports;
|
|
|
38859
38859
|
})(Q);
|
|
38860
38860
|
})(js$1);
|
|
38861
38861
|
var jsExports = js$1.exports;
|
|
38862
|
-
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
38862
|
+
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_70ba7820_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-70ba7820"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
|
|
38863
38863
|
key: 0,
|
|
38864
38864
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
38865
38865
|
}, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
|
|
@@ -38997,10 +38997,10 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
38997
38997
|
if (formConfig.value.formData) {
|
|
38998
38998
|
formData.value = formConfig.value.formData, Q = formConfig.value.openType === "new", formConfig.value.openType === "view" && (formConfig.value.columns = XEUtils$1.clone(formConfig.value.columns, !0));
|
|
38999
38999
|
for (const Z of formConfig.value.columns)
|
|
39000
|
-
formConfig.value.openType === "view" && ((H = Z.itemRender) == null ? void 0 : H.name) == "ElInput" && (Z.itemRender.props.readonly = !0), Z.dataType === "EDITOR" ? formData.value[Z.field] == null ? formData.value[Z.field] = "" : formData.value[Z.field] = jsExports.js_beautify(
|
|
39000
|
+
formConfig.value.openType === "view" && ((H = Z.itemRender) == null ? void 0 : H.name) == "ElInput" && (Z.itemRender.props.readonly = !0), Z.dataType === "EDITOR" ? formData.value[Z.field] == null ? formData.value[Z.field] = "" : Z.language == "javascript" && (formData.value[Z.field] = jsExports.js_beautify(
|
|
39001
39001
|
formData.value[Z.field],
|
|
39002
39002
|
codeBeautifyConfig
|
|
39003
|
-
) : ((G = Z.itemRender) == null ? void 0 : G.name) == "ElSelect" && Z.itemRender.props.multiple && (formData.value[Z.field] = (X = formData.value[Z.field]) == null ? void 0 : X.split(","));
|
|
39003
|
+
)) : ((G = Z.itemRender) == null ? void 0 : G.name) == "ElSelect" && Z.itemRender.props.multiple && (formData.value[Z.field] = (X = formData.value[Z.field]) == null ? void 0 : X.split(","));
|
|
39004
39004
|
} else
|
|
39005
39005
|
for (const Z in formConfig.value.columns)
|
|
39006
39006
|
formConfig.value.columns[Z].type !== "seq" && formConfig.value.columns[Z].type !== "checkbox" && (formData.value[formConfig.value.columns[Z].field] = "");
|
|
@@ -39648,7 +39648,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39648
39648
|
]);
|
|
39649
39649
|
};
|
|
39650
39650
|
}
|
|
39651
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
39651
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-70ba7820"]]);
|
|
39652
39652
|
WindowForm.name = "slw-window-form";
|
|
39653
39653
|
WindowForm.install = (Q) => {
|
|
39654
39654
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -124166,7 +124166,7 @@ function reConsole() {
|
|
|
124166
124166
|
}
|
|
124167
124167
|
}
|
|
124168
124168
|
console.info(
|
|
124169
|
-
"%cSLW %cVer 0.7.
|
|
124169
|
+
"%cSLW %cVer 0.7.2",
|
|
124170
124170
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
124171
124171
|
"color:#999;font-size: 12px"
|
|
124172
124172
|
);
|