basic.md 295 Bytes
Newer Older
afc163's avatar
afc163 committed
1 2 3 4 5 6 7
---
order: 0
title: 演示
---

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

8
```jsx
afc163's avatar
afc163 committed
9 10 11 12
import Trend from 'ant-design-pro/lib/Trend';

ReactDOM.render(
  <div>
jim's avatar
jim committed
13
    <Trend flag="up" >12%</Trend>
afc163's avatar
afc163 committed
14 15 16
    <Trend flag="down" style={{ marginLeft: 8 }}>11%</Trend>
  </div>
, mountNode);
17
```