@ecan-bi/datav 1.4.4 → 1.4.5
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/dist/index.es.js +13 -14
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -2
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.4.
|
|
1
|
+
/*! @ecan-bi/datav@1.4.5 */
|
|
2
2
|
import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, onBeforeUnmount, normalizeClass as normalizeClass$1, normalizeStyle as normalizeStyle$1, createElementVNode, createCommentVNode, Fragment, renderList, provide, useCssVars, toDisplayString, pushScopeId, popScopeId, createSlots, withModifiers, createTextVNode, Teleport, resolveDynamicComponent, mergeProps, normalizeProps, toHandlers, withDirectives, vShow, reactive, vModelText, getCurrentInstance, onDeactivated, isRef, onActivated, isVNode, Transition, onBeforeUpdate, Comment } from "vue";
|
|
3
3
|
import { throttle, init, use, registerMap } from "echarts/core";
|
|
4
4
|
import { addListener, removeListener } from "resize-detector";
|
|
@@ -1797,15 +1797,10 @@ const styleList = [
|
|
|
1797
1797
|
pageMode: "normal"
|
|
1798
1798
|
}), i = without(styleList, ...r);
|
|
1799
1799
|
return computed(() => {
|
|
1800
|
-
var
|
|
1801
|
-
const a = pick$1(e, i);
|
|
1802
|
-
|
|
1803
|
-
((
|
|
1804
|
-
else {
|
|
1805
|
-
const c = ["width", "height", "top", "left"];
|
|
1806
|
-
for (const f of c)
|
|
1807
|
-
hasOwn(e, f) && (l = e[f]) != null && l.suffix && (a[f] = (e[f].value || 0) + e[f].suffix);
|
|
1808
|
-
}
|
|
1800
|
+
var s, l;
|
|
1801
|
+
const a = pick$1(e, i), o = ["width", "height", "top", "left"];
|
|
1802
|
+
for (const c of o)
|
|
1803
|
+
hasOwn(a, c) && (["width", "height"].includes(c) && ((s = e[c]) == null ? void 0 : s.suffix) === "%" && unref(n) === "design" ? a[c] = "100%" : (l = e[c]) != null && l.suffix && (a[c] = (e[c].value || 0) + e[c].suffix));
|
|
1809
1804
|
return a;
|
|
1810
1805
|
});
|
|
1811
1806
|
}, useOnEvent = (e, r) => {
|
|
@@ -8688,7 +8683,7 @@ const runCode = (e, r) => {
|
|
|
8688
8683
|
const { calc: pe = [], filter: me = [] } = k.pivotTableCal;
|
|
8689
8684
|
if (ie.push(...pe), me != null && me.length)
|
|
8690
8685
|
for (const ve of me) {
|
|
8691
|
-
const Se = ie.find((Ae) => Ae.
|
|
8686
|
+
const Se = ie.find((Ae) => Ae.columnName === ve.fieldName);
|
|
8692
8687
|
Se && (Se.conditions || (Se.conditions = []), Se.conditions.push(ve));
|
|
8693
8688
|
}
|
|
8694
8689
|
}
|
|
@@ -26932,6 +26927,7 @@ const DataSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_r
|
|
|
26932
26927
|
});
|
|
26933
26928
|
}
|
|
26934
26929
|
const E = [];
|
|
26930
|
+
console.log("filterList", s.value);
|
|
26935
26931
|
for (const _ of unref(s)) {
|
|
26936
26932
|
const k = v.find((P) => P.label === _.key);
|
|
26937
26933
|
k && E.push({
|
|
@@ -26969,7 +26965,7 @@ const DataSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_r
|
|
|
26969
26965
|
b !== -1 && o.value.splice(b, 1);
|
|
26970
26966
|
},
|
|
26971
26967
|
onFilter: (v) => {
|
|
26972
|
-
const { key: b, rule: E = {} } = v || {}, { rule: _, value: k } = E;
|
|
26968
|
+
const { key: b = "", rule: E = {} } = v || {}, { rule: _, value: k } = E;
|
|
26973
26969
|
if (b && _ && k) {
|
|
26974
26970
|
const P = s.value.find((D) => D.key === b);
|
|
26975
26971
|
P ? (P.rule = _, P.value = k) : s.value.push({
|
|
@@ -26977,12 +26973,15 @@ const DataSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_r
|
|
|
26977
26973
|
rule: _,
|
|
26978
26974
|
value: k
|
|
26979
26975
|
});
|
|
26976
|
+
} else {
|
|
26977
|
+
const P = unref(s).findIndex((D) => D.key === b);
|
|
26978
|
+
P !== -1 && s.value.splice(P, 1);
|
|
26980
26979
|
}
|
|
26981
26980
|
g();
|
|
26982
26981
|
}
|
|
26983
26982
|
};
|
|
26984
26983
|
}
|
|
26985
|
-
}),
|
|
26984
|
+
}), PivotTableContainer_vue_vue_type_style_index_0_scoped_ec6e5e96_lang = "";
|
|
26986
26985
|
function _sfc_render(e, r, n, i, a, o) {
|
|
26987
26986
|
const s = resolveComponent("pivot-table");
|
|
26988
26987
|
return openBlock(), createElementBlock("div", {
|
|
@@ -26998,7 +26997,7 @@ function _sfc_render(e, r, n, i, a, o) {
|
|
|
26998
26997
|
}), null, 16, ["pageMode", "calculateList", "onCalculate", "onDeleteCalculate", "onFilter"])
|
|
26999
26998
|
], 4);
|
|
27000
26999
|
}
|
|
27001
|
-
const PivotTableContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
27000
|
+
const PivotTableContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ec6e5e96"]]), EcanPivotTable = withInstall$1(PivotTableContainer), components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27002
27001
|
__proto__: null,
|
|
27003
27002
|
EcanBar,
|
|
27004
27003
|
EcanBorder,
|