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() ],