Skip to content

Commit c428310

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 4981cf9 commit c428310

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
@@ -25,6 +25,9 @@
2525
@blur="handleBlur"
2626
v-maska:[options]
2727
>
28+
<template v-slot:prepend v-if="$slots.prepend">
29+
<slot name="prepend" />
30+
</template>
2831
<template v-slot:prepend-inner>
2932
<v-menu
3033
v-model="showMenu"

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

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

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

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

0 commit comments

Comments
 (0)