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
暴露内置 iconTypeArr 数组, 便于开发者在使用自定义 SVG 图标时抹平 type 与 component 的差异.
import { iconTypeArr } from 'ant-design-vue' function sample (type) { return iconTypeArr.includes(type) ? <a-icon type={type} /> : <a-icon component={type} /> }
import { iconTypeArr } from 'ant-design-vue'
The text was updated successfully, but these errors were encountered:
https://github.com/ant-design/ant-design-icons/tree/master/packages/icons-vue/src/icons
或者自己整理 https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/IconSelector/icons.js
import * as allIcons from '@ant-design/icons/lib/dist'; Object.keys(allIcons).includes(type)
Sorry, something went wrong.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
What problem does this feature solve?
暴露内置 iconTypeArr 数组, 便于开发者在使用自定义 SVG 图标时抹平 type 与 component 的差异.
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: