forked from SmartBench/CMVR-IOT-UI
refactor: update styles to use CSS variables for consistency and theming
- Replaced hardcoded colors and styles with CSS variables in multiple components including `index.vue`, `lock.vue`, `login.vue`, and `register.vue`. - Improved layout and spacing in forms and containers for better responsiveness. - Removed unused particle background animation from `lock.vue`. - Added new SCSS file for Element Plus theme customization. - Introduced a minimalist CSS file for global styles and variables.
This commit is contained in:
parent
8c2ed421cc
commit
5777d64821
@ -7,8 +7,8 @@ VITE_APP_ENV = 'development'
|
||||
# 招商车研物联网平台/开发环境
|
||||
VITE_APP_BASE_API = '/dev-api'
|
||||
|
||||
VITE_API_URL = http://192.168.0.222:13080
|
||||
VITE_WS_URL = ws://192.168.0.222:13080/ws
|
||||
VITE_API_URL = http://192.168.0.199:13080
|
||||
VITE_WS_URL = ws://192.168.0.199:13080/ws
|
||||
VITE_PORT = 80
|
||||
VITE_INSPECTION_TYPE = "inspection"
|
||||
VITE_MINIO_URL = "http://192.168.28.10:9000/cmvr-iot/"
|
||||
|
||||
@ -16,7 +16,7 @@ onMounted(() => {
|
||||
<style lang="scss">
|
||||
//自定义样式覆盖el-table
|
||||
.el-table .el-table__header-wrapper th, .el-table .el-table__fixed-header-wrapper th {
|
||||
background-color: var(--el-color-primary-light-9) !important;
|
||||
background-color: var(--min-bg-page) !important;
|
||||
}
|
||||
|
||||
//自定义搜索加载动画
|
||||
@ -36,14 +36,14 @@ onMounted(() => {
|
||||
.el-dialog {
|
||||
.task-title {
|
||||
height: 30px;
|
||||
font-weight: 900;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.custom-block {
|
||||
padding: 8px 16px;
|
||||
background-color: rgba(var(--el-color-primary-rgb), .1);
|
||||
border-radius: 4px;
|
||||
border-left: 5px solid var(--el-color-primary);
|
||||
border-left: 2px solid var(--min-primary);
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
@ -87,7 +87,7 @@ onMounted(() => {
|
||||
&.file-upload {
|
||||
.el-upload {
|
||||
border: 1px dashed var(--el-border-color);
|
||||
border-radius: 6px;
|
||||
border-radius: var(--min-radius-base);
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
@ -100,7 +100,7 @@ div:focus {
|
||||
}
|
||||
|
||||
aside {
|
||||
background: #eef1f6;
|
||||
background: var(--min-bg-page);
|
||||
padding: 8px 24px;
|
||||
margin-bottom: 20px;
|
||||
border-radius: 2px;
|
||||
@ -108,16 +108,16 @@ aside {
|
||||
line-height: 32px;
|
||||
font-size: 16px;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
color: #2c3e50;
|
||||
color: var(--min-text-regular);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
||||
a {
|
||||
color: #337ab7;
|
||||
color: var(--min-primary);
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: rgb(32, 160, 255);
|
||||
color: var(--min-primary-hover);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -151,7 +151,7 @@ aside {
|
||||
text-align: right;
|
||||
padding-right: 20px;
|
||||
transition: 600ms ease position;
|
||||
background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
|
||||
background: var(--min-primary);
|
||||
|
||||
.subtitle {
|
||||
font-size: 20px;
|
||||
@ -169,11 +169,11 @@ aside {
|
||||
|
||||
.link-type,
|
||||
.link-type:focus {
|
||||
color: #337ab7;
|
||||
color: var(--min-primary);
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: rgb(32, 160, 255);
|
||||
color: var(--min-primary-hover);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -160,7 +160,7 @@
|
||||
/** 表格更多操作下拉样式 */
|
||||
.el-table .el-dropdown-link {
|
||||
cursor: pointer;
|
||||
color: #409EFF;
|
||||
color: var(--min-primary);
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
@ -279,7 +279,8 @@
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 4px #ccc;
|
||||
border: 1px solid var(--min-border-light);
|
||||
box-shadow: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@ -287,7 +288,7 @@
|
||||
.sortable-ghost{
|
||||
opacity: .8;
|
||||
color: #fff!important;
|
||||
background: #42b983!important;
|
||||
background: var(--min-primary)!important;
|
||||
}
|
||||
|
||||
/* 表格右侧工具栏样式 */
|
||||
|
||||
@ -25,8 +25,8 @@
|
||||
left: 0;
|
||||
z-index: 1001;
|
||||
overflow: hidden;
|
||||
-webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35);
|
||||
box-shadow: 2px 0 6px rgba(0,21,41,.35);
|
||||
border-right: 1px solid var(--min-border-light);
|
||||
box-shadow: none;
|
||||
|
||||
// reset element-ui css
|
||||
.horizontal-collapse-transition {
|
||||
@ -47,7 +47,7 @@
|
||||
|
||||
&.has-logo {
|
||||
.el-scrollbar {
|
||||
height: calc(100% - 50px);
|
||||
height: calc(100% - 56px);
|
||||
}
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@
|
||||
}
|
||||
|
||||
.svg-icon {
|
||||
margin-right: 16px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.el-menu {
|
||||
@ -85,7 +85,7 @@
|
||||
.sub-menu-title-noDropdown,
|
||||
.el-sub-menu__title {
|
||||
&:hover {
|
||||
background-color: rgba(0, 0, 0, 0.06) !important;
|
||||
background-color: var(--menu-hover) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@
|
||||
min-width: $base-sidebar-width !important;
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(0, 0, 0, 0.06) !important;
|
||||
background-color: var(--menu-hover) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@ -114,11 +114,11 @@
|
||||
|
||||
.hideSidebar {
|
||||
.sidebar-container {
|
||||
width: 54px !important;
|
||||
width: 56px !important;
|
||||
}
|
||||
|
||||
.main-container {
|
||||
margin-left: 54px;
|
||||
margin-left: 56px;
|
||||
}
|
||||
|
||||
.sub-menu-title-noDropdown {
|
||||
@ -129,7 +129,7 @@
|
||||
padding: 0 !important;
|
||||
|
||||
.svg-icon {
|
||||
margin-left: 20px;
|
||||
margin-left: 21px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -141,7 +141,7 @@
|
||||
padding: 0 !important;
|
||||
|
||||
.svg-icon {
|
||||
margin-left: 20px;
|
||||
margin-left: 21px;
|
||||
}
|
||||
|
||||
}
|
||||
@ -206,7 +206,7 @@
|
||||
.el-menu--vertical {
|
||||
&>.el-menu {
|
||||
.svg-icon {
|
||||
margin-right: 16px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -214,7 +214,7 @@
|
||||
.el-menu-item {
|
||||
&:hover {
|
||||
// you can use $sub-menuHover
|
||||
background-color: rgba(0, 0, 0, 0.06) !important;
|
||||
background-color: var(--menu-hover) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@ -224,7 +224,7 @@
|
||||
overflow-y: auto;
|
||||
|
||||
&::-webkit-scrollbar-track-piece {
|
||||
background: #d3dce6;
|
||||
background: var(--min-bg-page);
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
@ -232,8 +232,8 @@
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: #99a9bf;
|
||||
border-radius: 20px;
|
||||
background: var(--min-border-strong);
|
||||
border-radius: var(--min-radius-sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -9,30 +9,30 @@ $yellow: #fec171;
|
||||
$panGreen: #30b08f;
|
||||
|
||||
// 默认主题变量
|
||||
$menuText: #bfcbd9;
|
||||
$menuActiveText: #409eff;
|
||||
$menuBg: #304156;
|
||||
$menuHover: #263445;
|
||||
$menuText: #374151;
|
||||
$menuActiveText: #0052d9;
|
||||
$menuBg: #ffffff;
|
||||
$menuHover: #f8f9fa;
|
||||
|
||||
// 浅色主题theme-light
|
||||
$menuLightBg: #ffffff;
|
||||
$menuLightHover: #f0f1f5;
|
||||
$menuLightText: #303133;
|
||||
$menuLightActiveText: #409eff;
|
||||
$menuLightHover: #f8f9fa;
|
||||
$menuLightText: #374151;
|
||||
$menuLightActiveText: #0052d9;
|
||||
|
||||
// 基础变量
|
||||
$base-sidebar-width: 200px;
|
||||
$sideBarWidth: 200px;
|
||||
$base-sidebar-width: 216px;
|
||||
$sideBarWidth: 216px;
|
||||
|
||||
// 菜单暗色变量
|
||||
$base-menu-color: #bfcbd9;
|
||||
$base-menu-color-active: #f4f4f5;
|
||||
$base-menu-background: #304156;
|
||||
$base-sub-menu-background: #1f2d3d;
|
||||
$base-sub-menu-hover: #001528;
|
||||
$base-menu-color: #374151;
|
||||
$base-menu-color-active: #0052d9;
|
||||
$base-menu-background: #ffffff;
|
||||
$base-sub-menu-background: #ffffff;
|
||||
$base-sub-menu-hover: #f8f9fa;
|
||||
|
||||
// 组件变量
|
||||
$--color-primary: #409eff;
|
||||
$--color-primary: #0052d9;
|
||||
$--color-success: #67c23a;
|
||||
$--color-warning: #e6a23c;
|
||||
$--color-danger: #f56c6c;
|
||||
@ -78,7 +78,7 @@ $--color-info: #909399;
|
||||
/* splitpanes default-theme 变量 */
|
||||
--splitpanes-default-bg: #ffffff;
|
||||
|
||||
--main-fill-bg: rgb(242, 243, 245);
|
||||
--main-fill-bg: #f8f9fa;
|
||||
}
|
||||
|
||||
// 暗黑模式变量
|
||||
|
||||
@ -258,13 +258,14 @@ getDetectList()
|
||||
<style scoped>
|
||||
.custom-table {
|
||||
border-collapse: collapse;
|
||||
font-size: 16px;
|
||||
background: #fff;
|
||||
font-size: 14px;
|
||||
background: var(--min-bg-white);
|
||||
color: var(--min-text-regular);
|
||||
}
|
||||
|
||||
.custom-table th,
|
||||
.custom-table td {
|
||||
border: 1px solid #ebeef5;
|
||||
border: 1px solid var(--min-border-light);
|
||||
padding: 12px 16px;
|
||||
text-align: left;
|
||||
height: 48px;
|
||||
@ -272,28 +273,28 @@ getDetectList()
|
||||
}
|
||||
|
||||
.custom-table th {
|
||||
background: #f5f7fa;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
background: var(--min-bg-subtle);
|
||||
font-weight: 600;
|
||||
color: var(--min-text-primary);
|
||||
}
|
||||
|
||||
.custom-table tbody tr:hover {
|
||||
background: #f0f9eb;
|
||||
background: var(--min-primary-soft);
|
||||
}
|
||||
|
||||
.drag-icon {
|
||||
cursor: move;
|
||||
color: #409eff;
|
||||
color: var(--min-primary);
|
||||
font-size: 20px;
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
background: #f4f8ff;
|
||||
border: 1px solid #d9ecff;
|
||||
background: var(--min-primary-soft);
|
||||
border: 1px solid var(--min-border-light);
|
||||
transition: box-shadow 0.2s, background 0.2s;
|
||||
}
|
||||
|
||||
.dragging-row {
|
||||
box-shadow: 0 4px 16px 0 rgba(64, 158, 255, 0.15);
|
||||
background: #e6f7ff !important;
|
||||
box-shadow: none;
|
||||
background: var(--min-primary-soft) !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -271,7 +271,7 @@ watch(searchPool, (list) => {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
box-shadow: none !important;
|
||||
border-bottom: 1px solid #d9d9d9;
|
||||
border-bottom: 1px solid var(--min-border-light);
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
@ -69,14 +69,16 @@ const realHeight = computed(() =>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.el-image {
|
||||
border-radius: 5px;
|
||||
background-color: #ebeef5;
|
||||
box-shadow: 0 0 5px 1px #ccc;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background-color: var(--min-bg-subtle);
|
||||
box-shadow: none;
|
||||
overflow: hidden;
|
||||
:deep(.el-image__inner) {
|
||||
transition: all 0.3s;
|
||||
transition: opacity 0.2s ease;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
transform: scale(1.2);
|
||||
opacity: 0.88;
|
||||
}
|
||||
}
|
||||
:deep(.image-slot) {
|
||||
@ -85,7 +87,7 @@ const realHeight = computed(() =>
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
color: #909399;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -551,8 +551,8 @@ onBeforeUnmount(() => {
|
||||
.tree-sidebar {
|
||||
flex-shrink: 0;
|
||||
width: 220px;
|
||||
background: #fff;
|
||||
border-right: 1px solid #e8eaed;
|
||||
background: var(--min-bg-white);
|
||||
border-right: 1px solid var(--min-border-light);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
@ -589,11 +589,11 @@ onBeforeUnmount(() => {
|
||||
transition: background 0.2s;
|
||||
|
||||
&:hover {
|
||||
background: rgba(64, 158, 255, 0.3);
|
||||
background: color-mix(in srgb, var(--min-primary) 24%, transparent);
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: rgba(64, 158, 255, 0.5);
|
||||
background: color-mix(in srgb, var(--min-primary) 40%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
@ -608,14 +608,15 @@ onBeforeUnmount(() => {
|
||||
justify-content: center;
|
||||
width: 15px;
|
||||
height: 20px;
|
||||
background: #fff;
|
||||
background: var(--min-bg-white);
|
||||
border-radius: 0 4px 4px 0;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
border: 1px solid var(--min-border-light);
|
||||
box-shadow: none;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
.tree-sidebar.collapsed & {
|
||||
right: 0;
|
||||
background: #f7f8fa;
|
||||
background: var(--min-bg-subtle);
|
||||
border-radius: 0 4px 4px 0;
|
||||
}
|
||||
|
||||
@ -626,15 +627,15 @@ onBeforeUnmount(() => {
|
||||
|
||||
.collapse-button {
|
||||
font-size: 20px;
|
||||
color: #909399;
|
||||
color: var(--min-text-secondary);
|
||||
cursor: pointer;
|
||||
padding: 4px;
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
color: #409eff;
|
||||
background: #ecf5ff;
|
||||
color: var(--min-primary);
|
||||
background: var(--min-primary-soft);
|
||||
}
|
||||
}
|
||||
|
||||
@ -644,14 +645,14 @@ onBeforeUnmount(() => {
|
||||
justify-content: space-between;
|
||||
padding: 0 10px;
|
||||
height: 40px;
|
||||
border-bottom: 1px solid #e8eaed;
|
||||
background: #f7f8fa;
|
||||
border-bottom: 1px solid var(--min-border-light);
|
||||
background: var(--min-bg-subtle);
|
||||
flex-shrink: 0;
|
||||
|
||||
.tree-title {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #303133;
|
||||
color: var(--min-text-primary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
@ -659,7 +660,7 @@ onBeforeUnmount(() => {
|
||||
gap: 5px;
|
||||
|
||||
.el-icon {
|
||||
color: #409eff;
|
||||
color: var(--min-primary);
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
@ -674,15 +675,15 @@ onBeforeUnmount(() => {
|
||||
|
||||
.tree-action-icon {
|
||||
font-size: 20px;
|
||||
color: #909399;
|
||||
color: var(--min-text-secondary);
|
||||
cursor: pointer;
|
||||
padding: 4px;
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s;
|
||||
|
||||
&:hover {
|
||||
color: #409eff;
|
||||
background: #ecf5ff;
|
||||
color: var(--min-primary);
|
||||
background: var(--min-primary-soft);
|
||||
}
|
||||
}
|
||||
|
||||
@ -705,11 +706,11 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: #dcdfe6;
|
||||
background: var(--min-border-light);
|
||||
border-radius: 4px;
|
||||
|
||||
&:hover {
|
||||
background: #c0c4cc;
|
||||
background: var(--min-text-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
@ -719,17 +720,17 @@ onBeforeUnmount(() => {
|
||||
margin-bottom: 1px;
|
||||
|
||||
&:hover {
|
||||
background: #f0f7ff;
|
||||
background: var(--min-bg-subtle);
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.el-tree-node.is-current > .el-tree-node__content) {
|
||||
background: #e6f0fd;
|
||||
color: #409eff;
|
||||
background: var(--min-primary-soft);
|
||||
color: var(--min-primary);
|
||||
font-weight: 600;
|
||||
|
||||
.node-icon {
|
||||
color: #409eff !important;
|
||||
color: var(--min-primary) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -743,7 +744,7 @@ onBeforeUnmount(() => {
|
||||
|
||||
.node-icon {
|
||||
font-size: 14px;
|
||||
color: #f5a623;
|
||||
color: var(--min-text-secondary);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
|
||||
@ -38,29 +38,26 @@ function addIframe() {
|
||||
<style lang="scss" scoped>
|
||||
@use "@/assets/styles/variables.module" as *;
|
||||
.app-main {
|
||||
/* 50= navbar 50 */
|
||||
height: calc(100% - 84px);
|
||||
padding: 20px;
|
||||
height: calc(100% - 56px);
|
||||
padding: 24px;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
//background-color: rgba(242, 243, 245);
|
||||
background-color:var(--main-fill-bg) ;
|
||||
background-color: var(--main-fill-bg);
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.fixed-header + .app-main {
|
||||
padding-top: 50px;
|
||||
padding-top: 80px;
|
||||
}
|
||||
|
||||
.hasTagsView {
|
||||
.app-main {
|
||||
/* 84 = navbar + tags-view = 50 + 34 */
|
||||
height: calc(100% - 84px);
|
||||
height: calc(100% - 96px);
|
||||
}
|
||||
|
||||
.fixed-header + .app-main {
|
||||
padding-top: 84px;
|
||||
padding-top: 120px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -78,12 +75,9 @@ function addIframe() {
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background-color: #c0c0c0;
|
||||
border-radius: 3px;
|
||||
@media (max-width: 768px) {
|
||||
.app-main {
|
||||
padding: 16px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -22,10 +22,10 @@ const content = computed(() => settingsStore.footerContent)
|
||||
height: 36px;
|
||||
padding: 10px 20px;
|
||||
text-align: right;
|
||||
background-color: #f8f8f8;
|
||||
color: #666;
|
||||
background-color: var(--min-bg-page);
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 14px;
|
||||
border-top: 1px solid #e7e7e7;
|
||||
border-top: 1px solid var(--min-border-light);
|
||||
z-index: 999;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -175,14 +175,16 @@ async function toggleTheme(event) {
|
||||
|
||||
<style lang='scss' scoped>
|
||||
.navbar {
|
||||
height: 50px;
|
||||
height: 56px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
background: var(--navbar-bg);
|
||||
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
|
||||
border-bottom: 1px solid var(--min-border-light);
|
||||
box-shadow: none;
|
||||
|
||||
.hamburger-container {
|
||||
line-height: 46px;
|
||||
width: 56px;
|
||||
line-height: 52px;
|
||||
height: 100%;
|
||||
float: left;
|
||||
cursor: pointer;
|
||||
@ -190,7 +192,7 @@ async function toggleTheme(event) {
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
|
||||
&:hover {
|
||||
background: rgba(0, 0, 0, 0.025);
|
||||
background: var(--navbar-hover);
|
||||
}
|
||||
}
|
||||
|
||||
@ -200,7 +202,7 @@ async function toggleTheme(event) {
|
||||
|
||||
.topmenu-container {
|
||||
position: absolute;
|
||||
left: 50px;
|
||||
left: 56px;
|
||||
}
|
||||
|
||||
.errLog-container {
|
||||
@ -211,7 +213,7 @@ async function toggleTheme(event) {
|
||||
.right-menu {
|
||||
float: right;
|
||||
height: 100%;
|
||||
line-height: 50px;
|
||||
line-height: 56px;
|
||||
display: flex;
|
||||
|
||||
&:focus {
|
||||
@ -219,10 +221,13 @@ async function toggleTheme(event) {
|
||||
}
|
||||
|
||||
.right-menu-item {
|
||||
display: inline-block;
|
||||
padding: 0 8px;
|
||||
width: 40px;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
font-size: 18px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 17px;
|
||||
color: var(--navbar-text);
|
||||
vertical-align: text-bottom;
|
||||
|
||||
@ -231,7 +236,7 @@ async function toggleTheme(event) {
|
||||
transition: background 0.3s;
|
||||
|
||||
&:hover {
|
||||
background: rgba(0, 0, 0, 0.025);
|
||||
background: var(--navbar-hover);
|
||||
}
|
||||
}
|
||||
|
||||
@ -243,24 +248,29 @@ async function toggleTheme(event) {
|
||||
transition: transform 0.3s;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.15);
|
||||
color: var(--min-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.avatar-container {
|
||||
margin-right: 40px;
|
||||
width: auto;
|
||||
margin: 0 24px 0 8px;
|
||||
|
||||
.avatar-wrapper {
|
||||
margin-top: 5px;
|
||||
height: 56px;
|
||||
margin-top: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
|
||||
.user-avatar {
|
||||
cursor: pointer;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 10px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
i {
|
||||
|
||||
@ -139,7 +139,7 @@ const theme = ref(settingsStore.theme)
|
||||
const sideTheme = ref(settingsStore.sideTheme)
|
||||
const tagsViewPersist = ref(settingsStore.tagsViewPersist)
|
||||
const storeSettings = computed(() => settingsStore)
|
||||
const predefineColors = ref(["#409EFF", "#ff4500", "#ff8c00", "#ffd700", "#90ee90", "#00ced1", "#1e90ff", "#c71585"])
|
||||
const predefineColors = ref(["#0052D9", "#FF6B00", "#00A86B"])
|
||||
|
||||
/** 是否需要dynamicTitle */
|
||||
function dynamicTitleChange() {
|
||||
@ -278,4 +278,4 @@ defineExpose({
|
||||
margin: -3px 8px 0px 0px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -67,8 +67,8 @@ const getLogoTextColor = computed(() => {
|
||||
.sidebar-logo-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
height: 56px;
|
||||
line-height: 56px;
|
||||
background: v-bind(getLogoBackground);
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
@ -78,8 +78,8 @@ const getLogoTextColor = computed(() => {
|
||||
width: 100%;
|
||||
|
||||
& .sidebar-logo {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
vertical-align: middle;
|
||||
margin-right: 12px;
|
||||
}
|
||||
@ -89,7 +89,7 @@ const getLogoTextColor = computed(() => {
|
||||
margin: 0;
|
||||
color: v-bind(getLogoTextColor);
|
||||
font-weight: 600;
|
||||
line-height: 50px;
|
||||
line-height: 56px;
|
||||
font-size: 14px;
|
||||
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
|
||||
vertical-align: middle;
|
||||
|
||||
@ -80,10 +80,20 @@ const activeMenu = computed(() => {
|
||||
border: none;
|
||||
height: 100%;
|
||||
width: 100% !important;
|
||||
|
||||
.el-menu-item,
|
||||
.el-sub-menu__title {
|
||||
height: 48px;
|
||||
line-height: 48px;
|
||||
margin: 2px 8px;
|
||||
border-radius: var(--min-radius-sm);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.el-menu-item, .el-sub-menu__title {
|
||||
&:hover {
|
||||
background-color: var(--menu-hover, rgba(0, 0, 0, 0.06)) !important;
|
||||
background-color: var(--menu-hover) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@ -91,8 +101,18 @@ const activeMenu = computed(() => {
|
||||
color: v-bind(getMenuTextColor);
|
||||
|
||||
&.is-active {
|
||||
color: var(--menu-active-text, #409eff);
|
||||
background-color: var(--menu-hover, rgba(0, 0, 0, 0.06)) !important;
|
||||
color: var(--menu-active-text);
|
||||
background-color: var(--min-primary-soft) !important;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
bottom: 12px;
|
||||
left: 0;
|
||||
width: 2px;
|
||||
background: var(--min-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -8,7 +8,6 @@
|
||||
:class="isActive(tag) ? 'active' : ''"
|
||||
:to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
|
||||
class="tags-view-item"
|
||||
:style="activeStyle(tag)"
|
||||
@click.middle="!isAffix(tag) ? closeSelectedTag(tag) : ''"
|
||||
@contextmenu.prevent="openMenu(tag, $event)"
|
||||
>
|
||||
@ -45,7 +44,6 @@
|
||||
import ScrollPane from './ScrollPane'
|
||||
import { getNormalPath } from '@/utils/ruoyi'
|
||||
import useTagsViewStore from '@/store/modules/tagsView'
|
||||
import useSettingsStore from '@/store/modules/settings'
|
||||
import usePermissionStore from '@/store/modules/permission'
|
||||
|
||||
const visible = ref(false);
|
||||
@ -61,7 +59,6 @@ const router = useRouter();
|
||||
|
||||
const visitedViews = computed(() => useTagsViewStore().visitedViews);
|
||||
const routes = computed(() => usePermissionStore().routes);
|
||||
const theme = computed(() => useSettingsStore().theme);
|
||||
|
||||
watch(route, () => {
|
||||
addTags()
|
||||
@ -85,14 +82,6 @@ function isActive(r) {
|
||||
return r.path === route.path
|
||||
}
|
||||
|
||||
function activeStyle(tag) {
|
||||
if (!isActive(tag)) return {};
|
||||
return {
|
||||
"background-color": theme.value,
|
||||
"border-color": theme.value
|
||||
};
|
||||
}
|
||||
|
||||
function isAffix(tag) {
|
||||
return tag.meta && tag.meta.affix
|
||||
}
|
||||
@ -259,50 +248,40 @@ function handleScroll() {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.tags-view-container {
|
||||
height: 34px;
|
||||
height: 40px;
|
||||
width: 100%;
|
||||
background: var(--tags-bg, #fff);
|
||||
border-bottom: 1px solid var(--tags-item-border, #d8dce5);
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12), 0 0 3px 0 rgba(0, 0, 0, .04);
|
||||
box-shadow: none;
|
||||
|
||||
.tags-view-wrapper {
|
||||
.tags-view-item {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
border: 1px solid var(--tags-item-border, #d8dce5);
|
||||
color: var(--tags-item-text, #495060);
|
||||
background: var(--tags-item-bg, #fff);
|
||||
padding: 0 8px;
|
||||
height: 32px;
|
||||
line-height: 31px;
|
||||
border: 0;
|
||||
border-bottom: 2px solid transparent;
|
||||
color: var(--tags-item-text);
|
||||
background: transparent;
|
||||
padding: 0 12px;
|
||||
font-size: 12px;
|
||||
margin-left: 5px;
|
||||
margin-left: 4px;
|
||||
margin-top: 4px;
|
||||
|
||||
&:first-of-type {
|
||||
margin-left: 15px;
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
&:last-of-type {
|
||||
margin-right: 15px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background-color: #42b983;
|
||||
color: #fff;
|
||||
border-color: #42b983;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
background: #fff;
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
margin-right: 5px;
|
||||
}
|
||||
color: var(--min-primary);
|
||||
border-bottom-color: var(--min-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -314,11 +293,11 @@ function handleScroll() {
|
||||
position: absolute;
|
||||
list-style-type: none;
|
||||
padding: 5px 0;
|
||||
border-radius: 4px;
|
||||
border-radius: var(--min-radius-base);
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
color: var(--tags-item-text, #333);
|
||||
box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, .3);
|
||||
box-shadow: var(--min-shadow-overlay);
|
||||
border: 1px solid var(--el-border-color-light, #e4e7ed);
|
||||
|
||||
li {
|
||||
|
||||
@ -65,9 +65,9 @@ onMounted(() => {
|
||||
|
||||
.topbar-menu.el-menu--horizontal > .el-menu-item {
|
||||
float: left;
|
||||
height: 50px !important;
|
||||
line-height: 50px !important;
|
||||
color: #303133 !important;
|
||||
height: 56px !important;
|
||||
line-height: 56px !important;
|
||||
color: var(--min-text-regular) !important;
|
||||
padding: 0 5px !important;
|
||||
margin: 0 10px !important;
|
||||
}
|
||||
@ -79,8 +79,8 @@ onMounted(() => {
|
||||
/* sub-menu item */
|
||||
.topbar-menu.el-menu--horizontal > .el-sub-menu .el-sub-menu__title {
|
||||
float: left;
|
||||
line-height: 50px !important;
|
||||
color: #303133 !important;
|
||||
line-height: 56px !important;
|
||||
color: var(--min-text-regular) !important;
|
||||
margin: 0 15px -3px!important;
|
||||
}
|
||||
|
||||
@ -94,6 +94,6 @@ onMounted(() => {
|
||||
|
||||
/* menu__title el-menu-item */
|
||||
.topbar-menu.el-menu--horizontal .el-sub-menu__title, .topbar-menu.el-menu--horizontal .el-menu-item {
|
||||
height: 60px;
|
||||
height: 56px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -172,37 +172,37 @@ onMounted(() => {
|
||||
|
||||
<style lang="scss">
|
||||
.topmenu-container.el-menu--horizontal {
|
||||
height: 50px !important;
|
||||
height: 56px !important;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.topmenu-container.el-menu--horizontal > .el-menu-item {
|
||||
float: left;
|
||||
height: 50px !important;
|
||||
line-height: 50px !important;
|
||||
color: #303133 !important;
|
||||
padding: 0 5px !important;
|
||||
margin: 0 10px !important;
|
||||
height: 56px !important;
|
||||
line-height: 56px !important;
|
||||
color: var(--min-text-regular) !important;
|
||||
padding: 0 4px !important;
|
||||
margin: 0 12px !important;
|
||||
}
|
||||
|
||||
.topmenu-container.el-menu--horizontal > .el-menu-item.is-active, .el-menu--horizontal > .el-sub-menu.is-active .el-submenu__title {
|
||||
border-bottom: 2px solid #{'var(--theme)'} !important;
|
||||
color: #303133;
|
||||
color: var(--min-primary) !important;
|
||||
}
|
||||
|
||||
/* sub-menu item */
|
||||
.topmenu-container.el-menu--horizontal > .el-sub-menu .el-sub-menu__title {
|
||||
float: left;
|
||||
height: 50px !important;
|
||||
line-height: 50px !important;
|
||||
color: #303133 !important;
|
||||
padding: 0 5px !important;
|
||||
margin: 0 10px !important;
|
||||
height: 56px !important;
|
||||
line-height: 56px !important;
|
||||
color: var(--min-text-regular) !important;
|
||||
padding: 0 4px !important;
|
||||
margin: 0 12px !important;
|
||||
}
|
||||
|
||||
/* 背景色隐藏 */
|
||||
.topmenu-container.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus, .topmenu-container.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover, .topmenu-container.el-menu--horizontal>.el-submenu .el-submenu__title:hover {
|
||||
background-color: #ffffff;
|
||||
background-color: var(--min-bg-white);
|
||||
}
|
||||
|
||||
/* 图标右间距 */
|
||||
|
||||
@ -71,6 +71,7 @@ function setLayout() {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: var(--min-bg-page);
|
||||
|
||||
&.mobile.openSidebar {
|
||||
position: fixed;
|
||||
@ -79,8 +80,7 @@ function setLayout() {
|
||||
}
|
||||
|
||||
.drawer-bg {
|
||||
background: #000;
|
||||
opacity: 0.3;
|
||||
background: rgba(31, 41, 55, 0.28);
|
||||
width: 100%;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
@ -98,7 +98,7 @@ function setLayout() {
|
||||
}
|
||||
|
||||
.hideSidebar .fixed-header {
|
||||
width: calc(100% - 54px);
|
||||
width: calc(100% - 56px);
|
||||
}
|
||||
|
||||
.sidebarHide .fixed-header {
|
||||
|
||||
@ -8,6 +8,7 @@ import 'element-plus/theme-chalk/dark/css-vars.css'
|
||||
import locale from 'element-plus/es/locale/lang/zh-cn'
|
||||
|
||||
import '@/assets/styles/index.scss' // global css
|
||||
import '@/styles/minimalist.css'
|
||||
|
||||
import App from './App'
|
||||
import store from './store'
|
||||
|
||||
@ -7,7 +7,7 @@ export default {
|
||||
/**
|
||||
* 侧边栏主题 深色主题theme-dark,浅色主题theme-light
|
||||
*/
|
||||
sideTheme: 'theme-dark',
|
||||
sideTheme: 'theme-light',
|
||||
|
||||
/**
|
||||
* 是否系统布局配置
|
||||
|
||||
@ -15,7 +15,7 @@ const useSettingsStore = defineStore(
|
||||
{
|
||||
state: () => ({
|
||||
title: '',
|
||||
theme: storageSetting.theme || '#409EFF',
|
||||
theme: storageSetting.theme || '#0052D9',
|
||||
sideTheme: storageSetting.sideTheme || sideTheme,
|
||||
showSettings: showSettings,
|
||||
navType: storageSetting.navType === undefined ? navType : storageSetting.navType,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
$br: 1px solid #e4e7ed;
|
||||
$brdeg: 8px;
|
||||
$br: 1px solid #e5e7eb;
|
||||
$brdeg: 4px;
|
||||
@mixin br6 {
|
||||
border: $br;
|
||||
border-radius: $brdeg;
|
||||
@ -44,7 +44,7 @@ $brdeg: 8px;
|
||||
}
|
||||
|
||||
.bg {
|
||||
background-color: #409eff;
|
||||
background-color: #0052d9;
|
||||
}
|
||||
|
||||
.scrollable {
|
||||
|
||||
68
src/styles/element/index.scss
Normal file
68
src/styles/element/index.scss
Normal file
@ -0,0 +1,68 @@
|
||||
@forward 'element-plus/theme-chalk/src/common/var.scss' with (
|
||||
$colors: (
|
||||
'white': #ffffff,
|
||||
'primary': (
|
||||
'base': #0052d9,
|
||||
),
|
||||
'success': (
|
||||
'base': #4f6b5f,
|
||||
),
|
||||
'warning': (
|
||||
'base': #8a6b36,
|
||||
),
|
||||
'danger': (
|
||||
'base': #9a4545,
|
||||
),
|
||||
'error': (
|
||||
'base': #9a4545,
|
||||
),
|
||||
'info': (
|
||||
'base': #6b7280,
|
||||
),
|
||||
),
|
||||
$bg-color: (
|
||||
'': #ffffff,
|
||||
'page': #f8f9fa,
|
||||
'overlay': #ffffff,
|
||||
),
|
||||
$text-color: (
|
||||
'primary': #1f2937,
|
||||
'regular': #374151,
|
||||
'secondary': #6b7280,
|
||||
'placeholder': #9ca3af,
|
||||
'disabled': #c4c9d1,
|
||||
),
|
||||
$border-color: (
|
||||
'': #e5e7eb,
|
||||
'light': #e5e7eb,
|
||||
'lighter': #edf0f3,
|
||||
'extra-light': #f3f4f6,
|
||||
'dark': #d1d5db,
|
||||
'darker': #c4c9d1,
|
||||
),
|
||||
$fill-color: (
|
||||
'': #f3f4f6,
|
||||
'light': #f8f9fa,
|
||||
'lighter': #fafbfc,
|
||||
'extra-light': #fcfcfd,
|
||||
'dark': #eceff3,
|
||||
'darker': #e5e7eb,
|
||||
'blank': #ffffff,
|
||||
),
|
||||
$border-radius: (
|
||||
'base': 4px,
|
||||
'small': 2px,
|
||||
'round': 4px,
|
||||
),
|
||||
$box-shadow: (
|
||||
'': 0 8px 24px rgba(31, 41, 55, 0.06),
|
||||
'light': 0 4px 16px rgba(31, 41, 55, 0.06),
|
||||
'lighter': 0 2px 8px rgba(31, 41, 55, 0.05),
|
||||
'dark': 0 12px 32px rgba(31, 41, 55, 0.08),
|
||||
),
|
||||
$font-family: (
|
||||
'': "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif",
|
||||
)
|
||||
);
|
||||
|
||||
@use 'element-plus/theme-chalk/src/index.scss' as *;
|
||||
362
src/styles/minimalist.css
Normal file
362
src/styles/minimalist.css
Normal file
@ -0,0 +1,362 @@
|
||||
:root {
|
||||
/* Foundation */
|
||||
--min-bg-page: #f8f9fa;
|
||||
--min-bg-white: #ffffff;
|
||||
--min-bg-subtle: #f3f4f6;
|
||||
--min-border-light: #e5e7eb;
|
||||
--min-border-strong: #d1d5db;
|
||||
|
||||
/* Typography */
|
||||
--min-text-primary: #1f2937;
|
||||
--min-text-regular: #374151;
|
||||
--min-text-secondary: #6b7280;
|
||||
--min-text-placeholder: #9ca3af;
|
||||
|
||||
/* Single accent */
|
||||
--min-primary: #0052d9;
|
||||
--min-primary-hover: #0046b8;
|
||||
--min-primary-soft: #eef4ff;
|
||||
|
||||
/* 4px / 8px grid */
|
||||
--min-radius-sm: 2px;
|
||||
--min-radius-base: 4px;
|
||||
--min-space-1: 4px;
|
||||
--min-space-base: 8px;
|
||||
--min-space-3: 12px;
|
||||
--min-space-4: 16px;
|
||||
--min-space-5: 20px;
|
||||
--min-space-6: 24px;
|
||||
--min-space-8: 32px;
|
||||
|
||||
--min-font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
|
||||
"PingFang SC", "Microsoft YaHei", Arial, sans-serif;
|
||||
--min-shadow-overlay: 0 8px 24px rgba(31, 41, 55, 0.06);
|
||||
|
||||
/* Element Plus */
|
||||
--el-bg-color: var(--min-bg-white);
|
||||
--el-bg-color-page: var(--min-bg-page);
|
||||
--el-bg-color-overlay: var(--min-bg-white);
|
||||
--el-fill-color: var(--min-bg-subtle);
|
||||
--el-fill-color-light: var(--min-bg-page);
|
||||
--el-fill-color-lighter: #fafbfc;
|
||||
--el-fill-color-extra-light: #fcfcfd;
|
||||
--el-fill-color-blank: var(--min-bg-white);
|
||||
--el-text-color-primary: var(--min-text-primary);
|
||||
--el-text-color-regular: var(--min-text-regular);
|
||||
--el-text-color-secondary: var(--min-text-secondary);
|
||||
--el-text-color-placeholder: var(--min-text-placeholder);
|
||||
--el-border-color: var(--min-border-light);
|
||||
--el-border-color-light: var(--min-border-light);
|
||||
--el-border-color-lighter: #edf0f3;
|
||||
--el-border-color-extra-light: #f3f4f6;
|
||||
--el-border-color-dark: var(--min-border-strong);
|
||||
--el-border-radius-base: var(--min-radius-base);
|
||||
--el-border-radius-small: var(--min-radius-sm);
|
||||
--el-border-radius-round: var(--min-radius-base);
|
||||
--el-color-primary: var(--min-primary);
|
||||
--el-box-shadow: var(--min-shadow-overlay);
|
||||
--el-box-shadow-light: 0 4px 16px rgba(31, 41, 55, 0.06);
|
||||
--el-box-shadow-lighter: 0 2px 8px rgba(31, 41, 55, 0.05);
|
||||
--el-font-family: var(--min-font-family);
|
||||
|
||||
/* Application shell */
|
||||
--sidebar-bg: var(--min-bg-white);
|
||||
--sidebar-text: var(--min-text-regular);
|
||||
--sidebar-logo-text: var(--min-text-primary);
|
||||
--menu-hover: var(--min-bg-page);
|
||||
--menu-active-text: var(--min-primary);
|
||||
--navbar-bg: var(--min-bg-white);
|
||||
--navbar-text: var(--min-text-regular);
|
||||
--navbar-hover: var(--min-bg-page);
|
||||
--tags-bg: var(--min-bg-white);
|
||||
--tags-item-bg: var(--min-bg-white);
|
||||
--tags-item-border: var(--min-border-light);
|
||||
--tags-item-text: var(--min-text-secondary);
|
||||
--tags-item-hover: var(--min-bg-page);
|
||||
--tags-close-hover: var(--min-border-strong);
|
||||
--main-fill-bg: var(--min-bg-page);
|
||||
--splitpanes-default-bg: var(--min-bg-white);
|
||||
}
|
||||
|
||||
html.dark {
|
||||
--min-bg-page: #111315;
|
||||
--min-bg-white: #181b1f;
|
||||
--min-bg-subtle: #20242a;
|
||||
--min-border-light: #30353d;
|
||||
--min-border-strong: #454b55;
|
||||
--min-text-primary: #f3f4f6;
|
||||
--min-text-regular: #d1d5db;
|
||||
--min-text-secondary: #9ca3af;
|
||||
--min-text-placeholder: #737b87;
|
||||
--min-primary: #4d8cff;
|
||||
--min-primary-hover: #70a3ff;
|
||||
--min-primary-soft: #1a2b49;
|
||||
--min-shadow-overlay: 0 8px 24px rgba(0, 0, 0, 0.22);
|
||||
--el-bg-color: var(--min-bg-white);
|
||||
--el-bg-color-page: var(--min-bg-page);
|
||||
--el-bg-color-overlay: var(--min-bg-white);
|
||||
--el-fill-color: var(--min-bg-subtle);
|
||||
--el-fill-color-light: var(--min-bg-page);
|
||||
--el-fill-color-lighter: #1d2126;
|
||||
--el-fill-color-extra-light: #1a1e22;
|
||||
--el-text-color-primary: var(--min-text-primary);
|
||||
--el-text-color-regular: var(--min-text-regular);
|
||||
--el-text-color-secondary: var(--min-text-secondary);
|
||||
--el-text-color-placeholder: var(--min-text-placeholder);
|
||||
--el-border-color: var(--min-border-light);
|
||||
--el-border-color-light: var(--min-border-light);
|
||||
--el-border-color-lighter: #292e35;
|
||||
--el-border-color-extra-light: #242930;
|
||||
--sidebar-bg: var(--min-bg-white);
|
||||
--sidebar-text: var(--min-text-regular);
|
||||
--sidebar-logo-text: var(--min-text-primary);
|
||||
--menu-hover: var(--min-bg-subtle);
|
||||
--menu-active-text: var(--min-primary);
|
||||
--navbar-bg: var(--min-bg-white);
|
||||
--navbar-text: var(--min-text-regular);
|
||||
--navbar-hover: var(--min-bg-subtle);
|
||||
--tags-bg: var(--min-bg-white);
|
||||
--tags-item-bg: var(--min-bg-white);
|
||||
--tags-item-border: var(--min-border-light);
|
||||
--tags-item-text: var(--min-text-secondary);
|
||||
--tags-item-hover: var(--min-bg-subtle);
|
||||
--tags-close-hover: var(--min-border-strong);
|
||||
--main-fill-bg: var(--min-bg-page);
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
background: var(--min-bg-page);
|
||||
color: var(--min-text-primary);
|
||||
font-family: var(--min-font-family);
|
||||
font-size: 14px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: var(--min-primary);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--min-primary);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
label {
|
||||
color: var(--min-text-regular);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.app-container {
|
||||
padding: var(--min-space-6);
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-bg-white);
|
||||
}
|
||||
|
||||
.el-card {
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.el-card__header {
|
||||
padding: var(--min-space-4) var(--min-space-5);
|
||||
border-bottom-color: var(--min-border-light);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.el-card__body {
|
||||
padding: var(--min-space-5);
|
||||
}
|
||||
|
||||
.el-button {
|
||||
border-radius: var(--min-radius-base);
|
||||
font-weight: 500;
|
||||
letter-spacing: 0;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.el-button + .el-button {
|
||||
margin-left: var(--min-space-base);
|
||||
}
|
||||
|
||||
.el-button--primary:not(.is-plain, .is-link, .is-text):hover,
|
||||
.el-button--primary:not(.is-plain, .is-link, .is-text):focus {
|
||||
border-color: var(--min-primary-hover);
|
||||
background: var(--min-primary-hover);
|
||||
}
|
||||
|
||||
.el-button--cyan,
|
||||
.el-button--cyan:hover,
|
||||
.el-button--cyan:focus,
|
||||
.el-button--cyan:active {
|
||||
border-color: var(--min-primary) !important;
|
||||
background: var(--min-primary) !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.el-input__wrapper,
|
||||
.el-select__wrapper,
|
||||
.el-textarea__inner,
|
||||
.el-date-editor.el-input__wrapper,
|
||||
.el-range-editor.el-input__wrapper {
|
||||
border-radius: var(--min-radius-base);
|
||||
box-shadow: 0 0 0 1px var(--min-border-light) inset;
|
||||
}
|
||||
|
||||
.el-input__wrapper:hover,
|
||||
.el-select__wrapper:hover,
|
||||
.el-textarea__inner:hover {
|
||||
box-shadow: 0 0 0 1px var(--min-border-strong) inset;
|
||||
}
|
||||
|
||||
.el-input__wrapper.is-focus,
|
||||
.el-select__wrapper.is-focused,
|
||||
.el-textarea__inner:focus {
|
||||
box-shadow: 0 0 0 1px var(--min-primary) inset !important;
|
||||
}
|
||||
|
||||
.el-form-item {
|
||||
margin-bottom: var(--min-space-4);
|
||||
}
|
||||
|
||||
.el-form-item__label {
|
||||
color: var(--min-text-regular);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.el-table {
|
||||
--el-table-header-bg-color: var(--min-bg-page);
|
||||
--el-table-header-text-color: var(--min-text-secondary);
|
||||
--el-table-border-color: var(--min-border-light);
|
||||
--el-table-row-hover-bg-color: var(--min-bg-page);
|
||||
color: var(--min-text-regular);
|
||||
}
|
||||
|
||||
.el-table th.el-table__cell {
|
||||
height: 44px;
|
||||
padding: var(--min-space-base) 0;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.el-table td.el-table__cell {
|
||||
height: 48px;
|
||||
padding: var(--min-space-base) 0;
|
||||
}
|
||||
|
||||
.el-table .cell {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.el-dialog,
|
||||
.el-message-box,
|
||||
.el-drawer {
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
box-shadow: var(--min-shadow-overlay);
|
||||
}
|
||||
|
||||
.el-dialog__header,
|
||||
.el-message-box__header {
|
||||
padding: var(--min-space-5) var(--min-space-6) var(--min-space-4);
|
||||
border-bottom: 1px solid var(--min-border-light);
|
||||
}
|
||||
|
||||
.el-dialog__title,
|
||||
.el-message-box__title {
|
||||
color: var(--min-text-primary);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.el-dialog__body,
|
||||
.el-message-box__content {
|
||||
padding: var(--min-space-6);
|
||||
}
|
||||
|
||||
.el-dialog__footer,
|
||||
.el-message-box__btns {
|
||||
padding: var(--min-space-4) var(--min-space-6) var(--min-space-5);
|
||||
border-top: 1px solid var(--min-border-light);
|
||||
}
|
||||
|
||||
.el-drawer {
|
||||
border-width: 0 0 0 1px;
|
||||
}
|
||||
|
||||
.el-popper.is-light,
|
||||
.el-dropdown__popper,
|
||||
.el-select__popper,
|
||||
.el-picker__popper {
|
||||
border: 1px solid var(--min-border-light) !important;
|
||||
border-radius: var(--min-radius-base);
|
||||
box-shadow: var(--min-shadow-overlay) !important;
|
||||
}
|
||||
|
||||
.el-dropdown-menu,
|
||||
.el-select-dropdown__list {
|
||||
padding: var(--min-space-base);
|
||||
}
|
||||
|
||||
.el-dropdown-menu__item,
|
||||
.el-select-dropdown__item {
|
||||
border-radius: var(--min-radius-sm);
|
||||
}
|
||||
|
||||
.el-tag,
|
||||
.el-radio-button__inner,
|
||||
.el-pagination button,
|
||||
.el-pagination .el-pager li {
|
||||
border-radius: var(--min-radius-sm);
|
||||
}
|
||||
|
||||
.el-tabs__nav-wrap::after {
|
||||
height: 1px;
|
||||
background: var(--min-border-light);
|
||||
}
|
||||
|
||||
.el-tabs__item {
|
||||
color: var(--min-text-secondary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.el-collapse,
|
||||
.el-collapse-item__header,
|
||||
.el-collapse-item__wrap {
|
||||
border-color: var(--min-border-light);
|
||||
}
|
||||
|
||||
.el-loading-mask {
|
||||
background: color-mix(in srgb, var(--min-bg-white) 88%, transparent);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
border-radius: var(--min-radius-sm);
|
||||
background: var(--min-border-strong);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.app-container {
|
||||
padding: var(--min-space-4);
|
||||
}
|
||||
|
||||
.el-dialog {
|
||||
max-width: calc(100vw - 32px);
|
||||
}
|
||||
}
|
||||
@ -3,6 +3,9 @@ export function handleThemeStyle(theme) {
|
||||
const isDark = typeof document !== 'undefined' && document.documentElement.classList.contains('dark')
|
||||
const primary = isDark ? softenPrimaryForDark(theme) : theme
|
||||
document.documentElement.style.setProperty('--el-color-primary', primary)
|
||||
document.documentElement.style.setProperty('--min-primary', primary)
|
||||
document.documentElement.style.setProperty('--min-primary-hover', isDark ? getLightColor(primary, 0.18) : getDarkColor(primary, 0.15))
|
||||
document.documentElement.style.setProperty('--min-primary-soft', isDark ? getDarkColor(primary, 0.72) : getLightColor(primary, 0.9))
|
||||
for (let i = 1; i <= 9; i++) {
|
||||
document.documentElement.style.setProperty(`--el-color-primary-light-${i}`, `${getLightColor(primary, i / 10)}`)
|
||||
}
|
||||
|
||||
@ -235,8 +235,9 @@ onMounted(() => {
|
||||
.category-tree {
|
||||
height: 100%;
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-bg-white);
|
||||
|
||||
.tree-header {
|
||||
display: flex;
|
||||
@ -245,9 +246,9 @@ onMounted(() => {
|
||||
margin-bottom: 12px;
|
||||
|
||||
.stat-label {
|
||||
font-size: 16px;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
color: var(--min-text-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
@ -264,7 +265,7 @@ onMounted(() => {
|
||||
.node-count {
|
||||
margin-left: 8px;
|
||||
font-size: 12px;
|
||||
color: #94a3b8;
|
||||
color: var(--min-text-secondary);
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
@ -288,4 +289,4 @@ onMounted(() => {
|
||||
|
||||
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -274,9 +274,10 @@ onBeforeUnmount(() => {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.corpus-list {
|
||||
background: #fff;
|
||||
background: var(--min-bg-white);
|
||||
border: 1px solid var(--min-border-light);
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
border-radius: var(--min-radius-base);
|
||||
|
||||
.list-toolbar {
|
||||
display: flex;
|
||||
@ -300,7 +301,7 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
|
||||
.text-muted {
|
||||
color: #94a3b8;
|
||||
color: var(--min-text-secondary);
|
||||
}
|
||||
|
||||
.text-sm {
|
||||
@ -310,7 +311,7 @@ onBeforeUnmount(() => {
|
||||
|
||||
|
||||
.wave-container {
|
||||
border-radius: 12px;
|
||||
border-radius: var(--min-radius-base);
|
||||
padding: 16px;
|
||||
min-height: 140px;
|
||||
position: relative;
|
||||
@ -328,4 +329,4 @@ onBeforeUnmount(() => {
|
||||
margin: 10px 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<div class="card" v-for="item in stats" :key="item.label" shadow="never">
|
||||
<div class="flex-between">
|
||||
<div class="icon-container" :class="item.iconName">
|
||||
<SvgIcon :name="item.iconName" :size="28" color="#fff" />
|
||||
<SvgIcon :name="item.iconName" :size="24" color="var(--min-primary)" />
|
||||
</div>
|
||||
<div class="right">
|
||||
<span class="stat-label">{{ item.label }}</span>
|
||||
@ -75,62 +75,47 @@ onMounted(() => {
|
||||
gap: 16px;
|
||||
|
||||
.card {
|
||||
background: #fff;
|
||||
border-radius: 12px;
|
||||
padding: 8px 32px;
|
||||
min-width: 0;
|
||||
background: var(--min-bg-white);
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
padding: 20px;
|
||||
|
||||
.flex-between {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 32px;
|
||||
gap: 16px;
|
||||
|
||||
.icon-container {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
flex: 0 0 44px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.task {
|
||||
background: #196afd;
|
||||
}
|
||||
|
||||
.add {
|
||||
background: #16cb8d;
|
||||
}
|
||||
|
||||
.language {
|
||||
background: #735df6;
|
||||
}
|
||||
|
||||
.consuming {
|
||||
background: #fd9131;
|
||||
}
|
||||
|
||||
.timbre {
|
||||
background: #2f7bf9;
|
||||
border-radius: var(--min-radius-sm);
|
||||
background: var(--min-primary-soft);
|
||||
}
|
||||
|
||||
.right {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
|
||||
.stat-label {
|
||||
font-size: 16px;
|
||||
color: #64748b;
|
||||
font-weight: 500;
|
||||
font-size: 13px;
|
||||
color: var(--min-text-secondary);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.stat-number {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
color: #0f172a;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0;
|
||||
color: var(--min-text-primary);
|
||||
}
|
||||
|
||||
.stat-trend {
|
||||
@ -143,19 +128,31 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
&.up {
|
||||
color: #22c55e;
|
||||
color: var(--el-color-success);
|
||||
}
|
||||
|
||||
&.down {
|
||||
color: #ef4444;
|
||||
color: var(--el-color-danger);
|
||||
}
|
||||
|
||||
&.neutral {
|
||||
color: #94a3b8;
|
||||
color: var(--min-text-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.row-cards {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.row-cards {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -7,8 +7,8 @@
|
||||
<!-- 播放器主体 -->
|
||||
<div class="player-main">
|
||||
<!-- 播放/暂停按钮 -->
|
||||
<SvgIcon class="btn" v-if="!isPlaying" name="start" :size="32" color="#136cfc" @click="togglePlay" />
|
||||
<SvgIcon class="btn" v-if="isPlaying" name="pause" :size="32" color="#d33257" @click="togglePlay" />
|
||||
<SvgIcon class="btn" v-if="!isPlaying" name="start" :size="32" color="var(--min-primary)" @click="togglePlay" />
|
||||
<SvgIcon class="btn" v-if="isPlaying" name="pause" :size="32" color="var(--min-primary)" @click="togglePlay" />
|
||||
|
||||
<!-- 当前时间 -->
|
||||
<span class="time-text">{{ formatTime(currentTime) }}</span>
|
||||
@ -211,9 +211,10 @@ onBeforeUnmount(() => {
|
||||
<style lang="scss" scoped>
|
||||
.audio-player {
|
||||
width: 100%;
|
||||
border-radius: 12px;
|
||||
padding: 12px 28px;
|
||||
border: 1px solid #afafaf;
|
||||
border-radius: var(--min-radius-base);
|
||||
padding: 12px 20px;
|
||||
border: 1px solid var(--min-border-light);
|
||||
background: var(--min-bg-white);
|
||||
|
||||
.player-main {
|
||||
display: flex;
|
||||
@ -224,7 +225,7 @@ onBeforeUnmount(() => {
|
||||
.time-text {
|
||||
flex-shrink: 0;
|
||||
font-size: 13px;
|
||||
color: #94a3b8;
|
||||
color: var(--min-text-secondary);
|
||||
font-variant-numeric: tabular-nums;
|
||||
width: 42px;
|
||||
text-align: center;
|
||||
@ -236,8 +237,8 @@ onBeforeUnmount(() => {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
height: 6px;
|
||||
background: #e5e5e5;
|
||||
border-radius: 3px;
|
||||
background: var(--min-bg-subtle);
|
||||
border-radius: var(--min-radius-sm);
|
||||
cursor: pointer;
|
||||
overflow: visible;
|
||||
|
||||
@ -246,8 +247,8 @@ onBeforeUnmount(() => {
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 3px;
|
||||
background: var(--min-border-light);
|
||||
border-radius: var(--min-radius-sm);
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
@ -256,8 +257,8 @@ onBeforeUnmount(() => {
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, #3b82f6, #60a5fa);
|
||||
border-radius: 3px;
|
||||
background: var(--min-primary);
|
||||
border-radius: var(--min-radius-sm);
|
||||
transition: width 0.05s linear;
|
||||
|
||||
.progress-thumb {
|
||||
@ -267,9 +268,10 @@ onBeforeUnmount(() => {
|
||||
transform: translateY(-50%) scale(0);
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background: #fff;
|
||||
background: var(--min-bg-white);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
|
||||
border: 2px solid var(--min-primary);
|
||||
box-shadow: none;
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
}
|
||||
@ -289,8 +291,8 @@ onBeforeUnmount(() => {
|
||||
position: absolute;
|
||||
top: -32px;
|
||||
transform: translateX(-50%);
|
||||
background: rgba(0, 0, 0, 0.85);
|
||||
color: #e2e8f0;
|
||||
background: var(--min-text-primary);
|
||||
color: var(--min-bg-white);
|
||||
font-size: 12px;
|
||||
padding: 3px 8px;
|
||||
border-radius: 4px;
|
||||
@ -318,7 +320,7 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
|
||||
.volume-wrapper .el-button {
|
||||
color: #94a3b8 !important;
|
||||
color: var(--min-text-secondary) !important;
|
||||
}
|
||||
|
||||
.volume-slider {
|
||||
@ -327,12 +329,12 @@ onBeforeUnmount(() => {
|
||||
|
||||
:deep(.volume-slider .el-slider__runway) {
|
||||
height: 4px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
background: var(--min-bg-subtle);
|
||||
}
|
||||
|
||||
:deep(.volume-slider .el-slider__bar) {
|
||||
height: 4px;
|
||||
background: #3b82f6;
|
||||
background: var(--min-primary);
|
||||
}
|
||||
|
||||
:deep(.volume-slider .el-slider__button-wrapper) {
|
||||
@ -342,12 +344,18 @@ onBeforeUnmount(() => {
|
||||
:deep(.volume-slider .el-slider__button) {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border: 2px solid #3b82f6;
|
||||
background: #fff;
|
||||
border: 2px solid var(--min-primary);
|
||||
background: var(--min-bg-white);
|
||||
}
|
||||
|
||||
/* 进度条 hover 加粗效果 */
|
||||
.progress-wrapper:hover {
|
||||
height: 8px;
|
||||
@media (max-width: 640px) {
|
||||
.audio-player {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.volume-slider {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -330,13 +330,15 @@ const cancel = () => {
|
||||
|
||||
.right {
|
||||
flex: 1;
|
||||
background: #fff;
|
||||
min-width: 0;
|
||||
background: var(--min-bg-white);
|
||||
border: 1px solid var(--min-border-light);
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
border-radius: var(--min-radius-base);
|
||||
|
||||
.title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
@ -357,13 +359,15 @@ const cancel = () => {
|
||||
|
||||
.left {
|
||||
flex: 1;
|
||||
background: #fff;
|
||||
min-width: 0;
|
||||
background: var(--min-bg-white);
|
||||
border: 1px solid var(--min-border-light);
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
border-radius: var(--min-radius-base);
|
||||
|
||||
.title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
@ -386,4 +390,11 @@ const cancel = () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.main-workspace .workspace-container {
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<div class="card" v-for="item in stats" :key="item.label" shadow="never">
|
||||
<div class="flex-between">
|
||||
<div class="icon-container" :class="item.iconName">
|
||||
<SvgIcon :name="item.iconName" :size="28" color="#fff" />
|
||||
<SvgIcon :name="item.iconName" :size="24" color="var(--min-primary)" />
|
||||
</div>
|
||||
<div class="right">
|
||||
<span class="stat-label">{{ item.label }}</span>
|
||||
@ -81,66 +81,51 @@ onMounted(() => {
|
||||
<style lang="scss" scoped>
|
||||
.row-cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
|
||||
.card {
|
||||
background: #fff;
|
||||
border-radius: 12px;
|
||||
padding: 8px 32px;
|
||||
min-width: 0;
|
||||
background: var(--min-bg-white);
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
padding: 20px;
|
||||
|
||||
.flex-between {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 32px;
|
||||
gap: 16px;
|
||||
|
||||
.icon-container {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
flex: 0 0 44px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.task {
|
||||
background: #196afd;
|
||||
}
|
||||
|
||||
.add {
|
||||
background: #16cb8d;
|
||||
}
|
||||
|
||||
.language {
|
||||
background: #735df6;
|
||||
}
|
||||
|
||||
.consuming {
|
||||
background: #fd9131;
|
||||
}
|
||||
|
||||
.timbre {
|
||||
background: #2f7bf9;
|
||||
border-radius: var(--min-radius-sm);
|
||||
background: var(--min-primary-soft);
|
||||
}
|
||||
|
||||
.right {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
|
||||
.stat-label {
|
||||
font-size: 16px;
|
||||
color: #64748b;
|
||||
font-weight: 500;
|
||||
font-size: 13px;
|
||||
color: var(--min-text-secondary);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.stat-number {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
color: #0f172a;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0;
|
||||
color: var(--min-text-primary);
|
||||
}
|
||||
|
||||
.stat-trend {
|
||||
@ -153,19 +138,37 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
&.up {
|
||||
color: #22c55e;
|
||||
color: var(--el-color-success);
|
||||
}
|
||||
|
||||
&.down {
|
||||
color: #ef4444;
|
||||
color: var(--el-color-danger);
|
||||
}
|
||||
|
||||
&.neutral {
|
||||
color: #94a3b8;
|
||||
color: var(--min-text-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@media (max-width: 1440px) {
|
||||
.row-cards {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.row-cards {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.row-cards {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -278,9 +278,10 @@ defineExpose({
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.taskList-container {
|
||||
background: #fff;
|
||||
background: var(--min-bg-white);
|
||||
border: 1px solid var(--min-border-light);
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
border-radius: var(--min-radius-base);
|
||||
}
|
||||
|
||||
.flex-between {
|
||||
@ -304,7 +305,7 @@ defineExpose({
|
||||
}
|
||||
|
||||
.text-muted {
|
||||
color: #94a3b8;
|
||||
color: var(--min-text-secondary);
|
||||
}
|
||||
|
||||
.text-sm {
|
||||
@ -317,13 +318,13 @@ defineExpose({
|
||||
|
||||
.stat-label {
|
||||
font-size: 13px;
|
||||
color: #64748b;
|
||||
font-weight: 500;
|
||||
color: var(--min-text-secondary);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
|
||||
.wave-container {
|
||||
border-radius: 12px;
|
||||
border-radius: var(--min-radius-base);
|
||||
padding: 16px;
|
||||
min-height: 140px;
|
||||
position: relative;
|
||||
@ -341,4 +342,4 @@ defineExpose({
|
||||
margin: 10px 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -155,27 +155,27 @@ onMounted(async () => {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.robot-device-page { min-height: 100%; background: #f5f7fa; }
|
||||
.robot-device-page { min-height: 100%; background: var(--min-bg-white); }
|
||||
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 4px 0 20px; }
|
||||
.page-heading h2 { margin: 0 0 5px; color: #1f2937; font-size: 22px; letter-spacing: 0; }
|
||||
.page-heading p { margin: 0; color: #8492a6; font-size: 13px; }
|
||||
.robot-selector { display: flex; align-items: center; gap: 10px; color: #606266; font-size: 13px; }
|
||||
.page-heading h2 { margin: 0 0 4px; color: var(--min-text-primary); font-size: 20px; font-weight: 600; letter-spacing: 0; }
|
||||
.page-heading p { margin: 0; color: var(--min-text-secondary); font-size: 13px; }
|
||||
.robot-selector { display: flex; align-items: center; gap: 8px; color: var(--min-text-regular); font-size: 13px; }
|
||||
.robot-selector .el-select { width: 330px; }
|
||||
.status-strip { display: flex; align-items: center; gap: 34px; margin-bottom: 14px; padding: 14px 18px; border: 1px solid #e4e7ed; border-radius: 6px; background: #fff; }
|
||||
.status-strip { display: flex; align-items: center; gap: 32px; margin-bottom: 16px; padding: 16px 20px; border: 1px solid var(--min-border-light); border-radius: var(--min-radius-base); background: var(--min-bg-white); }
|
||||
.status-strip > div:not(.filters) { display: grid; min-width: 74px; }
|
||||
.status-strip strong { color: #303133; font-size: 24px; line-height: 28px; }
|
||||
.status-strip strong { color: var(--min-text-primary); font-size: 24px; font-weight: 600; line-height: 28px; }
|
||||
.status-strip strong.online { color: #16a34a; }
|
||||
.status-strip strong.fault { color: #dc2626; }
|
||||
.status-strip span { color: #909399; font-size: 12px; }
|
||||
.status-strip span { color: var(--min-text-secondary); font-size: 12px; }
|
||||
.filters { display: flex; flex: 1; justify-content: flex-end; gap: 10px; }
|
||||
.filters .el-input { width: 240px; }
|
||||
.filters .el-select { width: 150px; }
|
||||
.device-name { display: flex; align-items: center; gap: 12px; }
|
||||
.device-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 6px; background: #ecf5ff; color: #409eff; }
|
||||
.device-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: var(--min-radius-sm); background: var(--min-primary-soft); color: var(--min-primary); }
|
||||
.device-name div { display: grid; min-width: 0; }
|
||||
.device-name b { color: #303133; font-weight: 600; }
|
||||
.device-name small { overflow: hidden; color: #909399; text-overflow: ellipsis; }
|
||||
.muted { color: #c0c4cc; }
|
||||
.device-name b { color: var(--min-text-primary); font-weight: 600; }
|
||||
.device-name small { overflow: hidden; color: var(--min-text-secondary); text-overflow: ellipsis; }
|
||||
.muted { color: var(--min-text-placeholder); }
|
||||
@media (max-width: 900px) {
|
||||
.page-heading, .status-strip { align-items: stretch; flex-direction: column; }
|
||||
.robot-selector, .filters { justify-content: flex-start; flex-wrap: wrap; }
|
||||
|
||||
@ -68,22 +68,23 @@ onUnmounted(() => {
|
||||
.context-menu {
|
||||
position: fixed; /* 使用 fixed 定位,不受父容器 scroll 影响 */
|
||||
z-index: 9999;
|
||||
background-color: #fff;
|
||||
border: 1px solid #eee;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 4px;
|
||||
padding: 5px 0;
|
||||
background-color: var(--min-bg-white);
|
||||
border: 1px solid var(--min-border-light);
|
||||
box-shadow: var(--min-shadow-overlay);
|
||||
border-radius: var(--min-radius-base);
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.menu-item {
|
||||
padding: 8px 15px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: #606266;
|
||||
color: var(--min-text-regular);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.menu-item:hover {
|
||||
background-color: #f5f7fa;
|
||||
color: var(--min-primary);
|
||||
background-color: var(--min-primary-soft);
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -90,18 +90,18 @@ const props = defineProps({
|
||||
linePadding: { type: Number, default: 20 },
|
||||
|
||||
// --- 仅用于样式的 Props ---
|
||||
buttonGradient: { type: Array, default: () => ['#00f0ff', '#00d0ff'] }, // 按钮背景渐变色
|
||||
buttonHoverGradient: { type: Array, default: () => ['#00d0ff', '#00f0ff'] }, // 悬停时的渐变色
|
||||
buttonBorderColor: { type: String, default: 'rgba(0, 255, 255, 0.6)' },
|
||||
lineColor: { type: String, default: 'rgba(0, 150, 200, 0.4)' }, // 细线基础颜色
|
||||
lineHoverColor: { type: String, default: 'rgba(0, 255, 255, 1)' }, // 扫描线高亮颜色
|
||||
buttonGradient: { type: Array, default: () => ['var(--min-primary)', 'var(--min-primary)'] },
|
||||
buttonHoverGradient: { type: Array, default: () => ['var(--min-primary-hover)', 'var(--min-primary-hover)'] },
|
||||
buttonBorderColor: { type: String, default: 'var(--min-primary)' },
|
||||
lineColor: { type: String, default: 'var(--min-primary)' },
|
||||
lineHoverColor: { type: String, default: 'var(--min-primary)' },
|
||||
lineStrokeWidth: { type: Number, default: 3 },
|
||||
neonGlowIntensity: { type: Number, default: 3 }, // 霓虹光效强度
|
||||
scanLineSpeed: { type: Number, default: 8 }, // 扫描线动画速度
|
||||
animationDuration: { type: Number, default: 0.4 }, // 基础动画时长
|
||||
hoverScale: { type: Number, default: 1.03 }, // 悬停时的放大比例
|
||||
hoverScale: { type: Number, default: 1 },
|
||||
// --- New Props for Flowing Light Effect ---
|
||||
flowLineColor: { type: String, default: 'rgba(0, 255, 255, 0.8)' }, // 流光颜色
|
||||
flowLineColor: { type: String, default: 'var(--min-primary)' },
|
||||
flowLineAnimationSpeed: { type: Number, default: 7 }, // 流光动画速度
|
||||
});
|
||||
|
||||
@ -167,14 +167,11 @@ const buttonStyle = computed(() => {
|
||||
const buttonWidthPx = typeof props.buttonWidth === 'number' ? `${props.buttonWidth}px` : props.buttonWidth;
|
||||
const buttonHeightPx = typeof props.buttonHeight === 'number' ? `${props.buttonHeight}px` : props.buttonHeight;
|
||||
|
||||
const currentGradient = isHovering.value ? props.buttonHoverGradient : props.buttonGradient;
|
||||
|
||||
|
||||
const style = {
|
||||
return {
|
||||
position: 'absolute',
|
||||
left: `${calculatedButtonX.value}px`,
|
||||
top: `${calculatedButtonY.value}px`,
|
||||
transform: 'translate(-50%, -50%)', // 居中对齐
|
||||
transform: 'translate(-50%, -50%)',
|
||||
cursor: 'pointer',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
@ -182,88 +179,44 @@ const buttonStyle = computed(() => {
|
||||
boxSizing: 'border-box',
|
||||
width: buttonWidthPx,
|
||||
height: buttonHeightPx,
|
||||
borderRadius: '15px', // 强制平直四角
|
||||
// 更硬朗的背景,减少模糊,增加纹理感
|
||||
background: `linear-gradient(135deg, ${currentGradient[0]}, ${currentGradient[1]})`,
|
||||
// 模拟金属/磨砂质感,但更锐利
|
||||
boxShadow: `
|
||||
inset 0 0 0 2px ${props.buttonBorderColor}, /* 内部边框 */
|
||||
0 0 5px rgba(0, 150, 200, 0.5), /* 较弱的主光晕 */
|
||||
0 0 12px rgba(0, 200, 255, 0.6), /* 第二层光晕 */
|
||||
0 3px 10px rgba(0, 0, 0, 0.4) /* 底部阴影 */
|
||||
`,
|
||||
color: '#ffffff',
|
||||
border: `1px solid ${props.buttonBorderColor}`,
|
||||
borderRadius: '4px',
|
||||
background: isHovering.value ? 'var(--min-primary-hover)' : 'var(--min-primary)',
|
||||
boxShadow: 'none',
|
||||
color: 'var(--min-bg-white)',
|
||||
fontSize: '14px',
|
||||
fontWeight: 'bold', // 更粗的字体
|
||||
letterSpacing: '0.7px',
|
||||
textShadow: '0 0 5px rgba(0, 150, 200, 0.9)', // 文本的锐利光效
|
||||
transition: `all ${props.animationDuration}s ease-in-out`,
|
||||
overflow: 'visible', // 允许流光伪元素溢出
|
||||
fontWeight: '600',
|
||||
letterSpacing: '0',
|
||||
textShadow: 'none',
|
||||
transition: `background ${props.animationDuration}s ease`,
|
||||
overflow: 'visible',
|
||||
zIndex: 1,
|
||||
};
|
||||
|
||||
if (isHovering.value) {
|
||||
style.transform = `translate(-50%, -50%) scale(${props.hoverScale})`;
|
||||
style.boxShadow = `
|
||||
inset 0 0 0 3px ${props.buttonBorderColor}, /* 悬停时内部边框变宽 */
|
||||
0 0 8px rgba(0, 200, 255, 0.7),
|
||||
0 0 18px rgba(0, 230, 255, 0.8),
|
||||
0 5px 15px rgba(0, 0, 0, 0.5) /* 底部阴影增强 */
|
||||
`;
|
||||
}
|
||||
return style;
|
||||
});
|
||||
|
||||
// 按钮形状裁剪器的样式
|
||||
const clipperStyle = computed(() => {
|
||||
const currentGradient = isHovering.value ? props.buttonHoverGradient : props.buttonGradient;
|
||||
|
||||
const style = {
|
||||
position: 'relative', // 相对于 techButtonContainer 定位
|
||||
return {
|
||||
position: 'relative',
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
boxSizing: 'border-box',
|
||||
borderRadius: '0px', // **clipper 的形状由 clip-path 定义**
|
||||
background: `linear-gradient(135deg, ${currentGradient[0]}, ${currentGradient[1]})`,
|
||||
boxShadow: `
|
||||
inset 0 0 0 2px ${props.buttonBorderColor}, /* 内部边框 */
|
||||
0 0 5px rgba(0, 150, 200, 0.5), /* 较弱的主光晕 */
|
||||
0 0 12px rgba(0, 200, 255, 0.6), /* 第二层光晕 */
|
||||
0 3px 10px rgba(0, 0, 0, 0.4) /* 底部阴影 */
|
||||
`,
|
||||
color: '#ffffff',
|
||||
borderRadius: '3px',
|
||||
background: isHovering.value ? 'var(--min-primary-hover)' : 'var(--min-primary)',
|
||||
boxShadow: 'none',
|
||||
color: 'var(--min-bg-white)',
|
||||
fontSize: '14px',
|
||||
fontWeight: 'bold',
|
||||
letterSpacing: '0.7px',
|
||||
textShadow: '0 0 5px rgba(0, 150, 200, 0.9)', // 文本的锐利光效
|
||||
transition: `all ${props.animationDuration}s ease-in-out`,
|
||||
overflow: 'hidden', // **clipper 内部的内容会被 clip-path 裁剪**
|
||||
clipPath: `polygon(
|
||||
6px 0, /* 左上角内缩进5px */
|
||||
calc(100% - 6px) 0, /* 右上角内缩进5px */
|
||||
100% 6px, /* 右上角外延5px */
|
||||
100% calc(100% - 6px), /* 右下角内缩进5px */
|
||||
calc(100% - 6px) 100%,
|
||||
6px 100%, /* 左下角内缩进5px */
|
||||
0 calc(100% - 6px),
|
||||
0 6px, /* 左下角外延5px */
|
||||
6px 0px /* 左上角内缩进5px(重复起点,闭合多边形) */
|
||||
)`,
|
||||
zIndex: 1, // 确保clipper在流光之上
|
||||
fontWeight: '600',
|
||||
letterSpacing: '0',
|
||||
textShadow: 'none',
|
||||
transition: `background ${props.animationDuration}s ease`,
|
||||
overflow: 'hidden',
|
||||
clipPath: 'none',
|
||||
zIndex: 1,
|
||||
};
|
||||
|
||||
if (isHovering.value) {
|
||||
style.boxShadow = `
|
||||
inset 0 0 0 3px ${props.buttonBorderColor}, /* 悬停时内部边框变宽 */
|
||||
0 0 8px rgba(0, 200, 255, 0.7),
|
||||
0 0 18px rgba(0, 230, 255, 0.8),
|
||||
0 5px 15px rgba(0, 0, 0, 0.5) /* 底部阴影增强 */
|
||||
`;
|
||||
}
|
||||
return style;
|
||||
});
|
||||
|
||||
// 线的三个关键点 (相对于 SVG 内部坐标系 (0,0) 是按钮中心)
|
||||
@ -428,7 +381,7 @@ watch(
|
||||
box-sizing: border-box;
|
||||
overflow: visible; /* 允许 SVG 滤镜和动画效果溢出 */
|
||||
z-index: 1;
|
||||
border-radius: 8px; /* 科技感圆角 */
|
||||
border-radius: var(--min-radius-base);
|
||||
/* 基础过渡效果,用于缩放和阴影 */
|
||||
/* transition: transform v-bind('`${props.animationDuration}s`') ease-in-out, box-shadow v-bind('`${props.animationDuration}s`') ease-in-out, background v-bind('`${props.animationDuration}s`') ease-in-out; */
|
||||
}
|
||||
@ -457,12 +410,12 @@ watch(
|
||||
}
|
||||
|
||||
.button-text {
|
||||
font-family: 'Orbitron', sans-serif; /* 科技感字体 */
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
font-family: var(--min-font-family);
|
||||
font-weight: 600;
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
/* color: v-bind('props.buttonBorderColor'); 文本颜色与边框颜色呼应 */
|
||||
color: #fff;
|
||||
color: var(--min-bg-white);
|
||||
}
|
||||
|
||||
/* --- SVG Line Styles --- */
|
||||
@ -476,7 +429,8 @@ watch(
|
||||
|
||||
/* 主线条的动画 */
|
||||
.main-line {
|
||||
animation: scanline v-bind('`${props.scanLineSpeed}s`') linear infinite;
|
||||
display: none;
|
||||
animation: none;
|
||||
/* 调整 stroke-dasharray 来控制扫描线的长度和间隔 */
|
||||
stroke-dasharray: 15px, 80px; /* 15px 显示, 100px 隐藏 */
|
||||
stroke-dashoffset: 0; /* 初始位置 */
|
||||
@ -491,7 +445,7 @@ watch(
|
||||
|
||||
/* 细微基线样式 */
|
||||
.base-line {
|
||||
opacity: 0.6;
|
||||
opacity: 0.5;
|
||||
transition: all v-bind('`${props.animationDuration}s`') ease-in-out;
|
||||
}
|
||||
.tech-button-with-line:hover .base-line {
|
||||
@ -501,7 +455,7 @@ watch(
|
||||
/* --- Flowing Light Border Effect --- */
|
||||
/* 使用 ::before 伪元素实现四周的流光 */
|
||||
.tech-button-with-line::before {
|
||||
content: '';
|
||||
content: none;
|
||||
position: absolute;
|
||||
top: -4px; /* 稍向外延伸 */
|
||||
left: -4px;
|
||||
@ -509,12 +463,7 @@ watch(
|
||||
bottom: -4px;
|
||||
/* 关键:创建动态的流光渐变 */
|
||||
/* 渐变方向是从左到右,颜色从透明到高亮再到透明 */
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
transparent,
|
||||
v-bind('props.flowLineColor'),
|
||||
transparent
|
||||
);
|
||||
background: var(--min-primary);
|
||||
border-radius: 0px; /* **与按钮一致的平直四角** */
|
||||
opacity: 0.8; /* 初始可见度 */
|
||||
filter: blur(5px); /* 轻微模糊,模拟光晕 */
|
||||
@ -544,4 +493,4 @@ watch(
|
||||
50% { background-position: 100% 0; } /* 移动到右侧完全移出 */
|
||||
100% { background-position: -100% 0; } /* 回到初始状态,循环 */
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -659,19 +659,20 @@ onMounted(() => {
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
background-color: var(--min-bg-white);
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
height: calc(100vh - 120px); /* 示例高度,请根据实际布局调整 */
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.tree-panel {
|
||||
flex-shrink: 0;
|
||||
border-right: 1px solid #ddd;
|
||||
border-right: 1px solid var(--min-border-light);
|
||||
overflow-y: auto;
|
||||
height: 100%; /* 填充父容器高度 */
|
||||
transition: width 0.3s ease;
|
||||
background-color: #f8f8f8; /* 示例背景色 */
|
||||
background-color: var(--min-bg-subtle);
|
||||
}
|
||||
|
||||
.tree-panel:deep(.el-tree) {
|
||||
@ -713,14 +714,17 @@ onMounted(() => {
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
font-size: 24px;
|
||||
background-color: #e0e0e0;
|
||||
border-radius: 4px;
|
||||
color: var(--min-text-regular);
|
||||
background-color: var(--min-bg-white);
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
z-index: 2001;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,.1);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.toggle-button:hover {
|
||||
background-color: #d0d0d0;
|
||||
color: var(--min-primary);
|
||||
background-color: var(--min-primary-soft);
|
||||
}
|
||||
|
||||
.clickable-area {
|
||||
@ -735,11 +739,14 @@ onMounted(() => {
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
color: #fff;
|
||||
text-shadow: 0 0 5px #000;
|
||||
animation: blink 1.5s infinite;
|
||||
padding: 4px 8px;
|
||||
color: var(--min-bg-white);
|
||||
background: var(--min-primary);
|
||||
border-radius: var(--min-radius-sm);
|
||||
text-shadow: none;
|
||||
animation: none;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
pointer-events: none; /* 防止文本本身捕获点击事件 */
|
||||
}
|
||||
|
||||
@ -752,12 +759,13 @@ onMounted(() => {
|
||||
.popup {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: white;
|
||||
background: var(--min-bg-white);
|
||||
user-select: none;
|
||||
overflow: hidden; /* 整体 overflow hidden,内容由子组件处理 */
|
||||
box-sizing: border-box;
|
||||
transition: width 0.2s, height 0.2s, top 0.2s, left 0.2s;
|
||||
border: 1px solid #eee;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
position: absolute; /* 确保 popup 是绝对定位 */
|
||||
}
|
||||
|
||||
@ -768,20 +776,20 @@ onMounted(() => {
|
||||
|
||||
.drag-handle {
|
||||
height: 30px;
|
||||
background: #e0e0e0;
|
||||
background: var(--min-bg-subtle);
|
||||
cursor: move;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-bottom: 1px solid #eee; /* 增加分隔线 */
|
||||
border-bottom: 1px solid var(--min-border-light);
|
||||
}
|
||||
|
||||
.popup-title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
font-weight: 600;
|
||||
color: var(--min-text-primary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@ -803,7 +811,9 @@ onMounted(() => {
|
||||
cursor: pointer;
|
||||
font-size: 18px;
|
||||
padding: 4px 8px;
|
||||
background: #f0f0f0;
|
||||
color: var(--min-text-secondary);
|
||||
background: var(--min-bg-white);
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -812,15 +822,17 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.control-icon:hover {
|
||||
background: #d0d0d0;
|
||||
color: var(--min-primary);
|
||||
background: var(--min-primary-soft);
|
||||
}
|
||||
|
||||
.close-icon {
|
||||
color: #ff4444;
|
||||
color: var(--el-color-danger);
|
||||
}
|
||||
|
||||
.close-icon:hover {
|
||||
background: #ff6666;
|
||||
color: var(--min-bg-white);
|
||||
background: var(--el-color-danger);
|
||||
}
|
||||
|
||||
.resize-edge, .resize-corner {
|
||||
@ -856,7 +868,7 @@ onMounted(() => {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
padding-top: 10px;
|
||||
border-top: 1px solid #eee;
|
||||
border-top: 1px solid var(--min-border-light);
|
||||
}
|
||||
.el-dialog {
|
||||
display: flex;
|
||||
|
||||
@ -96,13 +96,13 @@ const handleDragCustom = (event, node) => {
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
flex-direction: column;
|
||||
color: #1f2937;
|
||||
color: var(--min-text-primary);
|
||||
}
|
||||
|
||||
.library-header {
|
||||
padding: 16px 14px 14px;
|
||||
border-bottom: 1px solid #e4e8ef;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid var(--min-border-light);
|
||||
background: var(--min-bg-white);
|
||||
}
|
||||
|
||||
.library-heading {
|
||||
@ -114,12 +114,12 @@ const handleDragCustom = (event, node) => {
|
||||
|
||||
.library-title {
|
||||
font-size: 15px;
|
||||
font-weight: 650;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.library-subtitle {
|
||||
margin-top: 2px;
|
||||
color: #8a94a6;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@ -138,16 +138,16 @@ const handleDragCustom = (event, node) => {
|
||||
.el-collapse-item__header {
|
||||
height: 46px;
|
||||
padding: 0 14px;
|
||||
border-bottom-color: #e8ebf0;
|
||||
background: #f8fafc;
|
||||
color: #344054;
|
||||
border-bottom-color: var(--min-border-light);
|
||||
background: var(--min-bg-page);
|
||||
color: var(--min-text-regular);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.el-collapse-item__wrap {
|
||||
border-bottom-color: #e8ebf0;
|
||||
background: #f8fafc;
|
||||
border-bottom-color: var(--min-border-light);
|
||||
background: var(--min-bg-page);
|
||||
}
|
||||
|
||||
.el-collapse-item__content {
|
||||
@ -170,10 +170,10 @@ const handleDragCustom = (event, node) => {
|
||||
height: 20px;
|
||||
padding: 0 6px;
|
||||
place-items: center;
|
||||
border: 1px solid #dfe4ec;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
color: #7a8597;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-sm);
|
||||
background: var(--min-bg-white);
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
line-height: 18px;
|
||||
@ -192,16 +192,15 @@ const handleDragCustom = (event, node) => {
|
||||
gap: 9px;
|
||||
align-items: center;
|
||||
padding: 9px 8px 9px 10px;
|
||||
border: 1px solid #e1e6ed;
|
||||
border-radius: 7px;
|
||||
background: #fff;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-bg-white);
|
||||
cursor: grab;
|
||||
transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
|
||||
|
||||
&:hover {
|
||||
border-color: #f2a071;
|
||||
box-shadow: 0 5px 14px rgba(31, 41, 55, 0.08);
|
||||
transform: translateX(2px);
|
||||
border-color: var(--min-primary);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:active { cursor: grabbing; }
|
||||
@ -212,8 +211,8 @@ const handleDragCustom = (event, node) => {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
place-items: center;
|
||||
border-radius: 6px;
|
||||
background: #f1f5f9;
|
||||
border-radius: var(--min-radius-sm);
|
||||
background: var(--min-bg-page);
|
||||
|
||||
img {
|
||||
width: 21px;
|
||||
@ -226,7 +225,7 @@ const handleDragCustom = (event, node) => {
|
||||
|
||||
.node-name {
|
||||
overflow: hidden;
|
||||
color: #202938;
|
||||
color: var(--min-text-primary);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
text-overflow: ellipsis;
|
||||
@ -237,7 +236,7 @@ const handleDragCustom = (event, node) => {
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
margin-top: 4px;
|
||||
color: #7a8597;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 11px;
|
||||
line-height: 16px;
|
||||
-webkit-box-orient: vertical;
|
||||
@ -245,7 +244,7 @@ const handleDragCustom = (event, node) => {
|
||||
}
|
||||
|
||||
.drag-handle {
|
||||
color: #a8b0bf;
|
||||
color: var(--min-text-placeholder);
|
||||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -39,12 +39,12 @@ onMounted(() => {
|
||||
.node__box {
|
||||
width: 320px;
|
||||
height: auto;
|
||||
background: #fff;
|
||||
background: var(--min-bg-white);
|
||||
padding: 12px;
|
||||
cursor: default;
|
||||
border-radius: 12px;
|
||||
border: 2px solid white;
|
||||
box-shadow: 0 5px 15px 0#00000008;
|
||||
border-radius: var(--min-radius-base);
|
||||
border: 1px solid var(--min-border-light);
|
||||
box-shadow: none;
|
||||
position: relative;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -2723,10 +2723,10 @@ onUnmounted(() => {
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid #dfe6ef;
|
||||
border-radius: 6px;
|
||||
background: #f7f9fc;
|
||||
color: #65758b;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-bg-page);
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@ -2753,8 +2753,8 @@ onUnmounted(() => {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 16px;
|
||||
border-bottom: 1px solid #e3e7ee;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid var(--min-border-light);
|
||||
background: var(--min-bg-white);
|
||||
gap: 18px;
|
||||
|
||||
.flow-heading {
|
||||
@ -2767,9 +2767,9 @@ onUnmounted(() => {
|
||||
.flow-heading__name {
|
||||
overflow: hidden;
|
||||
max-width: 320px;
|
||||
color: #1f2937;
|
||||
color: var(--min-text-primary);
|
||||
font-size: 16px;
|
||||
font-weight: 650;
|
||||
font-weight: 600;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@ -2780,10 +2780,10 @@ onUnmounted(() => {
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 0 8px;
|
||||
border: 1px solid #dfe4ec;
|
||||
border-radius: 5px;
|
||||
background: #f8fafc;
|
||||
color: #687386;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-sm);
|
||||
background: var(--min-bg-page);
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 11px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@ -2838,7 +2838,7 @@ onUnmounted(() => {
|
||||
|
||||
.publish-actions {
|
||||
padding-left: 10px;
|
||||
border-left: 1px solid #e4e8ef;
|
||||
border-left: 1px solid var(--min-border-light);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2857,8 +2857,8 @@ onUnmounted(() => {
|
||||
margin: 0;
|
||||
width: 272px;
|
||||
padding: 0;
|
||||
border-right: 1px solid #e3e7ee;
|
||||
background: #f8fafc;
|
||||
border-right: 1px solid var(--min-border-light);
|
||||
background: var(--min-bg-page);
|
||||
}
|
||||
|
||||
.canvas-toolbar {
|
||||
@ -2869,26 +2869,26 @@ onUnmounted(() => {
|
||||
z-index: 20;
|
||||
align-items: center;
|
||||
padding: 4px;
|
||||
border: 1px solid #dfe4ec;
|
||||
border-radius: 7px;
|
||||
background: rgba(255, 255, 255, 0.96);
|
||||
box-shadow: 0 6px 18px rgba(31, 41, 55, 0.1);
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-bg-white);
|
||||
box-shadow: none;
|
||||
|
||||
.el-button {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 5px;
|
||||
border-radius: var(--min-radius-sm);
|
||||
background: transparent;
|
||||
color: #566174;
|
||||
color: var(--min-text-secondary);
|
||||
}
|
||||
|
||||
.el-button + .el-button { margin-left: 2px; }
|
||||
|
||||
.el-button:hover {
|
||||
background: #f1f5f9;
|
||||
color: #1f2937;
|
||||
background: var(--min-bg-page);
|
||||
color: var(--min-text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2896,7 +2896,7 @@ onUnmounted(() => {
|
||||
width: 1px;
|
||||
height: 18px;
|
||||
margin: 0 4px;
|
||||
background: #e1e6ed;
|
||||
background: var(--min-border-light);
|
||||
}
|
||||
|
||||
.flow__container {
|
||||
@ -2923,7 +2923,7 @@ onUnmounted(() => {
|
||||
|
||||
:deep(.vue-flow__edge-path),
|
||||
:deep(.vue-flow__connection-path) {
|
||||
stroke: #ff6b35;
|
||||
stroke: var(--min-primary);
|
||||
stroke-width: 2;
|
||||
}
|
||||
|
||||
@ -2936,14 +2936,14 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
:deep(.vue-flow__selection) {
|
||||
border: 1px solid #2f80ed;
|
||||
background: rgba(47, 128, 237, 0.1);
|
||||
box-shadow: 0 0 0 1px rgba(47, 128, 237, 0.08);
|
||||
border: 1px solid var(--min-primary);
|
||||
background: var(--min-primary-soft);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
:deep(.vue-flow__nodesselection-rect) {
|
||||
border: 1px dashed rgba(47, 128, 237, 0.72);
|
||||
background: rgba(47, 128, 237, 0.04);
|
||||
border: 1px dashed var(--min-primary);
|
||||
background: var(--min-primary-soft);
|
||||
}
|
||||
|
||||
:deep(.vue-flow__handle) {
|
||||
@ -2960,16 +2960,16 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
:deep(.vue-flow__edge.selected .vue-flow__edge-path) {
|
||||
stroke: #1677ff;
|
||||
stroke-width: 4;
|
||||
filter: drop-shadow(0 0 3px rgba(22, 119, 255, 0.45));
|
||||
stroke: var(--min-primary);
|
||||
stroke-width: 3;
|
||||
filter: none;
|
||||
}
|
||||
|
||||
:deep(.vue-flow__controls) {
|
||||
overflow: hidden;
|
||||
border: 1px solid #dfe4ec;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 6px 18px rgba(20, 33, 61, 0.12);
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -3011,7 +3011,7 @@ onUnmounted(() => {
|
||||
gap: 16px;
|
||||
min-height: 82px;
|
||||
padding: 14px 0;
|
||||
border-bottom: 1px solid #ebeef5;
|
||||
border-bottom: 1px solid var(--min-border-light);
|
||||
}
|
||||
|
||||
.version-history__main {
|
||||
@ -3029,7 +3029,7 @@ onUnmounted(() => {
|
||||
.version-history__meta,
|
||||
.version-history__note {
|
||||
margin-top: 6px;
|
||||
color: #606266;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
@ -47,12 +47,12 @@ const setNodeName = (name) => {
|
||||
.node__container {
|
||||
width: 300px;
|
||||
height: auto;
|
||||
background: #fff;
|
||||
background: var(--min-bg-white);
|
||||
padding: 12px;
|
||||
cursor: default;
|
||||
border-radius: 12px;
|
||||
border: 2px solid white;
|
||||
box-shadow: 0 5px 15px 0#00000008;
|
||||
border-radius: var(--min-radius-base);
|
||||
border: 1px solid var(--min-border-light);
|
||||
box-shadow: none;
|
||||
position: relative;
|
||||
|
||||
.title__container {
|
||||
@ -67,13 +67,13 @@ const setNodeName = (name) => {
|
||||
|
||||
.text {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
margin-left: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.subTitle {
|
||||
color: #737a87;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 12px;
|
||||
margin: 8px 0;
|
||||
}
|
||||
@ -82,9 +82,9 @@ const setNodeName = (name) => {
|
||||
|
||||
.input__container {
|
||||
width: 100%;
|
||||
background-color: #fafbfc;
|
||||
background-color: var(--min-bg-page);
|
||||
padding: 0 16px;
|
||||
border-radius: 8px;
|
||||
border-radius: var(--min-radius-base);
|
||||
box-sizing: border-box;
|
||||
|
||||
.title {
|
||||
@ -100,15 +100,15 @@ const setNodeName = (name) => {
|
||||
.tag {
|
||||
width: 3px;
|
||||
height: 16px;
|
||||
background: #1664ff;
|
||||
background: var(--min-primary);
|
||||
border-radius: 0 4px 4px 0;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.text {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: #0c0d0e;
|
||||
font-weight: 600;
|
||||
color: var(--min-text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
@ -196,7 +196,7 @@ const setNodeName = (name) => {
|
||||
margin-bottom: 12px;
|
||||
|
||||
.paramsTitle {
|
||||
color: #0c0d0e;
|
||||
color: var(--min-text-primary);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@ -260,56 +260,41 @@ onMounted(() => bindComponent(componentRef.value));
|
||||
|
||||
<style scoped lang="scss">
|
||||
.flow-node-shell {
|
||||
--node-accent: #4f6b8a;
|
||||
--node-accent: var(--min-primary);
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
|
||||
&--queue-drop-active .flow-node-content {
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.35), 0 10px 24px rgba(47, 128, 237, 0.18);
|
||||
border-radius: var(--min-radius-base);
|
||||
box-shadow: 0 0 0 2px var(--min-primary-soft);
|
||||
}
|
||||
|
||||
&--start,
|
||||
&--subStart { --node-accent: #239565; }
|
||||
|
||||
&--end,
|
||||
&--subEnd,
|
||||
&--stopLoop { --node-accent: #d45252; }
|
||||
|
||||
&--branch { --node-accent: #b7791f; }
|
||||
&--loop,
|
||||
&--currentLoop { --node-accent: #df6b35; }
|
||||
&--http,
|
||||
&--code { --node-accent: #3978c5; }
|
||||
&--sdAgent,
|
||||
&--recognize { --node-accent: #7a5ab8; }
|
||||
|
||||
&--loop,
|
||||
&--selectArea {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&:hover .flow-node-card {
|
||||
border-color: #cbd3df;
|
||||
box-shadow: 0 10px 26px rgba(31, 41, 55, 0.11);
|
||||
border-color: var(--min-border-strong);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&--selected .flow-node-card {
|
||||
border-color: #2f80ed;
|
||||
box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.2), 0 10px 26px rgba(31, 41, 55, 0.12);
|
||||
border-color: var(--min-primary);
|
||||
box-shadow: 0 0 0 1px var(--min-primary);
|
||||
}
|
||||
|
||||
&--selected.flow-node-shell--branch :deep(.node__container) {
|
||||
border-color: #2f80ed;
|
||||
border-color: var(--min-primary);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&--selected.flow-node-shell--loop :deep(.group__container),
|
||||
&--selected.flow-node-shell--selectArea :deep(.group__container) {
|
||||
border-color: #2f80ed;
|
||||
box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.18);
|
||||
border-color: var(--min-primary);
|
||||
box-shadow: 0 0 0 1px var(--min-primary);
|
||||
}
|
||||
}
|
||||
|
||||
@ -322,7 +307,7 @@ onMounted(() => bindComponent(componentRef.value));
|
||||
.flow-node-executor {
|
||||
overflow: hidden;
|
||||
margin-top: 8px;
|
||||
color: #667085;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 11px;
|
||||
line-height: 16px;
|
||||
text-overflow: ellipsis;
|
||||
@ -334,11 +319,11 @@ onMounted(() => bindComponent(componentRef.value));
|
||||
height: auto;
|
||||
padding: 13px 14px 13px 16px;
|
||||
position: relative;
|
||||
background: #fff;
|
||||
border: 1px solid #dfe4ec;
|
||||
border-left: 4px solid var(--node-accent);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 7px 20px rgba(31, 41, 55, 0.08);
|
||||
background: var(--min-bg-white);
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-left: 2px solid var(--node-accent);
|
||||
border-radius: var(--min-radius-base);
|
||||
box-shadow: none;
|
||||
box-sizing: border-box;
|
||||
transition: border-color 0.16s ease, box-shadow 0.16s ease;
|
||||
|
||||
@ -366,8 +351,8 @@ onMounted(() => bindComponent(componentRef.value));
|
||||
height: 38px;
|
||||
flex: 0 0 38px;
|
||||
place-items: center;
|
||||
border-radius: 50%;
|
||||
background: #f1f5f9;
|
||||
border-radius: var(--min-radius-sm);
|
||||
background: var(--min-bg-page);
|
||||
}
|
||||
|
||||
:deep(.terminal-node__icon img) {
|
||||
@ -378,16 +363,16 @@ onMounted(() => bindComponent(componentRef.value));
|
||||
:deep(.terminal-node__content) { min-width: 0; }
|
||||
|
||||
:deep(.terminal-node__title) {
|
||||
color: #1f2937;
|
||||
color: var(--min-text-primary);
|
||||
font-size: 15px;
|
||||
font-weight: 650;
|
||||
font-weight: 600;
|
||||
line-height: 21px;
|
||||
}
|
||||
|
||||
:deep(.terminal-node__description) {
|
||||
overflow: hidden;
|
||||
margin-top: 3px;
|
||||
color: #7a8494;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 11px;
|
||||
line-height: 16px;
|
||||
text-overflow: ellipsis;
|
||||
@ -398,19 +383,19 @@ onMounted(() => bindComponent(componentRef.value));
|
||||
.flow-handle {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border: 2px solid #fff;
|
||||
border: 2px solid var(--min-bg-white);
|
||||
background: var(--node-accent);
|
||||
box-shadow: 0 0 0 1px var(--node-accent), 0 2px 5px rgba(31, 41, 55, 0.18);
|
||||
box-shadow: 0 0 0 1px var(--node-accent);
|
||||
z-index: 10;
|
||||
transition: transform 0.14s ease, box-shadow 0.14s ease;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.18), 0 2px 6px rgba(31, 41, 55, 0.2);
|
||||
box-shadow: 0 0 0 2px var(--min-primary-soft);
|
||||
}
|
||||
|
||||
&--target {
|
||||
left: -6px;
|
||||
background: #fff;
|
||||
background: var(--min-bg-white);
|
||||
border-color: var(--node-accent);
|
||||
}
|
||||
|
||||
|
||||
@ -219,8 +219,8 @@ const features = [
|
||||
title: '设备接入',
|
||||
description: '配置机器人与终端设备',
|
||||
icon: SetUp,
|
||||
color: '#2563eb',
|
||||
background: '#eaf2ff',
|
||||
color: 'var(--min-primary)',
|
||||
background: 'var(--min-primary-soft)',
|
||||
menuTitles: ['设备注册', '设备配置管理', '设备管理'],
|
||||
fallback: '/device/register',
|
||||
},
|
||||
@ -228,8 +228,8 @@ const features = [
|
||||
title: '流程编排',
|
||||
description: '构建可视化测试工作流',
|
||||
icon: Operation,
|
||||
color: '#0f8a73',
|
||||
background: '#e7f6f2',
|
||||
color: 'var(--min-primary)',
|
||||
background: 'var(--min-primary-soft)',
|
||||
menuTitles: ['任务流程编排', '流程编排'],
|
||||
fallback: '/flow',
|
||||
},
|
||||
@ -237,8 +237,8 @@ const features = [
|
||||
title: '巡检执行',
|
||||
description: '调度机器人巡检任务',
|
||||
icon: Monitor,
|
||||
color: '#c56a16',
|
||||
background: '#fff3e5',
|
||||
color: 'var(--min-primary)',
|
||||
background: 'var(--min-primary-soft)',
|
||||
menuTitles: ['执行任务', '运行任务', '巡检任务执行'],
|
||||
fallback: '/inspection/runTask',
|
||||
},
|
||||
@ -246,8 +246,8 @@ const features = [
|
||||
title: '巡检配置',
|
||||
description: '管理地图、点位与任务',
|
||||
icon: Grid,
|
||||
color: '#6b57c7',
|
||||
background: '#f0edff',
|
||||
color: 'var(--min-primary)',
|
||||
background: 'var(--min-primary-soft)',
|
||||
menuTitles: ['巡检任务', '巡检地图', '地图管理'],
|
||||
fallback: '/inspection/task',
|
||||
},
|
||||
@ -255,8 +255,8 @@ const features = [
|
||||
title: '测试记录',
|
||||
description: '追踪执行结果与日志',
|
||||
icon: DocumentChecked,
|
||||
color: '#d14343',
|
||||
background: '#ffeded',
|
||||
color: 'var(--min-primary)',
|
||||
background: 'var(--min-primary-soft)',
|
||||
menuTitles: ['任务历史', '测试记录', '任务实例', '执行记录'],
|
||||
fallback: '/test/history',
|
||||
},
|
||||
@ -264,8 +264,8 @@ const features = [
|
||||
title: '语料中心',
|
||||
description: '管理语音与合成资源',
|
||||
icon: Headset,
|
||||
color: '#087f9c',
|
||||
background: '#e8f7fa',
|
||||
color: 'var(--min-primary)',
|
||||
background: 'var(--min-primary-soft)',
|
||||
menuTitles: ['语料库', '语料管理', '车载语料'],
|
||||
fallback: '/corpusManger/corpus',
|
||||
},
|
||||
@ -451,25 +451,29 @@ onBeforeUnmount(() => {
|
||||
|
||||
.hero-panel {
|
||||
position: relative;
|
||||
min-height: 236px;
|
||||
padding: 36px 42px;
|
||||
min-height: 196px;
|
||||
padding: 32px;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 32px;
|
||||
border-radius: 6px;
|
||||
background-image: url('../assets/images/index-background.jpg');
|
||||
background-position: center 48%;
|
||||
background-size: cover;
|
||||
color: #fff;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-bg-white);
|
||||
color: var(--min-text-primary);
|
||||
}
|
||||
|
||||
.hero-panel::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgba(8, 24, 37, 0.72);
|
||||
z-index: 0;
|
||||
background-image: url('../assets/images/index-background.jpg');
|
||||
background-position: center 48%;
|
||||
background-size: cover;
|
||||
filter: grayscale(1);
|
||||
opacity: 0.07;
|
||||
}
|
||||
|
||||
.hero-content,
|
||||
@ -487,7 +491,7 @@ onBeforeUnmount(() => {
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
margin-bottom: 13px;
|
||||
color: rgba(255, 255, 255, 0.82);
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
@ -495,26 +499,24 @@ onBeforeUnmount(() => {
|
||||
.state-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #35d2a0;
|
||||
box-shadow: 0 0 0 5px rgba(53, 210, 160, 0.16);
|
||||
animation: status-pulse 2.2s ease-in-out infinite;
|
||||
border-radius: var(--min-radius-sm);
|
||||
background: var(--min-primary);
|
||||
}
|
||||
|
||||
.hero-content h1 {
|
||||
margin: 0;
|
||||
font-size: 32px;
|
||||
font-size: 24px;
|
||||
line-height: 1.28;
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.hero-description {
|
||||
max-width: 670px;
|
||||
margin: 12px 0 22px;
|
||||
color: rgba(255, 255, 255, 0.76);
|
||||
font-size: 15px;
|
||||
line-height: 1.7;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 14px;
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
@ -531,25 +533,26 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
|
||||
.hero-actions :deep(.el-button--primary) {
|
||||
border-color: #1688e7;
|
||||
background: #1688e7;
|
||||
border-color: var(--min-primary);
|
||||
background: var(--min-primary);
|
||||
}
|
||||
|
||||
.cockpit-button {
|
||||
border-color: rgba(255, 255, 255, 0.42) !important;
|
||||
background: rgba(255, 255, 255, 0.1) !important;
|
||||
color: #fff !important;
|
||||
border-color: var(--min-border-light) !important;
|
||||
background: var(--min-bg-white) !important;
|
||||
color: var(--min-text-regular) !important;
|
||||
}
|
||||
|
||||
.cockpit-button:hover {
|
||||
border-color: #fff !important;
|
||||
background: rgba(255, 255, 255, 0.18) !important;
|
||||
border-color: var(--min-primary) !important;
|
||||
background: var(--min-primary-soft) !important;
|
||||
color: var(--min-primary) !important;
|
||||
}
|
||||
|
||||
.hero-time {
|
||||
min-width: 190px;
|
||||
padding-left: 26px;
|
||||
border-left: 1px solid rgba(255, 255, 255, 0.24);
|
||||
border-left: 1px solid var(--min-border-light);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
@ -565,7 +568,7 @@ onBeforeUnmount(() => {
|
||||
|
||||
.hero-time > span:last-child,
|
||||
.time-label {
|
||||
color: rgba(255, 255, 255, 0.72);
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@ -591,7 +594,7 @@ onBeforeUnmount(() => {
|
||||
color: var(--el-color-primary);
|
||||
font-size: 10px;
|
||||
line-height: 1.2;
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.section-heading h2,
|
||||
@ -621,15 +624,14 @@ onBeforeUnmount(() => {
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
border: 1px solid var(--el-border-color-lighter);
|
||||
border-radius: 6px;
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--el-bg-color);
|
||||
transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
|
||||
transition: border-color 160ms ease, background-color 160ms ease;
|
||||
}
|
||||
|
||||
.metric-card:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--el-border-color);
|
||||
box-shadow: 0 10px 24px rgba(28, 44, 64, 0.08);
|
||||
border-color: var(--min-border-strong);
|
||||
background: var(--min-bg-page);
|
||||
}
|
||||
|
||||
.metric-icon {
|
||||
@ -638,14 +640,17 @@ onBeforeUnmount(() => {
|
||||
flex: 0 0 48px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 6px;
|
||||
border-radius: var(--min-radius-base);
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.metric-icon--blue { color: #2563eb; background: #eaf2ff; }
|
||||
.metric-icon--green { color: #0f8a73; background: #e7f6f2; }
|
||||
.metric-icon--orange { color: #c56a16; background: #fff3e5; }
|
||||
.metric-icon--red { color: #d14343; background: #ffeded; }
|
||||
.metric-icon--blue,
|
||||
.metric-icon--green,
|
||||
.metric-icon--orange,
|
||||
.metric-icon--red {
|
||||
color: var(--min-primary);
|
||||
background: var(--min-primary-soft);
|
||||
}
|
||||
|
||||
.metric-content {
|
||||
min-width: 0;
|
||||
@ -666,7 +671,7 @@ onBeforeUnmount(() => {
|
||||
color: var(--el-text-color-primary);
|
||||
font-size: 28px;
|
||||
line-height: 1;
|
||||
font-weight: 650;
|
||||
font-weight: 600;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
@ -695,7 +700,7 @@ onBeforeUnmount(() => {
|
||||
min-width: 0;
|
||||
padding: 20px;
|
||||
border: 1px solid var(--el-border-color-lighter);
|
||||
border-radius: 6px;
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--el-bg-color);
|
||||
}
|
||||
|
||||
@ -836,7 +841,7 @@ onBeforeUnmount(() => {
|
||||
min-height: 76px;
|
||||
padding: 10px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 5px;
|
||||
border-radius: var(--min-radius-base);
|
||||
display: grid;
|
||||
grid-template-columns: 38px minmax(0, 1fr) 14px;
|
||||
align-items: center;
|
||||
@ -858,7 +863,7 @@ onBeforeUnmount(() => {
|
||||
height: 38px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 5px;
|
||||
border-radius: var(--min-radius-sm);
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
@ -955,11 +960,7 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
|
||||
:global(html.dark) .hero-panel::before {
|
||||
background: rgba(4, 13, 22, 0.82);
|
||||
}
|
||||
|
||||
:global(html.dark) .metric-card:hover {
|
||||
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
|
||||
opacity: 0.04;
|
||||
}
|
||||
|
||||
:global(html.dark) .metric-icon,
|
||||
@ -967,11 +968,6 @@ onBeforeUnmount(() => {
|
||||
background: var(--el-fill-color) !important;
|
||||
}
|
||||
|
||||
@keyframes status-pulse {
|
||||
0%, 100% { box-shadow: 0 0 0 4px rgba(53, 210, 160, 0.12); }
|
||||
50% { box-shadow: 0 0 0 7px rgba(53, 210, 160, 0.04); }
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.metric-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
@ -1005,7 +1001,7 @@ onBeforeUnmount(() => {
|
||||
.hero-time {
|
||||
width: 100%;
|
||||
padding: 18px 0 0;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.24);
|
||||
border-top: 1px solid var(--min-border-light);
|
||||
border-left: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
@ -76,8 +76,8 @@ onUnmounted(() => {
|
||||
// width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
margin: 0 20px;
|
||||
gap: 24px;
|
||||
margin: 0 24px;
|
||||
}
|
||||
|
||||
.left {
|
||||
@ -89,14 +89,14 @@ onUnmounted(() => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
color: #00c2ff;
|
||||
font-size: 16px;
|
||||
gap: 12px;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 2px;
|
||||
letter-spacing: 0;
|
||||
|
||||
.week {
|
||||
font-size: 18px;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -106,11 +106,11 @@ onUnmounted(() => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 26px;
|
||||
font-weight: 700;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
color: #00c2ff;
|
||||
letter-spacing: 4px;
|
||||
color: var(--min-text-primary);
|
||||
letter-spacing: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@ -126,11 +126,12 @@ onUnmounted(() => {
|
||||
gap: 12px ;
|
||||
|
||||
.nav-btn {
|
||||
background: rgba(0, 60, 140, 0.5);
|
||||
border: 1px solid rgba(0, 194, 255, 0.35);
|
||||
color: #a0d8f0;
|
||||
padding: 6px 20px;
|
||||
border-radius: 3px;
|
||||
height: 32px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-sm);
|
||||
background: var(--min-bg-white);
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
@ -138,10 +139,10 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
.active {
|
||||
background: rgba(0, 120, 220, 0.7);
|
||||
border-color: #00c2ff;
|
||||
color: #fff;
|
||||
box-shadow: 0 0 10px rgba(0, 194, 255, 0.5);
|
||||
background: var(--min-primary-soft);
|
||||
border-color: var(--min-primary);
|
||||
color: var(--min-primary);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -152,10 +153,10 @@ onUnmounted(() => {
|
||||
justify-content: center;
|
||||
font-family: 'Orbitron', monospace;
|
||||
font-size: 10px;
|
||||
color: rgba(0, 194, 255, 0.3);
|
||||
color: var(--min-text-placeholder);
|
||||
letter-spacing: 2px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -322,4 +322,58 @@ function onRelease() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.panel {
|
||||
.card {
|
||||
border-bottom-color: var(--min-border-light);
|
||||
|
||||
&__head h3 {
|
||||
color: var(--min-text-secondary);
|
||||
font-family: var(--min-font-family);
|
||||
font-weight: 600;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
:deep(.el-tag) {
|
||||
border-color: var(--min-border-light);
|
||||
background: var(--min-primary-soft);
|
||||
color: var(--min-primary);
|
||||
}
|
||||
|
||||
.dpad {
|
||||
&__btn,
|
||||
&__core {
|
||||
border-color: var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-bg-page);
|
||||
color: var(--min-text-regular);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&__btn:hover,
|
||||
&__btn:active {
|
||||
border-color: var(--min-primary);
|
||||
background: var(--min-primary-soft);
|
||||
color: var(--min-primary);
|
||||
box-shadow: none;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
&__core span { background: var(--min-primary); }
|
||||
}
|
||||
|
||||
.param {
|
||||
&__head { color: var(--min-text-secondary); }
|
||||
&__val { color: var(--min-primary); }
|
||||
|
||||
:deep(.el-slider__runway) { background: var(--min-border-light); }
|
||||
:deep(.el-slider__bar) { background: var(--min-primary); }
|
||||
:deep(.el-slider__button) {
|
||||
border-color: var(--min-primary);
|
||||
background: var(--min-bg-white);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -1083,6 +1083,148 @@ $panel-border: rgb(112 192 255 / 24%);
|
||||
audio { display: none; }
|
||||
}
|
||||
|
||||
.voice-conversation {
|
||||
color: var(--min-text-primary);
|
||||
background: var(--min-bg-white);
|
||||
|
||||
&::before,
|
||||
&::after,
|
||||
.tech-grid,
|
||||
.orbit-glow {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.corner-title {
|
||||
color: var(--min-text-primary);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
h1 {
|
||||
color: var(--min-text-primary);
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
p {
|
||||
color: var(--min-text-secondary);
|
||||
letter-spacing: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.microphone-orbit {
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-primary-soft);
|
||||
box-shadow: none;
|
||||
animation: none;
|
||||
|
||||
&::before {
|
||||
border-color: var(--min-primary);
|
||||
border-radius: var(--min-radius-sm);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.microphone-core {
|
||||
border-radius: var(--min-radius-sm);
|
||||
background: var(--min-primary);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.sound-wave i {
|
||||
border-radius: var(--min-radius-sm);
|
||||
background: var(--min-primary);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.floating-status {
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-sm);
|
||||
color: var(--min-text-regular);
|
||||
background: var(--min-bg-page);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.robot-volume {
|
||||
color: var(--min-text-secondary);
|
||||
|
||||
&__value { color: var(--min-text-primary); }
|
||||
|
||||
:deep(.el-slider__runway) { background: var(--min-border-light); }
|
||||
:deep(.el-slider__bar) { background: var(--min-primary); }
|
||||
:deep(.el-slider__button) {
|
||||
border-color: var(--min-primary);
|
||||
background: var(--min-bg-white);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.call-button) {
|
||||
border: 1px solid var(--min-primary);
|
||||
border-radius: var(--min-radius-base);
|
||||
color: #fff;
|
||||
background: var(--min-primary);
|
||||
box-shadow: none;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
border-color: var(--min-primary-hover);
|
||||
background: var(--min-primary-hover);
|
||||
transform: none;
|
||||
}
|
||||
|
||||
&.call-button--danger {
|
||||
border-color: var(--el-color-danger);
|
||||
background: var(--el-color-danger);
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.mute-button) {
|
||||
border-color: var(--min-border-light);
|
||||
color: var(--min-text-regular);
|
||||
background: var(--min-bg-white);
|
||||
|
||||
&:hover {
|
||||
border-color: var(--min-primary);
|
||||
color: var(--min-primary);
|
||||
background: var(--min-primary-soft);
|
||||
}
|
||||
}
|
||||
|
||||
.status-card {
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-bg-page);
|
||||
box-shadow: none;
|
||||
backdrop-filter: none;
|
||||
|
||||
.status-copy {
|
||||
p,
|
||||
p strong { color: var(--min-text-primary); }
|
||||
span { color: var(--min-text-secondary); }
|
||||
}
|
||||
}
|
||||
|
||||
.feature-tags {
|
||||
border-top-color: var(--min-border-light);
|
||||
|
||||
span {
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-sm);
|
||||
color: var(--min-text-secondary);
|
||||
background: var(--min-bg-white);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes orbit-breathe {
|
||||
0%, 100% { transform: scale(1); filter: brightness(1); }
|
||||
50% { transform: scale(1.035); filter: brightness(1.16); }
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<div class="robot-state">机器人状态</div>
|
||||
<div class="robot-info" v-for="item, index in robotList">
|
||||
<div class="title-box">
|
||||
<div><SvgIcon name="bot" :color="index === 0 ? '#00D4FF' : '#FFB300'" /></div>
|
||||
<div><SvgIcon name="bot" color="var(--min-primary)" /></div>
|
||||
<div class="title">{{ item.robotName }}</div>
|
||||
<div class="state" :class="agvRuntimeStatusClass(item.status)">{{ agvRuntimeStatusLabel(item.status) }}</div>
|
||||
</div>
|
||||
@ -44,18 +44,18 @@
|
||||
<div class="map-container">
|
||||
<div class="title-container">
|
||||
<div class="title">
|
||||
<SvgIcon name="map" color='#00D4FF' />
|
||||
<SvgIcon name="map" color="var(--min-primary)" />
|
||||
<span>实时地图 — 工厂园区</span>
|
||||
</div>
|
||||
<div class="map-controller">
|
||||
<div class="btn-container">
|
||||
<SvgIcon name="zoom-in" color='#00D4FF' :size="16" @click="zoomCanvas(true)" />
|
||||
<SvgIcon name="zoom-in" color="var(--min-primary)" :size="16" @click="zoomCanvas(true)" />
|
||||
</div>
|
||||
<div class="btn-container">
|
||||
<SvgIcon name="zoom-out" color='#00D4FF' :size="16" @click="zoomCanvas(false)" />
|
||||
<SvgIcon name="zoom-out" color="var(--min-primary)" :size="16" @click="zoomCanvas(false)" />
|
||||
</div>
|
||||
<div class="btn-container">
|
||||
<SvgIcon name="locate-fixed" color='#00D4FF' :size="16" @click="centerCanvasView" />
|
||||
<SvgIcon name="locate-fixed" color="var(--min-primary)" :size="16" @click="centerCanvasView" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -169,7 +169,7 @@ onUnmounted(() => {
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
<style lang="scss" scoped>
|
||||
.page-container {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
@ -46,7 +46,7 @@ import { agvRuntimeStatusClass, agvRuntimeStatusLabel } from '@/utils/agvRuntime
|
||||
|
||||
const videoUrl = ref('https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8')
|
||||
|
||||
const colorList = ['#00D4FF', '#FFB300', '#00FF88', '#fd00ff']
|
||||
const colorList = Array(4).fill('var(--min-primary)')
|
||||
|
||||
const robotList = ref([])
|
||||
|
||||
@ -206,4 +206,4 @@ onMounted(() => {
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div class="inspection-cockpit">
|
||||
<div class="header">
|
||||
<Header @active-page="activePage" />
|
||||
</div>
|
||||
@ -28,23 +28,195 @@ const activePage = (page) => {
|
||||
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.container {
|
||||
.inspection-cockpit {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
background-color: #000d2e;
|
||||
background-color: var(--min-bg-page);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.header {
|
||||
height: 64px;
|
||||
background: linear-gradient(180deg, rgba(0, 20, 70, 0.98) 0%, rgba(0, 10, 50, 0.95) 100%);
|
||||
border-bottom: 1px solid rgba(0, 194, 255, 0.3);
|
||||
background: var(--min-bg-white);
|
||||
border-bottom: 1px solid var(--min-border-light);
|
||||
}
|
||||
|
||||
.body-box {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
padding: 16px;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
<style lang="scss">
|
||||
.inspection-cockpit {
|
||||
color: var(--min-text-primary);
|
||||
|
||||
.binary-strip,
|
||||
.tech-grid,
|
||||
.orbit-glow {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.header-container {
|
||||
margin: 0 24px;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.page-container,
|
||||
> .body-box > .monitor-container {
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-bg-white);
|
||||
}
|
||||
|
||||
.left-container,
|
||||
.right-container {
|
||||
background: var(--min-bg-white);
|
||||
}
|
||||
|
||||
.robot,
|
||||
.robot-info,
|
||||
.task-box,
|
||||
.alarm-box,
|
||||
.mode-item,
|
||||
.control-panel,
|
||||
.joint-item,
|
||||
.panel .card,
|
||||
.status-card {
|
||||
border: 1px solid var(--min-border-light) !important;
|
||||
border-radius: var(--min-radius-base) !important;
|
||||
background: var(--min-bg-white) !important;
|
||||
box-shadow: none !important;
|
||||
color: var(--min-text-regular) !important;
|
||||
}
|
||||
|
||||
.robot.active,
|
||||
.mode-item.activeMode {
|
||||
border-color: var(--min-primary) !important;
|
||||
background: var(--min-primary-soft) !important;
|
||||
}
|
||||
|
||||
.title,
|
||||
.container-title,
|
||||
.robot-state,
|
||||
.bot-name,
|
||||
.item-detail,
|
||||
.task-info,
|
||||
.controller-panel,
|
||||
.panel h3,
|
||||
.status-copy p,
|
||||
.status-copy strong {
|
||||
color: var(--min-text-primary) !important;
|
||||
}
|
||||
|
||||
.item-title,
|
||||
.alarm-info,
|
||||
.bot-local,
|
||||
.label,
|
||||
.param__head,
|
||||
.status-copy span {
|
||||
color: var(--min-text-secondary) !important;
|
||||
}
|
||||
|
||||
.map-container,
|
||||
.video-container {
|
||||
border-color: var(--min-border-light) !important;
|
||||
background: var(--min-bg-white);
|
||||
}
|
||||
|
||||
.map-controller .btn-container {
|
||||
border: 1px solid var(--min-border-light) !important;
|
||||
border-radius: var(--min-radius-sm) !important;
|
||||
background: var(--min-bg-page) !important;
|
||||
}
|
||||
|
||||
.split-line {
|
||||
background: var(--min-border-light) !important;
|
||||
}
|
||||
|
||||
.panel .card,
|
||||
.direction-panel .card {
|
||||
border-width: 0 0 1px !important;
|
||||
}
|
||||
|
||||
.dpad__btn,
|
||||
.dpad__core {
|
||||
border: 1px solid var(--min-border-light) !important;
|
||||
border-radius: var(--min-radius-base) !important;
|
||||
background: var(--min-bg-page) !important;
|
||||
color: var(--min-text-regular) !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.dpad__btn:hover,
|
||||
.dpad__btn:active {
|
||||
border-color: var(--min-primary) !important;
|
||||
background: var(--min-primary-soft) !important;
|
||||
color: var(--min-primary) !important;
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
.joint-item .el-input-group__prepend,
|
||||
.joint-item .el-input-group__append,
|
||||
.joint-item .el-input__wrapper {
|
||||
border-color: var(--min-border-light) !important;
|
||||
background: var(--min-bg-white) !important;
|
||||
box-shadow: 0 0 0 1px var(--min-border-light) inset !important;
|
||||
color: var(--min-text-regular) !important;
|
||||
}
|
||||
|
||||
.voice-conversation {
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.header-container .left { display: none; }
|
||||
.application-title { justify-content: flex-start; }
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
> .body-box {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
> .body-box > .page-container,
|
||||
> .body-box > .monitor-container {
|
||||
height: auto !important;
|
||||
min-height: 100%;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.left-container,
|
||||
.right-container {
|
||||
width: 100% !important;
|
||||
height: auto !important;
|
||||
min-height: 320px;
|
||||
}
|
||||
|
||||
.map-container,
|
||||
.video-container {
|
||||
min-height: 420px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.header-container {
|
||||
margin: 0 12px;
|
||||
}
|
||||
|
||||
> .body-box {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.map-container,
|
||||
.video-container {
|
||||
min-height: 320px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -664,7 +664,7 @@ onUnmounted(() => {
|
||||
.left {
|
||||
width: 25%;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
background: var(--min-bg-white);
|
||||
padding: 16px;
|
||||
|
||||
.header {
|
||||
@ -672,7 +672,7 @@ onUnmounted(() => {
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 16px;
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid var(--min-border-light);
|
||||
}
|
||||
|
||||
.taskList-container {
|
||||
@ -682,9 +682,9 @@ onUnmounted(() => {
|
||||
|
||||
.task-item {
|
||||
padding: 12px;
|
||||
background: #fafafa;
|
||||
box-shadow: inset 0 0 0 1px #eee;
|
||||
border-radius: 8px;
|
||||
background: var(--min-bg-page);
|
||||
box-shadow: inset 0 0 0 1px var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
margin-bottom: 16px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s ease, box-shadow 0.2s ease;
|
||||
@ -705,7 +705,7 @@ onUnmounted(() => {
|
||||
|
||||
.task-title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.task-actions {
|
||||
@ -720,7 +720,7 @@ onUnmounted(() => {
|
||||
|
||||
.robot {
|
||||
margin-top: 8px;
|
||||
color: #666;
|
||||
color: var(--min-text-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -729,26 +729,26 @@ onUnmounted(() => {
|
||||
.right {
|
||||
flex: 1;
|
||||
padding: 16px;
|
||||
background: #fff;
|
||||
background: var(--min-bg-white);
|
||||
overflow: hidden;
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
margin-bottom: 16px;
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid var(--min-border-light);
|
||||
|
||||
.label {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
font-weight: 600;
|
||||
color: var(--min-text-regular);
|
||||
cursor: pointer;
|
||||
box-shadow: inset 0 0 0 1px #eee;
|
||||
box-shadow: inset 0 0 0 1px var(--min-border-light);
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.active {
|
||||
color: #409eff;
|
||||
box-shadow: inset 0 0 0 1px #409eff;
|
||||
color: var(--min-primary);
|
||||
box-shadow: inset 0 -2px 0 var(--min-primary);
|
||||
}
|
||||
}
|
||||
|
||||
@ -759,8 +759,8 @@ onUnmounted(() => {
|
||||
|
||||
.task {
|
||||
padding: 16px;
|
||||
background: #fafafa;
|
||||
border-radius: 20px;
|
||||
background: var(--min-bg-page);
|
||||
border-radius: var(--min-radius-base);
|
||||
margin-bottom: 12px;
|
||||
|
||||
.task-header {
|
||||
@ -774,11 +774,11 @@ onUnmounted(() => {
|
||||
|
||||
.title {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.id {
|
||||
color: #666;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 14px;
|
||||
margin: 8px 0;
|
||||
}
|
||||
@ -788,7 +788,7 @@ onUnmounted(() => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 50px;
|
||||
color: #666;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
@ -797,9 +797,9 @@ onUnmounted(() => {
|
||||
|
||||
.progress-label {
|
||||
margin-top: 12px;
|
||||
color: #666;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -716,7 +716,7 @@ onUnmounted(() => {
|
||||
.left {
|
||||
width: 25%;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
background: var(--min-bg-white);
|
||||
padding: 16px;
|
||||
|
||||
.header {
|
||||
@ -724,7 +724,7 @@ onUnmounted(() => {
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 16px;
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid var(--min-border-light);
|
||||
}
|
||||
|
||||
.taskList-container {
|
||||
@ -734,9 +734,9 @@ onUnmounted(() => {
|
||||
|
||||
.task-item {
|
||||
padding: 12px;
|
||||
background: #fafafa;
|
||||
box-shadow: inset 0 0 0 1px #eee;
|
||||
border-radius: 8px;
|
||||
background: var(--min-bg-page);
|
||||
box-shadow: inset 0 0 0 1px var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
margin-bottom: 16px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s ease, box-shadow 0.2s ease;
|
||||
@ -757,7 +757,7 @@ onUnmounted(() => {
|
||||
|
||||
.task-title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.task-actions {
|
||||
@ -772,7 +772,7 @@ onUnmounted(() => {
|
||||
|
||||
.robot {
|
||||
margin-top: 8px;
|
||||
color: #666;
|
||||
color: var(--min-text-secondary);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -781,26 +781,26 @@ onUnmounted(() => {
|
||||
.right {
|
||||
flex: 1;
|
||||
padding: 16px;
|
||||
background: #fff;
|
||||
background: var(--min-bg-white);
|
||||
overflow: hidden;
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
margin-bottom: 16px;
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid var(--min-border-light);
|
||||
|
||||
.label {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
font-weight: 600;
|
||||
color: var(--min-text-regular);
|
||||
cursor: pointer;
|
||||
box-shadow: inset 0 0 0 1px #eee;
|
||||
box-shadow: inset 0 0 0 1px var(--min-border-light);
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.active {
|
||||
color: #409eff;
|
||||
box-shadow: inset 0 0 0 1px #409eff;
|
||||
color: var(--min-primary);
|
||||
box-shadow: inset 0 -2px 0 var(--min-primary);
|
||||
}
|
||||
}
|
||||
|
||||
@ -811,8 +811,8 @@ onUnmounted(() => {
|
||||
|
||||
.task {
|
||||
padding: 16px;
|
||||
background: #fafafa;
|
||||
border-radius: 20px;
|
||||
background: var(--min-bg-page);
|
||||
border-radius: var(--min-radius-base);
|
||||
margin-bottom: 12px;
|
||||
|
||||
.task-header {
|
||||
@ -826,11 +826,11 @@ onUnmounted(() => {
|
||||
|
||||
.title {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.id {
|
||||
color: #666;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 14px;
|
||||
margin: 8px 0;
|
||||
}
|
||||
@ -840,7 +840,7 @@ onUnmounted(() => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 50px;
|
||||
color: #666;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
@ -849,9 +849,9 @@ onUnmounted(() => {
|
||||
|
||||
.progress-label {
|
||||
margin-top: 12px;
|
||||
color: #666;
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,8 +1,5 @@
|
||||
<template>
|
||||
<div class="lock-container">
|
||||
<!-- 动态粒子背景 -->
|
||||
<canvas ref="particleCanvas" class="particle-bg"></canvas>
|
||||
|
||||
<!-- 时钟 -->
|
||||
<div class="lock-time">{{ currentTime }}</div>
|
||||
<div class="lock-date">{{ currentDate }}</div>
|
||||
@ -11,7 +8,7 @@
|
||||
<div class="lock-card">
|
||||
<div class="avatar-wrap">
|
||||
<img :src="userStore.avatar" class="lock-avatar" @error="onAvatarError" />
|
||||
<div class="lock-icon">🔒</div>
|
||||
<div class="lock-icon"><el-icon><Lock /></el-icon></div>
|
||||
</div>
|
||||
<div class="lock-username">{{ userStore.nickName }}</div>
|
||||
<div class="lock-hint">系统已锁定,请输入密码解锁</div>
|
||||
@ -19,7 +16,7 @@
|
||||
<div class="input-wrap" :class="{ shake: isShaking }">
|
||||
<input ref="passwordInput" v-model="password" type="password" placeholder="请输入登录密码" class="lock-input" @keydown.enter="handleUnlock" autocomplete="off" />
|
||||
<button class="unlock-btn" @click="handleUnlock" :disabled="loading">
|
||||
<span v-if="!loading">→</span>
|
||||
<el-icon v-if="!loading"><Right /></el-icon>
|
||||
<span v-else class="loading-dot">···</span>
|
||||
</button>
|
||||
</div>
|
||||
@ -39,6 +36,7 @@ import useUserStore from '@/store/modules/user'
|
||||
import useLockStore from '@/store/modules/lock'
|
||||
import { unlockScreen } from '@/api/login'
|
||||
import defAva from '@/assets/images/profile.jpg'
|
||||
import { Lock, Right } from '@element-plus/icons-vue'
|
||||
|
||||
const router = useRouter()
|
||||
const userStore = useUserStore()
|
||||
@ -51,11 +49,8 @@ const isShaking = ref(false)
|
||||
const currentTime = ref('')
|
||||
const currentDate = ref('')
|
||||
const passwordInput = ref(null)
|
||||
const particleCanvas = ref(null)
|
||||
|
||||
let timer = null
|
||||
let animationId = null
|
||||
let particles = []
|
||||
|
||||
const onAvatarError = (e) => {
|
||||
e.target.src = defAva
|
||||
@ -108,98 +103,37 @@ const goLogin = () => {
|
||||
})
|
||||
}
|
||||
|
||||
const initParticles = () => {
|
||||
const canvas = particleCanvas.value
|
||||
if (!canvas) return
|
||||
const ctx = canvas.getContext('2d')
|
||||
const resize = () => {
|
||||
canvas.width = window.innerWidth
|
||||
canvas.height = window.innerHeight
|
||||
}
|
||||
resize()
|
||||
window.addEventListener('resize', resize)
|
||||
|
||||
particles = Array.from({ length: 80 }, () => ({
|
||||
x: Math.random() * canvas.width,
|
||||
y: Math.random() * canvas.height,
|
||||
r: Math.random() * 2 + 1,
|
||||
dx: (Math.random() - 0.5) * 0.6,
|
||||
dy: (Math.random() - 0.5) * 0.6,
|
||||
alpha: Math.random() * 0.5 + 0.2
|
||||
}))
|
||||
|
||||
const draw = () => {
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height)
|
||||
particles.forEach(p => {
|
||||
ctx.beginPath()
|
||||
ctx.arc(p.x, p.y, p.r, 0, Math.PI * 2)
|
||||
ctx.fillStyle = `rgba(255,255,255,${p.alpha})`
|
||||
ctx.fill()
|
||||
p.x += p.dx
|
||||
p.y += p.dy
|
||||
if (p.x < 0 || p.x > canvas.width) p.dx *= -1
|
||||
if (p.y < 0 || p.y > canvas.height) p.dy *= -1
|
||||
})
|
||||
for (let i = 0; i < particles.length; i++) {
|
||||
for (let j = i + 1; j < particles.length; j++) {
|
||||
const a = particles[i], b = particles[j]
|
||||
const dist = Math.hypot(a.x - b.x, a.y - b.y)
|
||||
if (dist < 120) {
|
||||
ctx.beginPath()
|
||||
ctx.moveTo(a.x, a.y)
|
||||
ctx.lineTo(b.x, b.y)
|
||||
ctx.strokeStyle = `rgba(255,255,255,${0.15 * (1 - dist / 120)})`
|
||||
ctx.lineWidth = 0.5
|
||||
ctx.stroke()
|
||||
}
|
||||
}
|
||||
}
|
||||
animationId = requestAnimationFrame(draw)
|
||||
}
|
||||
draw()
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
startClock()
|
||||
initParticles()
|
||||
nextTick(() => passwordInput.value?.focus())
|
||||
})
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
clearInterval(timer)
|
||||
cancelAnimationFrame(animationId)
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 样式与原文件完全一致,无需改动 */
|
||||
.lock-container {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
|
||||
background: var(--min-bg-page);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 9999;
|
||||
font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
||||
font-family: var(--min-font-family);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.particle-bg {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.lock-time {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
font-size: 72px;
|
||||
font-weight: 200;
|
||||
color: #fff;
|
||||
letter-spacing: 4px;
|
||||
text-shadow: 0 0 40px rgba(255,255,255,0.3);
|
||||
color: var(--min-text-primary);
|
||||
font-size: 48px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0;
|
||||
margin-bottom: 8px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
@ -208,25 +142,23 @@ onBeforeUnmount(() => {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
font-size: 15px;
|
||||
color: rgba(255,255,255,0.6);
|
||||
margin-bottom: 48px;
|
||||
letter-spacing: 2px;
|
||||
color: var(--min-text-secondary);
|
||||
margin-bottom: 32px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.lock-card {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
border-radius: 24px;
|
||||
padding: 40px 48px;
|
||||
width: 360px;
|
||||
width: min(400px, calc(100vw - 32px));
|
||||
padding: 32px;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-bg-white);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
box-shadow: 0 25px 60px rgba(0,0,0,0.4);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.avatar-wrap {
|
||||
@ -238,7 +170,7 @@ onBeforeUnmount(() => {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid rgba(255,255,255,0.3);
|
||||
border: 1px solid var(--min-border-light);
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
@ -247,27 +179,28 @@ onBeforeUnmount(() => {
|
||||
position: absolute;
|
||||
bottom: -4px;
|
||||
right: -4px;
|
||||
background: rgba(255,255,255,0.15);
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: 50%;
|
||||
background: var(--min-bg-white);
|
||||
color: var(--min-primary);
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 13px;
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.lock-username {
|
||||
color: #fff;
|
||||
color: var(--min-text-primary);
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 6px;
|
||||
letter-spacing: 1px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.lock-hint {
|
||||
color: rgba(255,255,255,0.5);
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 13px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
@ -276,16 +209,15 @@ onBeforeUnmount(() => {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: rgba(255,255,255,0.1);
|
||||
border: 1px solid rgba(255,255,255,0.2);
|
||||
border-radius: 50px;
|
||||
padding: 4px 4px 4px 20px;
|
||||
padding: 3px 3px 3px 12px;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-bg-white);
|
||||
transition: border-color 0.3s;
|
||||
}
|
||||
|
||||
.input-wrap:focus-within {
|
||||
border-color: rgba(255,255,255,0.6);
|
||||
background: rgba(255,255,255,0.13);
|
||||
border-color: var(--min-primary);
|
||||
}
|
||||
|
||||
.input-wrap.shake {
|
||||
@ -305,20 +237,20 @@ onBeforeUnmount(() => {
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
color: #fff;
|
||||
color: var(--min-text-primary);
|
||||
font-size: 15px;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.lock-input::placeholder {
|
||||
color: rgba(255,255,255,0.35);
|
||||
color: var(--min-text-placeholder);
|
||||
}
|
||||
|
||||
.unlock-btn {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, #667eea, #764ba2);
|
||||
border-radius: var(--min-radius-sm);
|
||||
background: var(--min-primary);
|
||||
border: none;
|
||||
color: #fff;
|
||||
font-size: 18px;
|
||||
@ -331,7 +263,7 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
|
||||
.unlock-btn:hover:not(:disabled) {
|
||||
transform: scale(1.08);
|
||||
background: var(--min-primary-hover);
|
||||
}
|
||||
|
||||
.unlock-btn:disabled {
|
||||
@ -346,7 +278,7 @@ onBeforeUnmount(() => {
|
||||
|
||||
.error-msg {
|
||||
margin-top: 14px;
|
||||
color: #ff7675;
|
||||
color: var(--el-color-danger);
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
animation: fadeIn 0.3s ease;
|
||||
@ -362,13 +294,19 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
|
||||
.lock-footer a {
|
||||
color: rgba(255,255,255,0.4);
|
||||
color: var(--min-text-secondary);
|
||||
font-size: 13px;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.lock-footer a:hover {
|
||||
color: rgba(255,255,255,0.8);
|
||||
color: var(--min-primary);
|
||||
}
|
||||
|
||||
@media (max-width: 520px) {
|
||||
.lock-time { font-size: 40px; }
|
||||
.lock-date { margin-bottom: 24px; }
|
||||
.lock-card { padding: 24px; }
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -167,33 +167,40 @@ getCookie()
|
||||
|
||||
<style lang='scss' scoped>
|
||||
.login {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: var(--min-bg-page);
|
||||
}
|
||||
.login::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
inset: 0;
|
||||
background-image: url("../assets/images/login-background.jpg");
|
||||
height: 100%;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
opacity: 0.3; /* 只在这层做透明 */
|
||||
filter: grayscale(1);
|
||||
opacity: 0.08;
|
||||
z-index: -1;
|
||||
}
|
||||
.title {
|
||||
margin: 0px auto 30px auto;
|
||||
text-align: center;
|
||||
color: #707070;
|
||||
margin: 0 0 32px;
|
||||
color: var(--min-text-primary);
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.login-form {
|
||||
border-radius: 6px;
|
||||
background: #ffffff;
|
||||
width: 400px;
|
||||
padding: 25px 25px 5px 25px;
|
||||
width: min(420px, calc(100% - 32px));
|
||||
padding: 40px 40px 20px;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-bg-white);
|
||||
.el-input {
|
||||
height: 40px;
|
||||
input {
|
||||
@ -209,7 +216,7 @@ getCookie()
|
||||
.login-tip {
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
color: #bfbfbf;
|
||||
color: var(--min-text-secondary);
|
||||
}
|
||||
.login-code {
|
||||
width: 33%;
|
||||
@ -227,13 +234,19 @@ getCookie()
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-family: Arial;
|
||||
color: var(--min-text-secondary);
|
||||
font-family: var(--min-font-family);
|
||||
font-size: 12px;
|
||||
letter-spacing: 1px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
.login-code-img {
|
||||
height: 40px;
|
||||
padding-left: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 520px) {
|
||||
.login-form {
|
||||
padding: 32px 24px 12px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -156,24 +156,40 @@ getCode()
|
||||
|
||||
<style lang='scss' scoped>
|
||||
.register {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: var(--min-bg-page);
|
||||
}
|
||||
.register::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
background-image: url("../assets/images/login-background.jpg");
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
filter: grayscale(1);
|
||||
opacity: 0.08;
|
||||
}
|
||||
.title {
|
||||
margin: 0px auto 30px auto;
|
||||
text-align: center;
|
||||
color: #707070;
|
||||
margin: 0 0 32px;
|
||||
color: var(--min-text-primary);
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.register-form {
|
||||
border-radius: 6px;
|
||||
background: #ffffff;
|
||||
width: 400px;
|
||||
padding: 25px 25px 5px 25px;
|
||||
width: min(420px, calc(100% - 32px));
|
||||
padding: 40px 40px 20px;
|
||||
border: 1px solid var(--min-border-light);
|
||||
border-radius: var(--min-radius-base);
|
||||
background: var(--min-bg-white);
|
||||
.el-input {
|
||||
height: 40px;
|
||||
input {
|
||||
@ -189,7 +205,7 @@ getCode()
|
||||
.register-tip {
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
color: #bfbfbf;
|
||||
color: var(--min-text-secondary);
|
||||
}
|
||||
.register-code {
|
||||
width: 33%;
|
||||
@ -207,13 +223,19 @@ getCode()
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-family: Arial;
|
||||
color: var(--min-text-secondary);
|
||||
font-family: var(--min-font-family);
|
||||
font-size: 12px;
|
||||
letter-spacing: 1px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
.register-code-img {
|
||||
height: 40px;
|
||||
padding-left: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 520px) {
|
||||
.register-form {
|
||||
padding: 32px 24px 12px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user