2019-08-08 14:32:32 +08:00
|
|
|
import Vue from 'vue';
|
|
|
|
import SvgIcon from '@/components/SvgIcon';// svg component
|
2019-07-02 16:29:52 +08:00
|
|
|
|
|
|
|
// register globally
|
2019-08-08 14:32:32 +08:00
|
|
|
Vue.component('svg-icon', SvgIcon);
|
2019-07-02 16:29:52 +08:00
|
|
|
|
2019-08-08 14:32:32 +08:00
|
|
|
const req = require.context('./svg', false, /\.svg$/);
|
|
|
|
const requireAll = requireContext => requireContext.keys().map(requireContext);
|
|
|
|
requireAll(req);
|