vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
https://antdv.com/
Other
20.21k stars 3.79k forks source link

the args of `notification.useNotification` does not work. #7875

Open Dedicatus546 opened 1 week ago

Dedicatus546 commented 1 week ago

Version

4.2.5

Environment

latest version

Reproduction link

https://github.com/Dedicatus546/ant-design-vue-notification-bug-report

Steps to reproduce

steps:

What is expected?

top's value should be 80px .

What is actually happening?

top's value is still 24px .

Dedicatus546 commented 1 week ago

it seems like that Holder's props lack some properties.

image

image

the top property can be found in attrs.

image

but getStyles would check the props.top instead of attrs.top.

image

the notification's static method doesn't have this problem.

Dedicatus546 commented 1 week ago

btw, i found that the icons from notification.info and notification.useNotification are not same.

image

is it intentional?