mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 13:48:13 +00:00
fix(nuxt3): return render function for <Head>
(#3213)
This commit is contained in:
parent
0ca3d5cf7d
commit
9734856fb0
@ -194,7 +194,7 @@ export const Style = defineComponent({
|
|||||||
// <head>
|
// <head>
|
||||||
export const Head = defineComponent({
|
export const Head = defineComponent({
|
||||||
name: 'Head',
|
name: 'Head',
|
||||||
setup: (_props, ctx) => ctx.slots.default
|
setup: (_props, ctx) => () => ctx.slots.default?.()
|
||||||
})
|
})
|
||||||
|
|
||||||
// <html>
|
// <html>
|
||||||
|
3
test/fixtures/basic/pages/index.vue
vendored
3
test/fixtures/basic/pages/index.vue
vendored
@ -1,5 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
<Head>
|
||||||
|
<Title>Basic fixture</Title>
|
||||||
|
</Head>
|
||||||
<h1>Hello Vue 3</h1>
|
<h1>Hello Vue 3</h1>
|
||||||
<div>Config: {{ $config.testConfig }}</div>
|
<div>Config: {{ $config.testConfig }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user