svg 转成组件在项目中使用
luoxue-victor opened this issue · comments
https://umijs.org/zh/guide/module-processor.html#module-list
import { ReactComponent as Avatar } from './avatar.svg'
function Example() {
return <Avatar />
}
一个工作流平台
luoxue-victor opened this issue · comments
https://umijs.org/zh/guide/module-processor.html#module-list
import { ReactComponent as Avatar } from './avatar.svg'
function Example() {
return <Avatar />
}