Vue v-calendar date-picker mode multiple

by kabanoki

HTML

<div id='app'>
      <v-date-picker 
              :input-props="{ class: 'input', name: 'event_dates'}"
              :mode="mode" 
              :formats="formats" 
              v-model="selectedDate"
              is-inline  
              ></v-date-picker>
     <p>
     {{selectedDate}}
     </p>    
     {{day1}}
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js"></script>
<link rel='stylesheet' href='https://unpkg.com/v-calendar/lib/v-calendar.min.css'>
<script src='https://unpkg.com/v-calendar'></script>

CSS

body {
  background: #20262E;
  padding: 20px;
  font-family: Helvetica;
}

#app {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  transition: all 0.2s;
    text-align:center;
}

Vue

var today = new Date(),
    day7 = new Date(today.getFullYear(), today.getMonth(), today.getDate()+7),
    day3 = new Date(today.getFullYear(), today.getMonth(), today.getDate()+3),
    day1 = new Date(today.getFullYear(), today.getMonth(), today.getDate()+1);

new Vue({
  el: '#app',
  data: {
    mode: 'multiple',
    formats: {
        input: ['YYYY-MM-DD'],
    },
    selectedDate: [ 
      new Date(today.getFullYear(), today.getMonth(), today.getDate()), 
      day7, 
      day3, 
      day1 
    ],
  }
})