<template>
  <a-menu
    :default-selected-keys="['dimension']"
    @menu-item-click="handleClick"
  >
    <a-menu-item key="dimension">绩效维度</a-menu-item>
    <a-menu-item key="evaluate">员工评估</a-menu-item>
    <a-menu-item key="my">我的绩效</a-menu-item>
  </a-menu>
</template>

<script setup lang="ts">
const emit = defineEmits<{
  (e: 'select', key: string): void
}>()

const handleClick = (key: string) => emit('select', key)
</script>
