feat: v-cloak
This commit is contained in:
parent
c9beaf6916
commit
b70aa0a9a0
|
@ -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
|
||||
|
|
|
@ -385,6 +385,10 @@ function transformProp(
|
|||
ctx.once = true
|
||||
break
|
||||
}
|
||||
case 'cloak': {
|
||||
// do nothing
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue