Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(NavBar): add safe-area-inset-top prop
- Loading branch information
1 parent
f07d8e6
commit be25a47
Showing
6 changed files
with
77 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`placeholder prop 1`] = ` | ||
<div class="van-nav-bar__placeholder" style="height: 50px;"> | ||
<div class="van-nav-bar van-nav-bar--fixed van-hairline--bottom"> | ||
exports[`should allow render left/right slot 1`] = ` | ||
<div class="van-nav-bar van-hairline--bottom"> | ||
<div class="van-nav-bar__content"> | ||
<div class="van-nav-bar__left">Custom Left</div> | ||
<div class="van-nav-bar__title van-ellipsis"></div> | ||
<div class="van-nav-bar__right">Custom Right</div> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`render left & right slot 1`] = ` | ||
exports[`should allow render title slot 1`] = ` | ||
<div class="van-nav-bar van-hairline--bottom"> | ||
<div class="van-nav-bar__left">Custom Left</div> | ||
<div class="van-nav-bar__title van-ellipsis"></div> | ||
<div class="van-nav-bar__right">Custom Right</div> | ||
<div class="van-nav-bar__content"> | ||
<div class="van-nav-bar__title van-ellipsis">Custom Title</div> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`render title slot 1`] = ` | ||
<div class="van-nav-bar van-hairline--bottom"> | ||
<div class="van-nav-bar__title van-ellipsis">Custom Title</div> | ||
exports[`should render placeholder element when enabling placeholder prop 1`] = ` | ||
<div class="van-nav-bar__placeholder" style="height: 50px;"> | ||
<div class="van-nav-bar van-nav-bar--fixed van-hairline--bottom"> | ||
<div class="van-nav-bar__content"> | ||
<div class="van-nav-bar__title van-ellipsis"></div> | ||
</div> | ||
</div> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
这里写错了,应该是safe-area-inset-top