mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[Improvement] Tabbar: add z-index prop (#1310)
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<div class="van-hairline--top-bottom" :class="b({ fixed })">
|
||||
<div
|
||||
class="van-hairline--top-bottom"
|
||||
:class="b({ fixed })"
|
||||
:style="style"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
@@ -21,6 +25,18 @@ export default create({
|
||||
fixed: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
zIndex: {
|
||||
type: Number,
|
||||
default: 1
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
style() {
|
||||
return {
|
||||
zIndex: this.zIndex
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user