st-comp 0.0.32 → 0.0.33
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/lib/bundle.js +2 -2
- package/lib/bundle.umd.cjs +2 -2
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/TreeMap/index.vue +2 -2
- package/src/pages/TreeMap/index.vue +1 -2
- package/vite.config.ts +5 -0
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
config: {
|
|
25
25
|
type: Object,
|
|
26
26
|
default: () => ({})
|
|
27
|
-
}
|
|
27
|
+
},
|
|
28
28
|
})
|
|
29
29
|
|
|
30
30
|
const chartRef = ref<HTMLElement>()
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
fontSize: 20,
|
|
139
139
|
formatter: (params: any) => {
|
|
140
140
|
return `${params.data.name}
|
|
141
|
-
${params.data.
|
|
141
|
+
${params.data.colorValue}`
|
|
142
142
|
},
|
|
143
143
|
},
|
|
144
144
|
}
|
|
@@ -530,8 +530,7 @@ onMounted(() => {
|
|
|
530
530
|
return {
|
|
531
531
|
name: child.name,
|
|
532
532
|
value: child.value,
|
|
533
|
-
colorValue: childPercent.toFixed(2)
|
|
534
|
-
percent: childPercent.toFixed(2),
|
|
533
|
+
colorValue: `${childPercent > 0 ? '+' : ''}${childPercent.toFixed(2)}%`,
|
|
535
534
|
color: linearLegendRef.value.numberToColor(childPercent)
|
|
536
535
|
}
|
|
537
536
|
})
|