fetchDropdownData(id) {
const currentDropdownData = axios.get('../../../static/json/v1/auto.json').then(response => {
this.dropdownsData[id] = response.data;
}).catch(e => {
console.log(e)
})
console.log(this.dropdownsData)
}
<div v-for="(field, index) in formFields" :key="index">
<ui_input v-if="field.type == 'input'" v-model="input" @change="change($event)"></ui_input>
<dropdown :id="field.id" v-else-if="field.type == 'select'" :options="getAuto" default-value="Make a choice" show-search="true" input-placeholder="Выберите"></dropdown>
</div>
@change="changeValue"
methods: {
changeValue() {
console.log('test')
}
}
@change="changeValue"
methods: {
changeValue() {
console.log('test')
}
}
"label": "switch",
"name": "switch",
"dependence": "",
"type": "input"
"active": true