From d6d01a06bcdb06933abb7ea096fff334c36c1dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9D=A8?= <1711467488@qq.com> Date: Sun, 18 Feb 2018 17:40:51 +0800 Subject: [PATCH] no message Former-commit-id: 999aa187f7f07a78d1c946a121fa9675681e0c9e Former-commit-id: 4fc77bbc0c7393944a81fbad3b1d927e98add4e7 Former-commit-id: 138aceca47a45bd91a832149bbf5651656c41fb6 --- src/pages/demo/chart/index/index.vue | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/pages/demo/chart/index/index.vue b/src/pages/demo/chart/index/index.vue index 66e49644..5e1251bf 100644 --- a/src/pages/demo/chart/index/index.vue +++ b/src/pages/demo/chart/index/index.vue @@ -2,24 +2,24 @@ - + - - + + - + - - + + - + - - + + @@ -37,16 +37,19 @@ export default { chart: [ { api: {url: '/api/chart/G2Line', data: {type: 'base'}}, + refName: 'G2LineBase', data: [], padding: [30, 40, 50, 50] }, { api: {url: '/api/chart/G2Line', data: {type: 'step'}}, + refName: 'G2LineStep', data: [], padding: [30, 40, 50, 50] }, { api: {url: '/api/chart/G2Column', data: {type: 'base'}}, + refName: 'G2ColumnBase', data: [], padding: [30, 40, 50, 50] } @@ -54,9 +57,9 @@ export default { layout: { // 调整布局时 复制 layoutUpdatedHandler() 输出的日志到这里 layout: [ - {'x': 0, 'y': 0, 'w': 7, 'h': 9, 'i': '0'}, - {'x': 7, 'y': 0, 'w': 5, 'h': 9, 'i': '1'}, - {'x': 0, 'y': 9, 'w': 4, 'h': 7, 'i': '2'} + {'x': 0, 'y': 0, 'w': 4, 'h': 7, 'i': '0'}, + {'x': 4, 'y': 0, 'w': 4, 'h': 7, 'i': '1'}, + {'x': 8, 'y': 0, 'w': 4, 'h': 7, 'i': '2'} ], colNum: 12, rowHeight: 30,