Open iLojan opened 3 years ago
@iLojan here is an example
<template>
<div>
<litepie-datepicker
ref="myRef"
as-single
:formatter="formatter"
v-model="dateValue"
/>
</div>
</template>
<script>
import { ref } from 'vue';
import LitepieDatepicker from 'litepie-datepicker';
export default {
components: {
LitepieDatepicker
},
setup() {
let today=new Date().toISOString().slice(0,10)
const myRef = ref(today);
const dateValue = ref([]);
const formatter = ref({
date: 'DD MM YYYY',
month: 'MM'
});
return {
myRef,
dateValue,
formatter
};
}
};
</script>
is there are any way to select a single date in double date-picker view