diff --git a/src/components/Screenfull/index.vue b/src/components/Screenfull/index.vue index ad315c9..5f3a92a 100644 --- a/src/components/Screenfull/index.vue +++ b/src/components/Screenfull/index.vue @@ -3,17 +3,25 @@ import { ref, onUnmounted } from "vue" import { ElMessage } from "element-plus" import screenfull from "screenfull" +const props = defineProps({ + areaScreenFull: { + type: Boolean, + required: false + } +}) + type contentType = "全屏" | "退出全屏" const content = ref("全屏") const isFullscreen = ref(false) const click = () => { + const element = document.querySelector(".app-container") || undefined if (!screenfull.isEnabled) { ElMessage.warning("您的浏览器无法工作") return } - screenfull.toggle() + screenfull.toggle(props.areaScreenFull ? element : undefined) } const change = () => { diff --git a/src/layout/components/TagsView/ScrollPane.vue b/src/layout/components/TagsView/ScrollPane.vue index 438f4af..d616e0e 100644 --- a/src/layout/components/TagsView/ScrollPane.vue +++ b/src/layout/components/TagsView/ScrollPane.vue @@ -1,7 +1,11 @@ @@ -77,5 +85,23 @@ const scrollTo = (direction: "left" | "right") => { display: inline-block; } } + + .right-menu-item { + padding: 0 10px; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + .right-menu-avatar { + display: flex; + align-items: center; + .el-avatar { + margin-right: 10px; + } + span { + font-size: 16px; + } + } + } }