feat(SubmitBar): enable safe-area-inset-bottom by default (#5956)

This commit is contained in:
neverland
2020-03-31 07:23:23 +08:00
committed by GitHub
parent b87fd71959
commit 75e832f05a
12 changed files with 58 additions and 24 deletions
+5 -5
View File
@@ -77,10 +77,7 @@ function SubmitBar(
}
return (
<div
class={bem({ 'safe-area-inset-bottom': props.safeAreaInsetBottom })}
{...inherit(ctx)}
>
<div class={bem({ unfit: !props.safeAreaInsetBottom })} {...inherit(ctx)}>
{slots.top && slots.top()}
{Tip()}
<div class={bem('bar')}>
@@ -112,7 +109,10 @@ SubmitBar.props = {
textAlign: String,
buttonText: String,
suffixLabel: String,
safeAreaInsetBottom: Boolean,
safeAreaInsetBottom: {
type: Boolean,
default: true,
},
decimalLength: {
type: [Number, String],
default: 2,