<template>
  <view class="bg-gray-50">
    <Calendar @selected-change="datechange" :showBack="true" :dot-list="dayss"></Calendar>
    <!-- <button @click="changeList">改变</button> -->
    <Upload />

    <Projects class="mt-3" />
  </view>
</template>

<script>
export default {
  data() {
    return {
      dayss: [
        { date: '2020-08-14' },
        { date: '2020-08-27' },
        { date: '2020-08-09' },
        // {date: '2020-08-16'}
      ],
    };
  },

  methods: {
    changeList() {
      this.dayss = [{ date: '2021-08-03' }, { date: '2021-08-04' }, { date: '2021-08-06' }];
    },

    datechange(e) {
      console.log(e);
    },
  },
};
</script>
