Skip to content

Commit 6422917

Browse files
authored
fix: notification top type (#3187)
1 parent 5e4fff3 commit 6422917

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

components/notification/index.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ function setNotificationConfig(options: ConfigProps) {
5151

5252
function getPlacementStyle(
5353
placement: NotificationPlacement,
54-
top: string | number = defaultTop,
55-
bottom: string | number = defaultBottom,
54+
top: string = defaultTop,
55+
bottom: string = defaultBottom,
5656
) {
5757
let style;
5858
switch (placement) {
@@ -92,8 +92,8 @@ type NotificationInstanceProps = {
9292
prefixCls: string;
9393
placement?: NotificationPlacement;
9494
getContainer?: () => HTMLElement;
95-
top?: string | number;
96-
bottom?: string | number;
95+
top?: string;
96+
bottom?: string;
9797
closeIcon?: VNodeTypes;
9898
};
9999

@@ -156,8 +156,8 @@ export interface ArgsProps {
156156
class?: string;
157157
readonly type?: IconType;
158158
onClick?: () => void;
159-
top?: number;
160-
bottom?: number;
159+
top?: string;
160+
bottom?: string;
161161
getContainer?: () => HTMLElement;
162162
closeIcon?: VNodeTypes;
163163
}

0 commit comments

Comments
 (0)