move cascade style up

This commit is contained in:
yiminghe 2016-01-04 19:23:19 +08:00
parent af07048c27
commit c8038fde32
2 changed files with 5 additions and 3 deletions

View File

@ -71,10 +71,12 @@ class AntCascader extends React.Component {
onPopupVisibleChange={this.handlePopupVisibleChange} onPopupVisibleChange={this.handlePopupVisibleChange}
onChange={this.handleChange}> onChange={this.handleChange}>
{children || {children ||
<span className={`${prefixCls}-picker`}> <span
style={style}
className={`${prefixCls}-picker`}>
<Input placeholder={placeholder} <Input placeholder={placeholder}
className={`${prefixCls}-input ant-input ${sizeCls}`} className={`${prefixCls}-input ant-input ${sizeCls}`}
style={style} style={{width: '100%'}}
value={this.getLabel()} value={this.getLabel()}
readOnly /> readOnly />
{clearIcon} {clearIcon}

View File

@ -1,6 +1,6 @@
{ {
"name": "antd", "name": "antd",
"version": "0.12.0-beta3", "version": "0.12.0-beta4",
"title": "Ant Design", "title": "Ant Design",
"description": "一个 UI 设计语言", "description": "一个 UI 设计语言",
"homepage": "http://ant.design/", "homepage": "http://ant.design/",