@@ -44,6 +44,16 @@ export default defineComponent({
const initChart = () => {
const chart = echarts.init(ref_chart.value);
const option = {
+ title: {
+ show: props.data.length === 0,
+ text: '暂无数据',
+ left: 'center',
+ top: '50%',
+ textStyle: {
+ color: '#4C4C4C',
+ fontWeight: 'normal'
+ }
+ },
tooltip: {
trigger: 'item'
},