fix(nuxt): render style component html (#31337)

This commit is contained in:
xjccc 2025-03-13 15:45:14 +08:00 committed by GitHub
parent c4cdc0537d
commit 2083ab9a30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -293,6 +293,7 @@ export const Style = defineComponent({
if (import.meta.dev && typeof textContent !== 'string') {
console.error('<Style> can only take a string in its default slot.')
}
input.style![idx] = style
style.textContent = textContent
}
return null