简体   繁体   English

如何更改Semantic-UI React的选项卡标题宽度(垂直选项卡)

[英]How to change tab headers width (vertical tabs) for Semantic-UI React

I'm using Semantic-UI React. 我正在使用Semantic-UI React。

<Tab
  menu={{
    fluid: true,
    vertical: true,
    tabular: true
  }}
  panes={this.getTabPanes()}
/>

It works fine, but Tab headers are two wide. 它工作正常,但Tab标题是两个宽。 在此输入图像描述

How to change it to the absolute value (100px for example)? 如何将其更改为绝对值(例如100px)?

If you take a look at the docs for Tab , there is a prop called grid that accepts an object with two values for those grid column widths. 如果您查看Tab的文档 ,有一个名为grid的prop,它接受一个对象,该对象具有两个值,用于这些网格列宽。 For instance, you can pass this and it will change the size grid={{paneWidth: 6, tabWidth: 2}} 例如,你可以传递它,它将改变大小grid={{paneWidth: 6, tabWidth: 2}}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM