<template>
  <el-select class="w-100" v-model="value" multiple placeholder="订单状态过滤：空置为不过滤（显示全部订单），可多选条件">
    <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
    </el-option>
  </el-select>
</template>

<script>
export default {
  data () {
    return {
      options: [{
        value: 'unpaid',
        label: '未付款'
      }, {
        value: 'pending',
        label: '待处理'
      }, {
        value: 'processing',
        label: '备货处理中'
      }, {
        value: 'shipped',
        label: '已发货'
      }, {
        value: 'completed',
        label: '已送达'
      }, {
        value: 'closed',
        label: '交易关闭'
      }],
      value: []
    }
  },
  watch: {
    value (val) {
      this.$emit('selectedValuesChanged', val)
    }
  }
}
</script>

<style lang="scss" scoped></style>
