feat: add mousePosition prop for confirm dialog (#51576)
Some checks failed
Publish Any Commit / build (push) Has been cancelled
🔀 Sync mirror to Gitee / mirror (push) Has been cancelled
✅ test / lint (push) Has been cancelled
✅ test / test-react-legacy (16, 1/2) (push) Has been cancelled
✅ test / test-react-legacy (16, 2/2) (push) Has been cancelled
✅ test / test-react-legacy (17, 1/2) (push) Has been cancelled
✅ test / test-react-legacy (17, 2/2) (push) Has been cancelled
✅ test / test-node (push) Has been cancelled
✅ test / test-react-latest (dom, 1/2) (push) Has been cancelled
✅ test / test-react-latest (dom, 2/2) (push) Has been cancelled
✅ test / build (push) Has been cancelled
✅ test / test lib/es module (es, 1/2) (push) Has been cancelled
✅ test / test lib/es module (es, 2/2) (push) Has been cancelled
✅ test / test lib/es module (lib, 1/2) (push) Has been cancelled
✅ test / test lib/es module (lib, 2/2) (push) Has been cancelled
👁️ Visual Regression Persist Start / test image (push) Has been cancelled
✅ test / test-react-latest-dist (dist, 1/2) (push) Has been cancelled
✅ test / test-react-latest-dist (dist, 2/2) (push) Has been cancelled
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Has been cancelled
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Has been cancelled
✅ test / test-coverage (push) Has been cancelled

This commit is contained in:
DDDDD12138 2024-11-12 10:04:15 +08:00 committed by GitHub
parent 0e669d93cd
commit 390e346141
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,11 +173,6 @@ const ConfirmDialog: React.FC<ConfirmDialogProps> = (props) => {
const {
close,
zIndex,
afterClose,
open,
keyboard,
centered,
getContainer,
maskStyle,
direction,
prefixCls,
@ -185,9 +180,6 @@ const ConfirmDialog: React.FC<ConfirmDialogProps> = (props) => {
rootPrefixCls,
bodyStyle,
closable = false,
closeIcon,
modalRender,
focusTriggerAfterClose,
onConfirm,
styles,
} = props;
@ -234,7 +226,7 @@ const ConfirmDialog: React.FC<ConfirmDialogProps> = (props) => {
// ========================= Render =========================
return (
<Modal
prefixCls={prefixCls}
{...props}
className={classString}
wrapClassName={classNames(
{ [`${confirmPrefixCls}-centered`]: !!props.centered },
@ -244,7 +236,6 @@ const ConfirmDialog: React.FC<ConfirmDialogProps> = (props) => {
close?.({ triggerCancel: true });
onConfirm?.(false);
}}
open={open}
title=""
footer={null}
transitionName={getTransitionName(rootPrefixCls || '', 'zoom', props.transitionName)}
@ -255,14 +246,7 @@ const ConfirmDialog: React.FC<ConfirmDialogProps> = (props) => {
styles={{ body: bodyStyle, mask: maskStyle, ...styles }}
width={width}
zIndex={mergedZIndex}
afterClose={afterClose}
keyboard={keyboard}
centered={centered}
getContainer={getContainer}
closable={closable}
closeIcon={closeIcon}
modalRender={modalRender}
focusTriggerAfterClose={focusTriggerAfterClose}
>
<ConfirmContent {...props} confirmPrefixCls={confirmPrefixCls} />
</Modal>