react-component / menu

React Menu
https://menu.react-component.now.sh/
MIT License
682 stars 248 forks source link

feat: add `type` to SubMenuType and MenuItemType #693

Closed madocto closed 8 months ago

madocto commented 8 months ago

ref: ant-design/ant-design#47260

items.forEach((item) => {
  console.log(item.type) // "submenu" | "item" | "group" | "divider"
})
codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.58%. Comparing base (d21b6bb) to head (56632f6). Report is 5 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #693 +/- ## ======================================= Coverage 99.58% 99.58% ======================================= Files 27 27 Lines 721 721 Branches 196 198 +2 ======================================= Hits 718 718 Misses 3 3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.