[new feature] add Notify component (#2135)

This commit is contained in:
neverland
2018-11-25 10:36:07 +08:00
committed by GitHub
parent 00458839a2
commit eb44209a5a
22 changed files with 465 additions and 5 deletions
@@ -0,0 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders demo correctly 1`] = `
<div>
<div>
<button class="van-button van-button--default van-button--normal"><span class="van-button__text">显示消息通知</span></button>
</div>
<div>
<button class="van-button van-button--default van-button--normal"><span class="van-button__text">显示自定义消息通知</span></button>
</div>
</div>
`;
@@ -0,0 +1,31 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`create a notify 1`] = `
<div class="van-notify" style="color: rgb(255, 255, 255); background: rgb(255, 68, 68); z-index: 2000;" name="van-slide-down">
test
</div>
`;
exports[`notify disappear 1`] = `
<div class="van-notify" style="color: red; z-index: 2000; background: blue;" name="van-slide-down">
test
</div>
`;
exports[`notify disappear 2`] = `
<div class="van-notify" style="color: red; z-index: 2000; background: blue; display: none;" name="van-slide-down">
test
</div>
`;
exports[`notify disappear 3`] = `
<div class="van-notify" style="color: rgb(255, 255, 255); z-index: 2001; background: rgb(255, 68, 68);" name="van-slide-down">
text2
</div>
`;
exports[`notify disappear 4`] = `
<div class="van-notify" style="color: rgb(255, 255, 255); z-index: 2001; background: rgb(255, 68, 68); display: none;" name="van-slide-down">
text2
</div>
`;