[Vuejs]-Vue: can slot data go back to parent to pass down a prop?

0👍

If your goal is to only pass items that are of a certain criteria you can filter them out using computed properties. In your script add computed object like so

   computed:{
      filteredItems(){
        return this.items.filter(item=>item.typename === 'NewOne')
      }
    },

And after in your template you can pass computed property instead of the whole list

 <MyGrid
    :items="filteredItems"
    columnGap="12"
    rowGap="14"
   >

Leave a comment