this.personalTabs = response.body.personalTransportTabs;
personalTabs: this.personalTransportTabs
. Т.к. инициализация data происходит один раз при создании экземпляра. props: {
// ...
value: {
type: String,
required: true
}
}
input.form-group__field(:type='type' :id='name' :name='name' autocomplete='off' ref='field' @focus='onFocus()' @blur='onBlur()' @input='onInput()' :value="value")
<input type="button" id="show-modal"
class="Insp"
:name="order.mod.real | safeseq"
@click="open(order.mod.real, oreder.mod.port, order.mod.id)
value="Открыть">
<div id='app'>
<arr-comp v-for="arrItem in arr" >
<h1>{{arrItem.title}}</h1>
<tag-comp v-for="tagItem in arrItem.tags">
<h2>{{tagItem.title}}</h1>
<element-comp v-for="elementItem in tagItem.elements">
<h3>{{elementItem.title}}</h3>
</element-comp>
</tag-comp>
</arr-comp>
</div>
<template>
<div>
<slot></slot>
</div>
</template>
watch: {
propsObject: {
deep: true,
handler(new, old) {
// your code
}
}
}
computed: {
isBicValid() {
return this.bank_bic.length > 0 ? /^[0-9]{9}$/.test(this.bank_bic) : true
}
},