<template>
  <view class="wrap" :style="{ height: height + 'px' }">
    <EChartsView :option="option" />
  </view>
</template>

<script lang="uts">
import EChartsView from '@/uni_modules/charts/EChartsView.vue'

export default {
  components: { EChartsView },
  props: {
    option: { type: Object, default: () => ({}) },
    height: { type: Number, default: 320 }
  }
}
</script>

<style>
.wrap {
  width: 100%;
}
</style>
