index.js 869 B

123456789101112131415161718192021222324252627
  1. /**
  2. * 导出 mixins、插件和组件,供外部使用
  3. *
  4. * 该文件用于整合项目中的全局混入(mixins)、插件(plugins)和组件(components),
  5. * 并通过 export 提供具名导出,同时提供一个默认导出对象,方便在 Vue 项目中统一引入。
  6. */
  7. // 引入全局混入逻辑
  8. import Mixins from "./mixins/index.js";
  9. // 引入插件安装逻辑(如 Vue.use(...) 的封装)
  10. import SetupPlugins from "./plugin/index.js";
  11. // 引入自定义组件集合
  12. import Components from "./components/index.js";
  13. // 将混入和插件安装函数作为命名导出,便于按需使用
  14. export const mixins = Mixins;
  15. export const setupPlugins = SetupPlugins;
  16. export const components = Components;
  17. // 默认导出所有模块,可用于 Vue 应用的全局注册或配置
  18. export default {
  19. mixins,
  20. components,
  21. setupPlugins,
  22. };