Questions tagged as 'vue.js'

1
answer

Automatic Scroll Vue.Js

Clicking on one of the small or large buttons displays the container with the cards (Small Mix and Small Fruits Only). I need to display the page scroll down because when displaying the footer covers the cards. I created the scrollToEnd f...
asked by 02.11.2018 / 16:10
1
answer

Close a modal after completing the action in the quasar framework

I have this modal as a child component: <template> <q-modal v-model="opened" :content-css="{width: '40%', minHeight: '300px', padding: '0 15px'}" no-esc-dismiss no-backdrop-dismiss> <q-modal-layout > &...
asked by 02.11.2018 / 19:13
0
answers

Insert with relationship N: N

Ihavethesetextinputs,inawaypeoplecanchoosetofillthemornot.Orjustfillinsomeofthem.Isendthedataofthisformviaaxiosinanarray(Idonotknowifitisthebestway,soI'mheredoingthispost).Explainingmore,thisformwouldbethetaxes(Taxes)thatispartofaproductform(Pr...
asked by 16.11.2018 / 17:00
0
answers

How to get offsetHeight of an element by REF

I've been trying for a few hours without success, get some specific element data, this ref is part of a v-for so I'll dynamically query the position of it, what can I have done wrong? var ref = 'ln3'; alert(this.$refs.ref.$el.offsetHeight);...
asked by 04.10.2018 / 16:42
1
answer

Return value of the function executed by KeyUp in the source field in VUE

How do I get the return value of this function to be inserted into the field where you are running KeyUp? <input type="text" v-model="valor_calc_dinheiro" v-on:keyup.stop.prevent="mascara_dinheiro($event.target.value)" ref="valor_...
asked by 08.10.2018 / 15:36
1
answer

Use component data in the create method in VueJs

I'm trying to pass data from one component to another using the $ bus method: Vue.component('porcentagens',{ data: function(){ return { porcentagemSangramentoMarginal: 0, porcentagemPlaca: 0, porcentagemOLeary: 0,...
asked by 08.10.2018 / 15:32
0
answers

Navigation using keyboard arrows in div with overflow

I'm doing a POS screen and I need to make it available so that most of the functionality can be used only with the keyboard, my difficulty is being in a grid of elements in which I have to navigate using the pageUp and PageDown keys, with you...
asked by 26.09.2018 / 14:35
3
answers

Catch the selected data in a multiple v-select

new Vue({ el:"#app", data : { criterios : '', criterios_list: [ {'value' : 'S_cheque', 'label' : 'S/cheque'}, {'value' : 'S_cartao', 'label' : 'S/cartão Fatur...
asked by 25.09.2018 / 15:11
0
answers

Regex to validate phone number with vee-validate

I am using vee-validate for field validation, but my validation is not working using regex for a phone input. <the-mask name="phone" :mask="['(##) ####-####', '(##) #####-####']" v-model="$parent.user.phone" v-validate="{ regex:/(^\(?\d{2}\...
asked by 24.08.2018 / 15:12
1
answer

Webpack is generating manifest.js files in a different folder

I'm using the webpack as Vue. When giving npm run build, the manifest.js file is created with the / static / path, while the other files are created with the static path /. So if I put the application in a subfolder, for example, 127.0.0.1/web...
asked by 18.08.2018 / 15:57