Skip to content

Commit 722ef61

Browse files
committed
feat: add prepend slot to date/time control renderers
Add optional prepend slot to DateControlRenderer, DateTimeControlRenderer, and TimeControlRenderer to allow custom content before the input field.
1 parent 0af54c5 commit 722ef61

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

packages/vue-vuetify/src/controls/DateControlRenderer.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
@blur="handleBlur"
2525
v-maska:[options]="maska"
2626
>
27+
<template v-slot:prepend v-if="$slots.prepend">
28+
<slot name="prepend" />
29+
</template>
2730
<template v-slot:prepend-inner>
2831
<v-menu
2932
v-model="showMenu"

packages/vue-vuetify/src/controls/DateTimeControlRenderer.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
@blur="handleBlur"
2525
v-maska:[options]="maska"
2626
>
27+
<template v-slot:prepend v-if="$slots.prepend">
28+
<slot name="prepend" />
29+
</template>
2730
<template v-slot:prepend-inner>
2831
<v-menu
2932
v-model="showMenu"

packages/vue-vuetify/src/controls/TimeControlRenderer.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
@blur="handleBlur"
2525
v-maska:[options]="maska"
2626
>
27+
<template v-slot:prepend v-if="$slots.prepend">
28+
<slot name="prepend" />
29+
</template>
2730
<template v-slot:prepend-inner>
2831
<v-menu
2932
v-model="showMenu"

0 commit comments

Comments
 (0)