Questions tagged as 'vue.js-2'

2
answers

Performance of EventBus in Vuejs

On some projects that I'm performing maintenance, there's Global EventBus . In this case, it was generally seen as follows: event-bus.js import Vue from 'vue'; const EventBus = new Vue(); export default EventBus; However, I came a...
asked by 21.03.2018 / 02:01
1
answer

Error passing props with literal objects via v-bind="object"

In Vue it is described in the documentation that you want to pass all the properties of an object via props you can pass the same as # data do componente post: { title: 'Título da post', content: '...' } # template <blog-post v...
asked by 28.11.2018 / 03:09
1
answer

Insert component after rendering Vue.js

Hi, I'm learning how to use Vue.js and so far I'm learning how to create components. But I'm having a problem, I'm trying to render a component after loading the page. I have a jQuery code that I want to use, but I do not know how to do it....
asked by 07.10.2018 / 15:14
1
answer

Pick key event with VueJS

How can I get a key event with Vue? I've already seen some examples on the site like: <input @keyup.enter="submit"> But what I would like is some kind of listener where if the user presses a key call a function, without depending on b...
asked by 18.01.2018 / 18:47
2
answers

Get the selected item in iView's TreeView

I need to get the reference of the selected item in TreeView of iView , already tried with getSelectedNodes() but it seems the method is not being used correctly, and the documentation does not help much ... var Mai...
asked by 05.02.2018 / 00:37
1
answer

I am trying to make a multidimensional vertical menu with vue.js but the subitems are not appearing

This is the code I have so far: Vue.component('menu-item', { props: ['cmitens'], template: '#menu-item' }); new Vue({el: '#vuesadminmenu', data: { menuitens: {"test0":{"titulo":"Test0","open":"false"...
asked by 02.12.2018 / 20:45
1
answer

I can not bind with image

Someone would explain to me why I was not able to render the image on the screen. I am using Vue-cli and the image is in the assets folder inside the normal folder, but when I call it in the template it does not load. I have already tried t...
asked by 01.10.2018 / 17:12
0
answers

Context of the component of the vue is coming wrong

I have a problem in developing a project using Vue2, when I look for the context of the component, it does not return the "right" context, such as:    $ router If you want to appear in the next context, the object I get when I search i...
asked by 27.06.2018 / 22:52
1
answer

Dropdown menu with v-if vuejs

How can you add a dropdown effect to this menu vertically, so by placing the mouse on it it opens the ul daughter if it exists. I thought of doing with v-if when I clicked on li parent, but I do not know how to do...
asked by 12.12.2017 / 13:35
1
answer

VUE value filter in v-for

I have the following array of objects below. I need to list in a v-for only the records where the variable parent is equal to 4 , and I'm not getting it. Code: this.full_category_list = [ { id: 1, na...
asked by 25.10.2018 / 18:59