mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-29 18:50:00 +08:00
docs: Optimize the operation experience of the demo modal (#50943)
This commit is contained in:
parent
cfa47560c5
commit
a10f4c2ca3
@ -22,6 +22,7 @@ const App: React.FC = () => {
|
|||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setShow1(false);
|
setShow1(false);
|
||||||
}}
|
}}
|
||||||
|
onOk={() => setShow1(false)}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@ -38,6 +39,7 @@ const App: React.FC = () => {
|
|||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setShow2(false);
|
setShow2(false);
|
||||||
}}
|
}}
|
||||||
|
onOk={() => setShow2(false)}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@ -54,6 +56,7 @@ const App: React.FC = () => {
|
|||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setShow3(false);
|
setShow3(false);
|
||||||
}}
|
}}
|
||||||
|
onOk={() => setShow3(false)}
|
||||||
>
|
>
|
||||||
<Image
|
<Image
|
||||||
width={200}
|
width={200}
|
||||||
|
Loading…
Reference in New Issue
Block a user