Questions tagged [vue3-sfc-loader]
16 questions
5
votes
2 answers
Problems with scoped styles and deep styling in vue 3
Im having a lot of problems triying to style a child from parent in vue3.
In this case, i create a generic button with some css properties, and i try to customize this button from other component
Parent

Daniel Álvarez Vega
- 78
- 5
4
votes
1 answer
How to define optional data in Vue 3 Typescript
I have data coming in from an API in a Vue 3 Typescript code base. While the data is in transit, I want to know that it's missing. Currently, this is how I do it:
data() {
return {
apiData: null as DataType | null
}
},
async mounted() {
…

ColumnB
- 51
- 2
3
votes
1 answer
Vue 3 loading CSS in the shadow dom of nested components
I'm developing an embeddable widget as a custom element. For this I am using Vue.
I created a Widget.ce.vue file and enabled style loading in the component shadow root.
But in this way, only the style is loaded from the component itself, but not…

HowWhereWhen
- 81
- 4
3
votes
1 answer
Vue 3.2 / Watcher for Prop not working in SFC + Script Setup
My setup is as follows: