BasicLine.vue 487 B

123456789101112131415161718
  1. <template>
  2. <Charts :width="width" :height="height" :echarts-options="options" :loading="loading"></Charts>
  3. </template>
  4. <script setup lang="ts">
  5. import { defineProps } from "vue";
  6. import Charts from '@/components/Charts/Charts.vue';
  7. import { basicLineProps } from "./props";
  8. import { useChartOptions } from "@/components/Charts/hooks/useChartOptions";
  9. const props = defineProps(basicLineProps);
  10. const { options, loading } = useChartOptions(props);
  11. </script>
  12. <style scoped></style>