Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification 的标题属性 message 可否增加 title 别名 #38084

Open
handycode opened this issue Oct 18, 2022 · 4 comments
Open

Notification 的标题属性 message 可否增加 title 别名 #38084

handycode opened this issue Oct 18, 2022 · 4 comments
Labels

Comments

@handycode
Copy link
Contributor

What problem does this feature solve?

解决认知矛盾

What does the proposed API look like?

message -> title

@afc163
Copy link
Member

afc163 commented Oct 18, 2022

为啥有认知矛盾?

@handycode
Copy link
Contributor Author

handycode commented Oct 19, 2022

目前大部分 antd 的反馈组件标题都是用 title。 (Drawer、Modal、message、Popconfirm、 Result、 Drawer,、Tooltip、 Popover 等)
这就跟 antd 5.0 要把所有弹出组件的 visible 都统一改为 open 类似。

@handycode
Copy link
Contributor Author

另:Web API Notification 对象也是用的 title
https://developer.mozilla.org/en-US/docs/Web/API/Notification/title

@afc163
Copy link
Member

afc163 commented Oct 19, 2022

确实可以改改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants