<script lang="ts" setup>
interface User {
  name: string;
  email: string;
  role: string;
}

const users: User[] = [
  { name: '张三', email: 'zhangsan@example.com', role: '管理员' },
  { name: '李四', email: 'lisi@example.com', role: '编辑' },
  { name: '王五', email: 'wangwu@example.com', role: '查看者' },
];
</script>

<template>
  <div class="user-management">
    <h3>用户管理</h3>
    <el-table :data="users" style="width: 100%">
      <el-table-column prop="name" label="姓名" />
      <el-table-column prop="email" label="邮箱" />
      <el-table-column prop="role" label="角色" />
    </el-table>
  </div>
</template>
