# vue-drag-menu-plus

> 可拖拽菜单 vue3版组件

Latest version **1.4.2** (published 2024-08-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-drag-menu-plus
pnpm add vue-drag-menu-plus
yarn add vue-drag-menu-plus
bun add vue-drag-menu-plus
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.2 |
| Published | 2024-08-09 |
| First published | 2022-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | aFei |
| Maintainers | a1106728884 |
| Keywords | Vue3, drag, menu |

## Links

- npm: https://www.npmjs.com/package/vue-drag-menu-plus
- Repository: https://github.com/QuietHear/vue-drag-menu-plus
- Homepage: https://github.com/QuietHear
- Issues: https://github.com/QuietHear/vue-drag-menu-plus/issues
- npm.io page: https://npm.io/package/vue-drag-menu-plus

## Recent versions

- 1.4.2 (latest) — 2024-08-09
- 1.4.1 — 2024-03-21
- 1.4.0 — 2023-09-21
- 1.3.0 — 2023-06-29
- 1.2.2 — 2023-02-20
- 1.2.1 — 2023-01-18
- 1.2.0 — 2023-01-18
- 1.1.1 — 2023-01-17
- 1.1.0 — 2023-01-12
- 1.0.0 — 2022-11-29
- 0.0.1 — 2022-11-29

## README

# 可拖拽菜单（vue3版）
***vue3版本*** | [**vue2版本**](https://github.com/QuietHear/vue-drag-menu '右键新窗口浏览')


## 预览
	clone项目后npm run preview即可


## 安装
	npm i vue-drag-menu-plus


## 使用
	import vueDragMenuPlus from "vue-drag-menu-plus";
	import "vue-drag-menu-plus/index.css";
	
	app.use(vueDragMenuPlus);


## 0. 可改动样式变量
* `--menu-item-width`：60px;-->按钮的高度

* `--menu-item-height`：60px;-->按钮的宽度

* `--menu-item-size`：46px;-->图标字体大小


## 1. 参数
* `list`：按钮数据-->Array;非必传;默认如下
>
	// 默认值，内置了一套按钮图片，可自行查看
	   [
        {
          icon: {
            type: "icon-insert icon-setting"
          },
          title: "菜单",
          style: {
            background: "#fff",
            color: "",
          },
        },
        {
          icon: {
            type: "icon-insert icon-myCenter"
          },
          style: {
            background: "rgb(255, 92, 92)",
          },
        },
        {
          icon: {
            type: "icon-insert icon-notice"
          },
          style: {
            background: "rgb(92, 209, 255)",
          },
        },
        {
          icon: {
            type: "icon-insert icon-expression"
          },
          style: {
            background: "rgb(255, 241, 92)",
          },
        },
        {
          icon: {
            type: "icon-insert icon-collection"
          },
          style: {
            background: "rgb(100, 245, 146)",
          },
        },
      ]
	// 配置项说明
	"style":'' // 按钮容器的内联样式
	"title":'' // 按钮鼠标放上显示文字
	"icon":{  // 菜单图标
		"attrs":{},
		"type":'',
		"icon":''
	}
	//
	// attrs的值会v-bind到对应dom上
	// type的值，有以下四种情况：
	// custom，此时为自定义组件,icon为组件名（！！！未内置，确保当前页面或全局已引入）
	// el，此时为el-icon,icon为图标组件名（！！！未内置，确保当前页面或全局已引入）
	// iconfont，此时为iconfont，icon为图标去掉icon-后部分（！！！未内置，确保当前页面或全局已引入）
	// 其他，此时为本地自定义图标，type为class，icon为内容
	//
>

* `closeOnClick`：非第一个的按钮点击时是否需要收起菜单-->Boolean;非必传;默认*true*

* `@click`：按钮被点击时触发-->第一个参数返回当前按钮原对象，第二个参数为当前点击下标


## 更多vue3组件
[**自定义右键菜单**](https://github.com/QuietHear/vue-diy-rightmenu-plus '右键新窗口浏览') | [**拖拽卡片布局组件**](https://github.com/QuietHear/vue-drag-component-plus '右键新窗口浏览') | ***可拖拽菜单*** | [**echarts组件**](https://github.com/QuietHear/vue-echarts-block-plus '右键新窗口浏览') | [**基于el-menu的菜单组件**](https://github.com/QuietHear/vue-ele-nav-plus '右键新窗口浏览') | [**面包屑组件**](https://github.com/QuietHear/vue-permission-breads-plus '右键新窗口浏览') | [**滑动拼图**](https://github.com/QuietHear/vue-puzzle-slider-plus '右键新窗口浏览') | [**工作日历**](https://github.com/QuietHear/vue-shop-calendar-plus '右键新窗口浏览') | [**多页签组件**](https://github.com/QuietHear/vue-tabs-plus '右键新窗口浏览') | [**uEditor**](https://github.com/QuietHear/vue-ueditor-block-plus '右键新窗口浏览') | [**wangEditor**](https://github.com/QuietHear/vue-wangEditor-block-plus '右键新窗口浏览') | [**年密度组件**](https://github.com/QuietHear/vue-year-density-plus '右键新窗口浏览')

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