feat: ✨ 路由调整 菜单调整 删除无用演示
This commit is contained in:
41
src/views/demo/plugins/charts/gauge/demo1/index.vue
Normal file
41
src/views/demo/plugins/charts/gauge/demo1/index.vue
Normal file
@@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<d2-container>
|
||||
<template slot="header">一般</template>
|
||||
<div class="inner">
|
||||
<ve-gauge :data="chartData" v-bind="pubSetting"></ve-gauge>
|
||||
</div>
|
||||
<d2-link-btn
|
||||
slot="footer"
|
||||
title="更多示例和文档"
|
||||
link="https://v-charts.js.org"/>
|
||||
</d2-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import list from '@/views/demo/plugins/charts/_mixin/list.js'
|
||||
export default {
|
||||
mixins: [
|
||||
list
|
||||
],
|
||||
data () {
|
||||
return {
|
||||
chartData: {
|
||||
columns: ['type', 'a', 'b', 'value'],
|
||||
rows: [
|
||||
{ type: '速度', value: 80, a: 1, b: 2 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.inner {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
bottom: 20px;
|
||||
left: 20px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user