docs: Optimize the operation experience of the demo modal (#50943)

This commit is contained in:
kiner-tang 2024-09-21 15:19:53 +08:00 committed by GitHub
parent cfa47560c5
commit a10f4c2ca3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}