-
-
Notifications
You must be signed in to change notification settings - Fork 17.3k
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
fix(components): [notification] type declaration error and four types of methods are missing context parameters #18951
Conversation
👋 @YiMo1, thank you for contributing element-plus. |
commit: |
🧪 Playground Preview: https://element-plus.run/?pr=18951 |
这两行代码看样子像是冲突的,如果 These two lines of code seem to conflict. If function (options = {}, context?: AppContext | null)
vm.appContext = isUndefined(context) ? notify._context : context |
我觉得
|
如果是这样的话,完全没必要在形参上声明允许为 If that's the case, there's no need to declare |
fix #18941
相关PR:#6367、#6368
不知道是不是这个功能的作者忘记了这个声明以及四种类型方法的上下文参数,但在
message
组件中并未缺少这些东西。Related PR: #6367、#6368
I don't know if the author of this feature forgot this declaration and the context parameters of the four types of methods, but these things are not missing in the
message
component.