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, 故对 Icon 组件进行了封装,但会导致无法检测到本地图标
组件实现
import type { ComponentProps } from 'react'; import { Icon } from 'umi'; const MyIcon: React.FC<ComponentProps<typeof Icon>> = (props) => { return <Icon width="1em" height="1em" fill="currentColor" {...props} />; }; export default MyIcon;
跟使用 Icon 组件一样,但是由于检测不到本地图标,什么也不会渲染。
<MyIcon icon="local:home" className="text-[12px] text-[red]" />
The text was updated successfully, but these errors were encountered:
由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。
Sorry, something went wrong.
No branches or pull requests
What happens?
想要像字体图标一样使用 Icon, 故对 Icon 组件进行了封装,但会导致无法检测到本地图标
Mini Showcase Repository(REQUIRED)
组件实现
How To Reproduce
跟使用 Icon 组件一样,但是由于检测不到本地图标,什么也不会渲染。
Context
The text was updated successfully, but these errors were encountered: