feat 折线图的折点显示数字
All checks were successful
Build image / build (push) Successful in 1m30s

This commit is contained in:
timerzz 2024-12-03 13:43:42 +08:00
parent 4f87bcecf8
commit 2cabc8102a
2 changed files with 7 additions and 4 deletions

View File

@ -28,7 +28,7 @@ const props = defineProps(
const options = computed(()=> {
return {
title: {
text: "历史价格",
text: "历史库存",
left: "center"
},
tooltip: {
@ -50,7 +50,8 @@ const options = computed(()=> {
{
type: 'line',
name: '库存',
data: (props.ats|| []).map(p => p.ats)
data: (props.ats|| []).map(p => p.ats),
itemStyle : { normal: {label : {show: true}}}
},
]
}

View File

@ -185,12 +185,14 @@ const options = computed(()=> {
{
type: 'line',
name: '原价',
data: (props.provider.historyPrice|| []).map(p => p.originalPrice)
data: (props.provider.historyPrice|| []).map(p => p.originalPrice),
itemStyle : { normal: {label : {show: true}}}
},
{
type: 'line',
name: '到手价',
data: (props.provider.historyPrice|| []).map(p => p.finalPrice)
data: (props.provider.historyPrice|| []).map(p => p.finalPrice),
itemStyle : { normal: {label : {show: true}}}
}
]
}