<template>
    <div style="float: right;margin-bottom: 10px;">
        <el-dropdown>
            <span class="el-dropdown-link">
                操作
                <el-icon class="el-icon--right">
                    <arrow-down />
                </el-icon>
            </span>
            <template #dropdown>
                <el-dropdown-menu>
                    <el-dropdown-item @click="emit('add')">新增</el-dropdown-item>
                    <el-dropdown-item>编辑</el-dropdown-item>
                    <el-dropdown-item>删除</el-dropdown-item>
                    <el-dropdown-item>导出</el-dropdown-item>
                </el-dropdown-menu>
            </template>
        </el-dropdown>
    </div>
</template>
<script setup>
import { defineEmits } from "vue"
const emit = defineEmits(['add'])
</script>
<style lang="scss"></style>