Slots
This is optional. However, if you enable V-slot mode, you should be able to write it.
Field's name
- Description: Show Row data's scope
Usage
vue
<template v-slot:id="data">
<YourComponent>{{ data.value.id }}</YourComponent>
</template>
<template v-slot:name="data">
<YourComponent>{{ data.value.name }}</YourComponent>
</template>
<template v-slot:email="data">
<YourComponent>{{ data.value.email }}</YourComponent>
</template>
<template v-slot:id="data">
<YourComponent>{{ data.value.id }}</YourComponent>
</template>
<template v-slot:name="data">
<YourComponent>{{ data.value.name }}</YourComponent>
</template>
<template v-slot:email="data">
<YourComponent>{{ data.value.email }}</YourComponent>
</template>
vue
<template v-for="(col, i) of table.columns" v-slot:[col.field]="data" :key="i">
<YourComponent>{{ data.value[col.field] }}</YourComponent>
</template>
<template v-for="(col, i) of table.columns" v-slot:[col.field]="data" :key="i">
<YourComponent>{{ data.value[col.field] }}</YourComponent>
</template>