feat: 新增分析页

This commit is contained in:
2024-10-18 00:21:19 +08:00
parent ad31d9f2ff
commit 455f2695c8
11 changed files with 766 additions and 10 deletions

View File

@@ -0,0 +1,41 @@
<template>
<VCharts
v-if="renderChart"
:option="option"
:autoresize="autoResize"
:style="{ width, height }"
/>
</template>
<script lang="ts" setup>
import { nextTick, ref } from 'vue'
import VCharts from 'vue-echarts'
defineProps({
option: {
type: Object,
default() {
return {}
}
},
autoResize: {
type: Boolean,
default: true
},
width: {
type: String,
default: '100%'
},
height: {
type: String,
default: '100%'
}
})
const renderChart = ref(false)
// wait container expand
nextTick(() => {
renderChart.value = true
})
</script>
<style scoped lang="less"></style>