From 16bdecc7a61e1d364cf17a9c42986f38810caa13 Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 17 Jan 2024 18:44:59 +0800 Subject: [PATCH] fixed --- src/modal/popconfirm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }