Browse Source

use antd Divider

pull/171/head
afc163 8 years ago
parent
commit
6e2d122aad
  1. 4
      src/components/StandardTable/index.js
  2. 8
      src/components/StandardTable/index.less

4
src/components/StandardTable/index.js

@ -1,6 +1,6 @@
import React, { PureComponent } from 'react';
import moment from 'moment';
import { Table, Alert, Badge } from 'antd';
import { Table, Alert, Badge, Divider } from 'antd';
import styles from './index.less';
const statusMap = ['default', 'processing', 'success', 'error'];
@ -101,7 +101,7 @@ class StandardTable extends PureComponent {
render: () => (
<div>
<a href="">配置</a>
<span className={styles.splitLine} />
<Divider type="vertical" />
<a href="">订阅警报</a>
</div>
),

8
src/components/StandardTable/index.less

@ -10,12 +10,4 @@
.tableAlert {
margin-bottom: 16px;
}
.splitLine {
background: @border-color-split;
display: inline-block;
margin: 0 8px;
width: 1px;
height: 12px;
}
}

Loading…
Cancel
Save