fix: notification top type (#3187)
parent
5e4fff39d6
commit
642291790e
|
@ -51,8 +51,8 @@ function setNotificationConfig(options: ConfigProps) {
|
||||||
|
|
||||||
function getPlacementStyle(
|
function getPlacementStyle(
|
||||||
placement: NotificationPlacement,
|
placement: NotificationPlacement,
|
||||||
top: string | number = defaultTop,
|
top: string = defaultTop,
|
||||||
bottom: string | number = defaultBottom,
|
bottom: string = defaultBottom,
|
||||||
) {
|
) {
|
||||||
let style;
|
let style;
|
||||||
switch (placement) {
|
switch (placement) {
|
||||||
|
@ -92,8 +92,8 @@ type NotificationInstanceProps = {
|
||||||
prefixCls: string;
|
prefixCls: string;
|
||||||
placement?: NotificationPlacement;
|
placement?: NotificationPlacement;
|
||||||
getContainer?: () => HTMLElement;
|
getContainer?: () => HTMLElement;
|
||||||
top?: string | number;
|
top?: string;
|
||||||
bottom?: string | number;
|
bottom?: string;
|
||||||
closeIcon?: VNodeTypes;
|
closeIcon?: VNodeTypes;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -156,8 +156,8 @@ export interface ArgsProps {
|
||||||
class?: string;
|
class?: string;
|
||||||
readonly type?: IconType;
|
readonly type?: IconType;
|
||||||
onClick?: () => void;
|
onClick?: () => void;
|
||||||
top?: number;
|
top?: string;
|
||||||
bottom?: number;
|
bottom?: string;
|
||||||
getContainer?: () => HTMLElement;
|
getContainer?: () => HTMLElement;
|
||||||
closeIcon?: VNodeTypes;
|
closeIcon?: VNodeTypes;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue