6891 shaares
As Vue 3 classes are contained in attrs
, we sometimes want to pass every prop attribute to the child, except the class
attribute:
v-bind="{ ...attrs, class: undefined }"
As Vue 3 classes are contained in attrs
, we sometimes want to pass every prop attribute to the child, except the class
attribute:
v-bind="{ ...attrs, class: undefined }"