Open PejmanNik opened 7 years ago
@PejmanNik That is a really interesting way of passing the scoped slot. Thanks for sharing! :)
@ratiw Thank you :)
With Vue 2.5 it's now the way to follow ... thanks In this case we don't need anymore the CustomAction.vue component
using render function was interesting for better understanding , but should it be now deprecated ?
to avoid warning binding :key should be added to a wrapper element
<template :slot="slotName" slot-scope="props" v-for="(slotName, index) in $scopedSlots?Object.keys($scopedSlots):null">
<div :key="index">
<slot :name="slotName" :row-data="props.rowData" :row-index="props.rowIndex" :row-field="props.rowField"></slot>
</div>
</template>
Hi I think this way we can fix the problem you explained in lesson 17 Passing Scoped Slot to MyVuetable in Template by v-for on slotName in Object.keys($scopedSlots) Thanks for your great Tutorial