fix:handleSetLineChartData bug

This commit is contained in:
Pan 2017-11-17 18:45:40 +08:00
parent 6b9e89055d
commit f6279077de
2 changed files with 6 additions and 1 deletions

View File

@ -53,6 +53,11 @@ import CountTo from 'vue-count-to'
export default {
components: {
CountTo
},
methods: {
handleSetLineChartData(type) {
this.$emit('handleSetLineChartData', type)
}
}
}
</script>

View File

@ -2,7 +2,7 @@
<div class="dashboard-editor-container">
<github-corner></github-corner>
<panel-group></panel-group>
<panel-group @handleSetLineChartData="handleSetLineChartData"></panel-group>
<el-row style="margin-top:30px;background:#fff;padding:15px 15px 0;">
<line-chart :chart-data="lineChartData"></line-chart>