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-html`
|
||||||
- [x] `v-text`
|
- [x] `v-text`
|
||||||
- [x] `v-pre`
|
- [x] `v-pre`
|
||||||
- [ ] `v-cloak`
|
- [x] `v-cloak`
|
||||||
- [ ] `v-on` / `v-bind`
|
- [ ] `v-on` / `v-bind`
|
||||||
- [x] simple expression
|
- [x] simple expression
|
||||||
- [ ] compound expression
|
- [ ] compound expression
|
||||||
|
|
|
@ -385,6 +385,10 @@ function transformProp(
|
||||||
ctx.once = true
|
ctx.once = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
case 'cloak': {
|
||||||
|
// do nothing
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ globalThis.html = html
|
||||||
<div v-text="html" />
|
<div v-text="html" />
|
||||||
<div v-once>once: {{ count }}</div>
|
<div v-once>once: {{ count }}</div>
|
||||||
<div v-pre>{{ count }}</div>
|
<div v-pre>{{ count }}</div>
|
||||||
|
<div v-cloak>{{ count }}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue