diff --git a/components/lib/confirmpopup/confirmpopup.d.ts b/components/lib/confirmpopup/confirmpopup.d.ts index 6a7e9fc392..a2b1540680 100644 --- a/components/lib/confirmpopup/confirmpopup.d.ts +++ b/components/lib/confirmpopup/confirmpopup.d.ts @@ -284,7 +284,7 @@ export interface ConfirmPopupProps { * @param {ContentProps} props - The values of dialog. * @return {React.ReactNode} */ - content: React.ReactNode | ((props: ContentProps) => React.ReactNode); + content?: React.ReactNode | ((props: ContentProps) => React.ReactNode); } /** diff --git a/components/lib/dialog/dialog.d.ts b/components/lib/dialog/dialog.d.ts index e5727e9e00..c2ec9999a4 100644 --- a/components/lib/dialog/dialog.d.ts +++ b/components/lib/dialog/dialog.d.ts @@ -431,7 +431,7 @@ export interface DialogProps { * @param {ContentProps} props - The values of dialog. * @return {React.ReactNode} */ - content: React.ReactNode | ((props: ContentProps) => React.ReactNode); + content?: React.ReactNode | ((props: ContentProps) => React.ReactNode); } /** diff --git a/components/lib/sidebar/sidebar.d.ts b/components/lib/sidebar/sidebar.d.ts index bd9390e967..82ff6b0e5a 100644 --- a/components/lib/sidebar/sidebar.d.ts +++ b/components/lib/sidebar/sidebar.d.ts @@ -216,7 +216,7 @@ export interface SidebarProps extends Omit React.ReactNode); + content?: React.ReactNode | ((props: ContentProps) => React.ReactNode); } /** diff --git a/components/lib/toast/toast.d.ts b/components/lib/toast/toast.d.ts index 00a444a7cc..eaf527e061 100644 --- a/components/lib/toast/toast.d.ts +++ b/components/lib/toast/toast.d.ts @@ -306,7 +306,7 @@ export interface ToastProps extends Omit React.ReactNode); + content?: React.ReactNode | ((props: ContentProps) => React.ReactNode); } /**