|
|
@@ -71,29 +71,25 @@ export function render(_ctx) {
|
|
|
`;
|
|
|
|
|
|
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
|
|
|
}"
|
|
|
`;
|
|
|
@@ -220,7 +216,7 @@ export function render(_ctx) {
|
|
|
`;
|
|
|
|
|
|
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>\\")
|
|
|
@@ -232,6 +228,7 @@ export function render(_ctx) {
|
|
|
_prepend(n4, n1)
|
|
|
_insert(n2, n4, n5)
|
|
|
_append(n4, n3)
|
|
|
+ _on(n4, \\"click\\", handleClick)
|
|
|
_effect(() => {
|
|
|
_setText(n1, undefined, count)
|
|
|
})
|
|
|
@@ -241,9 +238,6 @@ export function render(_ctx) {
|
|
|
_effect(() => {
|
|
|
_setText(n3, undefined, count)
|
|
|
})
|
|
|
- _effect(() => {
|
|
|
- _on(n4, \\"click\\", handleClick)
|
|
|
- })
|
|
|
_effect(() => {
|
|
|
_setAttr(n4, \\"id\\", undefined, count)
|
|
|
})
|