refine for mobile
This commit is contained in:
parent
4ef0782189
commit
06e88f25cd
|
@ -30,7 +30,9 @@ export default {
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
this.initChart()
|
||||
this.$nextTick(() => {
|
||||
this.initChart()
|
||||
})
|
||||
this.__resizeHandler = debounce(() => {
|
||||
if (this.chart) {
|
||||
this.chart.resize()
|
||||
|
|
|
@ -45,7 +45,10 @@ export default {
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
this.initChart()
|
||||
this.$nextTick(() => {
|
||||
this.initChart()
|
||||
})
|
||||
|
||||
if (this.autoResize) {
|
||||
this.__resizeHandler = debounce(() => {
|
||||
if (this.chart) {
|
||||
|
|
|
@ -28,7 +28,9 @@ export default {
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
this.initChart()
|
||||
this.$nextTick(() => {
|
||||
this.initChart()
|
||||
})
|
||||
this.__resizeHandler = debounce(() => {
|
||||
if (this.chart) {
|
||||
this.chart.resize()
|
||||
|
@ -58,7 +60,6 @@ export default {
|
|||
bottom: '10',
|
||||
data: ['Industries', 'Technology', 'Forex', 'Gold', 'Forecasts']
|
||||
},
|
||||
calculable: true,
|
||||
series: [
|
||||
{
|
||||
name: 'WEEKLY WRITE ARTICLES',
|
||||
|
|
|
@ -30,7 +30,9 @@ export default {
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
this.initChart()
|
||||
this.$nextTick(() => {
|
||||
this.initChart()
|
||||
})
|
||||
this.__resizeHandler = debounce(() => {
|
||||
if (this.chart) {
|
||||
this.chart.resize()
|
||||
|
|
|
@ -115,4 +115,10 @@ export default {
|
|||
margin-bottom: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width:1024px) {
|
||||
.chart-wrapper {
|
||||
padding: 8px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue