Fix icon API documentation

This commit is contained in:
afc163 2017-06-07 17:06:21 +08:00
parent 1682d2cd14
commit d7837da175
3 changed files with 9 additions and 0 deletions

View File

@ -74,3 +74,4 @@ You can set `style` and `className` for size and color of icons because they are
|----------|------------------|------- |---------|
| type | Type of ant design icons | string | - |
| spin | Rotate icon with animation | boolean | false |
| style | style properties of icon, like fontSize and color | object | - |

View File

@ -75,3 +75,4 @@ ReactDOM.render(<IconSet className="icons" catigory="logo" />, mountNode);
|----------|------------------|----------|--------|
| type | 图标类型 | string | - |
| spin | 是否有旋转动画 | boolean | false |
| style | 设置图标的样式,例如 fontSize 和 color | object | - |

View File

@ -111,6 +111,13 @@ export default class Article extends React.Component {
['section', { className: 'markdown' }].concat(getChildren(content.content))
))
}
{
props.utils.toReactComponent(
['section', {
className: 'markdown api-container',
}].concat(getChildren(content.api || ['placeholder']))
)
}
</article>
</DocumentTitle>
);