fix: can not use iconfont

This commit is contained in:
HeskeyBaozi 2018-09-03 12:12:28 +08:00 committed by 偏右
parent 6f835e6b7a
commit f2467a1f69
2 changed files with 43 additions and 6 deletions

1
.gitignore vendored
View File

@ -42,3 +42,4 @@ components/**/*.jsx
# Docs templates
site/theme/template/IconDisplay/*.js
site/theme/template/IconDisplay/*.jsx
site/theme/template/IconDisplay/fields.js

View File

@ -331,13 +331,49 @@ exports[`Icon.createFromIconfontCN() should support iconfont.cn 1`] = `
class="icons-list"
>
<i
class="anticon anticon-icon-tuichu"
class="anticon"
>
<svg
aria-hidden="true"
class=""
fill="currentColor"
height="1em"
width="1em"
>
<use
href="#icon-tuichu"
/>
</svg>
</i>
<i
class="anticon anticon-icon-facebook"
class="anticon"
>
<svg
aria-hidden="true"
class=""
fill="currentColor"
height="1em"
width="1em"
>
<use
href="#icon-facebook"
/>
</svg>
</i>
<i
class="anticon anticon-icon-twitter"
class="anticon"
>
<svg
aria-hidden="true"
class=""
fill="currentColor"
height="1em"
width="1em"
>
<use
href="#icon-twitter"
/>
</svg>
</i>
</div>
`;