<script lang="ts" setup>
import { defineModel } from 'vue';

const dateModel = defineModel({
  type: Array,
});

</script>

<template>
  <el-date-picker
    v-model="dateModel"
    format="YYYY-MM-DD"
    value-format="YYYY-MM-DD"
    type="monthrange"
    range-separator="To"
    :clearable="false"
    :disabled-date="(time: Date) => time > new Date()"
    style="width: 270px" />
</template>
