feat(Popup): add safe-area-inset-bottom prop (#4419)
This commit is contained in:
@@ -56,9 +56,4 @@
|
||||
font-size: @action-sheet-close-icon-size;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
&--safe-area-inset-bottom {
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ function ActionSheet(
|
||||
|
||||
return (
|
||||
<Popup
|
||||
class={bem({ 'safe-area-inset-bottom': props.safeAreaInsetBottom })}
|
||||
class={bem()}
|
||||
position="bottom"
|
||||
round={props.round}
|
||||
value={props.value}
|
||||
@@ -128,6 +128,7 @@ function ActionSheet(
|
||||
lockScroll={props.lockScroll}
|
||||
getContainer={props.getContainer}
|
||||
closeOnClickOverlay={props.closeOnClickOverlay}
|
||||
safeAreaInsetBottom={props.safeAreaInsetBottom}
|
||||
{...inherit(ctx, true)}
|
||||
>
|
||||
{Header()}
|
||||
|
||||
Reference in New Issue
Block a user