mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[new feature] NavBar: add border prop (#2143)
This commit is contained in:
parent
7f19b4dc18
commit
b1c54b9cf9
@ -53,6 +53,7 @@ export default {
|
|||||||
| right-text | Right Text | `String` | `''` |
|
| right-text | Right Text | `String` | `''` |
|
||||||
| left-arrow | Whether to show left arrow | `Boolean` | `false` |
|
| left-arrow | Whether to show left arrow | `Boolean` | `false` |
|
||||||
| fixed | Whether to fixed top | `Boolean` | `false` |
|
| fixed | Whether to fixed top | `Boolean` | `false` |
|
||||||
|
| border | Whether to show bottom border | `Boolean` | `true` |
|
||||||
| z-index | Z-index | `Number` | `1` |
|
| z-index | Z-index | `Number` | `1` |
|
||||||
|
|
||||||
### Slot
|
### Slot
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="van-hairline--bottom"
|
:class="[b({ fixed }), { 'van-hairline--bottom': border }]"
|
||||||
:class="b({ fixed })"
|
|
||||||
:style="style"
|
:style="style"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@ -50,10 +49,14 @@ export default create({
|
|||||||
|
|
||||||
props: {
|
props: {
|
||||||
title: String,
|
title: String,
|
||||||
|
fixed: Boolean,
|
||||||
leftText: String,
|
leftText: String,
|
||||||
rightText: String,
|
rightText: String,
|
||||||
leftArrow: Boolean,
|
leftArrow: Boolean,
|
||||||
fixed: Boolean,
|
border: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
zIndex: {
|
zIndex: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 1
|
default: 1
|
||||||
|
@ -54,6 +54,7 @@ export default {
|
|||||||
| right-text | 右侧文案 | `String` | `''` | - |
|
| right-text | 右侧文案 | `String` | `''` | - |
|
||||||
| left-arrow | 是否显示左侧箭头 | `Boolean` | `false` | - |
|
| left-arrow | 是否显示左侧箭头 | `Boolean` | `false` | - |
|
||||||
| fixed | 是否固定在顶部 | `Boolean` | `false` | - |
|
| fixed | 是否固定在顶部 | `Boolean` | `false` | - |
|
||||||
|
| border | 是否显示下边框 | `Boolean` | `true` | 1.4.7 |
|
||||||
| z-index | 元素 z-index | `Number` | `1` | - |
|
| z-index | 元素 z-index | `Number` | `1` | - |
|
||||||
|
|
||||||
### Slot
|
### Slot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user