<template>
<div id="model" style="background: #fff;">
<el-dialog
:visible.sync="dialogVisible"
:append-to-body="true"
width="50%"
@close="handleClose"
>
<div class="title">这是一个自定义标题</div>
<el-table :data="tableData" border header-row-class-name="header_row_style" highlight-current-row style="width: 100%;margin-top:20px;">
<el-table-column type="index" label="序号" width="60" align="center"></el-table-column>
<el-table-column prop="date" label="日期" width="180" align="center"></el-table-column>
<el-table-column prop="name" label="姓名" width="180" align="center"></el-table-column>
<el-table-column prop="address" label="地址" align="center"></el-table-column>
</el-table>
</el-dialog>
</div>
</template>
<script>
export default {
props: {
},
data() {
return {
dialogVisible: true,
tableData: [
{
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
}, {
date: '2016-05-04',
name: '王小虎',
address: '上海市普陀区金沙江路 1517 弄'
}, {
date: '2016-05-01',
name: '王小虎',
address: '上海市普陀区金沙江路 1519 弄'
}, {
date: '2016-05-03',
name: '王小虎',
address: '上海市普陀区金沙江路 1516 弄'
}
],
};
},
watch: {
},
methods: {
handleClose() {
this.dialogVisible = false;
this.$emit('closeSport')
},
openDialog() {
debugger
this.dialogVisible = true;
},
}
};
</script>
<style>
.header_row_style{
background: linear-gradient(90deg,rgba(26,131,201,0.14), #2e8fe4 46%, rgba(26,131,201,0.14) 98%);
color:#fff;
}
</style>
<style scoped>
.title{
color:#fff !important;
width:300px;
height:50px;
position: absolute;
top:2vh;
display: flex;
align-items: center;
font-size:20px;
padding-left:5vh;
background: url('~@/assets/szpage/modal_tip.png') no-repeat !important;
background-size: 100% 100% !important;
}
/deep/.el-table tr{
background-color: #0c1c48 !important;
}
/deep/.el-table{
color:#fff !important;
}
/deep/.el-table__body tr.current-row>td.el-table__cell, .el-table__body tr.selection-row>td.el-table__cell{
background-color:#3265a1 !important ;
}
/deep/.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{
background-color:#3265a1 !important ;
}
/deep/.el-table thead{
color:#fff !important;
}
/deep/.el-table th.el-table__cell{
background-color: transparent !important;
}
::v-deep.el-table th.is-leaf {
border-color: #1F3877 !important;
}
::v-deep.el-table td {
border-color: #1F3877;
}
::v-deep .el-table--group{
border: 0.1px solid #1F3877 !important;
}
::v-deep .el-table--border {
border: 0.1px solid #1F3877 !important;
}
::v-deep.el-table--border:after,
.el-table--group:after,
.el-table:before {
background-color: #1F3877;
}
::v-deep.el-table--border th,
.el-table--border th.gutter:last-of-type {
border-color: #1F3877;
}
::v-deep.el-table--border td,
.el-table--border th {
border-color: #1F3877;
}
/deep/ .el-dialog{
background: url('~@/assets/szpage/modal_bg.png') no-repeat !important;
background-size: 100% 100% !important;
height:600px;
}
/deep/.el-dialog__title{
color:#fff !important;
background: url('~@/assets/szpage/modal_tip.png') no-repeat !important;
background-size: 100% 100% !important;
}
/deep/ .el-dialog__body{
color:#fff !important;
}
/deep/.el-dialog__headerbtn .el-dialog__close{
color:#fff !important;
}
/deep/ .el-dialog__headerbtn{
top:4px !important;
right:8px !important;
font-size: 25px !important;
}
</style>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
· 25岁的心里话