diff --git a/components/popconfirm/demo/placement.md b/components/popconfirm/demo/placement.md index d7ae5c770c..cf641dd7fb 100644 --- a/components/popconfirm/demo/placement.md +++ b/components/popconfirm/demo/placement.md @@ -16,45 +16,50 @@ function confirm() { } ReactDOM.render(
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - +
+ + + + + + + + + +
+
+ + + + + + + + + +
+
+ + + + + + + + + +
+
+ + + + + + + + + +
, document.getElementById('components-popconfirm-demo-placement')); ```` diff --git a/components/popconfirm/index.jsx b/components/popconfirm/index.jsx index 938879c547..b88b668b7a 100644 --- a/components/popconfirm/index.jsx +++ b/components/popconfirm/index.jsx @@ -58,7 +58,15 @@ export default React.createClass({ top: 'zoom-down', bottom: 'zoom-up', left: 'zoom-right', - right: 'zoom-left' + right: 'zoom-left', + topLeft: 'zoom-down', + bottomLeft: 'zoom-up', + leftTop: 'zoom-right', + rightTop: 'zoom-left', + topRight: 'zoom-down', + bottomRight: 'zoom-up', + leftBottom: 'zoom-right', + rightBottom: 'zoom-left', })[this.props.placement]; return (