fix(nuxt3): pass css text into children props (#1635)

This commit is contained in:
Ahad Birang 2021-11-02 14:02:52 +03:30 committed by GitHub
parent 3056c26a48
commit bd654364b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,7 @@ export const Style = defineComponent({
if (process.dev && typeof textContent !== 'string') { if (process.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.')
} }
style.content = textContent style.children = textContent
} }
return { return {
style: [style] style: [style]