|
|
@@ -5,7 +5,8 @@
|
|
|
<img src="@/assets/images/logo.png" />
|
|
|
</div>
|
|
|
<div class="title glow-text" :data-text="title">{{ title }}</div>
|
|
|
- <div class="top-right-user">
|
|
|
+ <div class="top-right-actions">
|
|
|
+ <FullscreenToggle />
|
|
|
<UserProfile />
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -84,6 +85,7 @@ import BottomDock from '@/components/ui/BottomDock.vue';
|
|
|
import SmartDialog from '@/components/ui/SmartDialog.vue';
|
|
|
import dialogManager from '@/mixins/dialogManager';
|
|
|
import UserProfile from '@/components/ui/UserProfile.vue';
|
|
|
+import FullscreenToggle from '@/components/ui/FullscreenToggle.vue';
|
|
|
|
|
|
// 注册所有可能在弹窗中使用的内容组件
|
|
|
import DeviceStatusPanel from '@/components/ui/DeviceStatusPanel.vue';
|
|
|
@@ -113,6 +115,7 @@ export default {
|
|
|
BottomDock,
|
|
|
SmartDialog,
|
|
|
UserProfile,
|
|
|
+ FullscreenToggle,
|
|
|
DeviceStatusPanel,
|
|
|
SecurityRoutePanel,
|
|
|
IntersectionMapVideos,
|
|
|
@@ -310,12 +313,15 @@ export default {
|
|
|
pointer-events: auto;
|
|
|
}
|
|
|
|
|
|
-.top-right-user {
|
|
|
+.top-right-actions {
|
|
|
position: absolute;
|
|
|
- top: 2px; /* 距离顶部的高度,可根据背景图微调 */
|
|
|
- right: 50px; /* 距离右侧的距离 */
|
|
|
- pointer-events: auto; /* 【关键】因为 frame-top 是 none,必须在这里恢复鼠标交互,否则无法点击下拉 */
|
|
|
- z-index: 100; /* 保证层级最高,下拉菜单不被遮挡 */
|
|
|
+ top: 2px;
|
|
|
+ right: 50px;
|
|
|
+ pointer-events: auto;
|
|
|
+ z-index: 100;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 12px;
|
|
|
}
|
|
|
.top-logo {
|
|
|
position: absolute;
|