mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 22:39:34 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
757 B
757 B
order | title | ||||
---|---|---|---|---|---|
3 |
|
zh-CN
对于使用 iconfont.cn 的用户,通过设置 createFromIconfontCN
方法参数对象中的 scriptUrl
字段, 即可轻松地使用已有项目中的图标。
en-US
If you are using iconfont.cn, you can use the icons in your project gracefully.
import { Space } from 'antd';
import { createFromIconfontCN } from '@ant-design/icons';
const IconFont = createFromIconfontCN({
scriptUrl: '//at.alicdn.com/t/font_8d5l8fzk5b87iudi.js',
});
export default () => (
<Space>
<IconFont type="icon-tuichu" />
<IconFont type="icon-facebook" />
<IconFont type="icon-twitter" />
</Space>
);