[improvement] Template: use v-text instead of mustache (#2404)
This commit is contained in:
@@ -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>`;
|
||||
|
||||
Reference in New Issue
Block a user