Chatwoot/app/javascript/dashboard/components/ui/DateRangePicker.vue
2021-07-15 13:31:43 +05:30

40 lines
700 B
Vue

<template>
<div class="date-picker">
<date-picker
:range="true"
:confirm="true"
:clearable="false"
:editable="false"
:confirm-text="confirmText"
:placeholder="placeholder"
:value="value"
@change="handleChange"
/>
</div>
</template>
<script>
import DatePicker from 'vue2-datepicker';
export default {
components: { DatePicker },
props: {
confirmText: {
type: String,
default: '',
},
placeholder: {
type: String,
default: '',
},
value: {
type: Array,
default: () => [],
},
},
methods: {
handleChange(value) {
this.$emit('change', value);
},
},
};
</script>