提交 2977f422 编写于 作者: W w00445410

修改资料中的错误

Signed-off-by: Nw00445410 <wangmingming15@huawei.com>
Change-Id: Ib15864f331ad3eab85e10cd5a99dc424b137259e
上级 d653d420
......@@ -132,7 +132,7 @@
| 名称 | 描述 |
| --------- | ------- |
| Invert | 设置前景色为控件背景色的反色。|
| INVERT | 设置前景色为控件背景色的反色。|
## LengthConstrain
......
......@@ -10,7 +10,7 @@
| 名称 | 参数类型 | 描述 |
| -------- | -------- | -------- |
| foregroundColor | [ResourceColor](ts-types.md#resourcecolor)&nbsp;\|&nbsp;[ColoringStrategy](ts-types.md#ColoringStrategy) | 设置组件的前景颜色或者根据智能取色策略设置前景颜色。 |
| foregroundColor | [ResourceColor](ts-types.md#resourcecolor)&nbsp;\|&nbsp;[ColoringStrategy](ts-types.md#coloringstrategy) | 设置组件的前景颜色或者根据智能取色策略设置前景颜色。 |
## 示例
......@@ -47,12 +47,11 @@ struct ColoringStrategyExample {
// 绘制一个直径为150的圆,设置前景色为组件背景色的反色
Circle({ width: 150, height: 200 })
.backgroundColor(Color.Black)
.foregroungColor(ColoringStrategy.Invert)
.foregroundColor(ColoringStrategy.INVERT)
}.width('100%')
}
}
```
![foregroundColor_circle](figures/ColoringStrategy_circle.png)
### 示例3
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册