import biPreviewForm from './bi/biPreviewForm.js';
import formCenterGrid from './bi/formCenterGrid.js';
import biEditor from './bi'
import biSave from './bi/components/biDialog/biSave.js'
import biMenuAdd from './bi/components/biDialog/biMenuAdd.js'
import tsTargetSelect from './bi/components/uiElement/tsTargetSelect.js'
import biSquareSign from './bi/components/uiElement/biSquareSign.js'
import biTargetInfoTable from './bi/components/uiElement/biTargetInfoTable.js'

import customMod from './bi/customMod.js'
// vuex的store文件
// import biStore from './assets/store.js'

const components = [
    biPreviewForm, formCenterGrid, biEditor, biSave, biMenuAdd, tsTargetSelect, biSquareSign, biTargetInfoTable, customMod
]

function install(Vue) {
    components.map(component => {
        console.info('install----all----')
        Vue.component(component.name, component)
    })

    // opts.store ? opts.store.registerModule(['bi'], biStore) : '';
}
export {
    install,
    biPreviewForm,
    formCenterGrid,
    biEditor,
    biSave,
    biMenuAdd,
    tsTargetSelect,
    biSquareSign,
    biTargetInfoTable,
    customMod
}
export default {
    install,
    biPreviewForm,
    formCenterGrid,
    biEditor,
    biSave,
    biMenuAdd,
    tsTargetSelect,
    biSquareSign,
    biTargetInfoTable,
    customMod
}