no message
Former-commit-id: 71852ea5a6a0d2931cd7f0113fe99c7a8ded5170 Former-commit-id: b759c8efc867db77dcec157a1cae855b75faac1f Former-commit-id: 97f3320fd1c171cf6f2d805c88e6408fd1e3c260
This commit is contained in:
42
src/pages/demo/chart/_demo/areaBase.vue
Normal file
42
src/pages/demo/chart/_demo/areaBase.vue
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
<template>
|
||||||
|
<Container type="ghost" :responsive="true">
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="6">
|
||||||
|
<ChartDemoControl
|
||||||
|
@sync="syncData"
|
||||||
|
:height.sync="height">
|
||||||
|
</ChartDemoControl>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="18">
|
||||||
|
<el-card>
|
||||||
|
<div :style="style">
|
||||||
|
<G2AreaBase ref="chart" v-bind="chart"></G2AreaBase>
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</Container>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import publicMixin from './mixins/public'
|
||||||
|
export default {
|
||||||
|
mixins: [
|
||||||
|
publicMixin
|
||||||
|
],
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
api: {
|
||||||
|
url: '/api/chart/G2Area',
|
||||||
|
data: {
|
||||||
|
type: 'base'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
chart: {
|
||||||
|
data: []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
@@ -1,42 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<Container type="ghost" :responsive="true">
|
<Container type="ghost" :responsive="true">
|
||||||
<el-row :gutter="20">
|
Hello
|
||||||
<el-col :span="6">
|
|
||||||
<ChartDemoControl
|
|
||||||
@sync="syncData"
|
|
||||||
:height.sync="height">
|
|
||||||
</ChartDemoControl>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="18">
|
|
||||||
<el-card>
|
|
||||||
<div :style="style">
|
|
||||||
<G2AreaBase ref="chart" v-bind="chart"></G2AreaBase>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</Container>
|
</Container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
|
||||||
import publicMixin from './mixins/public'
|
|
||||||
export default {
|
|
||||||
mixins: [
|
|
||||||
publicMixin
|
|
||||||
],
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
api: {
|
|
||||||
url: '/api/chart/G2Area',
|
|
||||||
data: {
|
|
||||||
type: 'base'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
chart: {
|
|
||||||
data: []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user