no message
Former-commit-id: c3d321cea3b5365f84a0970d997f9cbe7f10044e Former-commit-id: 02a3a611e76597cd6bc4e1a5a1a34eddd0da5e33 Former-commit-id: eae2474dc9fd68cae41b0119dfc26660d2d0a216
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
<GridLayout v-bind="layout" @layout-updated="layoutUpdatedHandler">
|
||||
<GridItem
|
||||
v-bind="layout.layout[0]"
|
||||
@resize="resizeHandler('G2Line1')"
|
||||
@resized="resizedHandler('G2Line1')">
|
||||
@resize="handleResize('G2LineBase1')"
|
||||
@resized="handleResized('G2LineBase1')">
|
||||
<el-card class="header-in">
|
||||
<div slot="header">近年趋势</div>
|
||||
<G2LineBase v-bind="chart[0]"></G2LineBase>
|
||||
<G2LineBase ref="G2LineBase1" v-bind="chart[0]"></G2LineBase>
|
||||
</el-card>
|
||||
</GridItem>
|
||||
</GridLayout>
|
||||
|
||||
@@ -21,8 +21,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
// 更新指定的图表
|
||||
chartResize () {
|
||||
this.$log('chartResize')
|
||||
chartResize (name) {
|
||||
this.$refs[name].resize()
|
||||
},
|
||||
// 布局组件发生变化
|
||||
layoutUpdatedHandler (newLayout) {
|
||||
@@ -33,12 +33,12 @@ export default {
|
||||
console.groupEnd()
|
||||
},
|
||||
// 改变尺寸
|
||||
resizeHandler (name) {
|
||||
this.chartResize()
|
||||
handleResize (name) {
|
||||
// this.chartResize(name)
|
||||
},
|
||||
// 改变尺寸完成
|
||||
resizedHandler (name) {
|
||||
this.chartResize()
|
||||
handleResized (name) {
|
||||
this.chartResize(name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user