Skip to content

Commit

Permalink
fix: can not use iconfont
Browse files Browse the repository at this point in the history
  • Loading branch information
HeskeyBaozi authored and afc163 committed Sep 3, 2018
1 parent 6f835e6 commit f2467a1
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ components/**/*.jsx
# Docs templates
site/theme/template/IconDisplay/*.js
site/theme/template/IconDisplay/*.jsx
site/theme/template/IconDisplay/fields.js
48 changes: 42 additions & 6 deletions components/icon/__tests__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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>
`;

0 comments on commit f2467a1

Please sign in to comment.