Skip to content

Conversation

@chenth-chn
Copy link

主要优化:

  1. 创建了 useFormItemEvents 和 useCommonEvents 钩子函数,消除重复的事件处理代码
  2. 在渲染函数外计算 omittedProps 和 renderExtraFooter,避免重复计算
  3. 使用 usePickerExpose 统一管理组件的暴露方法
  4. 两个组件的 onChange、onBlur、onOpenChange、onFocus 逻辑完全一致,通过钩子函数复用
  5. 避免在每次渲染时重复创建相同的函数和计算相同的值

@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant