Skip to content

Commit

Permalink
use antd Divider
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Nov 13, 2017
1 parent 63b7645 commit 6e2d122
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/components/StandardTable/index.js
Original file line number Diff line number Diff line change
@@ -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'];
Expand Down Expand Up @@ -101,7 +101,7 @@ class StandardTable extends PureComponent {
render: () => (
<div>
<a href="">配置</a>
<span className={styles.splitLine} />
<Divider type="vertical" />
<a href="">订阅警报</a>
</div>
),
Expand Down
8 changes: 0 additions & 8 deletions src/components/StandardTable/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,4 @@
.tableAlert {
margin-bottom: 16px;
}

.splitLine {
background: @border-color-split;
display: inline-block;
margin: 0 8px;
width: 1px;
height: 12px;
}
}

0 comments on commit 6e2d122

Please sign in to comment.