Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX authored and afc163 committed Sep 5, 2019
1 parent 43bcd0e commit e479f1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/icon/index.en-US.md
Expand Up @@ -26,7 +26,7 @@ ReactDOM.render(<IconDisplay />, mountNode);
| component | The component used for the root node. This will override the **`type`** property. | ComponentType<CustomIconComponentProps\> | - | 3.9.0 |
| twoToneColor | Only supports the two-tone icon. Specify the primary color. | string (hex color) | - | 3.9.0 |

> Note: the rendering priority of the Icon component is component > children > type. When props is passed, the priority is directly effective, and the lower priority would be invalid.
> Note: icon rendering priority of the Icon component is component > children > type. When props is passed, higher priority item will works, and lower priority item would be invalid.
### SVG icons

Expand Down
2 changes: 1 addition & 1 deletion components/icon/index.zh-CN.md
Expand Up @@ -31,7 +31,7 @@ ReactDOM.render(<IconDisplay />, mountNode);
| component | 控制如何渲染图标,通常是一个渲染根标签为 `<svg>``React` 组件,**会使 `type` 属性失效** | ComponentType<CustomIconComponentProps\> | - | 3.9.0 |
| twoToneColor | 仅适用双色图标。设置双色图标的主要颜色 | string (十六进制颜色) | - | 3.9.0 |

> 注意:Icon 组件的渲染优先级为 component > children > type, 传入 props 时,优先级高的直接生效,优先级低的则失效
> 注意:Icon 组件中图标渲染的优先级为 component > children > type, 传入 props 时,优先级高的直接生效,优先级低的则失效
### SVG 图标

Expand Down

0 comments on commit e479f1f

Please sign in to comment.