Fix transfer list item overflow style, close #2674

This commit is contained in:
afc163 2016-08-10 17:46:36 +08:00
parent 8ae2936342
commit cd98aab871
2 changed files with 4 additions and 8 deletions

View File

@ -173,10 +173,6 @@
margin-right: 8px;
}
.@{checkbox-prefix-cls}-wrapper + span {
display: inline-block;
}
.@{checkbox-prefix-cls}-group {
font-size: @font-size-base;
&-item {

View File

@ -6,7 +6,7 @@ title: 自定义渲染行数据
自定义渲染每一个 Transfer Item可用于渲染复杂数据。
````jsx
import { Transfer, Icon } from 'antd';
import { Transfer } from 'antd';
const App = React.createClass({
getInitialState() {
@ -41,9 +41,9 @@ const App = React.createClass({
},
renderItem(item) {
const customLabel = (
<div className="custom-item">
{item.title} - {item.description} <Icon type="android" />
</div>
<span className="custom-item">
{item.title} - {item.description}
</span>
);
return {