style(chart) : 修复图标显示效果
- 自动计算高度的基数提高
This commit is contained in:
@@ -23,7 +23,7 @@ const chartHeight = computed(() => {
|
|||||||
// 做一些额外的检测, 如果 option 下面的title 字段超过 8 个,就把 addHeight 增加
|
// 做一些额外的检测, 如果 option 下面的title 字段超过 8 个,就把 addHeight 增加
|
||||||
analysis.value?.option?.forEach((item: any) => {
|
analysis.value?.option?.forEach((item: any) => {
|
||||||
if (item.title?.length > 8) {
|
if (item.title?.length > 8) {
|
||||||
addHeight += 5;
|
addHeight += 9;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user