Files
mixtape/zero.Web.UI/App/editor/fields/select.vue
T

18 lines
432 B
Vue
Raw Normal View History

2020-07-03 15:32:32 +02:00
<template>
2020-09-17 11:26:23 +02:00
<div class="ui-native-select" :disabled="disabled">
2020-07-03 15:32:32 +02:00
<select :value="value" @input="$emit('input', $event.target.value)" :disabled="disabled">
2020-10-20 13:27:17 +02:00
<option v-for="item in items" :value="item.key" v-localize="item.value"></option>
2020-07-03 15:32:32 +02:00
</select>
</div>
</template>
<script>
export default {
props: {
2020-10-20 13:27:17 +02:00
value: [String, Number, Object],
items: Array,
disabled: Boolean
2020-07-03 15:32:32 +02:00
},
}
</script>