feat: 新增编辑阶段 mock 接口轮询请求功能

This commit is contained in:
MTrun
2022-03-23 20:41:50 +08:00
parent c42e9ad0fb
commit 2d7db3f0f6
22 changed files with 117 additions and 70 deletions
@@ -1,5 +1,5 @@
<template>
<VChart :theme="themeColor" :option="option" autoresize></VChart>
<v-chart :theme="themeColor" :option="option" autoresize></v-chart>
</template>
<script setup lang="ts">
@@ -10,6 +10,7 @@ import { CanvasRenderer } from 'echarts/renderers'
import { BarChart } from 'echarts/charts'
import { mergeTheme } from '@/packages/public/chart'
import config, { includes } from './config'
import { useChartDataFetch } from '@/hooks/useChartDataFetch.hook'
import {
DatasetComponent,
GridComponent,
@@ -44,4 +45,6 @@ use([
const option = computed(() => {
return mergeTheme(props.chartConfig.option, props.themeSetting, includes)
})
useChartDataFetch(props.chartConfig)
</script>