Skip to main content

All Questions

Tagged with
0 votes
2 answers
35 views

Vuejs 3 props are all undefined

I know this has been asked before but nothing I've tried works, even the official docs I have a view sample vue component and I want to pass a prop so I can display it <template> <div ...
AdRock's user avatar
  • 3,061
0 votes
1 answer
25 views

VueJS 3 : reference value not updating on click

In VueJS 3, I have a parent Component Index: <CreateReportButton> <slot> <PrimaryButton as="icon" size="xs" color="white" @...
ambitiouskeep's user avatar
0 votes
1 answer
50 views

Vue3: Computed value (array) not sorting when based on Props

I am using a computed value that returns an array. This computed value is being used in a Vue component. <component v-for="(item, index) in sortedItems" ...more props /> The prop that ...
Maldaer's user avatar
  • 72
0 votes
1 answer
45 views

Binding multiple properties to a component using and object as props - Vue 3

I'm having a little problem binding multiple properties to a component using an object. When I use this component on any other page I expect to pass the props in matching the ContentOptions interface ...
bricewa's user avatar
  • 75
0 votes
0 answers
61 views

Vue 3: withDefaults() prevent TypeScript from checking conditional props

I've tried to create conditional props for my <Button /> component using discriminated union types. I don't want to allow pass down props like to, hash, linkBehavior when another prop called ...
Frank_Cheynne's user avatar
0 votes
3 answers
215 views

How to pass component as props in vue 3 composition api?

i want to pass props customActionComponent as component and need to render in child component FlightDetail.vue <template> <ComponentCard title="Flight Details" subtitle=&...
Juned Khorajiya's user avatar
0 votes
1 answer
61 views

Passing static data from parent to child Vue component

I'm studying Vue.js online through YouTube videos and I learned that to pass data from a parent to a child component we use v-bind in the parent and props in the child, yet after I created my first ...
abs hwiw's user avatar
0 votes
1 answer
126 views

Vuejs child component props does not update when parent component update props value

I have a parent and child component setup, whenever i pass an object property to my child component, it only picks up the initial value and does not further update when changes are made from the ...
Ladking's user avatar
0 votes
1 answer
43 views

In Vue3's compositional API, how can I v-bind a dynamic group of props to a child component and not lose reactivity?

The context is that I have a Button component and a SquareButton component that wraps it as a higher order component. The SquareButton takes the same props as Button, but includes an extra prop needed ...
rescuecreative's user avatar
1 vote
0 answers
21 views

Passing object with reactive properties as a prop triggers child component onUpdated hook when updating parent component state

Consider a simple component Comp.vue file that only logs a message in the console when updated: // Comp.vue <script setup> import { onUpdated } from 'vue' onUpdated(() => { console....
8ctavio's user avatar
  • 11
0 votes
1 answer
48 views

Vue.js 3 SFC multiple lists

I am creating a vue.js3 SFC application where the list component is used multiple times. The aim is to produse a separate lists of items in each component from SingleList.vue. I wanted to use a v-for='...
Anna's user avatar
  • 15
0 votes
0 answers
143 views

How to properly wait for props in child component from parent

I have created a child component which iterates to a variable that was sent from the parent component. The parent components sends an axios request to the backend and then sends it down to the child ...
Patrick Marcon Concepcion's user avatar
0 votes
2 answers
110 views

Toggle Button With Props & emit

this is my first time using props and I can't figure out what's the problem I want to make a component of the toggle button and then use it anywhere with an entry data, but it doesn't work as I expect ...
m.ma's user avatar
  • 3
0 votes
1 answer
40 views

Why the watcher can not detect the change?

In the code below there are App.vue, appSidebar.vue and invoiceContent.vue files, the watcher does not detect the change of clearForm prop in the invoiceContent.vue and console.log("clearForm :&...
NiyaziGuven's user avatar
0 votes
1 answer
397 views

How to set default value on complex prop using Vue's Type-based props declarations

I can't get around this error: Argument of type 'HelloWorldProps' is not assignable to parameter of type 'InferDefaults<LooseRequired<HelloWorldProps>>'. Types of property 'complexProp' ...
MisterIsaak's user avatar
  • 3,902

15 30 50 per page
1
2 3 4 5
9