// 导入颜色选择器组件
import VueIcon from '@ant-design/icons-vue';
import './moment-zh_CN';
import Vue from 'vue';
{{{imports}}}
// 注册moment中文国际化文案
if (window.AntDesignIcons) {
  // 注册 ant design icons, 共721个icon
  const icons = window.AntDesignIcons;
  Object.keys(icons).forEach(icon => {
    VueIcon.add(icons[icon]);
  });
}
if (window.antd) {
  Vue.use(window.antd);
}
// 存储组件列表
const components = [
  {{{vueComponents}}}
];

// 定义 install 方法，接收 Vue 作为参数。如果使用 use 注册插件，则所有的组件都将被注册
const install = function(Vue) {
  // 判断是否可以安装
  // if (install.installed) return
  // 遍历注册全局组件
  components.map(component => Vue.use(component));
};

// 判断是否是直接引入文件
if (typeof window !== 'undefined' && window.Vue) {
   install(window.Vue);
}
export {
  // 以下是具体的组件列表
  {{{components}}}
};
export default {
  // 导出的对象必须具有 install，才能被 Vue.use() 方法安装
  install,
  {{{components}}}
};
