{"id":15381608,"url":"https://github.com/guojikun/contextmenu","last_synced_at":"2026-02-04T03:38:16.489Z","repository":{"id":57749109,"uuid":"409093535","full_name":"GuoJikun/contextmenu","owner":"GuoJikun","description":"一个适用于vue3的右键菜单组件","archived":false,"fork":false,"pushed_at":"2023-10-07T08:42:03.000Z","size":134,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T18:03:52.333Z","etag":null,"topics":["context-menu","contextmenu","vue3"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GuoJikun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-09-22T06:45:55.000Z","updated_at":"2022-08-08T10:06:53.000Z","dependencies_parsed_at":"2024-10-18T00:35:15.482Z","dependency_job_id":null,"html_url":"https://github.com/GuoJikun/contextmenu","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"af8e76ec77dd36e9976d410bcab5d269617f0360"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GuoJikun/contextmenu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuoJikun%2Fcontextmenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuoJikun%2Fcontextmenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuoJikun%2Fcontextmenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuoJikun%2Fcontextmenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuoJikun","download_url":"https://codeload.github.com/GuoJikun/contextmenu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuoJikun%2Fcontextmenu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264763451,"owners_count":23660316,"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":["context-menu","contextmenu","vue3"],"created_at":"2024-10-01T14:28:12.114Z","updated_at":"2026-02-04T03:38:16.449Z","avatar_url":"https://github.com/GuoJikun.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yakContextmenu 鼠标右键菜单\n\n## 安装\n\n```bash\nnpm i @ivy/contextmenu\n```\n\n## 使用\n\n```js\nimport {\n  createApp\n} from \"vue\";\nimport App from \"./App.vue\";\nimport Contextmenu from \"contextmenu\";\nimport \"contextmenu/dist/index.css\";\n\ncreateApp(App).use(Contextmenu).mount(\"#app\");\n```\n\n## Attr 和 event\n\n| 属性名        | 说明                                                   | 类型   | 默认值 |\n| ------------- | ------------------------------------------------------ | ------ | ------ |\n| options         | 配置菜单的数组。例子:[{command: 'copy', text: '复制'}] | Array  | []     |\n| menuWrapClass | 菜单容器的类名。                                       | String | -      |\n| menuItemClass | 菜单子项的类名。                                       | String | -      |\n| menu-click    | 点击菜单时触发的事件，默认参数是一个 Object。          | -      | -      |\n| width    | 设置菜单的宽度          | String/Number      | 200px     |\n| container    | 菜单生效的元素          | HTMLElement | 合法的css选择器      | document.body      |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguojikun%2Fcontextmenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguojikun%2Fcontextmenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguojikun%2Fcontextmenu/lists"}