mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
Fix transfer list item overflow style, close #2674
This commit is contained in:
parent
8ae2936342
commit
cd98aab871
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user