All Questions
331 questions
0
votes
0
answers
35
views
A Ruler component Made with vuejs is glitchy and markers appear and disappear
i was making a ruler component to use in a simple photo editing tool and i implemented the zooming part it is supposed to get more detailed when you zoom in like fractals and less detailed when you ...
0
votes
0
answers
46
views
Vue.js render time optimalization
I have a problem with optimalization in vue.js. I know my thinking is not perfect but i need to optimize part of application quick.
I have app looking like Pinterest. I have 1k cards to show, every ...
1
vote
0
answers
32
views
How to make connection between a typescript file and a single file components in vue.js
i have a function in my single file components
function moveCircle(step: number) {
if (activeCircle.value < 2) {
activeCircle.value += step;
activeLine.value += step;
}
}
and i would ...
0
votes
0
answers
33
views
Why I when i want clear description in object it cannot
<script setup>
import { TodoManager } from "../../../lib/TodoManger";
import { computed, reactive, ref, watch } from "vue";
import List from "./List.vue";
import ...
0
votes
1
answer
29
views
Why my delete animation not play before delete
<script setup>
import { computed, ref, watch } from "vue";
const emit = defineEmits(["delete-todo", "edit-todo"]);
const props = defineProps({
isSuccess: {
...
0
votes
1
answer
45
views
Child component injecting undefined variable
I have a button in parent component in Vue.js, when I click the button I change a variables value and pass it to the child component. Now when I inject the variable inside my child component it gets ...
0
votes
2
answers
109
views
How to ensure changes in props do not bubble up?
I realized that my props passed to a component, and changed in the component, may bubble up. This is mentioned in the documentation.
When objects and arrays are passed as props, while the child ...
0
votes
0
answers
51
views
Vue 3: Isn't the value of a component's prop that's bound to ref in the parent component updated immediately?
I'm using Vue3's Composition API in a project that injects HTML code from a webpage (that's in my domain) into another webpage. I've made a simplified version of the real project's code base in this ...
0
votes
2
answers
81
views
Vue3: How do I access a function inside the methods attribute from a component's setup() method?
I have an array containing data of questions that will be displayed. Only one question must be displayed at a time. Once the user selects an answer to a question, they can move to the next one by, ...
0
votes
1
answer
480
views
How do I pass custom props to dynamic components in Vue 3?
I have an array containing data of questions that will be displayed. Only one question must be displayed at a time. Once the user selects an answer to a question, they can move to the next one by the ...
1
vote
0
answers
94
views
Vue3 Props Wrapped in Multiple Proxies
So I'm using a Vue3 dynamic component that cycles through .vue files based on an array of objects, as such:
EDIT: this is how component is assigned
const pages = [
{
id: 0,
name: null
...
0
votes
1
answer
1k
views
Vue3 Component "OnMounted" Refresh
I have a Vue3 Dynamic Component wrapped in <keep-alive> that essentially adds navigation within a PrimeVue <Dialog>, and is populated by an object:
const component = [
{
id: 0,
...
0
votes
1
answer
463
views
Problem while passing data to child component using props in Vue
I'm new to Vue Js and facing an issue.
I am using Axios to get users' data with JSON placeholder API.
In the Sidebar component.
I used getters to get the users' data from the Vuex store. Inside the ...
1
vote
2
answers
1k
views
Vue.js passing Boolean value to component attribute
I want to create a simple input component in Vue, which if the IsPassword condition was true, set its type="password" and if it is not, set it to type="text".
I'm probably making ...
0
votes
2
answers
110
views
Hierarchical Component not sending emit in Vue js
Hi I am trying to implement a treeview. I have a component for it which is hierarchical. The problem I am facing is that emit is not working inside tree component. Please help me out. here is my code.....