index.vue 480 Bytes
Newer Older
陈浩玮's avatar
陈浩玮 committed
1 2 3 4 5 6 7
<template>
    <a-select
        :value="value"
        style="width: 100%"
        :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
        placeholder="Please select"
        allow-clear
陈浩玮's avatar
yonghu  
陈浩玮 committed
8
        :options="options"
陈浩玮's avatar
陈浩玮 committed
9 10 11 12 13 14 15 16 17 18 19 20
        v-on="$listeners"
        v-bind="$attrs"
    />
</template>

<script>
export default {
    model: {
        prop: 'value',
        event: 'change',
    },
    props: {
陈浩玮's avatar
yonghu  
陈浩玮 committed
21 22
        value: [String, Number],
        options: Array,
陈浩玮's avatar
陈浩玮 committed
23 24 25
    },
};
</script>