import { App } from 'vue'
import CustomButton from './custom-button/custom-button.vue'
// Manually introduce ECharts modules to reduce packing size
// import { use } from 'echarts/core'
// import { CanvasRenderer } from 'echarts/renderers'
// import { BarChart, LineChart, PieChart, RadarChart } from 'echarts/charts'
// import {
//   GridComponent,
//   TooltipComponent,
//   LegendComponent,
//   DataZoomComponent,
//   GraphicComponent
// } from 'echarts/components'
// import Chart from './chart/index.vue'

// use([
//   CanvasRenderer,
//   BarChart,
//   LineChart,
//   PieChart,
//   RadarChart,
//   GridComponent,
//   TooltipComponent,
//   LegendComponent,
//   DataZoomComponent,
//   GraphicComponent
// ])

export default {
  install(Vue: App) {
    // Vue.component('Chart', Chart)
    Vue.component('CustomButton', CustomButton)
  }
}

// import type { App } from 'vue';
// import { Button } from './Button';
// import { Input, Layout } from 'ant-design-vue';

// export function registerGlobComp(app: App) {
//   app.use(CustomButton).use(Button).use(Layout);
// }
