Skip to content

Commit

Permalink
feat(route): taro-page 滚动条共享问题 fix #7974
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Dec 8, 2021
1 parent e3c91d0 commit 35005c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/taro-components/src/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@import url(../node_modules/weui/dist/style/weui.min.css);

.taro_page {
max-height: 100vh;
overflow-x: hidden;
overflow-y: scroll;
}
2 changes: 1 addition & 1 deletion packages/taro-components/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
],
Expand Down

0 comments on commit 35005c9

Please sign in to comment.