feat(Tabbar): enable safe-area-inset-bottom by default when fixed (#5968)

This commit is contained in:
neverland
2020-03-31 22:16:13 +08:00
committed by GitHub
parent e929f96e04
commit afc3164364
13 changed files with 52 additions and 42 deletions
+1 -4
View File
@@ -211,10 +211,7 @@ export default createComponent({
<div
vShow={this.show}
style={{ zIndex: this.zIndex }}
class={bem([
this.theme,
{ 'safe-area-inset-bottom': this.safeAreaInsetBottom },
])}
class={bem([this.theme, { unfit: !this.safeAreaInsetBottom }])}
onTouchstart={stopPropagation}
onAnimationend={this.onAnimationEnd}
onWebkitAnimationEnd={this.onAnimationEnd}