`;
exports[`compile > directives > v-on > event modifier 1`] = `
-"import { template as _template, children as _children, effect as _effect, on as _on, withModifiers as _withModifiers } from 'vue/vapor';
+"import { template as _template, children as _children, on as _on, withModifiers as _withModifiers } from 'vue/vapor';
export function render(_ctx) {
const t0 = _template(\\"<div></div>\\")
const n0 = t0()
const { 0: [n1],} = _children(n0)
- _effect(() => {
- _on(n1, \\"click\\", _withModifiers(handleClick, [\\"prevent\\", \\"stop\\"]))
- })
+ _on(n1, \\"click\\", _withModifiers(handleClick, [\\"prevent\\", \\"stop\\"]))
return n0
}"
`;
exports[`compile > directives > v-on > simple expression 1`] = `
-"import { template as _template, children as _children, effect as _effect, on as _on } from 'vue/vapor';
+"import { template as _template, children as _children, on as _on } from 'vue/vapor';
export function render(_ctx) {
const t0 = _template(\\"<div></div>\\")
const n0 = t0()
const { 0: [n1],} = _children(n0)
- _effect(() => {
- _on(n1, \\"click\\", handleClick)
- })
+ _on(n1, \\"click\\", handleClick)
return n0
}"
`;
`;
exports[`compile > dynamic root nodes and interpolation 1`] = `
-"import { template as _template, children as _children, createTextNode as _createTextNode, prepend as _prepend, insert as _insert, append as _append, effect as _effect, setText as _setText, on as _on, setAttr as _setAttr } from 'vue/vapor';
+"import { template as _template, children as _children, createTextNode as _createTextNode, prepend as _prepend, insert as _insert, append as _append, on as _on, effect as _effect, setText as _setText, setAttr as _setAttr } from 'vue/vapor';
export function render(_ctx) {
const t0 = _template(\\"<button>foo<!>foo</button>\\")
_prepend(n4, n1)
_insert(n2, n4, n5)
_append(n4, n3)
+ _on(n4, \\"click\\", handleClick)
_effect(() => {
_setText(n1, undefined, count)
})
_effect(() => {
_setText(n3, undefined, count)
})
- _effect(() => {
- _on(n4, \\"click\\", handleClick)
- })
_effect(() => {
_setAttr(n4, \\"id\\", undefined, count)
})
exports[`fixtures 1`] = `
"import { defineComponent as _defineComponent } from 'vue'
-import { template as _template, children as _children, createTextNode as _createTextNode, append as _append, setText as _setText, effect as _effect, on as _on, setHtml as _setHtml } from 'vue/vapor';import { ref, computed } from 'vue'
+import { template as _template, children as _children, createTextNode as _createTextNode, append as _append, on as _on, setText as _setText, effect as _effect, setHtml as _setHtml } from 'vue/vapor';import { ref, computed } from 'vue'
const html = '<b>HTML</b>'
_append(n2, n1)
const n3 = _createTextNode(double.value)
_append(n4, n3)
+ _on(n5, \\"click\\", increment)
const n7 = _createTextNode(count.value)
_setText(n7, undefined, count.value)
_append(n8, n7)
_effect(() => {
_setText(n3, undefined, double.value)
})
- _effect(() => {
- _on(n5, \\"click\\", increment)
- })
_effect(() => {
_setHtml(n6, undefined, html)
})