diff --git a/components/notification/useNotification.tsx b/components/notification/useNotification.tsx index eca95d011a..c4bd73185c 100644 --- a/components/notification/useNotification.tsx +++ b/components/notification/useNotification.tsx @@ -145,7 +145,8 @@ export function useInternalNotification( closeIcon, closable, ...restConfig - } = config; + } = extendsObject(notificationConfig, config); + if (process.env.NODE_ENV !== 'production') { warning.deprecated(!btn, 'btn', 'actions'); }