Chatwoot/app/javascript/dashboard/components/ui/DateRangePicker.vue

41 lines
700 B
Vue
Raw Normal View History

<template>
2021-07-15 08:01:43 +00:00
<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) {
2021-07-15 08:01:43 +00:00
this.$emit('change', value);
},
},
};
</script>