@ecan-bi/datav 1.4.40 → 1.4.41
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 +44 -40
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/laboratory/pivotTable/PivotTableContainer.vue.d.ts +23 -8
- package/types/laboratory/pivotTable/index.d.ts +23 -8
- package/types/laboratory/pivotTable/props.d.ts +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.4.
|
|
1
|
+
/*! @ecan-bi/datav@1.4.41 */
|
|
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";
|
|
@@ -27712,73 +27712,77 @@ const DataSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_r
|
|
|
27712
27712
|
name: "EcanPivotTable",
|
|
27713
27713
|
components: {},
|
|
27714
27714
|
props: {
|
|
27715
|
-
...pivotTableComponentProps
|
|
27715
|
+
...pivotTableComponentProps,
|
|
27716
|
+
fullMode: {
|
|
27717
|
+
type: Boolean,
|
|
27718
|
+
default: !1
|
|
27719
|
+
}
|
|
27716
27720
|
},
|
|
27717
|
-
setup(c, {
|
|
27718
|
-
var
|
|
27719
|
-
const
|
|
27721
|
+
setup(c, { emit: f, expose: u }) {
|
|
27722
|
+
var gn, Pn;
|
|
27723
|
+
const d = (gn = window == null ? void 0 : window.config) == null ? void 0 : gn.pageId, p = (Pn = window == null ? void 0 : window.config) == null ? void 0 : Pn.indicatorToken, m = usePickComponentStyle(c), v = ref(), { pageMode: g, theme: y, width: b, height: w } = inject(GLOBAL_CONFIG, {
|
|
27720
27724
|
pageMode: "normal",
|
|
27721
27725
|
theme: "light",
|
|
27722
27726
|
width: "",
|
|
27723
27727
|
height: ""
|
|
27724
|
-
}), { getAllGlobalModel:
|
|
27728
|
+
}), { getAllGlobalModel: Bn } = inject(GLOBAL_MODEL, {
|
|
27725
27729
|
// @ts-ignore
|
|
27726
27730
|
// eslint-disable-next-line no-void
|
|
27727
27731
|
getAllGlobalModel: () => {
|
|
27728
27732
|
}
|
|
27729
|
-
}),
|
|
27730
|
-
const { width:
|
|
27731
|
-
let
|
|
27732
|
-
return typeof
|
|
27733
|
+
}), x = computed(() => {
|
|
27734
|
+
const { width: Vn, height: qn } = c;
|
|
27735
|
+
let Kn = 0, Wn = 0;
|
|
27736
|
+
return typeof Vn == "string" ? Kn = parseFloat(Vn) : Vn.suffix === "px" ? Kn = +Vn.value : Vn.suffix === "%" && (Kn = parseFloat(unref(b)) * (Vn.value / 100)), typeof qn == "string" ? Wn = parseFloat(qn) : qn.suffix === "px" ? Wn = +qn.value : qn.suffix === "%" && (Wn = parseFloat(unref(w)) * (qn.value / 100)), {
|
|
27733
27737
|
...c,
|
|
27734
|
-
width:
|
|
27735
|
-
height:
|
|
27736
|
-
pageId:
|
|
27737
|
-
indicatorToken:
|
|
27738
|
+
width: Kn + "px",
|
|
27739
|
+
height: Wn + "px",
|
|
27740
|
+
pageId: d,
|
|
27741
|
+
indicatorToken: p,
|
|
27738
27742
|
context: CONTEXT,
|
|
27739
|
-
globalModel:
|
|
27743
|
+
globalModel: Bn()
|
|
27740
27744
|
};
|
|
27741
|
-
}),
|
|
27745
|
+
}), re = computed(() => INDICATOR_URL), J = () => {
|
|
27742
27746
|
switch (c.dataType) {
|
|
27743
27747
|
case "indicator":
|
|
27744
|
-
unref(
|
|
27748
|
+
unref(v).refreshData();
|
|
27745
27749
|
break;
|
|
27746
27750
|
}
|
|
27747
|
-
}, { setRequest:
|
|
27751
|
+
}, { setRequest: vn } = inject(REQUEST_MODEL, {
|
|
27748
27752
|
// @ts-ignore
|
|
27749
27753
|
// eslint-disable-next-line no-void
|
|
27750
|
-
setRequest: ({ id:
|
|
27754
|
+
setRequest: ({ id: Vn, sortNum: qn, requestFn: Kn }) => {
|
|
27751
27755
|
}
|
|
27752
27756
|
});
|
|
27753
|
-
typeof
|
|
27757
|
+
typeof vn == "function" && vn({
|
|
27754
27758
|
id: c.id,
|
|
27755
|
-
requestFn:
|
|
27759
|
+
requestFn: J,
|
|
27756
27760
|
sortNum: c.requestSort
|
|
27757
|
-
}),
|
|
27758
|
-
refreshData:
|
|
27761
|
+
}), u({
|
|
27762
|
+
refreshData: J
|
|
27759
27763
|
});
|
|
27760
|
-
const
|
|
27761
|
-
unref(
|
|
27764
|
+
const Fn = useEmitEvent(c)("click", () => {
|
|
27765
|
+
unref(v).click();
|
|
27762
27766
|
});
|
|
27763
27767
|
return useOnEvent(c, {
|
|
27764
|
-
refreshData:
|
|
27765
|
-
click:
|
|
27768
|
+
refreshData: J,
|
|
27769
|
+
click: Fn
|
|
27766
27770
|
}), onMounted(() => {
|
|
27767
27771
|
}), {
|
|
27768
27772
|
props: c,
|
|
27769
|
-
style:
|
|
27770
|
-
pageMode:
|
|
27771
|
-
pivotTableRef:
|
|
27772
|
-
theme:
|
|
27773
|
-
customProps:
|
|
27774
|
-
indicatorUrl:
|
|
27775
|
-
click:
|
|
27776
|
-
onTableChange: ({ type:
|
|
27777
|
-
console.log("data", Vn);
|
|
27773
|
+
style: m,
|
|
27774
|
+
pageMode: g,
|
|
27775
|
+
pivotTableRef: v,
|
|
27776
|
+
theme: y,
|
|
27777
|
+
customProps: x,
|
|
27778
|
+
indicatorUrl: re,
|
|
27779
|
+
click: Fn,
|
|
27780
|
+
onTableChange: ({ type: Vn, data: qn }) => {
|
|
27781
|
+
console.log("data", qn), f("tableChange", { type: Vn, data: qn });
|
|
27778
27782
|
}
|
|
27779
27783
|
};
|
|
27780
27784
|
}
|
|
27781
|
-
}),
|
|
27785
|
+
}), PivotTableContainer_vue_vue_type_style_index_0_scoped_6ac97f9c_lang = "";
|
|
27782
27786
|
function _sfc_render$1(c, f, u, d, p, m) {
|
|
27783
27787
|
const v = resolveComponent("pivot-table");
|
|
27784
27788
|
return openBlock(), createElementBlock("div", {
|
|
@@ -27788,14 +27792,14 @@ function _sfc_render$1(c, f, u, d, p, m) {
|
|
|
27788
27792
|
createVNode(v, mergeProps({ ref: "pivotTableRef" }, c.customProps, {
|
|
27789
27793
|
pageMode: c.pageMode,
|
|
27790
27794
|
theme: c.theme,
|
|
27791
|
-
fullMode:
|
|
27795
|
+
fullMode: c.fullMode,
|
|
27792
27796
|
indicatorUrl: c.indicatorUrl,
|
|
27793
27797
|
enlargeContainer: ".page-config",
|
|
27794
27798
|
onTableChange: c.onTableChange
|
|
27795
|
-
}), null, 16, ["pageMode", "theme", "indicatorUrl", "onTableChange"])
|
|
27799
|
+
}), null, 16, ["pageMode", "theme", "fullMode", "indicatorUrl", "onTableChange"])
|
|
27796
27800
|
], 4);
|
|
27797
27801
|
}
|
|
27798
|
-
const PivotTableContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
27802
|
+
const PivotTableContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-6ac97f9c"]]), EcanPivotTable = withInstall$1(PivotTableContainer), valueLineProps = {
|
|
27799
27803
|
...props,
|
|
27800
27804
|
id: "",
|
|
27801
27805
|
name: "双值轴折线图",
|