@ecan-bi/datav 1.0.75 → 1.0.76

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.0.75 */
1
+ /*! @ecan-bi/datav@1.0.76 */
2
2
  var _a, _b, _c;
3
3
  import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, normalizeStyle, createCommentVNode, provide, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, withDirectives, vShow } from "vue";
4
4
  import { throttle, init, use, registerMap } from "echarts/core";
@@ -2795,7 +2795,7 @@ const _sfc_main$l = defineComponent({
2795
2795
  if (usedVariable >= 0) {
2796
2796
  text = text.replace(variable, `<span style="color:#ED6643;font-size:${props2.variableFontSize}"><img style="width: ${props2.variableFontSize}" src="${goUp}"/>${usedVariable}%</span>`);
2797
2797
  } else {
2798
- text = text.replace(variable, `<span style="color: #6ACB97;font-size:${props2.variableFontSize}"><img style="width: ${props2.variableFontSize}" src="${goDown}"/>${usedVariable}%</span>`);
2798
+ text = text.replace(variable, `<span style="color: #6ACB97;font-size:${props2.variableFontSize}"><img style="width: ${props2.variableFontSize}" src="${goDown}"/>${Math.abs(usedVariable)}%</span>`);
2799
2799
  }
2800
2800
  } else {
2801
2801
  text = text.replace(variable, `<span style="color:${props2.variableColor};font-size:${props2.variableFontSize}">${0}%</span>`);
@@ -2877,7 +2877,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
2877
2877
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
2878
2878
  }, null, 12, _hoisted_1$7));
2879
2879
  }
2880
- const Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-2c15326b"]]);
2880
+ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-04fdee06"]]);
2881
2881
  const EcanText = withInstall(Text);
2882
2882
  const ScrollText_vue_vue_type_style_index_0_scoped_true_lang = "";
2883
2883
  const _sfc_main$k = defineComponent({
@@ -3195,7 +3195,7 @@ const proportionProps = {
3195
3195
  data: {
3196
3196
  percent: 0.3
3197
3197
  },
3198
- text: "",
3198
+ text: "{percent}%",
3199
3199
  fontSize: "26px",
3200
3200
  color: "#4091f7",
3201
3201
  strokeWidth: 6,