mirror of
https://github.com/jbcr/core.git
synced 2026-04-04 23:32:18 +02:00
27 lines
609 B
Vue
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> |