Files
PhotonVision/chameleon-client/src/components/ch-select.vue

47 lines
1.1 KiB
Vue
Raw Normal View History

2019-03-15 21:47:44 +02:00
<template>
<row type="flex" justify="start" align="middle" :gutter="10" >
<Col span="3">
<h4>{{title}}</h4>
</Col>
<col span="12">
<i-select v-model="value" size="small" style="width:400px" v-bind:placeholder="placeholdert" @on-change="handleInput">
2019-03-15 21:47:44 +02:00
<i-option v-for="item in list" :value="item" :key="item">{{item}}</i-option>
</i-select>
</col>
</row>
</template>
<script>
export default {
name: 'ch-select',
props:{
title:"",
placeholdert:"",
list:[]
},
data() {
return {
content:this.value
}
},
methods: {
handleInput() {
this.$emit('input',this.value);
2019-03-15 21:47:44 +02:00
}
}
}
</script>
2019-03-16 21:47:34 +02:00
<style>
2019-03-15 21:47:44 +02:00
h4 {
color: #e6ebf1;
}
2019-03-16 21:47:34 +02:00
.ivu-select-selection{
background-color: #2c3e50 !important;
}
.ivu-select-selected-value{
color: #fff !important;
}
2019-03-15 21:47:44 +02:00
</style>