mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
添加Loon新UA判断
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user