🌺前言
echarts暂无数据
javascript
export const useNoDataEcharts = (title = '') => {
if (!title) {
return {
title: {
text: '暂无数据',
x: 'center',
y: 'center',
textStyle: {
color: '#9798b4',
fontWeight: 'normal',
fontSize: 16,
fill: '#9798b4'
}
}
}
}
return {
title: {
text: `${title}`,
left: 'center',
top: 10
},
graphic: {
type: 'text',
left: '49%',
top: '52%',
style: {
text: '暂无数据',
textAlign: 'center',
fill: '#9798b4',
fontSize: 16
}
}
}
}
文章最后更新于 2024-08-17 01:18:36
作者:徐徐版权声明:转载请注明文章出处
留言

~~空空如也