<!-- 弹出层 -->
<el-dialog title="收货地址" :visible.sync="dialogTableVisible"
:append-to-body="true" class="showTable" width="820px">
<span slot="title" class="dialog-footer">收货地址</span>
<div class="provinceScreen_table">
<el-table style="width: 100%;" size="mini"
:data="gridData.slice((currentPage-1)*pagesize,currentPage*pagesize)"
height="500px"
@current-change="handleCurrentChange"
:header-cell-style="{background: 'rgba(40, 118, 193,.5)', color: 'rgb(0,246,250)',
border: 'rgb(40, 118, 193) 1px solid', textAlign: 'center', fontSize: '12px', padding: '0',}"
row-style="test"
>
<el-table-column type="index" width="50"></el-table-column>
<el-table-column property="date" label="日期" width="150"></el-table-column>
<el-table-column property="name" label="姓名" width="200"></el-table-column>
<el-table-column property="address" label="地址"></el-table-column>
</el-table>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-sizes="[10, 20, 30, 100]"
:page-size="10"
layout="total, sizes, prev, pager, next, jumper"
:total="gridData.length">
</el-pagination>
</div>
</el-dialog>
.showTable {
::v-deep.el-icon-close:before {
content: "\E6DB";
color: rgb(40, 118, 193);
font-size: 23px;
font-weight: 600;
}
::v-deep .el-dialog {
background: rgba(0,39,83,0.8) !important; //弹出层透明
border: rgb(40, 118, 193) 1px solid;
backdrop-filter: blur(3px); //模糊
.el-dialog__title {
color: rgb(40, 118, 193);
}
}
.dialog-footer {
display: flex;
color: #ffffff;
align-items: center;
font-size: 18px;
div {
padding-left: 6px;
}
button {
position: absolute;
top: 17px;
right: 59px;
}
}
.provinceScreen_table { // table列表
::v-deep .el-table {
background-color: transparent; //主体框透明透明
border: rgb(40, 118, 193) 1px solid;
// border-bottom: none; // 底部没有
}
::v-deep .el-table tr {
background-color: transparent !important; //每一行透明
}
::v-deep .el-table--enable-row-transition .el-table__body td,
.el-table .cell {
font-size: 12px;
color: #fff;
text-align: center;
background-color: transparent; //每一行的单元格透明
border: rgb(40, 118, 193) 1px solid;
}
::v-deep .el-table::before {
left: 0;
bottom: 0;
width: 100%;
height: 0px;
}
// 滚动条的修改
::v-deep .el-table__body-wrapper {
// 滚动条样式修改
/* 滚动条轨道区域样式 */
&::-webkit-scrollbar {
width: 8px; /* 设置滚动条宽度为8像素 */
background-color: transparent;
}
/* 滑块样式 */
&::-webkit-scrollbar-thumb {
background-color: rgb(40, 118, 193); /* 设置滑块颜色为深灰色 */
border-radius: 4px; /* 设置滑块边角半径为4像素 */
}
/* 滚动条轨道内部空白区域样式 */
&::-webkit-scrollbar-track {
background-color: rgba(0,39,83,0.8); /* 设置轨道背景色为浅灰色 */
}
/* 滚动条两端按钮样式 */
&::-webkit-scrollbar-button {
display: none; /* 不显示按钮 */
}
/* 交叉点处的区域样式 */
&::-webkit-scrollbar-corner {
background-color: transparent; /* 设置交叉点处的背景色为透明 */
}
/* 调整大小手柄样式 */
&::-webkit-resizer {
display: none; /* 不显示调整大小手柄 */
}
}
::v-deep .el-table th.gutter {
// display: none !important;
width: 8px !important;
background: rgba(0,39,83,0.8) !important;
}
::v-deep .el-table colgroup col[name="gutter"] {
display: none;
width: 8px;
}
::v-deep .el-table__body {
width: 100% !important;
}
}
::v-deep .el-dialog__body {
padding: 10px 20px !important;
color: #606266;
font-size: 14px;
word-break: break-all;
}
// 分页样式
::v-deep .el-pager{
color: #606266;
}
::v-deep .el-pager li {
background: rgba(0,39,83,0.8) !important;
}
::v-deep .el-pagination button:disabled{
background: rgba(0,39,83,0.8) !important;
}
::v-deep .el-pagination .btn-next, ::v-deep .el-pagination .btn-prev{
background: rgba(0,39,83,0.8) !important;
}
下面是输入框
<style scoped lang="less">
//弹出层
// 输入框
:deep(.el-input__wrapper){
background-color:rgba(0,0,0,0);
}
//输入框颜色
:deep(.el-input__inner) {
background: rgba(0,39,83,0.8) !important;
border-radius: 16px;
border: 1px solid #82CEFF;
// background-color: rgba(0, 0, 0, 0) !important;
font-family: Source Han Sans CN;
font-weight: 400;
font-size: 16px;
color: #FFFFFF;
line-height: 31px;
opacity: 0.5;
}
//历史记录后自动补充的颜色
:deep(input:-webkit-autofill) {
-webkit-text-fill-color: #fff;
transition: background-color 5000s ease-out 0.5s;
}
//提示框的字体颜色
:deep(input::-webkit-input-placeholder) {
color: #fff;
}
</style>
关于弹窗中透明,样式更改,elementUI、ant等
最新推荐文章于 2024-11-15 16:50:43 发布