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-diy-rightmenu-plus

v1.4.2

Published

自定义右键菜单 vue3版组件

Downloads

21

Readme

自定义右键菜单(vue3版)

vue3版本 | vue2版本

预览

clone项目后npm run preview即可

安装

npm i vue-diy-rightmenu-plus

使用

import vueDiyRightmenuPlus from "vue-diy-rightmenu-plus";
import "vue-diy-rightmenu-plus/index.css";

app.use(vueDiyRightmenuPlus);

0. 可改动样式变量

  • --menu-height:30px;-->按钮的高度

  • --menu-width:80px;-->按钮的宽度

  • --menu-title-height:28px;-->按钮组标题的高度

1. 参数

  • groupList:按钮组数据-->Array;非必传;默认*[]*
// 示例
[
	{
		name:'a',
		data:[
			{label:'编辑',value:'编辑value',icon:{type:'el',icon:'Apple'}}
		]
	}
]
  • list:按钮数据,优先级高于groupList-->Array;非必传;默认如下
// 默认
[
    {
      label: "编辑",
      value: "编辑value",
      icon: { icon: '√' }
	  // attrs的值会v-bind到对应dom上
	  // type的值,有以下四种情况:
	  // custom,此时为自定义组件,icon为组件名(!!!未内置,确保当前页面或全局已引入)
	  // el,此时为el-icon,icon为图标组件名(!!!未内置,确保当前页面或全局已引入)
	  // iconfont,此时为iconfont,icon为图标去掉icon-后部分(!!!未内置,确保当前页面或全局已引入)
	  // 其他,此时为本地自定义图标,type为class,icon为内容
    },
    {
      label: "删除",
      value: "删除value"
    },
]
  • props:按钮键值配置-->Object;非必传;默认*{}*
// 配置项说明
name:'name' // 按钮组标题
data:'data' // 按钮组数据
label:'label' // 按钮的内容
value:'value' // 点击按钮的返回值
icon:'icon' // 点击按钮图标
  • hideOnClick:点击按钮后是否隐藏弹窗-->Boolean;非必传;默认true

  • @menuClick:弹窗按钮被点击后触发返回事件-->第一个参数返回按钮的value值

  • @popShow:弹窗打开触发返回事件

  • @popClose:弹窗关闭触发返回事件

2. 插槽

  • 默认插槽:替换触发事件区域

更多vue3组件

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