no message

Former-commit-id: 087751fcb7068e84d011ef6dba969a95224c5a1b
Former-commit-id: beb0a9dc7ba9abae910203b7d4cab62d76e9292a
Former-commit-id: 7a843483076bc07c57114010df178aff8b94f2b3
This commit is contained in:
李杨
2018-02-17 23:05:13 +08:00
parent 776931a4b5
commit 873233943b

View File

@@ -2,19 +2,17 @@
<Container type="ghost" :responsive="true" class="demo-chart-index"> <Container type="ghost" :responsive="true" class="demo-chart-index">
<GridLayout v-bind="layout" @layout-updated="layoutUpdatedHandler"> <GridLayout v-bind="layout" @layout-updated="layoutUpdatedHandler">
<!-- 卡片 --> <!-- 卡片 -->
<GridItem <GridItem v-bind="layout.layout[0]" @resized="handleResized('G2LineBase0')">
v-bind="layout.layout[0]"
@resized="handleResized('G2LineBase1')">
<el-card class="header-in"> <el-card class="header-in">
<ChartCardHeader <ChartCardHeader slot="header" title="近年行情" @refresh="handleRefreshData(0)"></ChartCardHeader>
slot="header" <G2LineBase ref="G2LineBase0" v-bind="chart[0]"></G2LineBase>
title="近年行情" </el-card>
@refresh="handleRefreshData(0)"> </GridItem>
</ChartCardHeader> <!-- 卡片 -->
<G2LineBase <GridItem v-bind="layout.layout[1]" @resized="handleResized('G2LineBase1')">
ref="G2LineBase1" <el-card class="header-in">
v-bind="chart[0]"> <ChartCardHeader slot="header" title="近年行情" @refresh="handleRefreshData(1)"></ChartCardHeader>
</G2LineBase> <G2LineBase ref="G2LineBase1" v-bind="chart[1]"></G2LineBase>
</el-card> </el-card>
</GridItem> </GridItem>
</GridLayout> </GridLayout>
@@ -30,6 +28,11 @@ export default {
data () { data () {
return { return {
chart: [ chart: [
{
api: {url: '/api/chart/G2Line', data: {code: 1}},
data: [],
padding: [30, 40, 50, 50]
},
{ {
api: {url: '/api/chart/G2Line', data: {code: 1}}, api: {url: '/api/chart/G2Line', data: {code: 1}},
data: [], data: [],