<template>
  <el-card class="box-card">
    <template #header>
      <div class="card-header">
        <span>测试</span>
      </div>
    </template>
    <div class="text item" v-for="item in routeList" :key="item">
      <router-link :to="item.path">
        <el-button type="text">{{ item.name }}</el-button>
      </router-link>
    </div>
  </el-card>
</template>

<script setup>
import { ref } from 'vue';
import { routes } from '@/routers/index.js';

const routeList = ref(routes);
</script>

<style>
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}
</style>
