slw 0.9.44 → 0.9.46
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-dc445566.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_560a2ac3_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-560a2ac3"), 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 = [
|
|
@@ -9019,10 +9019,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f53c04dc_lang = "", _withScop
|
|
|
9019
9019
|
break;
|
|
9020
9020
|
case "IMPORT":
|
|
9021
9021
|
isImport.value = !0, importBtnId.value = Q._button_id, uploadData.value = {
|
|
9022
|
-
rowId: getSelectRecord()[gridData.value.rowId],
|
|
9023
9022
|
_region_id: gridData.value.params._region_id,
|
|
9024
9023
|
_button_id: importBtnId.value
|
|
9025
|
-
}, gridData.value.params.parentRowId && (uploadData.value[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue);
|
|
9024
|
+
}, gridData.value.rowId && (uploadData.value[gridData.value.rowId] = getSelectRecord()[gridData.value.rowId]), gridData.value.params.parentRowId && (uploadData.value[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue);
|
|
9026
9025
|
break;
|
|
9027
9026
|
case "EXPORT":
|
|
9028
9027
|
exportData();
|
|
@@ -9825,16 +9824,21 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f53c04dc_lang = "", _withScop
|
|
|
9825
9824
|
X = Z.itemRender.options;
|
|
9826
9825
|
}
|
|
9827
9826
|
return X;
|
|
9828
|
-
}, footerSum = (Q, H = 2,
|
|
9829
|
-
const
|
|
9830
|
-
let
|
|
9831
|
-
return
|
|
9832
|
-
|
|
9833
|
-
}),
|
|
9834
|
-
},
|
|
9835
|
-
|
|
9827
|
+
}, footerSum = (Q, H, G = 2, X = "和值") => {
|
|
9828
|
+
const Z = (te, ne) => {
|
|
9829
|
+
let re = 0;
|
|
9830
|
+
return te.forEach((oe) => {
|
|
9831
|
+
re += Number(oe[ne]);
|
|
9832
|
+
}), re.toFixed(G);
|
|
9833
|
+
}, K = (te, ne) => {
|
|
9834
|
+
let re = 0;
|
|
9835
|
+
return te.forEach((oe) => {
|
|
9836
|
+
re += Number(oe[ne]);
|
|
9837
|
+
}), (re / te.length).toFixed(G);
|
|
9838
|
+
}, ee = ({ columns: te, data: ne }) => [
|
|
9839
|
+
te.map((re, oe) => oe === 2 ? X : Q.includes(re.field) ? Z(ne, re.field) : H.includes(re.field) ? K(ne, re.field) : "")
|
|
9836
9840
|
];
|
|
9837
|
-
gridData.value.showFooter = !0, gridData.value.footerMethod =
|
|
9841
|
+
gridData.value.showFooter = !0, gridData.value.footerMethod = ee;
|
|
9838
9842
|
}, setColumnFixed = (Q, H = "left") => {
|
|
9839
9843
|
let G = getCurRegion();
|
|
9840
9844
|
if (G) {
|
|
@@ -10178,7 +10182,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f53c04dc_lang = "", _withScop
|
|
|
10178
10182
|
]);
|
|
10179
10183
|
};
|
|
10180
10184
|
}
|
|
10181
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10185
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-560a2ac3"]]);
|
|
10182
10186
|
WindowGrid.name = "slw-window-grid";
|
|
10183
10187
|
WindowGrid.install = (Q) => {
|
|
10184
10188
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -59258,7 +59262,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
59258
59262
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
59259
59263
|
setup(Q, { emit: H }) {
|
|
59260
59264
|
const G = Q, X = defineAsyncComponent(
|
|
59261
|
-
() => import("./index-
|
|
59265
|
+
() => import("./index-6f418ecf.js")
|
|
59262
59266
|
);
|
|
59263
59267
|
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);
|
|
59264
59268
|
re.value = createDesigner();
|
|
@@ -144256,7 +144260,7 @@ function reConsole() {
|
|
|
144256
144260
|
}
|
|
144257
144261
|
}
|
|
144258
144262
|
console.info(
|
|
144259
|
-
`%cSLW %cVer 0.9.
|
|
144263
|
+
`%cSLW %cVer 0.9.46%c
|
|
144260
144264
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
144261
144265
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
144262
144266
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED