GithubHelp home page GithubHelp logo

boenfu / vue-easycm Goto Github PK

View Code? Open in Web Editor NEW
52.0 2.0 7.0 52 KB

:cookie: Simplify Vue context menu component

Home Page: http://boenfu.github.io/vue-easycm/

HTML 30.45% Vue 55.23% JavaScript 14.32%
vue context-menu contextmenu

vue-easycm's Issues

请教请教

作者,你好,我是照着你的例子写的,但是每次我一右键那个按钮,那个菜单就闪一下就消失了,这是为什么呢?
image
image

请问如何获取到容器的数据?

使用场景为:
假设容器为图片,在图片上点击右键弹出操作菜单,请问如何才能获取到所点击的图片的数据?如何知道点击的是哪张图片?

建议对菜单项使用字符串 key 进行索引

如果不提供字符串 key 索引菜单项,在同菜单项目增加或者减少的时候需要编写多个不同菜单,因为现在我们对菜单处理的时候只能用索引确定它的功能。

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.