npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-drag-menu-plus

v1.4.2

Published

可拖拽菜单 vue3版组件

Downloads

6

Readme

可拖拽菜单(vue3版)

vue3版本 | vue2版本

预览

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组件

自定义右键菜单 | 拖拽卡片布局组件 | 可拖拽菜单 | echarts组件 | 基于el-menu的菜单组件 | 面包屑组件 | 滑动拼图 | 工作日历 | 多页签组件 | uEditor | wangEditor | 年密度组件