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
-5
View File
@@ -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);
}
}
+2 -1
View File
@@ -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()}