@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 CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.4.40 */
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, { expose: f }) {
27718
- var _, gn;
27719
- const u = (_ = window == null ? void 0 : window.config) == null ? void 0 : _.pageId, d = (gn = window == null ? void 0 : window.config) == null ? void 0 : gn.indicatorToken, p = usePickComponentStyle(c), m = ref(), { pageMode: v, theme: g, width: y, height: b } = inject(GLOBAL_CONFIG, {
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: w } = inject(GLOBAL_MODEL, {
27728
+ }), { getAllGlobalModel: Bn } = inject(GLOBAL_MODEL, {
27725
27729
  // @ts-ignore
27726
27730
  // eslint-disable-next-line no-void
27727
27731
  getAllGlobalModel: () => {
27728
27732
  }
27729
- }), Bn = computed(() => {
27730
- const { width: Pn, height: Vn } = c;
27731
- let qn = 0, Kn = 0;
27732
- return typeof Pn == "string" ? qn = parseFloat(Pn) : Pn.suffix === "px" ? qn = +Pn.value : Pn.suffix === "%" && (qn = parseFloat(unref(y)) * (Pn.value / 100)), typeof Vn == "string" ? Kn = parseFloat(Vn) : Vn.suffix === "px" ? Kn = +Vn.value : Vn.suffix === "%" && (Kn = parseFloat(unref(b)) * (Vn.value / 100)), {
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: qn + "px",
27735
- height: Kn + "px",
27736
- pageId: u,
27737
- indicatorToken: d,
27738
+ width: Kn + "px",
27739
+ height: Wn + "px",
27740
+ pageId: d,
27741
+ indicatorToken: p,
27738
27742
  context: CONTEXT,
27739
- globalModel: w()
27743
+ globalModel: Bn()
27740
27744
  };
27741
- }), x = computed(() => INDICATOR_URL), re = () => {
27745
+ }), re = computed(() => INDICATOR_URL), J = () => {
27742
27746
  switch (c.dataType) {
27743
27747
  case "indicator":
27744
- unref(m).refreshData();
27748
+ unref(v).refreshData();
27745
27749
  break;
27746
27750
  }
27747
- }, { setRequest: J } = inject(REQUEST_MODEL, {
27751
+ }, { setRequest: vn } = inject(REQUEST_MODEL, {
27748
27752
  // @ts-ignore
27749
27753
  // eslint-disable-next-line no-void
27750
- setRequest: ({ id: Pn, sortNum: Vn, requestFn: qn }) => {
27754
+ setRequest: ({ id: Vn, sortNum: qn, requestFn: Kn }) => {
27751
27755
  }
27752
27756
  });
27753
- typeof J == "function" && J({
27757
+ typeof vn == "function" && vn({
27754
27758
  id: c.id,
27755
- requestFn: re,
27759
+ requestFn: J,
27756
27760
  sortNum: c.requestSort
27757
- }), f({
27758
- refreshData: re
27761
+ }), u({
27762
+ refreshData: J
27759
27763
  });
27760
- const Rn = useEmitEvent(c)("click", () => {
27761
- unref(m).click();
27764
+ const Fn = useEmitEvent(c)("click", () => {
27765
+ unref(v).click();
27762
27766
  });
27763
27767
  return useOnEvent(c, {
27764
- refreshData: re,
27765
- click: Rn
27768
+ refreshData: J,
27769
+ click: Fn
27766
27770
  }), onMounted(() => {
27767
27771
  }), {
27768
27772
  props: c,
27769
- style: p,
27770
- pageMode: v,
27771
- pivotTableRef: m,
27772
- theme: g,
27773
- customProps: Bn,
27774
- indicatorUrl: x,
27775
- click: Rn,
27776
- onTableChange: ({ type: Pn, data: Vn }) => {
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
- }), PivotTableContainer_vue_vue_type_style_index_0_scoped_5d58a7b5_lang = "";
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: !1,
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-5d58a7b5"]]), EcanPivotTable = withInstall$1(PivotTableContainer), valueLineProps = {
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: "双值轴折线图",