You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't work when I want to multiple pass slot between components.
<!-- foo.vue --><template><divclass="foo"><slot:value="value"> current value: {{ value }} </slot><button@click="value += 1">Add</button></div></template><!-- baz.vue --><template><divclass="baz"><Foo><template#default="{ value }"><slot:value="value"></slot></template></Foo></div></template><!-- App.vue --><template><!-- render default value --><Foo></Foo><!-- slot default value not render --><Baz></Baz><!-- render customized value --><Baz><template#default="{ value }">
customized value: {{ value + 10 }}
</template></Baz></template>
Version
3.0.0
Reproduction link
https://codesandbox.io/s/cranky-bush-u5qs8?fontsize=14&hidenavigation=1&theme=dark
Steps to reproduce
There is a simple example, you just need to check the elements on the dev tool.
What is expected?
Default values should be used for invalid content.
What is actually happening?
Any content prevents using default value, also a comment.
The text was updated successfully, but these errors were encountered: