[new feature] Tab: add border prop

This commit is contained in:
陈嘉涵
2019-05-22 15:59:19 +08:00
parent 10f82b4a40
commit 6d526b6c45
6 changed files with 47 additions and 16 deletions

View File

@@ -29,6 +29,10 @@ export default sfc({
background: String,
titleActiveColor: String,
titleInactiveColor: String,
border: {
type: Boolean,
default: true
},
ellipsis: {
type: Boolean,
default: true
@@ -432,7 +436,7 @@ export default sfc({
style={this.wrapStyle}
class={[
bem('wrap', { scrollable }),
{ 'van-hairline--top-bottom': type === 'line' }
{ 'van-hairline--top-bottom': type === 'line' && this.border }
]}
>
<div ref="nav" class={bem('nav', [type])} style={this.navStyle}>