|
|
@@ -4,7 +4,7 @@ exports[`compile > bindings 1`] = `
|
|
|
"import { renderEffect as _renderEffect, setText as _setText, template as _template } from 'vue/vapor';
|
|
|
const t0 = _template("<div></div>")
|
|
|
|
|
|
-export function render(_ctx) {
|
|
|
+export function render(_ctx, $props) {
|
|
|
const n0 = t0()
|
|
|
_renderEffect(() => _setText(n0, "count is ", _ctx.count, "."))
|
|
|
return n0
|
|
|
@@ -56,7 +56,7 @@ exports[`compile > directives > custom directive > basic 1`] = `
|
|
|
"import { withDirectives as _withDirectives, template as _template } from 'vue/vapor';
|
|
|
const t0 = _template("<div></div>")
|
|
|
|
|
|
-export function render(_ctx) {
|
|
|
+export function render(_ctx, $props) {
|
|
|
const n0 = t0()
|
|
|
_withDirectives(n0, [[_ctx.vExample]])
|
|
|
return n0
|
|
|
@@ -67,7 +67,7 @@ exports[`compile > directives > custom directive > binding value 1`] = `
|
|
|
"import { withDirectives as _withDirectives, template as _template } from 'vue/vapor';
|
|
|
const t0 = _template("<div></div>")
|
|
|
|
|
|
-export function render(_ctx) {
|
|
|
+export function render(_ctx, $props) {
|
|
|
const n0 = t0()
|
|
|
_withDirectives(n0, [[_ctx.vExample, () => _ctx.msg]])
|
|
|
return n0
|
|
|
@@ -78,7 +78,7 @@ exports[`compile > directives > custom directive > dynamic parameters 1`] = `
|
|
|
"import { withDirectives as _withDirectives, template as _template } from 'vue/vapor';
|
|
|
const t0 = _template("<div></div>")
|
|
|
|
|
|
-export function render(_ctx) {
|
|
|
+export function render(_ctx, $props) {
|
|
|
const n0 = t0()
|
|
|
_withDirectives(n0, [[_ctx.vExample, () => _ctx.msg, _ctx.foo]])
|
|
|
return n0
|
|
|
@@ -89,7 +89,7 @@ exports[`compile > directives > custom directive > modifiers 1`] = `
|
|
|
"import { withDirectives as _withDirectives, template as _template } from 'vue/vapor';
|
|
|
const t0 = _template("<div></div>")
|
|
|
|
|
|
-export function render(_ctx) {
|
|
|
+export function render(_ctx, $props) {
|
|
|
const n0 = t0()
|
|
|
_withDirectives(n0, [[_ctx.vExample, () => _ctx.msg, void 0, { bar: true }]])
|
|
|
return n0
|
|
|
@@ -100,7 +100,7 @@ exports[`compile > directives > custom directive > modifiers w/o binding 1`] = `
|
|
|
"import { withDirectives as _withDirectives, template as _template } from 'vue/vapor';
|
|
|
const t0 = _template("<div></div>")
|
|
|
|
|
|
-export function render(_ctx) {
|
|
|
+export function render(_ctx, $props) {
|
|
|
const n0 = t0()
|
|
|
_withDirectives(n0, [[_ctx.vExample, void 0, void 0, { "foo-bar": true }]])
|
|
|
return n0
|
|
|
@@ -111,7 +111,7 @@ exports[`compile > directives > custom directive > static parameters 1`] = `
|
|
|
"import { withDirectives as _withDirectives, template as _template } from 'vue/vapor';
|
|
|
const t0 = _template("<div></div>")
|
|
|
|
|
|
-export function render(_ctx) {
|
|
|
+export function render(_ctx, $props) {
|
|
|
const n0 = t0()
|
|
|
_withDirectives(n0, [[_ctx.vExample, () => _ctx.msg, "foo"]])
|
|
|
return n0
|
|
|
@@ -122,7 +122,7 @@ exports[`compile > directives > custom directive > static parameters and modifie
|
|
|
"import { withDirectives as _withDirectives, template as _template } from 'vue/vapor';
|
|
|
const t0 = _template("<div></div>")
|
|
|
|
|
|
-export function render(_ctx) {
|
|
|
+export function render(_ctx, $props) {
|
|
|
const n0 = t0()
|
|
|
_withDirectives(n0, [[_ctx.vExample, () => _ctx.msg, "foo", { bar: true }]])
|
|
|
return n0
|
|
|
@@ -143,7 +143,7 @@ exports[`compile > directives > v-pre > basic 1`] = `
|
|
|
"import { template as _template } from 'vue/vapor';
|
|
|
const t0 = _template("<div :id=\\"foo\\"><Comp></Comp>{{ bar }}</div>")
|
|
|
|
|
|
-export function render(_ctx) {
|
|
|
+export function render(_ctx, $props) {
|
|
|
const n0 = t0()
|
|
|
return n0
|
|
|
}"
|
|
|
@@ -154,7 +154,7 @@ exports[`compile > directives > v-pre > should not affect siblings after it 1`]
|
|
|
const t0 = _template("<div :id=\\"foo\\"><Comp></Comp>{{ bar }}</div>")
|
|
|
const t1 = _template("<div></div>")
|
|
|
|
|
|
-export function render(_ctx) {
|
|
|
+export function render(_ctx, $props) {
|
|
|
const _component_Comp = _resolveComponent("Comp")
|
|
|
const n0 = t0()
|
|
|
const n3 = t1()
|
|
|
@@ -190,14 +190,14 @@ export function render(_ctx) {
|
|
|
`;
|
|
|
|
|
|
exports[`compile > expression parsing > interpolation 1`] = `
|
|
|
-"(() => {
|
|
|
+"((_ctx) => {
|
|
|
const n0 = _createTextNode(() => [a + b.value])
|
|
|
return n0
|
|
|
})()"
|
|
|
`;
|
|
|
|
|
|
exports[`compile > expression parsing > v-bind 1`] = `
|
|
|
-"(() => {
|
|
|
+"((_ctx) => {
|
|
|
const n0 = t0()
|
|
|
_renderEffect(() => _setDynamicProps(n0, { [key.value+1]: _unref(foo)[key.value+1]() }))
|
|
|
return n0
|