mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-20 16:25:55 +00:00
fix(nuxt): render style component html (#31337)
This commit is contained in:
parent
c4cdc0537d
commit
2083ab9a30
@ -293,6 +293,7 @@ export const Style = defineComponent({
|
|||||||
if (import.meta.dev && typeof textContent !== 'string') {
|
if (import.meta.dev && typeof textContent !== 'string') {
|
||||||
console.error('<Style> can only take a string in its default slot.')
|
console.error('<Style> can only take a string in its default slot.')
|
||||||
}
|
}
|
||||||
|
input.style![idx] = style
|
||||||
style.textContent = textContent
|
style.textContent = textContent
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
|
Loading…
Reference in New Issue
Block a user