[Improvement] Tabbar: add z-index prop (#1310)

This commit is contained in:
neverland
2018-06-20 23:01:12 +08:00
committed by GitHub
parent 0a99da352e
commit 3c48de191d
5 changed files with 30 additions and 4 deletions

View File

@@ -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
};
}
},