# vue-diy-rightmenu

> vue2版 自定义右键菜单

Latest version **1.0.1** (published 2022-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-diy-rightmenu
pnpm add vue-diy-rightmenu
yarn add vue-diy-rightmenu
bun add vue-diy-rightmenu
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-11-23 |
| First published | 2022-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | aFei |
| Maintainers | a1106728884 |
| Keywords | Vue2, diyRightMenu |

## Links

- npm: https://www.npmjs.com/package/vue-diy-rightmenu
- Repository: https://github.com/QuietHear/vue-diy-rightmenu
- Homepage: https://github.com/QuietHear
- Issues: https://github.com/QuietHear/vue-diy-rightmenu/issues
- npm.io page: https://npm.io/package/vue-diy-rightmenu

## Recent versions

- 1.0.1 (latest) — 2022-11-23
- 1.0.0 — 2022-11-17

## README

# 自定义右键菜单（vue2版）
[**vue3版本**](https://github.com/QuietHear/vue-diy-rightmenu-plus '浏览') | ***vue2版本*** 


## 安装
	npm i vue-diy-rightmenu

## 使用
	import vueDiyRightmenu from 'vue-diy-rightmenu';
	
	Vue.use(vueDiyRightmenu);


## 1. 参数
* `cname`：自定义class-->String;非必传;

* `hide-on-click`：点击menu列表后是否隐藏menu列表-->Boolean;非必传,默认true;


## 2. 插槽
* `默认插槽`：替换显示的内容

* `menu插槽`：替换默认menu列表
>
      <ul>
        <li>1</li>
        <li>2</li>
      </ul>
      <ul slot="menu">
        <li>11</li>
        <li>22</li>
      </ul>


## 3. 返回默认事件
* `clickDom`：鼠标右击的回调，返回选中的DOM

* `defaultEdit`：默认菜单列表的编辑回调，返回之前选中的DOM

* `defaultDelete`：默认菜单列表的删除回调，返回之前选中的DOM

---
_Source: https://npm.io/package/vue-diy-rightmenu · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
