no message

Former-commit-id: d3af31231001a5d4d3313a84bcce19d6e3909990
Former-commit-id: e1815df054e24bc3a5ccb0423e1e49dcd15eb080
Former-commit-id: 71084fb3c455afc0a0868cc4edc46793ef4181e0
This commit is contained in:
李杨
2018-02-19 14:53:26 +08:00
parent 2d50e3cfdb
commit 453839099b
2 changed files with 34 additions and 3 deletions

View File

@@ -1,6 +1,10 @@
<template> <template>
<Container type="ghost" :responsive="true"> <Container type="ghost" :responsive="true">
<ChartDemoCard></ChartDemoCard> <ChartDemoCard>
<template slot-scope="props">
<G2AreaBase :data="props.data" v-bind="chart"></G2AreaBase>
</template>
</ChartDemoCard>
</Container> </Container>
</template> </template>
@@ -9,6 +13,13 @@ import publicMixin from './mixins/public'
export default { export default {
mixins: [ mixins: [
publicMixin publicMixin
] ],
data () {
return {
chart: {
// 图表设置
}
}
}
} }
</script> </script>

View File

@@ -1,5 +1,25 @@
<template> <template>
<el-card> <el-card>
Hello <div :style="style">
<slot :data="data"></slot>
</div>
</el-card> </el-card>
</template> </template>
<script>
export default {
data () {
return {
data: [],
height: 300
}
},
computed: {
style () {
return {
height: this.height + 'px'
}
}
}
}
</script>