Rap 原分销系统代码Web
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
250B

  1. const req = require.context('../../assets/icons/svg', false, /\.svg$/)
  2. const requireAll = requireContext => requireContext.keys()
  3. const re = /\.\/(.*)\.svg/
  4. const icons = requireAll(req).map(i => {
  5. return i.match(re)[1]
  6. })
  7. export default icons