diff --git a/settings.yaml b/settings.yaml index f427c21..ac24fce 100644 --- a/settings.yaml +++ b/settings.yaml @@ -62,6 +62,32 @@ spec: - group: basic_style label: '基础样式' formSchema: + - $formkit: group + name: console + label: 控制台 + help: 仅支持pc端显示 + value: + pc_show_console: false + pc_console_icon: ri-equalizer-line + pc_console_title: 控制台 + children: + - $formkit: radio + name: pc_show_console + id: pc_show_console + label: 显示控制台 + options: + - label: 显示 + value: true + - label: 隐藏 + value: false + - $formkit: text + name: pc_console_icon + if: $get(pc_show_console).value + label: 控制台图标,留空显示默认图标 + - $formkit: text + name: pc_console_title + if: $get(pc_show_console).value + label: 控制台鼠标悬停提示,留空不显示 - $formkit: radio name: load_progress label: 加载进度条 diff --git a/src/css/style.less b/src/css/style.less index 190c884..f318ab7 100644 --- a/src/css/style.less +++ b/src/css/style.less @@ -906,6 +906,23 @@ table td, table th { } } + .navbar-console { + float: right; + margin-left: 5px; + background: var(--theme); + border-radius: 50%; + height: 34px; + width: 34px; + align-items: center; + justify-content: center; + display: flex; + + & > i { + font-size: 18px; + color: #fff; + } + } + &.solid { backdrop-filter: unset; box-shadow: unset; @@ -3965,6 +3982,10 @@ button.swiper-pagination-bullet { .navbar-search { display: none; } + + .navbar-console { + display: none; + } } } @@ -4003,6 +4024,10 @@ button.swiper-pagination-bullet { .navbar-searchicon { margin-left: 0; } + + .navbar-console { + display: none; + } } .swiper-button-prev, diff --git a/templates/common/navbar.html b/templates/common/navbar.html index 3d909ca..fb2ee1d 100644 --- a/templates/common/navbar.html +++ b/templates/common/navbar.html @@ -66,6 +66,10 @@
+ + +