Skip to content

NutEllipsis省略表现奇怪 #3260

Open
@holyfata

Description

@holyfata

NutUI 包名

@nutui/nutui

NutUI 版本号

4.3.13

平台

h5

重现链接

https://github.com/holyfata-reproduction/nutui-issue3256-reproduction

重现步骤

  • 创建vue模板项目
  • 安装nutui
  • 创建两个nut-ellip...并且设置不同字号

期望的结果是什么?

24号字体也应该省略末尾而不是全部

Image

实际的结果是什么?

23号字体省略末尾,但是24号省略了全部

环境信息

System:
OS: Windows 11 10.0.26100
CPU: (24) x64 12th Gen Intel(R) Core(TM) i7-12800HX
Memory: 7.25 GB / 15.74 GB
Binaries:
Node: 18.20.8 - ~\AppData\Local\fnm_multishells\21492_1744377092286\node.EXE
Yarn: 1.22.22 - ~\AppData\Local\fnm_multishells\21492_1744377092286\yarn.CMD
npm: 10.8.2 - ~\AppData\Local\fnm_multishells\21492_1744377092286\npm.CMD
pnpm: 10.7.1 - ~\AppData\Local\fnm_multishells\21492_1744377092286\pnpm.CMD
Browsers:
Edge: Chromium (134.0.3124.93)
npmPackages:
@nutui/nutui: ^4.3.13 => 4.3.13

其他补充信息

#3256 复现过程中发现的问题,可能是同一个原因吧

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