Skip to content

Conversation

@xiaosi-ss
Copy link
Contributor

  • 修复 isTooltipProps 函数逻辑,正确区分 ReactNode 和 Tooltip props
  • 字符串、数字、React 元素等 ReactNode 类型现在被正确处理
  • 只有包含 title、children 或 placement 等属性的对象才被当作 props
  • 添加完整的单元测试覆盖各种 tooltip 类型场景

Before submitting a pull request, please make sure the following is done...

  • Ensure the pull request title and commit message follow the Commit Specific in English.
  • Fork the repo and create your branch from master or formily_next.
  • If you've added code that should be tested, add tests!
  • If you've changed APIs, update the documentation.
  • Ensure the test suite passes (npm test).
  • Make sure your code lints (npm run lint) - we've done our best to make sure these rules match our internal linting guidelines.

Please do not delete the above content


What have you changed?

CleanShot 2025-07-08 at 17 32 02

@CLAassistant
Copy link

CLAassistant commented Jul 8, 2025

CLA assistant check
All committers have signed the CLA.

@xiaosi-ss xiaosi-ss force-pushed the fix/form-item-tooltip-string-props-issue-4302 branch 2 times, most recently from 404925a to 7a89ad1 Compare July 8, 2025 09:47
- 修复 isTooltipProps 函数逻辑,正确区分 ReactNode 和 Tooltip props
- 字符串、数字、React 元素等 ReactNode 类型现在被正确处理
- 只有包含 title、children 或 placement 等属性的对象才被当作 props
- 添加完整的单元测试覆盖各种 tooltip 类型场景
@xiaosi-ss xiaosi-ss force-pushed the fix/form-item-tooltip-string-props-issue-4302 branch from 7a89ad1 to 1077190 Compare July 11, 2025 07:09
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.

2 participants