forked from github/dataease
style: 数据集样式优化
This commit is contained in:
parent
7e0d1ecf9f
commit
4795285510
@ -491,11 +491,11 @@ div:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.blackTheme .el-tree-node__content:hover {
|
.blackTheme .el-tree-node__content:hover {
|
||||||
background-color: var(--SiderBG) !important;
|
background-color: var(--MenuHovorBG) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blackTheme .is-current > .el-tree-node__content {
|
.blackTheme .is-current > .el-tree-node__content {
|
||||||
background-color: var(--SiderBG) !important;
|
background-color: var(--MenuActiveBG) !important;
|
||||||
}
|
}
|
||||||
.blackTheme .el-collapse-item__header {
|
.blackTheme .el-collapse-item__header {
|
||||||
background-color: var(--ContentBG) !important;
|
background-color: var(--ContentBG) !important;
|
||||||
@ -533,30 +533,30 @@ div:focus {
|
|||||||
color: var(--Main) !important;
|
color: var(--Main) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blackTheme .elx-table--main-wrapper {
|
.blackTheme:not(.in-panel) .elx-table--main-wrapper {
|
||||||
|
|
||||||
.body--wrapper {
|
.body--wrapper {
|
||||||
background-color: var(--TableBG) !important;
|
background-color: var(--TableBG) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.blackTheme .elx-table {
|
.blackTheme:not(.in-panel) .elx-table {
|
||||||
color: var(--TableColor) !important;
|
color: var(--TableColor) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blackTheme .elx-body--column {
|
.blackTheme:not(.in-panel) .elx-body--column {
|
||||||
background-image: linear-gradient(var(--TableBorderColor), var(--TableBorderColor)), linear-gradient(var(--TableBorderColor), var(--TableBorderColor)) !important;
|
background-image: linear-gradient(var(--TableBorderColor), var(--TableBorderColor)), linear-gradient(var(--TableBorderColor), var(--TableBorderColor)) !important;
|
||||||
}
|
}
|
||||||
.blackTheme .elx-header--column {
|
.blackTheme:not(.in-panel) .elx-header--column {
|
||||||
background-image: linear-gradient(--TableBorderColor, --TableBorderColor), linear-gradient(--TableBorderColor, --TableBorderColor) !important;
|
background-image: linear-gradient(--TableBorderColor, --TableBorderColor), linear-gradient(--TableBorderColor, --TableBorderColor) !important;
|
||||||
}
|
}
|
||||||
.blackTheme tr.row--current {
|
.blackTheme:not(.in-panel) tr.row--current {
|
||||||
background-color: var(--MainBG) !important;
|
background-color: var(--MainBG) !important;
|
||||||
}
|
}
|
||||||
.blackTheme tr.elx-body--row:hover {
|
.blackTheme:not(.in-panel) tr.elx-body--row:hover {
|
||||||
background-color: var(--TableBG) !important;
|
background-color: var(--TableBG) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blackTheme .elx-table--header-border-line {
|
.blackTheme:not(.in-panel) .elx-table--header-border-line {
|
||||||
border-color: var(--TableBorderColor) !important;
|
border-color: var(--TableBorderColor) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -666,5 +666,9 @@ div:focus {
|
|||||||
background-color: #324f62;
|
background-color: #324f62;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.blue-color {
|
||||||
|
color: var(--Main, #0000ff);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<el-table-column prop="status" :label="$t('dataset.status')">
|
<el-table-column prop="status" :label="$t('dataset.status')">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.status === 'Completed'" style="color: green">{{ $t('dataset.completed') }}</span>
|
<span v-if="scope.row.status === 'Completed'" style="color: green">{{ $t('dataset.completed') }}</span>
|
||||||
<span v-if="scope.row.status === 'Underway'" style="color: blue">
|
<span v-if="scope.row.status === 'Underway'" class="blue-color">
|
||||||
<i class="el-icon-loading" />
|
<i class="el-icon-loading" />
|
||||||
{{ $t('dataset.underway') }}
|
{{ $t('dataset.underway') }}
|
||||||
</span>
|
</span>
|
||||||
@ -228,10 +228,10 @@
|
|||||||
<span v-if="scope.row.status === 'Stopped'" style="color: red">
|
<span v-if="scope.row.status === 'Stopped'" style="color: red">
|
||||||
<div type="danger" style="font-size: 12px">{{ $t('dataset.task.stopped') }}</div>
|
<div type="danger" style="font-size: 12px">{{ $t('dataset.task.stopped') }}</div>
|
||||||
</span>
|
</span>
|
||||||
<span v-if="scope.row.status === 'Pending'" style="color: blue">
|
<span v-if="scope.row.status === 'Pending'" class="blue-color">
|
||||||
<el-link type="primary" style="font-size: 12px" @click="changeTaskStatus(scope.row)">{{ $t('dataset.task.pending') }}</el-link>
|
<el-link type="primary" style="font-size: 12px" @click="changeTaskStatus(scope.row)">{{ $t('dataset.task.pending') }}</el-link>
|
||||||
</span>
|
</span>
|
||||||
<span v-if="scope.row.status === 'Exec'" style="color: blue">
|
<span v-if="scope.row.status === 'Exec'" class="blue-color">
|
||||||
<i class="el-icon-loading" />
|
<i class="el-icon-loading" />
|
||||||
{{ $t('dataset.underway') }}
|
{{ $t('dataset.underway') }}
|
||||||
</span>
|
</span>
|
||||||
@ -452,7 +452,7 @@ export default {
|
|||||||
cellStyle({ row, column }) {
|
cellStyle({ row, column }) {
|
||||||
// 状态列字体颜色
|
// 状态列字体颜色
|
||||||
if (row.status === 'Underway' && column === 'status') {
|
if (row.status === 'Underway' && column === 'status') {
|
||||||
return 'color: blue'
|
return 'color: var(--Main, #0000ff)'
|
||||||
} else if (row.status === 'Completed' && column === 'status') {
|
} else if (row.status === 'Completed' && column === 'status') {
|
||||||
return 'color: green'
|
return 'color: green'
|
||||||
} else if (row.status === 'Error' && column === 'status') {
|
} else if (row.status === 'Error' && column === 'status') {
|
||||||
|
@ -715,7 +715,4 @@ span{
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blue-color {
|
|
||||||
color: var(--Main);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -253,7 +253,5 @@ export default {
|
|||||||
span{
|
span{
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.blue-color {
|
|
||||||
color: var(--Main);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user