vue3: how to access variables in from export default
When I make a project migration from vue2 to vue3, in the vue3 script setup segment, there is a variable, but I need to access it in the method in export default part which is from vue2 project. If I access it directly, it will throw an error which means ‘undefined’ or ‘not defined’.
How to pass prop to child component in vue 3
I have defined properties in the parent component which are then passed externally to the parent component, how can I use these properties in the child component.
Vue3 composition api transform props multidimensional Array into list
I’m using vue3 with composition api and I receive a props from db as a multidimensional array on page loading like this:
Reset a nested property in ref didn’t update v-model
How can I reset a ref and update a v-model which is pointing to child property in my ref?
Modifying a prop in a child component?
I have a parent component that passes in an error
as a prop.
Vue3 props/slots reactivity
I wrote a “tree” component in vue3, with some slots to data-display customization.
It works well, but some days ago I found a problem. The case is:
Vue 3 Composition API, how to modify a prop using map?
I am trying to add some more properties to each posts
data object, posts
also has several other fields like links
that I do not need to update…
vue 3 can’t listen to class object responses
I am a vue3 beginner, I use another class in my code, I want to make the instantiated object responsive, what should I do?
How to simultaneously update input value from props and from user inputting (Vue 3, Composition API)?
When I’m using ‘ref’ – value doesn’t updating from props.
When using ‘toRef’ – value doesn’t updating from user inputting.
All elements in App.vue are automatically centered
I am creating my first Vue project with Vue3 and ts. But I found any kind of elements writen in the App.vue will be automatically centered in the screen, when the width of page is bigger than 1024.