{"id":16184114,"url":"https://github.com/lx544690189/react-menu","last_synced_at":"2025-03-19T02:31:07.954Z","repository":{"id":86422156,"uuid":"145499818","full_name":"lx544690189/react-menu","owner":"lx544690189","description":"react右键菜单，contextMenu","archived":false,"fork":false,"pushed_at":"2018-09-26T09:41:20.000Z","size":10161,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T14:08:20.241Z","etag":null,"topics":["contextmenu","react"],"latest_commit_sha":null,"homepage":"https://github.com/lx544690189/react-menu","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lx544690189.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-21T03:09:57.000Z","updated_at":"2022-09-30T01:41:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"5cd3e7db-d6c3-4519-aefa-aae440a167de","html_url":"https://github.com/lx544690189/react-menu","commit_stats":{"total_commits":27,"total_committers":2,"mean_commits":13.5,"dds":0.03703703703703709,"last_synced_commit":"48123734c6b7ab3534932b0bb2e2f834734300f4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lx544690189%2Freact-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lx544690189%2Freact-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lx544690189%2Freact-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lx544690189%2Freact-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lx544690189","download_url":"https://codeload.github.com/lx544690189/react-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960434,"owners_count":20375101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contextmenu","react"],"created_at":"2024-10-10T07:09:01.897Z","updated_at":"2025-03-19T02:31:07.949Z","avatar_url":"https://github.com/lx544690189.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scorpio-menu\n[![NPM](https://nodei.co/npm/scorpio-menu.png?downloads=true\u0026downloadRank=true)](https://www.npmjs.com/package/scorpio-menu)\n\n### [查看demo](https://lx544690189.github.io/react-menu/)\n\n## 介绍\n基于react的右键菜单\n\n## 安装\n\n```sh\nnpm i scorpio-menu\n```\n\n## Attributes\n\n参数 | 类型 | 默认值 | 说明\n---|---|---|---\ndata | object[] | - | 菜单数据，看下面详情\nshow | boolean | false | 显示/隐藏\nonClose | Function(e: React.MouseEvent) | - | 隐藏按钮时的回调（点击非按钮区域）\nonMenuClick | Function(d: data) | - | 点击某一选中菜单的回调，回调参数为菜单data数据\n\n## data对象\nkey | 说明\n---|---\nlabel | 菜单显示名称\ndisabled | 是否禁用\nsubMenu | 子菜单object\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flx544690189%2Freact-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flx544690189%2Freact-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flx544690189%2Freact-menu/lists"}