diff --git a/src/components/inline-calendar/index.vue b/src/components/inline-calendar/index.vue index 23cae1c5e..9edb4d0f2 100755 --- a/src/components/inline-calendar/index.vue +++ b/src/components/inline-calendar/index.vue @@ -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) }, diff --git a/src/components/inline-calendar/metas.yml b/src/components/inline-calendar/metas.yml index 85bf0c0db..407ec083a 100755 --- a/src/components/inline-calendar/metas.yml +++ b/src/components/inline-calendar/metas.yml @@ -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'