index.js 477 B

1234567891011121314151617181920
  1. import tab from "./tab";
  2. import auth from "./auth";
  3. import cache from "./cache";
  4. import modal from "./modal";
  5. import download from "./download";
  6. import "./date";
  7. export default {
  8. install(Vue) {
  9. // 页签操作
  10. Vue.prototype.$tab = tab;
  11. // 认证对象
  12. Vue.prototype.$auth = auth;
  13. // 缓存对象
  14. Vue.prototype.$cache = cache;
  15. // 模态框对象
  16. Vue.prototype.$modal = modal;
  17. // 下载文件
  18. Vue.prototype.$download = download;
  19. },
  20. };