<template>
    <el-select
            v-bind="$attrs"
            v-on="$listeners"
    >
        <el-option
                v-for="item in options"
                :key="item[valueKey]"
                :label="item[labelKey]"
                :value="item[valueKey]"
        ></el-option>
    </el-select>
</template>

<script>
export default {
    props: {
        options: {
            type: Array,
            default: () => []
        },
        filter: Function,
        labelKey: {
            type: String,
            default() {
                return this.$ELEMENT.dictSelect?.labelKey || 'dictLabel'
            }
        },
        valueKey: {
            type: String,
            default() {
                return this.$ELEMENT.dictSelect?.valueKey || 'dictValue'
            }
        },
    }
}
</script>

<style scoped>

</style>