Questions tagged [vue-component]
Component is a powerful Vue feature that allows extending basic HTML elements to encapsulate reusable code.
vue-component
10,692
questions
1
vote
1
answer
96
views
two-way binding of a checkbox does not happen
For the code posted below vue component it is a child component and is hosted in a specific parent. When I make two ways binding via vModelCheckGeoTIFFOverlayBandAverages by introducing a change to ...
0
votes
1
answer
57
views
vue 3 composition api, can not return value from a helper function to component
i think this is a problem of scope inside my helper function, i have successfully implementing the same logic in my component and it works perfectly
i have already using a composable function to use ...
0
votes
0
answers
42
views
Vue child component not mounting during rendering
const componentData = {
"label": "body",
"category": "default",
"children": [{
"label": "Droppable Component&...
1
vote
1
answer
53
views
how to change v-calendar default color using vue.js 3
<template>
<v-row>
<v-col>
<v-sheet>
<v-calendar class="custom"></v-calendar>
</v-sheet>
</v-col>
</v-row&...
1
vote
0
answers
177
views
VUE [Vue warn]: Wrong type passed as event handler to onClass - did you forget @ or : in front of your prop?
At some point I noticed that a lot of warnings appear in the project, maybe because I reinstalled node_module or something else.
The problem is that when adding attributes to a custom component errors ...
0
votes
0
answers
23
views
Vue2.x vue custom element when i passed param like 111. the dot at the end was removed. Is it well known issue? How to fix it
Vue2.x vue custom element when i passed param like 111. the dot at the end was removed. Is it well known issue? How to fix it.
Step
npm run build vue file
use file from /dist in php project
Problem ...
0
votes
1
answer
49
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
50
views
Question about vue 3 lifecycle and availability of properties
I want to load some content of a vue component based on a given argument. Here is some code to illustrate:
ParentComponent.vue
<Suspense>
<div class="row g-0">
<div class=&...
1
vote
1
answer
30
views
How to just add the content of a component to Vue DOM and not the wrapper itself, like React.Fragment in React JS
I'm trying to refactor my code into readable and short pieces. Therefore sometimes I need to create a dumb component which only is holding the repetitive part of my code. For example I wanted to use ...
0
votes
2
answers
35
views
shorter names for vue3 deep objects when accessing them in template and in code
How to get around long names of objects, for example, buttons.btnCancel.inactive? I've tried plain desctructuring using const {btnCancelInactive: inactive, btnCancelInactiveClass: inactiveClass, ...
1
vote
1
answer
97
views
How to teleport only after the container is mounted in Vue 3?
Depending on the loading state, sometimes the <Teleport />'s target container will be mounted later than the content's mounting, causing Vue error
[Vue warn]: Invalid Teleport target on mount: ...
0
votes
1
answer
34
views
show '+N More' in vue-search-select
I have a Vue component and I am using MultiListSelect (vue-search-select). My problem is, that if I select multiple options, I need to show +N More inside the box.
<MultiListSelect
:list=&...
1
vote
1
answer
39
views
Integrate vee-validate with vue-datepicker
I'm trying to validate vue-datepicker for required field using vee-validate like this:
<Form @submit="handleEvent" :validation-schema="addEventSchema">
<...
0
votes
0
answers
30
views
Vue access components
I want to trigger the update() function of kursAktiv.vue when I press the button "Kursanlegen" in kursAnlegen.vue ! Here are the kursAnlegen button and function:
<kursverwalter v-model:...
0
votes
0
answers
33
views
Can't see any change after updateing Vue component inside Laravel Nova project
I am having issue I wasn't able to fix with googleing or stackoverflowing and its super strange one. It could easily be lack of knowledge on my side so have mercy.
I have made an application recently ...