mirror of
https://github.com/youzan/vant.git
synced 2026-04-26 01:01:51 +08:00
feat(Calendar): add formatter prop
This commit is contained in:
@@ -19,6 +19,7 @@ export default createComponent({
|
||||
props: {
|
||||
title: String,
|
||||
value: Boolean,
|
||||
formatter: Function,
|
||||
defaultDate: [Date, Array],
|
||||
confirmText: String,
|
||||
confirmDisabledText: String,
|
||||
@@ -221,11 +222,12 @@ export default createComponent({
|
||||
<Month
|
||||
ref="months"
|
||||
refInFor
|
||||
type={this.type}
|
||||
date={date}
|
||||
type={this.type}
|
||||
minDate={this.minDate}
|
||||
maxDate={this.maxDate}
|
||||
showMark={this.showMark}
|
||||
formatter={this.formatter}
|
||||
rowHeight={this.rowHeight}
|
||||
showTitle={index !== 0}
|
||||
currentDate={this.currentDate}
|
||||
|
||||
Reference in New Issue
Block a user