feat: v-cloak

This commit is contained in:
三咲智子 Kevin Deng 2023-11-24 15:40:38 +08:00
parent c9beaf6916
commit b70aa0a9a0
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
3 changed files with 6 additions and 1 deletions

View File

@ -17,7 +17,7 @@ See the To-do list below or `// TODO` comments in code (`compiler-vapor` and `ru
- [x] `v-html`
- [x] `v-text`
- [x] `v-pre`
- [ ] `v-cloak`
- [x] `v-cloak`
- [ ] `v-on` / `v-bind`
- [x] simple expression
- [ ] compound expression

View File

@ -385,6 +385,10 @@ function transformProp(
ctx.once = true
break
}
case 'cloak': {
// do nothing
break
}
}
}

View File

@ -33,6 +33,7 @@ globalThis.html = html
<div v-text="html" />
<div v-once>once: {{ count }}</div>
<div v-pre>{{ count }}</div>
<div v-cloak>{{ count }}</div>
</div>
</template>