-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
slot-scope support multiple parameters #9468
slot-scope support multiple parameters #9468
Comments
Maybe we can change this code
to let res = fn(arguments.length ? ...arguments : {}) |
mmh, why did you preferred that syntax over the drestructuring one? Is it browser support without using a transpiler? |
@posva |
Since this is a documented usage, I think this issue should be marked as a regression (I just did). And I created a working sandbox for 2.5.22. |
I'm a bit torn on this. I will fix this because it worked in the past and I don't want to force you to re-design your API, but you really should avoid using this in the future, and possibly migrate away from it when you can. The disadvantage compared to destructuring is:
|
fix #9468 Note: the usage is NOT recommended
v-slot:[col.key]="text, record", and I really do not need 'text', text is in record object. and my editor is complaining |
fix vuejs#9468 Note: the usage is NOT recommended
What problem does this feature solve?
slot-scope support multiple parameters in version 2.6.x.
It is supported in version 2.5.x.
If not supported, our component library(ant-design-vue) has to change some API.
What does the proposed API look like?
like 2.5.x
The text was updated successfully, but these errors were encountered: