Code Monkey home page Code Monkey logo

Comments (1)

imengyu avatar imengyu commented on June 6, 2024

感谢您的建议!

v1.1.8 已经修改了前两个问题

  1. 修改函数模式下 divide=true 的条目 设置 hidden 为 true 后分割线没有隐藏的问题
  2. 修复了重复创建默认容器的问题,现在最多只会创建一个 mx-menu-ghost-host。

但是第三个问题我需要思考下。因为目前已经有 hidden 属性了,如果增加一个 show 属性用于控制显示,就重复并且冲突了。

目前如果你要控制一个菜单组件显示不同菜单

  • 在函数模式下,可以通过传入不同的 options 达到显示不同菜单的效果,或者直接动态修改 options 里的菜单项。
  • 在组件模式下,你可以直接使用 v-if 控制指定的菜单项是否显示

具体示例可以参考 文档

from vue3-context-menu.

Related Issues (20)

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.