Skip to content

Conversation

@RSS1102
Copy link
Collaborator

@RSS1102 RSS1102 commented Oct 23, 2025

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

💡 需求背景和解决方案

原因:

  • Popper 在 expandAnimation 动画开始前创建可能尺寸为 0
    flip modifier 检测时认为"不会溢出"(因为尺寸是 0)
    选择了初始的 placement: right-start

  • 后续即使动画完成后元素有了正确尺寸update() 只调整位置,不会重新选择 placement
    所以始终停留在 right-start,不会翻转到 top

📝 更新日志

  • fix(Menu): 修复菜单项自动翻转失效的问题

  • 本条 PR 不需要纳入 Changelog

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

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

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 2025

完成

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 23, 2025

tdesign-vue2-demo-compiler-2-6

npm i https://pkg.pr.new/tdesign-vue@3744

commit: 3353ca5

@RSS1102 RSS1102 changed the title fix(popup): popper target element selection logic fix(menu): fix menu item auto-flip failure Oct 23, 2025
@RSS1102 RSS1102 force-pushed the rss1102/fix/menu-item/auto-flip branch from b0b33b9 to 3738031 Compare November 4, 2025 02:48
@uyarn uyarn merged commit 1769464 into develop Nov 7, 2025
9 checks passed
@uyarn uyarn deleted the rss1102/fix/menu-item/auto-flip branch November 7, 2025 01:34
@github-actions github-actions bot mentioned this pull request Nov 7, 2025
16 tasks
uyarn pushed a commit that referenced this pull request Nov 10, 2025
* fix(popup): force update popper after animation completes

* fix(popup): 支持自定义 popper 内容元素类型

* fix(popup): 修复 popperContentElement 的类型处理逻辑

* fix(popup): 添加 popperContentElement 的类型定义

* fix(popup): 修复 popperContentElement 的类型处理,确保正确类型转换
uyarn added a commit that referenced this pull request Nov 10, 2025
* feat(Watermark): support layout API (#3726)

* feat: support layout

* chore: update snapshot

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: merge deploy mode (#3728)

* chore(submodule): update common (#3736)

* chore(submodule): update common

* chore: fix typos

---------

Co-authored-by: 黎伟杰 <[email protected]>

* chore: add static prefix (#3737)

* fix(Tabs): disable drag event registration in non-drag scenarios (#3738)

* fix(textarea): add hide scrollbar when autosize is true (#3727)

* fix(textarea): 修复内容超长情况下,设置 autosize 没有完整自动撑开高度,存在有滚动条的问题

fix #5567

* chore: update snapshot

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix(tabs): 示例文档文案错误 (#3741)

* chore(submodule): update common (#3743)

* fix(calendar): fix calendar range issues (#3759)

* fix(calendar): 修复了当设定日历的range值为同一年内时,终止月份之后的月份选项没有正常禁用的问题

* fix(calendar): 修正了错误使用的rangeFromTo

* fix(calendar): 修复了年份选项错误地使用了月份选项禁用范围判定逻辑的问题

Co-Authored-By: 刘宇轩 (刘lyxAndy) <[email protected]>

---------

Co-authored-by: 刘宇轩 (刘lyxAndy) <[email protected]>

* fix(menu): fix menu item auto-flip failure (#3744)

* fix(popup): force update popper after animation completes

* fix(popup): 支持自定义 popper 内容元素类型

* fix(popup): 修复 popperContentElement 的类型处理逻辑

* fix(popup): 添加 popperContentElement 的类型定义

* fix(popup): 修复 popperContentElement 的类型处理,确保正确类型转换

* feat(cascader): support parent node filtering (#3763)

* feat(cascader): support parentnode filtering

* chore: demo

* chore: update snapshot

* chore: docs

* chore: docs

* chore: release 1.14.2 (#3764)

* chore: release 1.14.2

* chore: changelog's changes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: update snapshot

* chore: release 1.14.2-naruto

* chore: fix typo

* chore: update common

---------

Co-authored-by: Wesley <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: TDesign bot <[email protected]>
Co-authored-by: 黎伟杰 <[email protected]>
Co-authored-by: 阿菜 Cai <[email protected]>
Co-authored-by: engvuchen <[email protected]>
Co-authored-by: 树林 <[email protected]>
Co-authored-by: 刘宇轩 (刘lyxAndy) <[email protected]>
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.

3 participants