添加Loon新UA判断

This commit is contained in:
Peng-YM
2020-09-12 22:28:11 +08:00
parent 173e9c05fd
commit e05bf0decd
6 changed files with 105 additions and 8 deletions

View File

@@ -1,14 +1,78 @@
<template>
<v-container>
</v-container>
<v-card
class="ml-4 mt-4 mb-4 mr-4"
>
<v-card-title>Nexitally</v-card-title>
<v-carousel
cycle
height="250"
:show-arrows="false"
>
<v-carousel-item>
<v-chart
:options="pie"
class="remains !important"
autoresize
/>
</v-carousel-item>
<v-carousel-item>
<v-chart
:options="pie"
class="remains !important"
autoresize
/>
</v-carousel-item>
</v-carousel>
</v-card>
</template>
<script>
import ECharts from 'vue-echarts';
import 'echarts/lib/chart/pie';
export default {
name: "Dashboard"
name: "Dashboard",
components: {
"v-chart": ECharts
},
computed: {
pie() {
const total = 400;
const upload = 30;
const download = 200;
const remaining = total - (upload + download);
return {
series: [
{
name: "流量",
type: "pie",
radius: "50%",
data: [
{
name: `剩余量\n${(remaining)} GB`,
value: remaining
},
{
name: `下载量\n${(download)} GB`,
value: download
},
{
name: `上传量\n${(upload)} GB`,
value: upload
}
]
}
],
animationEasing: 'elasticOut'
};
}
}
}
</script>
<style scoped>
<style>
.remains {
width: 100%;
height: 200px; /* or e.g. 400px */
}
</style>