<!--
 * @Date: 2021-11-30 18:18:48
 * @LastEditors: JinxuChen
 * @LastEditTime: 2021-11-30 18:56:32
 * @FilePath: \GpsCardAdmin\src\components\TopMenu\index.vue
 * @description: 头部组件
-->
<template>
    <div>
        <!-- 操作 -->
        <!-- 按钮 -->
        <el-button
            class="filter-item"
            v-for="(item,index) in buttonList"
            :key="index"
            :type="item.type"
            @click="item.click"
        >{{item.name}}</el-button>
    </div>
</template>

<script>
export default {
    name: "topMenu",
    props: {
        buttonList: {
            type: Array,
            default: []
        }
    },
    data() {
        return {};
    }
};
</script>

<style scoped>
</style>
