Commit ea54e802 by xinla

chart flex height 问题

1 parent 6a3cc4e4
...@@ -188,7 +188,7 @@ export default { ...@@ -188,7 +188,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.chart { .chart {
position: relative; position: relative;
height: 100%; max-height: 100%;
min-width: 400px; min-width: 400px;
min-height: 400px; min-height: 400px;
} }
......
...@@ -228,7 +228,7 @@ export default { ...@@ -228,7 +228,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.chart { .chart {
position: relative; position: relative;
height: 100%; max-height: 100%;
min-width: 400px; min-width: 400px;
min-height: 400px; min-height: 400px;
} }
......
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.chart { .chart {
height: 100%; max-height: 100%;
min-width: 200px; min-width: 200px;
min-height: 200px; min-height: 200px;
} }
......
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
<template> <template>
<div> <div>
<div class="operation"> <div class="operation mb20">
<el-button-group> <el-button-group>
<el-button type="primary" :plain="timeRange != 7" @click="setTime(7)">近一周</el-button> <el-button type="primary" :plain="timeRange != 7" @click="setTime(7)">近一周</el-button>
<el-button type="primary" :plain="timeRange != 30" @click="setTime(30)">近一月</el-button> <el-button type="primary" :plain="timeRange != 30" @click="setTime(30)">近一月</el-button>
...@@ -160,6 +160,7 @@ export default { ...@@ -160,6 +160,7 @@ export default {
placeholder="请选择群主" /> placeholder="请选择群主" />
</div> </div>
<ChartLine <ChartLine
style="height: 400px"
v-loading="loading.customerGroup" v-loading="loading.customerGroup"
:xData="customerGroup.xData" :xData="customerGroup.xData"
:legend="legend['customerGroup']" :legend="legend['customerGroup']"
...@@ -187,6 +188,7 @@ export default { ...@@ -187,6 +188,7 @@ export default {
</el-select> </el-select>
</div> </div>
<ChartLine <ChartLine
style="height: 400px"
v-loading="loading.customerGroupMember" v-loading="loading.customerGroupMember"
:xData="customerGroupMember.xData" :xData="customerGroupMember.xData"
:legend="legend['customerGroupMember']" :legend="legend['customerGroupMember']"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!