You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add itemData to onSelect and onClick callback (#864)
* feat: add info.item to onSelect and onClick callback
- Add info.item to MenuInfo interface to expose menu item config (label, icon, disabled, extra, etc.)
- Support both items config and children mode
- Add unit tests for info.item in onSelect and onClick
- Update README documentation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* feat: update MenuItem type to MenuItemInfo for onSelect and onClick callbacks
* Update src/utils/nodeUtil.tsx
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* feat: update MenuItemInfo type and refactor info item handling in nodeUtil
* fix: update key in info.item to use mergedKey in convertItemsToNodes
* feat: update event payload to use itemData instead of info.item in MenuItem
* feat: update MenuItem test to include itemData handling in onSelect and onClick
* chore: trigger CI re-run
---------
Co-authored-by: 刘欢 <lh01217311@antgroup.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
0 commit comments