feat(Calendar): add show-mark prop

This commit is contained in:
陈嘉涵
2019-12-25 11:17:52 +08:00
committed by neverland
parent c9964d5759
commit f65f2cc6cf
3 changed files with 15 additions and 2 deletions
+5
View File
@@ -36,6 +36,10 @@ export default createComponent({
return new Date(now.getFullYear(), now.getMonth() + 6, now.getDate());
},
validator: isDate
},
showMark: {
type: Boolean,
default: true
}
},
@@ -203,6 +207,7 @@ export default createComponent({
refInFor
days={month.days}
date={month.date}
showMark={this.showMark}
title={index !== 0 ? month.title : ''}
onClick={this.onClickDay}
/>