fix select style

This commit is contained in:
yiminghe 2015-07-15 19:59:54 +08:00
parent fd78bf0714
commit 3777933020
3 changed files with 13 additions and 2 deletions

View File

@ -21,7 +21,9 @@ function handleChange(value) {
}
React.render(
<Select multiple value={['a10', 'c12']} onChange={handleChange}>
<Select multiple
style={{width:400}}
value={['a10', 'c12']} onChange={handleChange}>
{children}
</Select>
, document.getElementById('components-select-demo-multiple'));

View File

@ -21,7 +21,9 @@ function handleChange(value) {
}
React.render(
<Select tags value={['name2', 'name3']} onChange={handleChange}>
<Select
style={{width:400}}
tags value={['name2', 'name3']} onChange={handleChange}>
{children}
</Select>
, document.getElementById('components-select-demo-tags'));

View File

@ -133,6 +133,13 @@
min-height: 28px;
cursor: text;
.@{selectPrefixCls}-search--inline {
width: auto;
.@{selectPrefixCls}-search__field {
width: 0.75em;
}
}
.@{selectPrefixCls}-selection__rendered {
//display: inline-block;
overflow: hidden;