初始化 antd-pro
This commit is contained in:
17
admin-web/src/components/Trend/demo/basic.md
Normal file
17
admin-web/src/components/Trend/demo/basic.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
order: 0
|
||||
title: 演示
|
||||
---
|
||||
|
||||
在数值背后添加一个小图标来标识涨跌情况。
|
||||
|
||||
```jsx
|
||||
import Trend from 'ant-design-pro/lib/Trend';
|
||||
|
||||
ReactDOM.render(
|
||||
<div>
|
||||
<Trend flag="up" >12%</Trend>
|
||||
<Trend flag="down" style={{ marginLeft: 8 }}>11%</Trend>
|
||||
</div>
|
||||
, mountNode);
|
||||
```
|
||||
17
admin-web/src/components/Trend/demo/reverse.md
Normal file
17
admin-web/src/components/Trend/demo/reverse.md
Normal file
@@ -0,0 +1,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);
|
||||
```
|
||||
Reference in New Issue
Block a user