Forward slots to vue2-datepicker (#647)

Forward slots to vue2-datepicker
This commit is contained in:
John Molakvoæ 2019-10-16 00:42:18 +02:00 коммит произвёл GitHub
Родитель e6a166869b 5be0b2a961
Коммит 80745a3d79
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -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>