# v-contextmenu
**Repository Path**: sanri/v-contextmenu
## Basic Information
- **Project Name**: v-contextmenu
- **Description**: 🖱 ContextMenu based on Vue 2.0
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 1
- **Created**: 2020-09-09
- **Last Updated**: 2024-12-02
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# v-contextmenu
[![NPM version][badge-npm-version]][url-npm]
[![Node version][badge-node-version]][url-npm]
[![NPM download][badge-npm-download]][url-npm]
![Dependencies][badge-dependencies]
![License][badge-license]
[![NPM][image-npm]][url-npm]
ContextMenu component for Vue 2.0.
**English | [䏿–‡](./README.md)**
## Installation
### CDN
Get the latest version from [unpkg.com/v-contextmenu](https://unpkg.com/v-contextmenu/), and then import JavaScript and CSS file in your page.
``` html
```
> NPM is recommended.
### NPM
```bash
$ npm i -S v-contextmenu # yarn add v-contextmenu
```
## Gallery

[Go online examples](https://heynext.github.io/v-contextmenu) or [see online examples' GIF](./docs/images/example.gif)
## Usage
A simple example
```javascript
import contentmenu from 'v-contextmenu'
import 'v-contextmenu/dist/index.css'
Vue.use(contentmenu)
```
```html
Menu Item 1Menu Item 2Menu Item 3
Right click here
```
See [usage](./docs/usage-en.md) & [examples](./examples) for more details.
> See [Stoneless](./examples/Stoneless.vue) to manually import.
## Theme
There are three themes,see [VContextmenu](./docs/usage-en.md#vcontextmenu) for more details.
**Default**

**Bright**

**Dark**

## Develop
```bash
$ npm install
$ npm run dev
```
## Build
```bash
$ npm run build:package # Build for npm
$ npm run build:example # Build for site
$ npm run build # build:package & build:example
```
## Changelog
See [releases][url-releases]
[badge-npm-version]: https://img.shields.io/npm/v/v-contextmenu.svg
[badge-node-version]: https://img.shields.io/node/v/v-contextmenu.svg
[badge-npm-download]: https://img.shields.io/npm/dt/v-contextmenu.svg
[badge-license]: https://img.shields.io/github/license/heynext/v-contextmenu.svg
[badge-dependencies]: https://img.shields.io/david/dev/heynext/v-contextmenu.svg
[url-npm]: https://npmjs.org/package/v-contextmenu
[url-dependencies]: https://david-dm.org/vkbansal/v-contextmenu
[url-releases]: https://github.com/heynext/v-contextmenu/releases
[image-npm]: https://nodei.co/npm/v-contextmenu.png