<template>
  <DatePicker 
    :value="value" 
    v-bind="$attrs"
    @on-change="handleChange"
    :style="'width:100%;'"
  />
</template>

<script>
export default {
  name: 'DatePicker',
  props: ['value'],
  methods: {
    handleChange(date) {
      this.$emit('input', date)
      this.$emit('change', date)
    }
  }
}
</script>
