21.管理员列表页面布局和重写ElementPlus 默认样式

This commit is contained in:
xuewuerduo 2024-07-18 22:46:36 +08:00
parent 52e0e636e1
commit f528f0cf7d
2 changed files with 32 additions and 10 deletions

View File

@ -111,3 +111,15 @@ li {
flex: 1;
overflow-y: auto;
}
/* 重写 ElementPlus 默认样式 */
/* 表格 */
.el-table {
margin-top: 7px;
width: 1000px;
}
/* 面包屑 */
.el-breadcrumb {
margin-bottom: 7px;
}

View File

@ -1,18 +1,28 @@
<template>
<div>
管理员列表
<el-table :data="data.list" border>
<el-table-column prop="id" label="ID" width="60" />
<el-table-column prop="name" label="名称" />
<el-table-column prop="email" label="邮箱" />
<el-table-column prop="remark" label="备注" />
</div>
<el-table-column label="操作" width="150">
<template #default="scope">
<el-button size="small" type="primary">编辑</el-button>
<el-button size="small">删除</el-button>
</template>
</el-table-column>
</el-table>
</template>
<script>
export default {
setup() {
<script setup>
import { reactive } from "vue";
const data = reactive({
list:[
{id: '1', name: '李龙龙', email:'lilonglong@koteladt.com', remark:'lll'},
{id: '2', name: '张三', email:'zhangsan@koteladt.com', remark:'zs'},
]
})
return {}
}
}
</script>
<style lang="scss" scoped>