File tree 1 file changed +6
-6
lines changed
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) {
51
51
52
52
function getPlacementStyle (
53
53
placement : NotificationPlacement ,
54
- top : string | number = defaultTop ,
55
- bottom : string | number = defaultBottom ,
54
+ top : string = defaultTop ,
55
+ bottom : string = defaultBottom ,
56
56
) {
57
57
let style ;
58
58
switch ( placement ) {
@@ -92,8 +92,8 @@ type NotificationInstanceProps = {
92
92
prefixCls : string ;
93
93
placement ?: NotificationPlacement ;
94
94
getContainer ?: ( ) => HTMLElement ;
95
- top ?: string | number ;
96
- bottom ?: string | number ;
95
+ top ?: string ;
96
+ bottom ?: string ;
97
97
closeIcon ?: VNodeTypes ;
98
98
} ;
99
99
@@ -156,8 +156,8 @@ export interface ArgsProps {
156
156
class ?: string ;
157
157
readonly type ?: IconType ;
158
158
onClick ?: ( ) => void ;
159
- top ?: number ;
160
- bottom ?: number ;
159
+ top ?: string ;
160
+ bottom ?: string ;
161
161
getContainer ?: ( ) => HTMLElement ;
162
162
closeIcon ?: VNodeTypes ;
163
163
}
You can’t perform that action at this time.
0 commit comments