fix: adjust notification default place in rtl (#24632)

This commit is contained in:
xrkffgg 2020-06-01 13:29:40 +08:00 committed by GitHub
parent 19ca646ef3
commit b047add305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,8 @@ function setNotificationConfig(options: ConfigProps) {
}
if (placement !== undefined) {
defaultPlacement = placement;
} else if (options.rtl) {
defaultPlacement = 'topLeft';
}
if (bottom !== undefined) {
defaultBottom = bottom;