From 50579e9d2701d56e5e874bdbc41fe42e9a82c477 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Mon, 21 Mar 2022 16:09:36 +0800 Subject: [PATCH] chore: pageContainer width height --- docs/.vuepress/theme/components/DcloudSearchPage/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/.vuepress/theme/components/DcloudSearchPage/index.vue b/docs/.vuepress/theme/components/DcloudSearchPage/index.vue index 57e0ff9d3..69726f571 100644 --- a/docs/.vuepress/theme/components/DcloudSearchPage/index.vue +++ b/docs/.vuepress/theme/components/DcloudSearchPage/index.vue @@ -341,6 +341,11 @@ if (window.matchMedia('(max-width: 600px)').matches) { this.snippetLength = 15; } + + if (this.$refs.pageContainer) { + this.$refs.pageContainer.style.maxHeight = document.documentElement.clientHeight; + this.$refs.pageContainer.style.maxWidth = document.documentElement.clientWidth; + } }, switchCategory(index) { -- GitLab