From e479f1f476b8a445194a8c0e1f44bec18fcd4be1 Mon Sep 17 00:00:00 2001 From: vagusX Date: Wed, 4 Sep 2019 21:54:19 +0800 Subject: [PATCH] update docs --- components/icon/index.en-US.md | 2 +- components/icon/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/icon/index.en-US.md b/components/icon/index.en-US.md index 50def0ac1099..5e3f7fabdca7 100644 --- a/components/icon/index.en-US.md +++ b/components/icon/index.en-US.md @@ -26,7 +26,7 @@ ReactDOM.render(, mountNode); | component | The component used for the root node. This will override the **`type`** property. | ComponentType | - | 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 diff --git a/components/icon/index.zh-CN.md b/components/icon/index.zh-CN.md index 12009ca95bea..ad053223bd0b 100644 --- a/components/icon/index.zh-CN.md +++ b/components/icon/index.zh-CN.md @@ -31,7 +31,7 @@ ReactDOM.render(, mountNode); | component | 控制如何渲染图标,通常是一个渲染根标签为 `` 的 `React` 组件,**会使 `type` 属性失效** | ComponentType | - | 3.9.0 | | twoToneColor | 仅适用双色图标。设置双色图标的主要颜色 | string (十六进制颜色) | - | 3.9.0 | -> 注意:Icon 组件的渲染优先级为 component > children > type, 传入 props 时,优先级高的直接生效,优先级低的则失效 +> 注意:Icon 组件中图标渲染的优先级为 component > children > type, 传入 props 时,优先级高的直接生效,优先级低的则失效。 ### SVG 图标