Questions tagged [vue-props]
For questions specific to the usage of the "props" property within the Vue.js framework. When using this tag also include the more generic [vue.js] tag.
vue-props
479
questions
0
votes
0
answers
15
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" @...
0
votes
1
answer
47
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 ...
0
votes
1
answer
40
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 ...
0
votes
1
answer
47
views
In Vue.JS, How to pass and change props value into nested components?
My requirement is very basic and easy, but not sure why even ChatGPT keeps giving me answer that has warning messages.
I am using Vue 2.
I have three nested components: GrandParentComponent, ...
0
votes
0
answers
52
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 ...
0
votes
3
answers
193
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=&...
0
votes
1
answer
60
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 ...
0
votes
1
answer
87
views
Vue 3: Passing Data via Props and Vue Router Results in Invalid Params Warning
I'm working with Vue 3 and trying to pass data between views using Vue Router. My goal is to pass data from JobSelection.vue to Invoice.vue through router parameters
In index.js I defined the props as ...
0
votes
0
answers
26
views
Passing an object to modal VUE
I'm having trouble with passing information to my modal.
I would like to pass a complete object to the modal.
I have a view (shortened for this purpose):
<script>
const openModal = (x, action) =&...
0
votes
0
answers
40
views
Vue JS - How to send props and emit correctly to dialog component for edit the data
I have a parent component 'DaftarKajian' and child component 'DaftarKajianMobile' and another child component named 'EditJadwalDialog'. What I have to tried is props the fetched data from '...
1
vote
3
answers
241
views
Pass dynamic object data via nuxt-link to component
I have a project which is build in Nuxt 3 with a homepage which shows products. On that homepage, you can click on the title of the product and the product details page opens up. I archive this by ...
0
votes
1
answer
109
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 ...
0
votes
1
answer
40
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 ...
1
vote
0
answers
20
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....
0
votes
0
answers
31
views
Vuejs basic structure type of props does not pass the Object
Any idea why below worklist to object page navigation does not pass the props? In debug, I can see the row passed to rowData in WorklistPage. But it arrives to the ObjectPage as an empty Object.
<!-...