All Questions
6 questions with no upvoted or accepted answers
5
votes
0
answers
684
views
How to unit test a vue script setup component?
We want to use vue composition api using the script setup in our company. How would one write unit tests for a script setup component?
We're using Vue 2.7.14 and vitest if that matters.
1
vote
1
answer
856
views
Can't get data from a composable using destructuring in Vue 3
I'm trying to get books data from firebase in the Vue component (Book.vue). It works fine when I write a the function inside the component.
But it doesn't work when I try to convert it into a ...
1
vote
4
answers
450
views
Setting input attributes with props and <script setup>
Is it possible to set a form input type using a prop?
The below does not seem to work, any others ways to do this?
For example
<script setup>
defineProps({
InputType: String,
InputId: String,...
0
votes
0
answers
2k
views
How to change validate event in vee-validate?
I have working form validation, made with vee-validate and composition API script setup, build with Vite. By default, every input change or form submit is triggering validation. I want to change it to ...
0
votes
0
answers
706
views
Sending form with vee-validate
I have following problem:
The error messages are always shown and when I click 'submit' nothing happens. I use vee-validate and composition API script setup. Project build with Vite. There is the code:...
0
votes
3
answers
2k
views
Get newest data after submit data without page reload using vue script setup + axios
Please kindly help me with this, because I'm new in vue.js.
So, I have 2 Vue files :
Greetinglist.vue, It calls data from api using axios.get
Greeting.vue, It posts data using axios.post
After ...