Files
core/assets/js/Components/Editor/MultiSelect.vue
2018-10-19 17:58:03 +02:00

27 lines
609 B
Vue

<template>
<div class="form-group">
<label>{{ label }}</label>
<select class="custom-select" :id="id" v-model="val">
<option
v-for="(option, index) in selectOptions"
:key="index"
:value="option.key"
>{{option.value}}</option>
</select>
</div>
</template>
<script>
import field from '../../helpers/mixins/fieldValue';
export default {
name: "editor-multi-seclect",
props: ['value', 'label', 'name', 'id', 'options'],
mixins: [field],
computed:{
selectOptions(){
return JSON.parse(this.options);
}
}
};
</script>