Skip to content

v0.2.0

Compare
Choose a tag to compare
@mathieustan mathieustan released this 08 Nov 10:17

πŸš€ News

  • You can set default lang in options
Vue.use(VueDatePicker, { lang: 'fr' });
  • you can use a custom activator for datepicker
<VueDatePicker
  v-model="currentDate"
  >
  <template #activator="{ date }">
    <button
      class="custom__button"
      ref="activator"
      type="button"
    >
      {{ date }}
    </button>
  </template>
</VueDatePicker>
  • new prop visibleYearsNumber : Allows to set years range in year picker (it will add X years before & after current year)
  • new prop origin : By default, datepicker will find best origin, but you can set your own transform origin like 'top right'.

πŸ’₯ Breaking changes

  • Renamed prop attach-toto attach. Can be used like this : <VueDatePicker attach />
    When attach is active, it will keep menu in place. Usefull, when using VueDatePicker inside a fixed div with scroll
  • Removed prop fixed: datepicker will now detect automaticaly fixed mode

πŸ› Fixes

  • Handle null dates
  • Fixed console error Cannot read property 'start' of undefined

This closes #14, closes #19 and closes #22

πŸ“ Docs

  • Doc has been redesigned to be easier to maintain