feat(Calendar): add formatter prop

This commit is contained in:
陈嘉涵
2019-12-26 16:13:58 +08:00
committed by neverland
parent 1f6cce692c
commit 28f126e4ec
7 changed files with 174 additions and 34 deletions
+3 -1
View File
@@ -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}