默认width

pull/6/head
afc163 10 years ago
parent 196566039b
commit 6ca3fd55bb

@ -13,6 +13,7 @@ module.exports = function (props) {
props.animation = 'zoom';
props.maskAnimation = 'fade';
props.width = props.width || 500;
props.onClose = props.onCancel || noop;
@ -45,6 +46,5 @@ module.exports = function (props) {
props.visible = true;
props.children = props.content;
props.footer = footer;
var d = React.render(<Dialog {...props}/>, div);
return d;
};
return React.render(<Dialog {...props}/>, div);
};

Loading…
Cancel
Save