We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tabs-content 里内容高度调整后,容器的高度没有跟着变化
<mp-tabs tabs="{{tabs}}" activeTab="{{activeTab}}" swiperClass="weui-tabs-swiper" bindtabclick="onTabCLick" bindchange="onChange" activeClass="tab-bar-title__selected" > <block wx:for="{{tabs}}" wx:key="title"> <view class="tab-content" slot="tab-content-{{index}}" > <view style="height: 300px;"> {{item.title}} </view></view> </block> </mp-tabs> <view> ---- footer ---- </view>
这是移除了样式表里的高度设置
.tab-content { width: 100%; display: flex; justify-content: center; align-items: center; box-sizing: border-box; padding: 40rpx; }
The text was updated successfully, but these errors were encountered:
.weui-tabs-swiper { height: 100vh; } .tab-content { height: calc(100vh - 200rpx) !important; overflow-y: auto !important; }
Sorry, something went wrong.
https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/extended/component-plus/tabs.html 注意事项里有说明
No branches or pull requests
tabs-content 里内容高度调整后,容器的高度没有跟着变化
这是移除了样式表里的高度设置
The text was updated successfully, but these errors were encountered: