2021-07-09 08:46:55 +00:00
|
|
|
<template>
|
2021-07-15 08:01:43 +00:00
|
|
|
<div class="date-picker">
|
2021-07-09 08:46:55 +00:00
|
|
|
<date-picker
|
|
|
|
:range="true"
|
|
|
|
:confirm="true"
|
|
|
|
:clearable="false"
|
2021-07-13 10:41:03 +00:00
|
|
|
:editable="false"
|
2021-07-09 08:46:55 +00:00
|
|
|
: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);
|
2021-07-09 08:46:55 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|