diff --git a/src/calendar/README.zh-CN.md b/src/calendar/README.zh-CN.md index 58e57889e..3e678fed7 100644 --- a/src/calendar/README.zh-CN.md +++ b/src/calendar/README.zh-CN.md @@ -34,6 +34,7 @@ Vue.use(Calendar); | max-date | 最大日期 | `Date` | 当前日期的六个月后 | - | | button-text | 选择日期区间时,确认按钮的文字 | `string` | `确定` | - | | button-disabled-text | 选择日期区间时,确认按钮处于禁用状态时的文字 | `string` | `确定` | - | +| show-mark | 是否显示月份背景水印 | `boolean` | `true` | - | ### Events diff --git a/src/calendar/components/Month.js b/src/calendar/components/Month.js index faf6c26e0..909872f0c 100644 --- a/src/calendar/components/Month.js +++ b/src/calendar/components/Month.js @@ -7,7 +7,8 @@ export default createComponent({ props: { date: Date, days: Array, - title: String + title: String, + showMark: Boolean }, mounted() { @@ -31,6 +32,12 @@ export default createComponent({ } }, + genMark() { + if (this.showMark) { + return