From fb4e23739f1725f0079b85be04dc1229f96c49fb Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Mon, 16 Nov 2020 11:42:35 +0800 Subject: [PATCH] fix: notification top type --- components/notification/index.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/notification/index.tsx b/components/notification/index.tsx index c8014d3e51..9c24e18804 100644 --- a/components/notification/index.tsx +++ b/components/notification/index.tsx @@ -51,8 +51,8 @@ function setNotificationConfig(options: ConfigProps) { function getPlacementStyle( placement: NotificationPlacement, - top: string | number = defaultTop, - bottom: string | number = defaultBottom, + top: string = defaultTop, + bottom: string = defaultBottom, ) { let style; switch (placement) { @@ -92,8 +92,8 @@ type NotificationInstanceProps = { prefixCls: string; placement?: NotificationPlacement; getContainer?: () => HTMLElement; - top?: string | number; - bottom?: string | number; + top?: string; + bottom?: string; closeIcon?: VNodeTypes; }; @@ -156,8 +156,8 @@ export interface ArgsProps { class?: string; readonly type?: IconType; onClick?: () => void; - top?: number; - bottom?: number; + top?: string; + bottom?: string; getContainer?: () => HTMLElement; closeIcon?: VNodeTypes; }