feat(Calendar): add click-on-click-overlay prop

This commit is contained in:
陈嘉涵
2019-12-28 12:06:52 +08:00
committed by neverland
parent 956800b95c
commit 7fdc1b41fd
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -64,6 +64,10 @@ export default createComponent({
safeAreaInsetBottom: {
type: Boolean,
default: true
},
closeOnClickOverlay: {
type: Boolean,
default: true
}
},
@@ -314,6 +318,7 @@ export default createComponent({
class={bem('popup')}
value={this.value}
position={this.position}
closeOnClickOverlay={this.closeOnClickOverlay}
onInput={this.togglePopup}
>
{this.genCalendar()}