Forward slots to vue2-datepicker (#647)
Forward slots to vue2-datepicker
This commit is contained in:
Коммит
80745a3d79
|
@ -49,7 +49,11 @@
|
|||
v-on="$listeners"
|
||||
@select-year="handleSelectYear"
|
||||
@select-month="handleSelectMonth"
|
||||
@update:value="$emit('update:value', value)" />
|
||||
@update:value="$emit('update:value', value)">
|
||||
<template v-for="(_, slot) of $scopedSlots" v-slot:[slot]="scope">
|
||||
<slot :name="slot" v-bind="scope" />
|
||||
</template>
|
||||
</DatePicker>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
Загрузка…
Ссылка в новой задаче