From 0b77614371cab9678437610f8c5e26af679df722 Mon Sep 17 00:00:00 2001 From: xuhuihui Date: Mon, 5 Dec 2022 13:50:24 +0800 Subject: [PATCH] feat(popconfirm): make title bold and add description prop(update demos) --- components/popconfirm/demo/async.tsx | 1 + .../popconfirm/demo/dynamic-trigger.tsx | 3 +- components/popconfirm/demo/icon.tsx | 6 +- components/popconfirm/demo/locale.tsx | 2 +- components/popconfirm/demo/placement.tsx | 61 +++++++++++++++++-- components/popconfirm/demo/promise.tsx | 7 ++- components/popconfirm/demo/render-panel.tsx | 9 ++- 7 files changed, 77 insertions(+), 12 deletions(-) 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 = () => ( <> - - + + );