diff --git a/components/modal/Modal.tsx b/components/modal/Modal.tsx index 4b50e6f1f0..6d7a4214f4 100644 --- a/components/modal/Modal.tsx +++ b/components/modal/Modal.tsx @@ -94,6 +94,8 @@ export interface ModalFuncProps { prefixCls?: string; className?: string; open?: boolean; + /** @deprecated Please use `open` instead. */ + visible?: boolean; title?: React.ReactNode; closable?: boolean; content?: React.ReactNode; diff --git a/components/modal/__tests__/confirm.test.tsx b/components/modal/__tests__/confirm.test.tsx index c28f23e28c..49c6fe2217 100644 --- a/components/modal/__tests__/confirm.test.tsx +++ b/components/modal/__tests__/confirm.test.tsx @@ -878,7 +878,7 @@ describe('Modal.confirm triggers callbacks correctly', () => { jest.useFakeTimers(); Modal.confirm({}).update({ - visible: true, + open: true, }); await act(async () => {