Created
September 25, 2019 12:37
-
-
Save CristalT/9e5e1f2d5a5c6db8df0ff5f6d80499a9 to your computer and use it in GitHub Desktop.
Componente Datepicker para quasar >= v1
This file contains hidden or 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> | |
<div> | |
<q-input | |
:outlined="outlined" | |
:dense="dense" | |
:filled="filled" | |
:class="inputClass" | |
:label="label" | |
:value="value" | |
mask="##/##/####" | |
hint="DD/MM/AAAA" | |
@input="$emit('input', $event.target.value)" | |
> | |
<template v-slot:prepend> | |
<q-btn icon="event" flat round dense> | |
<q-popup-proxy> | |
<q-date minimal mask="DD/MM/YYYY" v-model="value" color="indigo-5" v-close-popup/> | |
</q-popup-proxy> | |
</q-btn> | |
</template> | |
</q-input> | |
</div> | |
</template> | |
<script> | |
export default { | |
props: { | |
value: { | |
type: String, | |
}, | |
label: { | |
type: String | |
}, | |
outlined: { | |
type: Boolean, | |
}, | |
dense: { | |
type: Boolean, | |
default: false | |
}, | |
filled: { | |
type: Boolean, | |
default: false | |
}, | |
inputClass: { | |
type: String, | |
default: '' | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment