Commit 7cbb7d2f authored by Facius's avatar Facius

feat: 日期选择年

parent e1da8161
...@@ -481,16 +481,19 @@ ...@@ -481,16 +481,19 @@
bindDateChange(e) { bindDateChange(e) {
const value = e.detail.value + '-1' 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 * @param {Object} date
*/ */
init(date) { init(date) {
this.cale.setDate(date) this.initChange(date)
this.weeks = this.cale.weeks
this.nowDate = this.calendar = this.cale.getInfo(date) || {}
if (this.range) { if (this.range) {
this.setDateRange(this.pleStatus) 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