Questions tagged as 'vue.js'

3
answers

Add columns Vue.js

I need to add the two columns when one of them is changed, for example: if evaluation is changed the highest grade is in final grade, the same for oriented studies. var vm = new Vue({ el: '#vue-instance', data: { tablenotas: [...
asked by 12.05.2018 / 23:55
2
answers

Does the import order of components interfere with performance?

Today I wondered about an issue in the import order of components, be it Angular, React, or Vue. Does order of import of order-of-use components improve performance or nothing to see? Where everything is already built and js will only be resp...
asked by 24.08.2018 / 13:59
2
answers

Problem with accents in vue-json-excel

I'm using vue-json-excel to export an Excel spreadsheet (I have the table on my screen and use it to export the same data to excel). So far, everything works perfectly, however, I had problems with accentuations. Example, não , a...
asked by 27.09.2017 / 20:59
1
answer

Importing Axios into Mixins VueJS

Can I import Axios into Mixins ? I have a Rest API and am putting in a Mixin my GET code, but I use Axios for this. When I try to import Axios into Mixins , it returns me:    Uncaught SyntaxError: Unexpected token import at MyMixins...
asked by 27.09.2017 / 14:22
1
answer

Insert an element into an array that contains an object

Hello, I would like to know how to insert an element into an object in an array, in this case, when I add it with the code below, the element is inserted as another index: this.array = []; this.array.push(email); this.array.push({ Mensagem:...
asked by 29.06.2017 / 23:44
2
answers

Make calculations between Inputs

I'm using a plugin that when you click the + button it multiplies the value. It works perfectly but the calculation is only done within <span id="price" class="amount"></span> and brings Total within <span id="total...
asked by 17.01.2017 / 13:10
1
answer

VueJS: how to access data from a v-for inside a method?

I have the following problem, I need to manipulate some variables that are in my data , through a click, that is inside a (v-for) list . But I can only create the condition directly inside the click, I can not make the comparisons through a me...
asked by 21.09.2017 / 03:04
1
answer

Make v-for only with number

Is it possible to make a v-for using only a total number? Example: I would pass a variable with value 10 , it would loop from 1 to 10, type the example in JS below: for(var i = 1; i <= num_parcelas; i++){ mostrar +=...
asked by 06.10.2018 / 16:34
2
answers

Method opens all modals of v-for elements

I have the following code snippet: <template v-for="(item, index) in listaProjetosModelos"> <tr :key="index"> <td class="text-center"> {{item.nome_projeto}} </td> <td...
asked by 23.11.2018 / 17:52
1
answer

DOM manipulation with VueJS and Jquery

I'm using pure materialize along with pure vue to make my own admin template, that is, I generated the project by vue init and put in the index.html the links to the css and js of materialize. The problem is that events called by js from materia...
asked by 08.07.2018 / 17:10