<template>
  <el-card shadow="hover" v-loading="loading" style="height: 100%;">
    <template #header>
      <span>各节点统计</span>
    </template>
    <v-chart v-if="dataLength > 0" :option="option" autoresize style="height: 60px;" :style="{ height: Math.max(dataLength * 36, 200) + 'px' }" />
    <el-empty v-else description="请选择流程" />
  </el-card>
</template>

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

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