<template>
  <div class="demo-date-picker">
    <ui-date-picker
      v-model="value"
      :disabled-date="disabledDate"></ui-date-picker>
    <div>当前值: {{ value }}</div>
  </div>
</template>

<script>
import { DatePicker } from "amumu-ui"

export default {
  components: {
    "ui-date-picker": DatePicker,
  },
  data() {
    return {
      value: "",
    }
  },
  methods: {
    disabledDate(date) {
      if (date.getDate() === 1) {
        return true
      }
      return date.getTime() <= Date.now() - 3600 * 1000 * 24
    },
  },
}
</script>
