Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test: add v-cloak case
  • Loading branch information
yyx990803 committed Sep 14, 2021
1 parent f41981b commit d4c9063
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Expand Up @@ -22,6 +22,7 @@ <h2>Tests</h2>
<li><a href="/tests/html.html">v-html</a></li>
<li><a href="/tests/text.html">v-text</a></li>
<li><a href="/tests/pre.html">v-pre</a></li>
<li><a href="/tests/cloak.html">v-cloak</a></li>
<li><a href="/tests/reactive.html">reactive</a></li>
<li><a href="/tests/multi-mount.html">Multi mount</a></li>
<li><a href="/tests/custom-delimiters.html">Custom delimiters</a></li>
Expand Down
18 changes: 18 additions & 0 deletions tests/cloak.html
@@ -0,0 +1,18 @@
<script type="module">
import { createApp } from '../src'
createApp({
msg: 'content',
hide: false
}).mount()
</script>

<div v-scope v-cloak>
<div v-cloak v-if="!hide">{{ msg }}</div>
<button @click="hide = !hide">toggle</button>
</div>

<style>
[v-cloak] {
display: none;
}
</style>

0 comments on commit d4c9063

Please sign in to comment.