[new feature] NavBar: add border prop (#2143)

This commit is contained in:
neverland
2018-11-26 14:36:08 +08:00
committed by GitHub
parent 7f19b4dc18
commit b1c54b9cf9
3 changed files with 8 additions and 3 deletions

View File

@@ -1,7 +1,6 @@
<template>
<div
class="van-hairline--bottom"
:class="b({ fixed })"
:class="[b({ fixed }), { 'van-hairline--bottom': border }]"
:style="style"
>
<div
@@ -50,10 +49,14 @@ export default create({
props: {
title: String,
fixed: Boolean,
leftText: String,
rightText: String,
leftArrow: Boolean,
fixed: Boolean,
border: {
type: Boolean,
default: true
},
zIndex: {
type: Number,
default: 1