mirror of
https://github.com/youzan/vant.git
synced 2026-04-26 01:01:51 +08:00
feat(Calendar): add show-mark prop
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user