mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[improvement] Tabbar: add iPhone X layout feature for fixed tabbar (#3149)
This commit is contained in:
@@ -16,6 +16,10 @@ export default sfc({
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
safeAreaInsetBottom: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
zIndex: {
|
||||
type: Number,
|
||||
default: 1
|
||||
@@ -51,7 +55,13 @@ export default sfc({
|
||||
return (
|
||||
<div
|
||||
style={{ zIndex: this.zIndex }}
|
||||
class={['van-hairline--top-bottom', bem({ fixed: this.fixed })]}
|
||||
class={[
|
||||
'van-hairline--top-bottom',
|
||||
bem({
|
||||
fixed: this.fixed,
|
||||
'safe-area-inset-bottom': this.safeAreaInsetBottom
|
||||
})
|
||||
]}
|
||||
>
|
||||
{this.slots()}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user