<a-date-picker :placeholder="placeholder" mode="year" format="YYYY" :open="showYear" v-model="valueYear"
@openChange="changeOpen" @panelChange="panelChange"></a-date-picker>
changeOpen(status) {
console.log(status);
if(status){
this.showYear = true
}else {
this.showYear = false
}
},
handleDateChange(value, mode) {
this.showYear = false
this.valueYear = value
console.log('当前选择日期', value, mode)
},
panelChange(value){
this.valueYear = value
this.showYear = true
},
标签:showYear,status,vue,console,log,value,年份,antd
From: https://www.cnblogs.com/Sultan-ST/p/17108570.html