Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add filename tooltip when the filename is too long #2753

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yatbfm
Copy link

@yatbfm yatbfm commented Mar 10, 2025

中文模板 / Chinese Template

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Test Case
  • TypeScript definition update
  • Document improve
  • CI/CD improve
  • Branch sync
  • Other, please describe:

PR description

Feat #2705
resolve #2705 根据建议添加功能。
当预览的文件名超长时会省略,鼠标悬浮在文件名时默认弹出提示展示全部文件名。
思路是利用 Typograph.Text 组件属性中 ellipsisshowTooltip 值,默认为 true

  • 当传入 false 时,不展示
  • 当传入类型为 ShowTooltip 时,可以自定义弹出层组件

Changelog

🇨🇳 Chinese

  • Feat: 添加文件名超长时弹出文件名提示功能

🇺🇸 English

  • Feat: Added a pop-up file name prompt function when the file name is too long

Checklist

  • Test or no need
  • Document or no need
  • Changelog or no need

Other

  • Skip Changelog

Additional information

image image

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 112d4dc:

Sandbox Source
pr-story Configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

upload组件上传文件名称过长的展示问题
1 participant