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组件支持createFromIconfontCN和scriptUrl参数,如果Button的icon属性支持ReactNode类型并能使用Icon,这样能增强Button的表现能力,不至于因为Icon不是antd包含的图标就需要开发者自己写一个按钮组件。
<Button icon={< Icon type="Click" />}>Click
The text was updated successfully, but these errors were encountered:
换种方式
<Button><Icon type="Click" scriptUrl /></Button>
Sorry, something went wrong.
afc163
No branches or pull requests
What problem does this feature solve?
因为Icon组件支持createFromIconfontCN和scriptUrl参数,如果Button的icon属性支持ReactNode类型并能使用Icon,这样能增强Button的表现能力,不至于因为Icon不是antd包含的图标就需要开发者自己写一个按钮组件。
What does the proposed API look like?
<Button icon={< Icon type="Click" />}>Click
The text was updated successfully, but these errors were encountered: