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

This commit is contained in:
xjccc 2025-03-13 15:45:14 +08:00 committed by Daniel Roe
parent bd12b3ae68
commit 5d5071579b
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

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