From 53484ddbb5b5a3b6372d97c7cea3c22186a6d672 Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Fri, 12 Jul 2024 17:54:19 +0800 Subject: [PATCH] feat(layout): the realization of full screen display function --- package.json | 1 + pnpm-lock.yaml | 19 +++++++ src/App.vue | 31 +++++----- src/languages/modules/en.ts | 1 + src/languages/modules/zh.ts | 1 + src/layouts/components/Header/headerRight.vue | 1 + .../components/SettingDrawer/index.vue | 56 ++++++++++--------- src/layouts/index.vue | 9 +-- src/main.ts | 3 + src/stores/interface/index.ts | 3 +- src/stores/modules/global.ts | 2 + 11 files changed, 80 insertions(+), 47 deletions(-) diff --git a/package.json b/package.json index 0f1dd230..cd536c2b 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "vite-project": "link:", "vue": "^3.4.31", "vue-draggable-plus": "^0.5.2", + "vue-fullscreen": "^3.1.2", "vue-i18n": "^9.13.1", "vue-router": "^4.4.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6b613381..b515edf1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -41,6 +41,9 @@ importers: vue-draggable-plus: specifier: ^0.5.2 version: 0.5.2(@types/sortablejs@1.15.8) + vue-fullscreen: + specifier: ^3.1.2 + version: 3.1.2(vue@3.4.31(typescript@5.5.3)) vue-i18n: specifier: ^9.13.1 version: 9.13.1(vue@3.4.31(typescript@5.5.3)) @@ -2704,6 +2707,10 @@ packages: engines: {node: '>=14.0.0'} hasBin: true + screenfull@5.2.0: + resolution: {integrity: sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==} + engines: {node: '>=0.10.0'} + seemly@0.3.8: resolution: {integrity: sha512-MW8Qs6vbzo0pHmDpFSYPna+lwpZ6Zk1ancbajw/7E8TKtHdV+1DfZZD+kKJEhG/cAoB/i+LiT+5msZOqj0DwRA==} @@ -3255,6 +3262,11 @@ packages: peerDependencies: eslint: '>=6.0.0' + vue-fullscreen@3.1.2: + resolution: {integrity: sha512-RFftYkafpb/lW8crXMfSAjiuhRhOsRRxemE84U3NL/Uoa1DwHGf61fxYE26oajlM7mqF7QrTLoLT2py3xyX0Ew==} + peerDependencies: + vue: ^3.0.0 + vue-i18n@9.13.1: resolution: {integrity: sha512-mh0GIxx0wPtPlcB1q4k277y0iKgo25xmDPWioVVYanjPufDBpvu5ySTjP5wOrSvlYQ2m1xI+CFhGdauv/61uQg==} engines: {node: '>= 16'} @@ -6066,6 +6078,8 @@ snapshots: immutable: 4.3.6 source-map-js: 1.2.0 + screenfull@5.2.0: {} + seemly@0.3.8: {} semver@5.7.2: {} @@ -6688,6 +6702,11 @@ snapshots: transitivePeerDependencies: - supports-color + vue-fullscreen@3.1.2(vue@3.4.31(typescript@5.5.3)): + dependencies: + screenfull: 5.2.0 + vue: 3.4.31(typescript@5.5.3) + vue-i18n@9.13.1(vue@3.4.31(typescript@5.5.3)): dependencies: '@intlify/core-base': 9.13.1 diff --git a/src/App.vue b/src/App.vue index 675e7ab8..710073d6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,16 +1,18 @@