index.js 904 B

123456789101112131415161718
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  5. // +----------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +----------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +----------------------------------------------------------------------
  10. const path = require('path')
  11. const files = require.context('../../index/component', false, /\.vue$/)
  12. const modules = {}
  13. files.keys().forEach(key => {
  14. const name = path.basename(key, '.vue')
  15. modules[name] = files(key).default || files(key)
  16. })
  17. export default modules