[Vuejs]-How to get slot props in computed property?

0👍

No it’s not possible, you cannot pass an argument to a computed property (that’s what a method is for).

You should just do this:

<input-wrapper v-slot="slotProps">
  <gallery-list 
    :value="getValue(slotProps.language)"
    @input="$emit('input', $event)"
  >
  </gallery-list>
</input-wrapper>

Leave a comment