WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/@dcloudio/uni-ui/lib/uni-calendar/uni-calendar.vue
@@ -193,10 +193,13 @@
            this.cale.setDate(this.nowDate.fullDate)
            this.weeks = this.cale.weeks
         },
         selected(newVal) {
            this.cale.setSelectInfo(this.nowDate.fullDate, newVal)
            this.weeks = this.cale.weeks
         }
         selected: {
             handler(newVal) {
               this.cale.setSelectInfo(this.nowDate.fullDate, newVal);
               this.weeks = this.cale.weeks;
             },
             deep: true,
          },
      },
      created() {
         this.cale = new Calendar({
@@ -214,11 +217,11 @@
            const value = e.detail.value + '-1'
            this.setDate(value)
            const { year,month } = this.cale.getDate(value)
        this.$emit('monthSwitch', {
            year,
            month
        })
            let detail = this.cale.getDate(value)
            this.$emit('monthSwitch', {
               year: detail.year,
               month: Number(detail.month)
            })
         },
         /**
          * 初始化日期显示