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,