-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
暴露内置 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} />
}What does the proposed API look like?
import { iconTypeArr } from 'ant-design-vue'