feat(NavBar): add placeholder prop (#5938)

This commit is contained in:
neverland
2020-03-28 16:19:25 +08:00
committed by GitHub
parent 5bbe5608ce
commit ed28f808b2
8 changed files with 166 additions and 104 deletions
+3 -2
View File
@@ -39,7 +39,7 @@ export default {
}
```
### Advanced Usage
### Use Slot
```html
<van-nav-bar title="Title" left-text="Back" left-arrow>
@@ -59,8 +59,9 @@ export default {
| left-text | Left Text | *string* | `''` |
| right-text | Right Text | *string* | `''` |
| left-arrow | Whether to show left arrow | *boolean* | `false` |
| fixed | Whether to fixed top | *boolean* | `false` |
| border | Whether to show bottom border | *boolean* | `true` |
| fixed | Whether to fixed top | *boolean* | `false` |
| placeholder `v2.6.0` | Whether to generage a placeholder element when fixed | *boolean* | `false` |
| z-index | Z-index | *number \| string* | `1` |
### Slots