[improvement] Template: use v-text instead of mustache (#2404)

This commit is contained in:
neverland
2018-12-30 11:20:38 +08:00
committed by GitHub
parent 6b7580042a
commit 6d362dc3eb
48 changed files with 207 additions and 410 deletions
+2 -3
View File
@@ -2,11 +2,10 @@
<transition name="van-slide-down">
<div
v-show="value"
v-text="message"
:class="b()"
:style="style"
>
{{ message }}
</div>
/>
</transition>
</template>
@@ -1,31 +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-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 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 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 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>
`;
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>`;