reverse.md 343 Bytes
Newer Older
jim's avatar
jim committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
---
order: 0
title: 颜色反转
---

在数值背后添加一个小图标来标识涨跌情况。

````jsx
import Trend from 'ant-design-pro/lib/Trend';

ReactDOM.render(
  <div>
    <Trend flag="up" reverseColor={true} >12%</Trend>
    <Trend flag="down" reverseColor={true} style={{ marginLeft: 8 }}>11%</Trend>
  </div>
, mountNode);
````