【问题标题】:In using Ant Design's <Icon/> what are acceptable arguments for the attribute "type"?在使用 Ant Design 的 <Icon/> 属性“类型”时,可以接受哪些参数?
【发布时间】:2020-03-05 21:38:05
【问题描述】:

我正在使用 React UI 库 antd。对于&lt;Icon/&gt;,有一个属性“type”

例子:

<Icon type="edit"/>

呈现一个编辑图标。

我在文档中找不到该属性的接受值是在哪里定义的......

【问题讨论】:

    标签: reactjs antd


    【解决方案1】:

    就像您在 3.x 版本中使用 ant。这是所有图标的列表 https://3x.ant.design/components/icon/

    【讨论】:

      【解决方案2】:

      在这种情况下文档很少,但似乎值是图标名称,您可以在Antd GitHub repo中找到完整的图标列表

      【讨论】:

        猜你喜欢
        • 2017-10-14
        • 1970-01-01
        • 1970-01-01
        • 2011-12-05
        • 2019-12-09
        • 1970-01-01
        • 1970-01-01
        • 2020-06-20
        • 2021-03-04
        相关资源
        最近更新 更多