Open
Description
🧐 Problem Description
I can not use v-slots
to get parameters in the slot.
💻 Sample code
<ComponentA>
v-slots={{
sex: (record) => {
<>{ record.sex === 0 ? 'male' : 'famale' }</> // I can't get the "record".
}
}}
</ComponentA>
🚑 Other information
This is the code using the Vue template syntax. It is works.
<template>
<ComponentA>
<template #sex="{ record }">
{{ record.sex === 0 ? 'male' : 'famale' }} <!-- It is works. -->
</template>
</ComponentA>
</template>