mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
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
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:
parent
0e669d93cd
commit
390e346141
@ -173,11 +173,6 @@ const ConfirmDialog: React.FC<ConfirmDialogProps> = (props) => {
|
|||||||
const {
|
const {
|
||||||
close,
|
close,
|
||||||
zIndex,
|
zIndex,
|
||||||
afterClose,
|
|
||||||
open,
|
|
||||||
keyboard,
|
|
||||||
centered,
|
|
||||||
getContainer,
|
|
||||||
maskStyle,
|
maskStyle,
|
||||||
direction,
|
direction,
|
||||||
prefixCls,
|
prefixCls,
|
||||||
@ -185,9 +180,6 @@ const ConfirmDialog: React.FC<ConfirmDialogProps> = (props) => {
|
|||||||
rootPrefixCls,
|
rootPrefixCls,
|
||||||
bodyStyle,
|
bodyStyle,
|
||||||
closable = false,
|
closable = false,
|
||||||
closeIcon,
|
|
||||||
modalRender,
|
|
||||||
focusTriggerAfterClose,
|
|
||||||
onConfirm,
|
onConfirm,
|
||||||
styles,
|
styles,
|
||||||
} = props;
|
} = props;
|
||||||
@ -234,7 +226,7 @@ const ConfirmDialog: React.FC<ConfirmDialogProps> = (props) => {
|
|||||||
// ========================= Render =========================
|
// ========================= Render =========================
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
prefixCls={prefixCls}
|
{...props}
|
||||||
className={classString}
|
className={classString}
|
||||||
wrapClassName={classNames(
|
wrapClassName={classNames(
|
||||||
{ [`${confirmPrefixCls}-centered`]: !!props.centered },
|
{ [`${confirmPrefixCls}-centered`]: !!props.centered },
|
||||||
@ -244,7 +236,6 @@ const ConfirmDialog: React.FC<ConfirmDialogProps> = (props) => {
|
|||||||
close?.({ triggerCancel: true });
|
close?.({ triggerCancel: true });
|
||||||
onConfirm?.(false);
|
onConfirm?.(false);
|
||||||
}}
|
}}
|
||||||
open={open}
|
|
||||||
title=""
|
title=""
|
||||||
footer={null}
|
footer={null}
|
||||||
transitionName={getTransitionName(rootPrefixCls || '', 'zoom', props.transitionName)}
|
transitionName={getTransitionName(rootPrefixCls || '', 'zoom', props.transitionName)}
|
||||||
@ -255,14 +246,7 @@ const ConfirmDialog: React.FC<ConfirmDialogProps> = (props) => {
|
|||||||
styles={{ body: bodyStyle, mask: maskStyle, ...styles }}
|
styles={{ body: bodyStyle, mask: maskStyle, ...styles }}
|
||||||
width={width}
|
width={width}
|
||||||
zIndex={mergedZIndex}
|
zIndex={mergedZIndex}
|
||||||
afterClose={afterClose}
|
|
||||||
keyboard={keyboard}
|
|
||||||
centered={centered}
|
|
||||||
getContainer={getContainer}
|
|
||||||
closable={closable}
|
closable={closable}
|
||||||
closeIcon={closeIcon}
|
|
||||||
modalRender={modalRender}
|
|
||||||
focusTriggerAfterClose={focusTriggerAfterClose}
|
|
||||||
>
|
>
|
||||||
<ConfirmContent {...props} confirmPrefixCls={confirmPrefixCls} />
|
<ConfirmContent {...props} confirmPrefixCls={confirmPrefixCls} />
|
||||||
</Modal>
|
</Modal>
|
||||||
|
Loading…
Reference in New Issue
Block a user