GithubHelp home page GithubHelp logo

vue3-contextmenu's Introduction

wechat Gmail

🍕 I'm Hunlongyu

  • 全栈开发一枚
  • 热爱编程, 拥抱开源
  • 热衷跨平台开发
  • 热衷桌面端开发

chrome Windows Apple Linux Android

🍔 技术栈

JavaScript C++ Rust

sass Vue.js Electron.js NodeJS Qt

Visual Studio Code Visual Studio Sublime Text

访客数 👀

hunlongyu :: Visitor's Count

Top Langs Hunlongyu's github stats

vue3-contextmenu's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vue3-contextmenu's Issues

安装问题

image
请问安装后一直报错是为什么呢?而且好像types没有打包

ContextMenu触发点和菜单间传递变量

感谢大牛开源 ~~ 给您拜个早年~~

有个情景,假设表格有10行数据,每行一个ContextMenu 触发点。
需求是:触发ContextMenu时传递id给菜单

<context-menu>
  <context-menu-item @click="deleteById($context.id)" :divider="true">
    <span>Delete Row By Id: {{ $context.id }}</span>
  </context-menu-item>
</context-menu>

<div v-contextmenu="{id: '123456789'}">
      data
</div>

不知是否可以百忙之中抽空实现一下?

Failed to resolve component: contextmenu

在某个子组件下使用
<context-menu ref="context"> <context-menu-item @click="refresh" :divider="true">刷新</context-menu-item> <context-menu-item @itemClickHandle="itemClickEvent" :divider="true">停止</context-menu-item> </context-menu>
会出现Failed to resolve component: contextmenu,并且是直接呈现在页面上·不会右键才出现

只能在App.vue使用??

多个contextmenu 父子级关系 就只显示父级的菜单

举个例子:

   <a-row :gutter="[10, 10]" style="margin-top:20px" v-contextmenu="{ name: 'boxmenu'  }">
            <a-col :span="4" v-for="info in state.showfiles" style="z-index:999999" 
                v-contextmenu="{ name: 'dirmenu', info: info }">
            .......
            </a-col>
          </a-row>

下面的dirmenu就是去效果 显示的还是boxmenu

npm 上不是最新版本

npm 上的 0.2.1 版本无法接收到 自定义 itemClickHandele 事件, 看了一下源码是可以使用的。

这个是npm 上的版本

1

源码里面

1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.