update transfer opertion buttons

pull/735/head
afc163 9 years ago
parent 5c9a75c8bc
commit 335d526dcc

@ -18,21 +18,13 @@ class TransferOperation extends Component {
} = this.props; } = this.props;
const moveToLeftButton = ( const moveToLeftButton = (
<Button type="primary" disabled={!leftActive} onClick={moveToLeft}> <Button type="primary" size="small" disabled={!leftActive} onClick={moveToLeft}>
{ {<span><Icon type="left" />{leftArrowText}</span>}
leftArrowText
? <Icon type="left" /> + leftArrowText
: <Icon type="left" />
}
</Button> </Button>
); );
const moveToRightButton = ( const moveToRightButton = (
<Button type="primary" disabled={!rightActive} onClick={moveToRight}> <Button type="primary" size="small" disabled={!rightActive} onClick={moveToRight}>
{ {<span>{rightArrowText}<Icon type="right" /></span>}
rightArrowText
? rightArrowText + <Icon type="right" />
: <Icon type="right" />
}
</Button> </Button>
); );
return <div className={className}> return <div className={className}>

@ -10,6 +10,7 @@
display: inline-block; display: inline-block;
border-radius: @border-radius-base; border-radius: @border-radius-base;
width: 160px; width: 160px;
vertical-align: middle;
&-search { &-search {
&-action { &-action {
@ -90,15 +91,18 @@
display: inline-block; display: inline-block;
overflow: hidden; overflow: hidden;
margin: 0 8px; margin: 0 8px;
vertical-align: top; vertical-align: middle;
.ant-btn { .ant-btn {
float: left; float: left;
clear: both; clear: both;
padding: 1px 5px;
i { &:first-child {
font-size: 10px; margin-bottom: 4px;
}
.anticon {
.iconfont-size-under-12px(10px);
} }
} }
} }

Loading…
Cancel
Save