// import sumFunction from '../src/myPlugin/sumFunction/index.js'; // 引入
// import subFunction from '../src/myPlugin/subFunction/index.js'; // 引入

import barChart from '../src/package/barChart/index.js';
import chordChart from '../src/package/chordChart/index.js';
import lineChart from '../src/package/lineChart/index.js';
import mapChart from '../src/package/mapChart/index.js';
import pieChart from '../src/package/pieChart/index.js';
import sexRatio from '../src/package/sexRatio/index.js';
import timeChart from '../src/package/timeChart/index.js';
import viewMap from '../src/package/viewMap/index.js';
import wordChart from '../src/package/wordChart/index.js';
import lineAndBar from '../src/package/lineAndBar/index.js';
import cityMap from '../src/package/cityMap/index.js';

const components = [
    barChart,
    chordChart,
    lineChart,
    mapChart,
    pieChart,
    sexRatio,
    timeChart,
    viewMap,
    wordChart,
    lineAndBar,
    cityMap
];
const install = function (Vue, opts = {}) {
    components.forEach(component => {
        Vue.component(component.name, component);
    })
}
if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
}
module.exports = {
    install,
    barChart,
    chordChart,
    lineChart,
    mapChart,
    pieChart,
    sexRatio,
    timeChart,
    viewMap,
    wordChart,
    lineAndBar,
    cityMap
};
module.exports.default = module.exports;
