optimize icon docs

This commit is contained in:
HeskeyBaozi 2018-09-02 19:11:47 +08:00 committed by 偏右
parent c7069b27fe
commit 4d681c7fd3
5 changed files with 4 additions and 23 deletions

View File

@ -28,9 +28,9 @@ ReactDOM.render(
);
````
```css
<style>
.icons-list > .anticon {
margin-right: 6px;
font-size: 16px;
font-size: 24px;
}
```
</style>

View File

@ -29,10 +29,3 @@ ReactDOM.render(
mountNode
);
````
```css
.icons-list > .anticon {
margin-right: 6px;
font-size: 16px;
}
```

View File

@ -25,10 +25,3 @@ ReactDOM.render(
mountNode
);
````
```css
.icons-list > .anticon {
margin-right: 6px;
font-size: 16px;
}
```

View File

@ -117,11 +117,6 @@ const Icon: React.SFC<IconProps> = (props) => {
if (theme) {
computedType = withThemeSuffix(type, theme);
}
// default outlined
const computedType = withThemeSuffix(
getTypeWithoutTheme(type),
theme || 'outlined',
);
return (
<i className={classString} title={title} style={style} onClick={onClick}>
<ReactIcon

View File

@ -19,7 +19,7 @@ ul.anticons-list {
padding: 10px 0 0;
.anticon {
font-size: 36px;
margin: 12px 0 16px;
margin: 12px 0 8px;
transition: transform .3s ease-in-out;
will-change: transform;
}