Created
July 11, 2018 03:36
-
-
Save sanfx/4e79b2627d9d613692723cdc7e9df4a6 to your computer and use it in GitHub Desktop.
single file component vuetify date picket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template | |
<v-layout row wrap> | |
<v-flex xs12 sm6 md4> | |
<v-menu | |
ref="menu" | |
:close-on-content-click="false" | |
v-model="menu" | |
:nudge-right="40" | |
:return-value.sync="date" | |
lazy | |
transition="scale-transition" | |
offset-y | |
full-width | |
min-width="290px" | |
> | |
<v-text-field | |
slot="activator" | |
v-model="date" | |
label="Picker in menu" | |
prepend-icon="event" | |
readonly | |
></v-text-field> | |
<v-date-picker v-model="date" no-title scrollable> | |
<v-spacer></v-spacer> | |
<v-btn flat color="primary" @click="menu = false">Cancel</v-btn> | |
<v-btn flat color="primary" @click="$refs.menu.save(date)">OK</v-btn> | |
</v-date-picker> | |
</v-menu> | |
</v-flex> | |
</v-app> | |
</div> | |
</template> | |
<script> | |
export default { | |
data: () => ({ | |
date: null, | |
menu: false, | |
modal: false, | |
menu2: false | |
}) | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment