import AudioPlayer from './audio-player';
import BarProgress from './bar-progress';
import Chart from './chart';
import CircleProgress from './circle-progress';
import Richtext from './richtext';
import ScrollList from './scroll-list';
import VideoPlayer from './video-player';
import Watermark from './watermark';
import __template from './__template';
var version = '1.0.0';

function install(Vue) {
  var components = [AudioPlayer, BarProgress, Chart, CircleProgress, Richtext, ScrollList, VideoPlayer, Watermark, __template];
  components.forEach(function (item) {
    if (item.install) {
      Vue.use(item);
    } else if (item.name) {
      Vue.component(item.name, item);
    }
  });
}

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue);
}

export { install, version, AudioPlayer, BarProgress, Chart, CircleProgress, Richtext, ScrollList, VideoPlayer, Watermark, __template };
export default {
  install: install,
  version: version
};