<template>
<div>
<!-- 下拉框获取value值 -->
<el-select v-model="query" @change="selectChanged">
<el-option v-for="item in options" :key="item.value" :value="item.value" :label="item.label"></el-option>
<el-button></el-button>
</el-select>
</div>
</template>
<script>
export default {
data() {
return {
restaurants: [],
state: '',
timeout: null,
// 复选框的值
options: [{
value: '01',
label: '我的'
}, {
value: '02',
label: '你的'
}, {
value: '03',
label: '他的'
}],
query: '02'
}
},
methods: {
selectChanged(value) {
this.name = value
console.log("1111", value)
},
},
}
</script>
<style></style>