Fix icon API documentation

pull/3150/merge
afc163 8 years ago
parent 1682d2cd14
commit d7837da175

@ -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 | - | | type | Type of ant design icons | string | - |
| spin | Rotate icon with animation | boolean | false | | spin | Rotate icon with animation | boolean | false |
| style | style properties of icon, like fontSize and color | object | - |

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

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

Loading…
Cancel
Save