docs: adjust app.head example (#31350)

This commit is contained in:
Alex Liu 2025-03-13 15:06:30 +08:00 committed by Daniel Roe
parent c056f2c028
commit 0685e91d01
No known key found for this signature in database
GPG Key ID: CBC814C393D93268
2 changed files with 4 additions and 4 deletions

View File

@ -119,7 +119,7 @@ const title = ref('Hello World')
<Head>
<Title>{{ title }}</Title>
<Meta name="description" :content="title" />
<Style type="text/css">
<Style>
body { background-color: green; }
</Style>
</Head>

View File

@ -146,12 +146,12 @@ export default defineResolvers({
* ],
* // please note that this is an area that is likely to change
* style: [
* // <style type="text/css">:root { color: red }</style>
* { children: ':root { color: red }', type: 'text/css' }
* // <style>:root { color: red }</style>
* { textContent: ':root { color: red }' }
* ],
* noscript: [
* // <noscript>JavaScript is required</noscript>
* { children: 'JavaScript is required' }
* { textContent: 'JavaScript is required' }
* ]
* }
* }