index.js 452 B

12345678910111213
  1. import './prototypes'
  2. import directive from './directive'
  3. import Vue from 'vue'
  4. // import filters from '@/global/filters';
  5. Object.values(directive).forEach(value => Vue.use(value))
  6. // const install = () => {
  7. // Object.keys(directive).forEach((key) => Vue.use(directive[key]));
  8. // // 装载 vue prototype
  9. // Object.keys(prototypes).forEach((key) => Vue.use(prototypes[key]));
  10. // // 装载 vue 全局 filters
  11. // // Object.keys(filters);
  12. // };