hfn-components 0.1.1 → 0.1.2
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.
|
@@ -9,7 +9,10 @@ const _hoisted_2 = {
|
|
|
9
9
|
};
|
|
10
10
|
const _hoisted_3 = ["onClick", "onMouseover"];
|
|
11
11
|
const _hoisted_4 = ["id"];
|
|
12
|
-
const _hoisted_5 = {
|
|
12
|
+
const _hoisted_5 = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "noData"
|
|
15
|
+
};
|
|
13
16
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14
17
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
15
18
|
_ctx.showLegend && !$setup.isEmpty ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
package/es/utils/chart.mjs
CHANGED
|
@@ -131,7 +131,7 @@ const setEchartTooltip = (options, props) => {
|
|
|
131
131
|
">
|
|
132
132
|
</span>`;
|
|
133
133
|
if (props.isReturn) {
|
|
134
|
-
html += `<span style='color:${params[i].color}'>${params[i].seriesName}</span>\uFF1A${params[i].value[2]?.toFixed(props.floatNumber)}\uFF08${params[i].value[1] > 0 ? "+" : ""}${params[i].value[1]
|
|
134
|
+
html += `<span style='color:${params[i].color}'>${params[i].seriesName}</span>\uFF1A${params[i].value[2]?.toFixed(props.floatNumber)}\uFF08${params[i].value[1] > 0 ? "+" : ""}${params[i].value[1]}%\uFF09`;
|
|
135
135
|
} else {
|
|
136
136
|
if (props.chartType === "category") {
|
|
137
137
|
html += `<span style='color:${params[i].color}'>
|