@ecan-bi/datav 1.1.9 → 1.1.11
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 +10 -7
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -7
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +14 -3
- package/package.json +1 -1
- package/types/graph/bar/Bar.vue.d.ts +56 -0
- package/types/graph/bar/index.d.ts +56 -0
- package/types/graph/bar/props.d.ts +30 -0
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
1
|
+
/*! @ecan-bi/datav@1.1.11 */
|
|
2
2
|
var _a, _b, _c, _d;
|
|
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, onBeforeUnmount, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, reactive, createTextVNode, withDirectives, vShow } from "vue";
|
|
4
4
|
import { throttle, init, use, registerMap } from "echarts/core";
|
|
@@ -2266,7 +2266,6 @@ const useValueFormatter = (formatter, value) => {
|
|
|
2266
2266
|
console.warn(e);
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
2269
|
-
console.log("\u7ED3\u679C-formatter", formatter);
|
|
2270
2269
|
return formatter;
|
|
2271
2270
|
};
|
|
2272
2271
|
const useIndicatorData = (props2 = {}) => {
|
|
@@ -2855,7 +2854,7 @@ const _sfc_main$n = defineComponent({
|
|
|
2855
2854
|
} else if (props2.format === "money") {
|
|
2856
2855
|
usedVariable = +usedVariable;
|
|
2857
2856
|
if (!isNaN(usedVariable)) {
|
|
2858
|
-
usedVariable = usedVariable
|
|
2857
|
+
usedVariable = formatMoney(usedVariable);
|
|
2859
2858
|
text = text.replace(variable, `<span style="color:${props2.variableColor};font-size:${props2.variableFontSize}">${usedVariable}</span>`);
|
|
2860
2859
|
}
|
|
2861
2860
|
} else {
|
|
@@ -2934,7 +2933,7 @@ const _sfc_main$n = defineComponent({
|
|
|
2934
2933
|
};
|
|
2935
2934
|
}
|
|
2936
2935
|
});
|
|
2937
|
-
const
|
|
2936
|
+
const Text_vue_vue_type_style_index_0_scoped_39de3ad6_lang = "";
|
|
2938
2937
|
const _hoisted_1$8 = ["innerHTML"];
|
|
2939
2938
|
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2940
2939
|
const _component_skeleton = resolveComponent("skeleton");
|
|
@@ -2952,7 +2951,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2952
2951
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
|
|
2953
2952
|
}, null, 12, _hoisted_1$8));
|
|
2954
2953
|
}
|
|
2955
|
-
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
2954
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-39de3ad6"]]);
|
|
2956
2955
|
const EcanText = withInstall(Text);
|
|
2957
2956
|
const _sfc_main$m = defineComponent({
|
|
2958
2957
|
name: "EcanScrollText",
|
|
@@ -4925,7 +4924,9 @@ const barProps = {
|
|
|
4925
4924
|
yAxisInverse: false,
|
|
4926
4925
|
isStack: false,
|
|
4927
4926
|
labelShow: false,
|
|
4928
|
-
labelFontSize: "12px"
|
|
4927
|
+
labelFontSize: "12px",
|
|
4928
|
+
labelPosition: "inside",
|
|
4929
|
+
labelColor: ""
|
|
4929
4930
|
};
|
|
4930
4931
|
const barComponentProps = transformToComponentProps(barProps);
|
|
4931
4932
|
const barEvents = ["refreshData", "click"];
|
|
@@ -4969,7 +4970,9 @@ const _sfc_main$a = defineComponent({
|
|
|
4969
4970
|
}
|
|
4970
4971
|
item.label = {
|
|
4971
4972
|
show: props2.labelShow,
|
|
4972
|
-
fontSize: props2.labelFontSize
|
|
4973
|
+
fontSize: props2.labelFontSize,
|
|
4974
|
+
position: props2.labelPosition,
|
|
4975
|
+
color: props2.labelColor
|
|
4973
4976
|
};
|
|
4974
4977
|
series2.push(item);
|
|
4975
4978
|
}
|