Commit 7cbb7d2f authored by Facius's avatar Facius

feat: 日期选择年

parent e1da8161
......@@ -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