Skip to content

Commit

Permalink
fix(pages/echarts): 简单的修复类型
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Dec 5, 2023
1 parent 75ae48e commit e95ae61
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pages/echarts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
LegendComponent,
} from 'echarts/components'
import VChart, { THEME_KEY } from 'vue-echarts'
import type { EChartsOption } from 'echarts'
use([
CanvasRenderer,
Expand All @@ -23,7 +24,7 @@ provide(
computed(() => (isDark.value ? 'dark' : '')),
)
const option = ref({
const option = ref<EChartsOption>({
title: {
text: 'Traffic Sources',
left: 'center',
Expand Down Expand Up @@ -63,7 +64,10 @@ const option = ref({
</script>

<template>
<v-chart class="chart" :option="option" autoresize />
<div>
<!-- @vue-ignore -->
<v-chart class="chart" :option="option" autoresize />
</div>
</template>

<style>
Expand Down

0 comments on commit e95ae61

Please sign in to comment.