Fix style prop of Upload.Dragger

This commit is contained in:
afc163 2017-04-13 17:33:08 +08:00
parent 8a1c875123
commit 335eb0c246

View File

@ -7,6 +7,6 @@ export type DraggerProps = UploadProps & { height?: number };
export default class Dragger extends React.Component<DraggerProps, any> {
render() {
const { props } = this;
return <Upload {...props} type="drag" style={{ height: props.height }}/>;
return <Upload {...props} type="drag" style={{ ...props.style, height: props.height }}/>;
}
}