Update C3.vue

This commit is contained in:
sc 2021-04-27 16:34:19 +08:00
parent a2d6dd93b5
commit 15c4f643c4
1 changed files with 16 additions and 2 deletions

View File

@ -1,5 +1,7 @@
<template>
<div style="height: 200px" ref="demo"></div>
<div v-loading="loading">
<div style="height: 200px" ref="demo"></div>
</div>
</template>
<script>
@ -15,7 +17,16 @@
props: {
msg: String
},
data() {
return {
loading: true
}
},
mounted(){
var _this = this;
setTimeout(function() {
_this.loading = false
}, 500);
const myChart = echarts.init(this.$refs.demo, 'T');
const option = {
@ -27,6 +38,9 @@
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
legend: {
data: ['预购队列', '最新成交价'],