diff --git a/src/modal/popconfirm.js b/src/modal/popconfirm.js index 935077c..ca4e677 100644 --- a/src/modal/popconfirm.js +++ b/src/modal/popconfirm.js @@ -153,7 +153,7 @@ class PopConfirm extends Component { styles.left = left + 'px' } else { // 减去小三角形的位移 12px - let right = window.innerWidth - left + this.clientWidth - 12 + let right = window.innerWidth - left - this.clientWidth - 12 if (right < 0) { right = 0 }