Commit 82f3633f authored by 刘文虎's avatar 刘文虎
parents a4113f48 da66c2e9
......@@ -481,16 +481,19 @@
bindDateChange(e) {
const value = e.detail.value + '-1'
this.init(value)
this.initChange(value)
},
initChange(date) {
this.cale.setDate(date)
this.weeks = this.cale.weeks
this.nowDate = this.calendar = this.cale.getInfo(date) || {}
},
/**
* 初始化日期显示
* @param {Object} date
*/
init(date) {
this.cale.setDate(date)
this.weeks = this.cale.weeks
this.nowDate = this.calendar = this.cale.getInfo(date) || {}
this.initChange(date)
if (this.range) {
this.setDateRange(this.pleStatus)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment