<template>
  <el-card shadow="hover" v-loading="loading">
    <template #header>
      <span>流程状态分布</span>
    </template>
    <v-chart v-if="option" :option="option" autoresize style="height: 320px" />
    <el-empty v-else description="暂无数据" />
  </el-card>
</template>

<script setup lang="ts">
import VChart from 'vue-echarts'

defineProps<{
  option: any
  loading: boolean
}>()
</script>
