xkrs_ms/ruoyi-ui/src/views/components/icons/svg-icons.js

11 lines
268 B
JavaScript
Raw Normal View History

2019-10-08 09:14:38 +08:00
const req = require.context('../../../assets/icons/svg', false, /\.svg$/)
const requireAll = requireContext => requireContext.keys()
const re = /\.\/(.*)\.svg/
const svgIcons = requireAll(req).map(i => {
return i.match(re)[1]
})
export default svgIcons