All Questions
122 questions
0
votes
1
answer
520
views
PrimeVue - How to use reset emit to clear form?
I've been experimenting with PrimeVue and am trying to understand how to use their forms. They don't have any example of clearing the form fields. However, there is mention of a "reset" ...
0
votes
0
answers
59
views
Prohibit attributes for components in Vue Composition API
Allowance of any attributes for components creates problems for me.
Playground
For example taking this:
<script setup lang="ts">
import { ref } from 'vue';
import Checkbox from './...
1
vote
2
answers
72
views
Get property types in Vue Composition API [duplicate]
When importing a component is it possible to get its properties type?
For example:
import MyComponent from '.my-component.vue';
const props: ComponentProps<MyComponent> = {
};
Any idea how to ...
0
votes
1
answer
386
views
Return component with props from composable
In a Vue project, I have a composable that provides few useful refs to components using it.
In my application, it is very likely that whichever components use the composable, it will need to render ...
0
votes
1
answer
80
views
Binding Events and Functions to Dynamic Components in Vue 3
I have an array of form field like below and I wanna render dynamic form with event and function
[...{
label: "Logo",
field: "image",
component: ...
1
vote
1
answer
819
views
How to call the methods exposed by components in slots with Vue 3 Composition API
There are some components (child component) in a slot (in parent component) and I want to call the methods on them. I tried the following steps:
Retrieve the child components as objects with useSlots
...
1
vote
1
answer
75
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....
1
vote
1
answer
368
views
How to use vuelidate in vue3 with decorator
Good afternoon!
I'm trying to use vuelidate in vue3 with vue-facing-decorator, but I'm not succeeding. In vue2 I can call vuelidate inside @Componet according to the code below, but in vue3 this doesn'...
0
votes
0
answers
75
views
rewritten: Vue 3 component as re-usable lib, renders during development but not after build
I am attempting to create a re-usable vue component that can be injected/used in a flask application. The main component dataTable.vue imports components tableBare.vue and paginationBare.vue, ...
0
votes
0
answers
67
views
Vue 3 building component as lib
I have a case of expectation vs reality in my attempt to create a re-usable vue component that can be injected/used in a flask application.
My files:
src/components/dataTable.vue (main SFC)
src/...
4
votes
2
answers
3k
views
How can I get the data from a child component in Vue3?
Im newbie in web development, and also in vue. My idea is to make a component that has some user input, like text, a selection from a combobox and a checkbox. This component should be genereted ...
0
votes
2
answers
280
views
vue3 - dynamic ref in computed status // repeating a player n times in a table and having a play/pause button
on the vue3 page below I have integrated a player that shows a "play" icon when the player is stopped, and a "pause" icon when it's playing.
What I am now trying to do is to let ...
3
votes
2
answers
6k
views
Exporting a function from Vue's "<script setup>" like from a module
I would like to export a function from a component from within the "" section and use it in another component.
I tried it like this:
<!-- TestHeading.vue -->
<template>
<h1&...
-1
votes
1
answer
49
views
Hello, I am trying to work with mounted function in vue.js and it is not working
I am trying to getallproducts automatically when the following url loadsk
'/Admin/ProductsAdmin'
but the mounted function is not working it doesnot load anything when url has been loaded
the follwing ...
0
votes
1
answer
4k
views
How to use v-model with custom components in Vue 2.7 Composition API?
I am building a custom input component, using Vue 2.7 and the Composition API. So far, my componente has come to this state below:
<template>
<div class="ui-field">
<...