| | |
| | | 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({ |
| | |
| | | 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) |
| | | }) |
| | | }, |
| | | /** |
| | | * 初始化日期显示 |