Skip to content

TDTag: 新增fixedWidth参数固定宽度属性,可自定义Tag的宽度,修复TextOverflow.ellipsis溢出title问题 #496

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

Merged
merged 11 commits into from
Mar 11, 2025

Conversation

Jzow
Copy link
Contributor

@Jzow Jzow commented Feb 26, 2025

🤔 这个 PR 的性质是?

勾选规则:
1.只要有新增参数,就勾选”新特性提交“
2.只修改内部bug,未新增参数,才勾选”日常 bug 修复“
3.其他选项视具体改动判断

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

#442

💡 需求背景和解决方案

  1. 增加固定宽度属性,使用户可以自定义Tag的宽度,让组件看起来更加美观。
  2. 暂时不考虑对齐方式,一旦添加AlignmentGeometry对齐,现有的测试用例改动比较多。
  3. 添加TextOverflow.ellipsis处理溢出title的情况。

📝 更新日志

  • fix(组件名称): 处理问题或特性描述 ...

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • pr目标分支为develop分支,请勿直接往main分支合并
  • 标题格式为:组件类名: 修改描述(示例:TDBottomTabBar: 修复iconText模式,底部溢出2.5像素)
  • ”相关issue“处带上修复的issue链接
  • 相关文档已补充或无须补充

@Jzow Jzow changed the title [Improve][TDTag] Add the fixedWidth field to handle fixed widths TDTag: Add the fixedWidth field to handle fixed widths Feb 26, 2025
@Jzow
Copy link
Contributor Author

Jzow commented Feb 26, 2025

After the review is confirmed to be correct, add documents.

@Luozf12345
Copy link
Collaborator

@Luozf12345
Copy link
Collaborator

flutter最新版本(3.30.0-1.0.pre.341)打包失败,请检查代碼。

2 similar comments
@Luozf12345
Copy link
Collaborator

flutter最新版本(3.30.0-1.0.pre.341)打包失败,请检查代碼。

@Luozf12345
Copy link
Collaborator

flutter最新版本(3.30.0-1.0.pre.341)打包失败,请检查代碼。

@Jzow Jzow mentioned this pull request Feb 27, 2025
@Luozf12345
Copy link
Collaborator

flutter最新版本(3.29.1)编译成功

@Luozf12345
Copy link
Collaborator

@zflyluo zflyluo merged commit 98ea809 into Tencent:develop Mar 11, 2025
3 checks passed
@Jzow Jzow deleted the Issue-442 branch March 12, 2025 01:24
@github-actions github-actions bot mentioned this pull request Mar 20, 2025
16 tasks
@Jzow Jzow changed the title TDTag: Add the fixedWidth field to handle fixed widths TDTag: 新增fixedWidth参数固定宽度属性,可自定义Tag的宽度,修复TextOverflow.ellipsis溢出title问题 Mar 21, 2025
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.

4 participants