【问题标题】:How does Material UI Tab Indicator style override work?Material UI 选项卡指示器样式覆盖如何工作?
【发布时间】:2019-11-28 16:51:12
【问题描述】:

在文档的Customized tabs 部分,我们看到它使用withStyles api 定义了一个组件AntTab

const AntTabs = withStyles({
  root: {
    borderBottom: '1px solid #e8e8e8',
  },
  indicator: {
    backgroundColor: '#1890ff',
  },
})(Tabs);

但是Tab CSS api 上没有列出indicator 类规则(而且我似乎也没有在源代码中找到该类)

所以我的问题是:material-ui 是如何理解这个 CSS 规则的?我错过了什么?

【问题讨论】:

    标签: material-ui


    【解决方案1】:

    我自己想通了。

    我查看了错误的 API。应该是Tabs CSS Api

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-08-10
      • 2020-01-30
      • 2019-03-07
      • 2020-08-07
      • 1970-01-01
      • 2020-05-27
      • 2020-06-13
      • 2020-07-10
      相关资源
      最近更新 更多