Make sure DatePicker style.width can be effective, close #4920

This commit is contained in:
afc163 2017-02-17 12:04:44 +08:00
parent bc988f486b
commit a87016ce54

View File

@ -165,7 +165,7 @@ export default class RangePicker extends React.Component<any, any> {
// default width for showTime
const pickerStyle = {} as any;
if (props.showTime) {
pickerStyle.minWidth = 300;
pickerStyle.width = style.width || 300;
}
const clearIcon = (!props.disabled && props.allowClear && value && (value[0] || value[1]))