diff --git a/components/popconfirm/demo/async.tsx b/components/popconfirm/demo/async.tsx index ced50a3d591d..7164cc9ccc06 100644 --- a/components/popconfirm/demo/async.tsx +++ b/components/popconfirm/demo/async.tsx @@ -26,6 +26,7 @@ const App: React.FC = () => { return ( { return (
( - }> + } + > Delete ); diff --git a/components/popconfirm/demo/locale.tsx b/components/popconfirm/demo/locale.tsx index 478648e1fe77..4ca4d4287d31 100644 --- a/components/popconfirm/demo/locale.tsx +++ b/components/popconfirm/demo/locale.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { Popconfirm } from 'antd'; const App: React.FC = () => ( - + Delete ); diff --git a/components/popconfirm/demo/placement.tsx b/components/popconfirm/demo/placement.tsx index 0f395e5ec3d4..d7c6fd2db6d9 100644 --- a/components/popconfirm/demo/placement.tsx +++ b/components/popconfirm/demo/placement.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { Button, message, Popconfirm } from 'antd'; const text = 'Are you sure to delete this task?'; +const description = '删除任务'; const confirm = () => { message.info('Clicked on Yes.'); @@ -10,15 +11,30 @@ const confirm = () => { const App: React.FC = () => (
- + - + (
- + - + ( - + ( - + { }); return ( - console.log('open change')}> + console.log('open change')} + > ); diff --git a/components/popconfirm/demo/render-panel.tsx b/components/popconfirm/demo/render-panel.tsx index 9fed2a6ba902..ae57935fe986 100644 --- a/components/popconfirm/demo/render-panel.tsx +++ b/components/popconfirm/demo/render-panel.tsx @@ -5,8 +5,13 @@ const { _InternalPanelDoNotUseOrYouWillBeFired: InternalPopconfirm } = Popconfir const App: React.FC = () => ( <> - - + + );