Skip to content

Commit

Permalink
inline-calendar: re-render when render-month is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed Jun 18, 2017
1 parent cec450f commit bb82c0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/inline-calendar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ export default {
renderFunction () {
this.render(this.year, this.month, this.currentValue)
},
renderMonth (val) {
if (val && val.length === 2) {
this.render(val[0], val[1] - 1)
}
},
returnSixRows (val) {
this.render(this.year, this.month, this.currentValue)
},
Expand Down
5 changes: 5 additions & 0 deletions src/components/inline-calendar/metas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ events:
en: emits when value is changed
zh-CN: 值变化时触发
changes:
next:
en:
- '[enhance] re-render when render-month is changed'
zh-CN:
- '[enhance] 当 render-month 变化时重新渲染日历'
v2.3.8:
en:
- '[enhance] prevent from clicking invisiable date #1564'
Expand Down

0 comments on commit bb82c0c

Please sign in to comment.