// import bcCustomSort from "./bc-components/bc-custom-sort/index.js";
// import bcCheck from "./bc-components/bc-check/index.js";
// import bcCheckDict from "./bc-components/bc-check-dict/index.js";
// import bcDictSelect from "./bc-components/bc-dict-select/index.js"
// import bcCheckPerson from "./bc-components/bc-check-person/index.js";
// import bcExportExcel from "./bc-components/bc-export-excel/index.js";
// import bcSenior from "./bc-components/bc-senior/index.js";
// import bcTableEx from "./bc-components/bc-table-ex/index.js";
// import bcTree from "./bc-components/bc-tree/index.js";
// import bcCheckArea from "./bc-components/bc-tree/bcAreaTreeModal.js";
// import bcTreeModal from "./bc-components/bc-tree/bcTreeModal.js";
// import bcAuthorityTree from "./bc-components/bc-tree/bcAuthorityTree.js";
// import bcImport from "./bc-components/bc-import/index.js";
// import bcUpload from "./bc-components/bc-upload/index.js";
// import bcUploadTable from "./bc-components/bc-upload-table/index.js";
// import bcUploadImage from "./bc-components/bc-upload-image/index.js";
// import workflowDoSomethingIndex from "./bc-components/workflow/index.js";
// import bcSteps from "./bc-components/bc-steps/index.js";
// import bcResult from "./bc-components/bc-result/index.js";
// import bcPage from "./bc-components/bc-page/index.js";
// import bcDictUtil from "./bc-components/bc-dict/index.js";
// import config from "@/config";
import bcTable from './bc-components/bc-table/index.js'
const components = [ 
  // bcCustomSort,
  // bcCheck,
  // bcCheckDict,
  // bcCheckPerson,
  // bcExportExcel,
  // bcSenior,
  // bcTableEx,
  // bcTree,
  // bcCheckArea,
  // bcTreeModal,
  // bcAuthorityTree,
  // bcUpload,
  // bcImport,
  // workflowDoSomethingIndex,
  // bcSteps,
  // bcResult,
  // bcPage,
  // bcDictUtil,
  // bcUploadTable,
  // bcUploadImage,
  // bcDictSelect,
  bcTable
];
// 定义 install 方法，接收 Vue 作为参数。如果使用 use 注册插件，则所有的组件都将被注册
const install = function(Vue) {
  // 判断是否安装
  if (install.installed) return;
  // 遍历注册全局组件
  components.forEach(component => {
    Vue.component(component.name, component)
  });
};
// 判断是否是直接引入文件
if (typeof window !== "undefined" && window.Vue) {
  install(window.Vue);
}

// const cas_url = config.deploymentStandAlone? '': 'cas/'
// const workflow_url = config.deploymentStandAlone? '': 'workflow/'
// const base_url = config.deploymentStandAlone? '': 'cas/'

export default{
  install,
  // bcCustomSort,
  // bcCheck,
  // bcCheckDict,
  // bcCheckPerson,
  // bcExportExcel,
  // bcSenior,
  // bcTableEx,
  // bcTree,
  // bcCheckArea,
  // bcTreeModal,
  // bcAuthorityTree,
  // bcUpload,
  // bcImport,
  // workflowDoSomethingIndex,
  // bcSteps,
  // bcResult,
  // bcPage,
  // bcDictUtil,
  // bcUploadTable,
  // bcUploadImage,
  // bcDictSelect,
  // cas_url,
  // workflow_url,
  // base_url,
  bcTable
}
