feat(Popup): add safe-area-inset-bottom prop (#4419)
This commit is contained in:
+6
-1
@@ -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()}
|
||||
|
||||
Reference in New Issue
Block a user