Skip to content

tabs 使用英文或者特殊符号的内容,tab-item元素出现小数点宽度,导致transformSize mergedBasicSize计算不准 #7945

@luckean

Description

@luckean
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.6

Environment

正式

Reproduction link

https://hm5rpp-5173.csb.app/

Steps to reproduce

<script setup lang="ts">
import { Tabs,TabPane } from 'ant-design-vue/es';
const tabs = ['中文anc','中文/','中文中文','中文中文中文','中文中文中文中文中文','英文英文英文英文英文'];
</script>

<template>
<div>
<Tabs>
<TabPane v-for="(item,index) in tabs" :key="index" :tab="item"></TabPane>
</Tabs>
</div>
</template>

What is expected?

期望修复

What is actually happening?

出现小数点之后,计算出错,无法隐藏更多的图标

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions