File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ function setNotificationConfig(options: ConfigProps) {
5151
5252function 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}
You can’t perform that action at this time.
0 commit comments