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
According to vuejs/core#7982 (comment), the each slot definition can be a function whose return value should restrict what components can be put in that slot. By default, its any or VNode[] which is not restricting anything, but one should be able to specify a certain component.
For example, the restrict slot of a component defined with
According to vuejs/core#7982 (comment), the each slot definition can be a function whose return value should restrict what components can be put in that slot. By default, its
any
orVNode[]
which is not restricting anything, but one should be able to specify a certain component.For example, the
restrict
slot of a component defined withshould only allow Buttons as children.
Playground which also shows that type interference/restriction for children is not working.
The text was updated successfully, but these errors were encountered: