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

Scoped slots without binding #9334

Closed
cathrinevaage opened this issue Jan 17, 2019 · 1 comment
Closed

Scoped slots without binding #9334

cathrinevaage opened this issue Jan 17, 2019 · 1 comment

Comments

@cathrinevaage
Copy link

cathrinevaage commented Jan 17, 2019

What problem does this feature solve?

When you want to repeat a slot, it has to be scoped.
When you use a scoped slot, something has to be bound.
When something is bound, but never used, the eslint rule vue/no-unused-vars kicks in and raises an error or warning.

You can't both use a slot simply for repeatability and have the eslint rule active.

What does the proposed API look like?

I don't know exactly how to solve this, but there should probably be a way to mark a slot as scoped, without having to bind anything, in both parent and child component.
<span slot-scope>

Or add a new type of behaviour to slots, that allow repetition without it being scoped.
<span slot-repeatable>

@Justineo
Copy link
Member

When you want to repeat a slot, it has to be scoped.

It's not required since 2.5.18-beta.0. Slots can be repeated now.

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

No branches or pull requests

2 participants