<template>
  <div class="buyer">
    <el-input placeholder="请选择" v-model="value" size="mini" class="myinpuy-with-select" clearable>
      <el-button slot="append" icon="el-icon-more" @click="showProduct"></el-button>
    </el-input>
    <productDialog ref="product" @confirm="confirm" />
  </div>
</template>

<script lang="ts">
import { Component, Prop, Vue, Watch } from "vue-property-decorator";
@Component
export default class Buyer extends Vue {
  value=''

  showProduct(){
    (this.$refs.product as any).setShow(true)
  }
  confirm(data:Array<any>){
    
  }
}
</script>
<style lang="scss" scoped>
.buyer{
  width: 100%;
}
</style>
<style lang="scss">
.myinpuy-with-select{
  margin-bottom: 4px;
  .el-input-group__append{
    background-color: #fff !important;
    width: 40px !important;
    .el-icon-more{
      font-size: 20px;
    }
  }  
}
</style>