feat(Calendar): add position prop

This commit is contained in:
陈嘉涵
2019-12-28 12:06:52 +08:00
committed by neverland
parent 8dea26db95
commit 956800b95c
4 changed files with 12 additions and 3 deletions
+6 -2
View File
@@ -41,6 +41,10 @@ export default createComponent({
return new Date(now.getFullYear(), now.getMonth() + 6, now.getDate());
}
},
position: {
type: String,
default: 'bottom'
},
rowHeight: {
type: Number,
default: ROW_HEIGHT
@@ -307,9 +311,9 @@ export default createComponent({
<Popup
round
closeable
value={this.value}
position="bottom"
class={bem('popup')}
value={this.value}
position={this.position}
onInput={this.togglePopup}
>
{this.genCalendar()}