[new feature] NumberKeyboard: add safe-area-inset-bottom prop (#3173)

This commit is contained in:
neverland
2019-04-18 19:59:33 +08:00
committed by GitHub
parent 37518a2fb1
commit 49f4be180f
4 changed files with 10 additions and 2 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ export default sfc({
title: String,
closeButtonText: String,
deleteButtonText: String,
safeAreaInsetBottom: Boolean,
theme: {
type: String,
default: 'default'
@@ -140,7 +141,7 @@ export default sfc({
<div
vShow={this.show}
style={{ zIndex: this.zIndex }}
class={bem([theme])}
class={bem([theme, { 'safe-area-inset-bottom': this.safeAreaInsetBottom }])}
onTouchstart={stop}
onAnimationend={this.onAnimationEnd}
onWebkitAnimationEnd={this.onAnimationEnd}