{"id":13509618,"url":"https://github.com/michitaro/vue-menu","last_synced_at":"2025-04-05T07:06:11.971Z","repository":{"id":24940115,"uuid":"102819594","full_name":"michitaro/vue-menu","owner":"michitaro","description":"Menu/Contextmenu Component for vue2","archived":false,"fork":false,"pushed_at":"2022-10-02T07:00:38.000Z","size":1531,"stargazers_count":261,"open_issues_count":12,"forks_count":26,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T06:07:35.716Z","etag":null,"topics":["component","contextmenu","javascript","menu","typescript","vue"],"latest_commit_sha":null,"homepage":"https://michitaro.github.io/vue-menu/","language":"TypeScript","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/michitaro.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}},"created_at":"2017-09-08T05:02:00.000Z","updated_at":"2025-01-03T15:12:23.000Z","dependencies_parsed_at":"2022-08-07T11:01:30.358Z","dependency_job_id":null,"html_url":"https://github.com/michitaro/vue-menu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michitaro%2Fvue-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michitaro%2Fvue-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michitaro%2Fvue-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michitaro%2Fvue-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michitaro","download_url":"https://codeload.github.com/michitaro/vue-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299832,"owners_count":20916190,"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":["component","contextmenu","javascript","menu","typescript","vue"],"created_at":"2024-08-01T02:01:10.422Z","updated_at":"2025-04-05T07:06:11.943Z","avatar_url":"https://github.com/michitaro.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","UI组件","Components \u0026 Libraries","UI Components","GOOD-OLD-OSs","UI Components [🔝](#readme)"],"sub_categories":["菜单","UI Components","Menu"],"readme":"# vue-menu\n\n😣 This library is not compatible with Vue3! 😣\n\n## Introduction\n\nRecent web technologies focus on mobile environments. UIs premised on mouse operation such as window, context-menu, nested-menu and so on are no longer mainstream. However hierarchical structure -- context-menu and nested-menu -- is still effective. This package is an implementation of {nested,context}-menu for PC environments as a Vue Component.\n\n### [Working Demo](https://michitaro.github.io/vue-menu)\n### Features\n* Menu component for vue2\n* Deeply nested menu supported\n* Props \"checked\" \u0026 \"disabled\"\n* Keybinds\n* Y-scrollable if necessary\n* Contextmenu\n* Builtin 3 themes (white, metal \u0026 black)\n* Customizable color\n* Menuitem can contain any HTML not only text\n* Tested on Safari10, Chrome60, Firefox55, IE11, Edge38 for PCs\n* ~~Does not work on mobile devices 😞~~\n\n![Screenshot](./docs/screenshot.png)\n\n# Usage\n## Install\n```sh\nnpm install --save @hscmap/vue-menu\n```\n\n## Setup\n\n### ES6 / TypeScript\n```typescript\nimport Vue from 'vue'\nimport * as VueMenu from '@hscmap/vue-menu'\n\nVue.use(VueMenu)\n```\n\n### CommonJS\n```javascript\nvar Vue = require('vue')\nVue.use(require('@hscmap/vue-menu'))\n```\n\n# Example\n```html\n\u003ctemplate\u003e\n    \u003chsc-menu-style-white\u003e\n        \u003chsc-menu-bar style=\"border-radius: 0 0 4pt 0;\"\u003e\n            \u003chsc-menu-bar-item label=\"File\"\u003e\n                \u003chsc-menu-item label=\"New\" @click=\"window.alert('New')\" /\u003e\n                \u003chsc-menu-item label=\"Open\" @click=\"window.alert('Open')\" /\u003e\n                \u003chsc-menu-separator/\u003e\n                \u003chsc-menu-item label=\"Save\" @click=\"window.alert('Save')\" :disabled=\"true\" /\u003e\n                \u003chsc-menu-item label=\"Export to\"\u003e\n                    \u003chsc-menu-item label=\"PDF\" /\u003e\n                    \u003chsc-menu-item label=\"HTML\" /\u003e\n                \u003c/hsc-menu-item\u003e\n            \u003c/hsc-menu-bar-item\u003e\n            \u003chsc-menu-bar-item label=\"Edit\"\u003e\n                \u003chsc-menu-item label=\"Undo\" keybind=\"meta+z\" @click=\"window.alert('Undo')\" /\u003e\n                \u003chsc-menu-separator/\u003e\n                \u003chsc-menu-item label=\"Cut\" keybind=\"meta+x\" @click=\"window.alert('Cut')\" /\u003e\n                \u003chsc-menu-item label=\"Copy\" keybind=\"meta+c\" @click=\"window.alert('Copy')\" /\u003e\n                \u003chsc-menu-item label=\"Paste\" keybind=\"meta+v\" @click=\"window.alert('Paste')\" :disabled=\"true\" /\u003e\n            \u003c/hsc-menu-bar-item\u003e\n        \u003c/hsc-menu-bar\u003e\n    \u003c/hsc-menu-style-white\u003e\n\u003c/template\u003e\n```\nOther examples are available [here](http://michitaro.github.io/vue-menu/).\n\nSee also [vue-window](https://github.com/michitaro/vue-window). This is a window UI component  for vue2 with the same color themes.\n\n# Caveats\n* ~~This component doesn't work on [electron-vue](https://github.com/SimulatedGREG/electron-vue).~~\n  * See [here](https://github.com/michitaro/vue-menu/issues/5#issuecomment-450770617) to use with [electron-vue](https://github.com/SimulatedGREG/electron-vue).\n\n# Contributing\nAny comments, suggestions or PRs are welcome 😀\n\n# React Port\nReact port is available [here](https://github.com/michitaro/react-menu).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichitaro%2Fvue-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichitaro%2Fvue-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichitaro%2Fvue-menu/lists"}