no message

Former-commit-id: c3d321cea3b5365f84a0970d997f9cbe7f10044e
Former-commit-id: 02a3a611e76597cd6bc4e1a5a1a34eddd0da5e33
Former-commit-id: eae2474dc9fd68cae41b0119dfc26660d2d0a216
This commit is contained in:
李杨
2018-02-17 13:08:17 +08:00
parent ef253db240
commit 690447fd2c
2 changed files with 9 additions and 9 deletions

View File

@@ -3,11 +3,11 @@
<GridLayout v-bind="layout" @layout-updated="layoutUpdatedHandler"> <GridLayout v-bind="layout" @layout-updated="layoutUpdatedHandler">
<GridItem <GridItem
v-bind="layout.layout[0]" v-bind="layout.layout[0]"
@resize="resizeHandler('G2Line1')" @resize="handleResize('G2LineBase1')"
@resized="resizedHandler('G2Line1')"> @resized="handleResized('G2LineBase1')">
<el-card class="header-in"> <el-card class="header-in">
<div slot="header">近年趋势</div> <div slot="header">近年趋势</div>
<G2LineBase v-bind="chart[0]"></G2LineBase> <G2LineBase ref="G2LineBase1" v-bind="chart[0]"></G2LineBase>
</el-card> </el-card>
</GridItem> </GridItem>
</GridLayout> </GridLayout>

View File

@@ -21,8 +21,8 @@ export default {
}, },
methods: { methods: {
// 更新指定的图表 // 更新指定的图表
chartResize () { chartResize (name) {
this.$log('chartResize') this.$refs[name].resize()
}, },
// 布局组件发生变化 // 布局组件发生变化
layoutUpdatedHandler (newLayout) { layoutUpdatedHandler (newLayout) {
@@ -33,12 +33,12 @@ export default {
console.groupEnd() console.groupEnd()
}, },
// 改变尺寸 // 改变尺寸
resizeHandler (name) { handleResize (name) {
this.chartResize() // this.chartResize(name)
}, },
// 改变尺寸完成 // 改变尺寸完成
resizedHandler (name) { handleResized (name) {
this.chartResize() this.chartResize(name)
} }
} }
} }