<template>
    <el-select
        :value="value"
        placeholder="请选择交易方式"
        clearable
        filterable
        @change="changeSelect"
        class="filter-item"
    >
        <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
    </el-select>
</template>

<script>
export default {
    props: {
        value: {
            type: String,
            default: ''
        }
    },
    data() {
        return {
            options: [
                { label: '转让', value: 'TRANSFER' },
                { label: '许可', value: 'PERMIT' },
                { label: '入股', value: 'INVEST' },
                { label: '其他', value: 'OTHER' }
            ]
        };
    },
    methods: {
        changeSelect(val) {
            this.$emit('input', val);
        }
    }
};
</script>

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