From e628384b098b91e2d38e668da7f8fbef47d1edd4 Mon Sep 17 00:00:00 2001 From: Zakary Date: Wed, 8 Dec 2021 15:36:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(route):=20taro-page=20=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E6=9D=A1=E5=85=B1=E4=BA=AB=E9=97=AE=E9=A2=98=20fix=20#7974?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-components/src/global.css | 7 +++++++ packages/taro-components/stencil.config.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 packages/taro-components/src/global.css diff --git a/packages/taro-components/src/global.css b/packages/taro-components/src/global.css new file mode 100644 index 000000000000..5b5bee0a78e1 --- /dev/null +++ b/packages/taro-components/src/global.css @@ -0,0 +1,7 @@ +@import url(../node_modules/weui/dist/style/weui.min.css); + +.taro_page { + height: 100vh; + overflow-x: hidden; + overflow-y: scroll; +} diff --git a/packages/taro-components/stencil.config.ts b/packages/taro-components/stencil.config.ts index 7b5c3b1a704f..5e865e89ba18 100644 --- a/packages/taro-components/stencil.config.ts +++ b/packages/taro-components/stencil.config.ts @@ -4,7 +4,7 @@ const { jsWithTs: tsjPreset } = require('ts-jest/presets') export const config: Config = { namespace: 'taro-components', - globalStyle: './node_modules/weui/dist/style/weui.min.css', + globalStyle: './src/global.css', plugins: [ sass() ],