AntDesign TabPane 最小高度 100% [英] AntDesign TabPane min-height 100%

查看:435
本文介绍了AntDesign TabPane 最小高度 100%的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Ant.Design 标签

解决方案

这对我有用.

<行><Col style={{minHeight: "100vh", maxheight: "100vh"}}>测试</Col></行></TabPane>

Using Ant.Design Tabs https://ant.design/components/tabs/

How can I set styling on TabPane so that it's min-height is always 100% height of the window even when it's empty?

Below example should cover the window with color #F5F5F5

解决方案

This has worked for me.

<TabPane tab={tab.title} key={index}>
<Row>
  <Col style={{minHeight: "100vh", maxheight: "100vh"}}>
   Test
  </Col>
</Row>
</TabPane>

这篇关于AntDesign TabPane 最小高度 100%的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆