Skip to content

Commit

Permalink
fix: notification top type (#3187)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg authored Nov 16, 2020
1 parent 5e4fff3 commit 6422917
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/notification/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -92,8 +92,8 @@ type NotificationInstanceProps = {
prefixCls: string;
placement?: NotificationPlacement;
getContainer?: () => HTMLElement;
top?: string | number;
bottom?: string | number;
top?: string;
bottom?: string;
closeIcon?: VNodeTypes;
};

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 6422917

Please sign in to comment.