From c6728e0c7d8057f835c16448763a851433d99b71 Mon Sep 17 00:00:00 2001 From: xuhuihui Date: Sun, 4 Dec 2022 23:00:41 +0800 Subject: [PATCH] feat: Popconfirm title and description props feat: Popconfirm title and description props(update partial docs) feat: Popconfirm title and description props(change the title display logicv) feat: Popconfirm title and description props(change the title display logic )2 --- components/popconfirm/PurePanel.tsx | 11 ++++++++++- components/popconfirm/demo/basic.tsx | 3 ++- components/popconfirm/index.en-US.md | 1 + components/popconfirm/index.tsx | 1 + components/popconfirm/index.zh-CN.md | 1 + components/popconfirm/style/index.tsx | 13 +++++++++++++ 6 files changed, 28 insertions(+), 2 deletions(-) diff --git a/components/popconfirm/PurePanel.tsx b/components/popconfirm/PurePanel.tsx index 58796e37d0fa..e04006323f44 100644 --- a/components/popconfirm/PurePanel.tsx +++ b/components/popconfirm/PurePanel.tsx @@ -29,6 +29,7 @@ export interface OverlayProps | 'okType' | 'showCancel' | 'title' + | 'description' > { prefixCls: string; close?: Function; @@ -42,6 +43,7 @@ export const Overlay: React.FC = (props) => { okButtonProps, cancelButtonProps, title, + description, cancelText, okText, okType = 'primary', @@ -60,8 +62,15 @@ export const Overlay: React.FC = (props) => {
{icon && {icon}} -
{getRenderPropValue(title)}
+
+ {getRenderPropValue(title)} +
+
{getRenderPropValue(description)}
{showCancel && (