Update C3.vue
This commit is contained in:
parent
a2d6dd93b5
commit
15c4f643c4
|
@ -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: ['预购队列', '最新成交价'],
|
||||
|
|
Loading…
Reference in New Issue