feat(Popup): add safe-area-inset-bottom prop (#4419)

This commit is contained in:
neverland
2019-09-10 20:15:24 +08:00
committed by GitHub
parent 50aa27fc64
commit a80773e19e
6 changed files with 15 additions and 8 deletions
+6 -1
View File
@@ -12,6 +12,7 @@ export default createComponent({
duration: Number,
closeable: Boolean,
transition: String,
safeAreaInsetBottom: Boolean,
closeIcon: {
type: String,
default: 'cross'
@@ -63,7 +64,11 @@ export default createComponent({
<div
vShow={this.value}
style={style}
class={bem({ round, [position]: position })}
class={bem({
round,
[position]: position,
'safe-area-inset-bottom': this.safeAreaInsetBottom
})}
onClick={this.onClick}
>
{this.slots()}