[improvement] Notify: tsx & functional (#2810)

This commit is contained in:
neverland
2019-02-20 19:44:14 +08:00
committed by GitHub
parent 52e6fd2f0b
commit da91631b0d
10 changed files with 176 additions and 131 deletions
@@ -1,11 +1,11 @@
// 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[`create a notify 1`] = `<div class="van-popup van-popup--top van-notify" name="van-popup-slide-top" style="color: rgb(255, 255, 255); background: rgb(255, 68, 68); z-index: 2000;">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 1`] = `<div class="van-popup van-popup--top van-notify" name="van-popup-slide-top" style="color: red; z-index: 2000; background: blue;">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 2`] = `<div class="van-popup van-popup--top van-notify" name="van-popup-slide-top" style="color: red; z-index: 2000; background: blue; display: none;">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 3`] = `<div class="van-popup van-popup--top van-notify" name="van-popup-slide-top" style="color: rgb(255, 255, 255); z-index: 2001; background: rgb(255, 68, 68);">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>`;
exports[`notify disappear 4`] = `<div class="van-popup van-popup--top van-notify" name="van-popup-slide-top" style="color: rgb(255, 255, 255); z-index: 2001; background: rgb(255, 68, 68); display: none;">text2</div>`;