We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
刷新后: 刷新前:
下载下来官网例子后无法运行,吧 /icon 页面, 按照官网文档,改成
const CustomIcon = ({ type, className = '', size = 'md', ...restProps }) => ( <svg className={`am-icon am-icon-${type.substr(1)} am-icon-${size} ${className}`} {...restProps}> <use xlinkHref={type} /> {/* svg-sprite-loader@0.3.x */} {/* <use xlinkHref={#${type.default.id}} /> */} {/* svg-sprite-loader@latest */} </svg> ); <CustomIcon type={require('../static/reload.svg')} />
来使用 svg, 是可以正常显示 svg 的,但是刷新浏览器,会抛出异常,如上图所示
The text was updated successfully, but these errors were encountered:
svg-sprite-loader@0.3.x 这个对吗
Sorry, something went wrong.
No branches or pull requests
刷新后:
![image](https://user-images.githubusercontent.com/12455937/35900091-0cfc91e6-0c0b-11e8-9156-d9a0509f18aa.png)
![image](https://user-images.githubusercontent.com/12455937/35900247-dbf8edaa-0c0b-11e8-9dad-f2cedb7a746e.png)
刷新前:
下载下来官网例子后无法运行,吧 /icon 页面, 按照官网文档,改成
来使用 svg, 是可以正常显示 svg 的,但是刷新浏览器,会抛出异常,如上图所示
The text was updated successfully, but these errors were encountered: