Skip to content

[Feature Request] modify tabs-item's padding cause active-bar's width and transform error #15355

@bibi941

Description

@bibi941

Existing Component

Component Name

tabs

Description

修改了 tabs 组件下的 tabs item 的 padding 默认为 0 20 (修改为0 15),导致了下方的 active bar(滑条)的位置的宽度计算出错,
查看了一下源码 barStyle有一个 if (sizeName === 'width' && offset !== 0) { offset += 20;} ,是否有不修改源码,可以设置 padding的方法呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions