Comments (1)
感谢您的建议!
v1.1.8 已经修改了前两个问题
- 修改函数模式下 divide=true 的条目 设置 hidden 为 true 后分割线没有隐藏的问题
- 修复了重复创建默认容器的问题,现在最多只会创建一个 mx-menu-ghost-host。
但是第三个问题我需要思考下。因为目前已经有 hidden 属性了,如果增加一个 show 属性用于控制显示,就重复并且冲突了。
目前如果你要控制一个菜单组件显示不同菜单
- 在函数模式下,可以通过传入不同的 options 达到显示不同菜单的效果,或者直接动态修改 options 里的菜单项。
- 在组件模式下,你可以直接使用 v-if 控制指定的菜单项是否显示
具体示例可以参考 文档
from vue3-context-menu.
Related Issues (20)
- 子菜单太长,溢出 HOT 1
- 图标是否支持组件渲染 HOT 1
- 升级vue3.4后出现报错 HOT 2
- 1.3.5 Failed to compile HOT 4
- 能否增加打开菜单后点击遮罩层不让鼠标穿透的功能 HOT 1
- 能否增加菜单实例的状态属性 HOT 6
- Uncaught (in promise) TypeError: Cannot read properties of null (reading 'isCE') HOT 1
- 可以支持一定的CSS动效吗? HOT 1
- 我在使用该插件时打包会报错 HOT 1
- Updating theme dynamically when user switch the light/dark mode HOT 2
- 打包时报错webpack
- 1.3.9也报错 HOT 1
- How to append the menu's div inside the App's div? HOT 2
- 需要一个clickOutSide 的方法才好用, 在这个clickOutSide 方法里面关闭ContextMenu HOT 2
- 窗口失去焦点后,再次获得焦点展示菜单失败 HOT 2
- 我在konva 场景下使用,没法在Canvas画布内点击触发clickOutSide HOT 1
- v-model:show 的值是一个 pinia 管理的全局状态时。第一次打开正常,但是在这次在关闭后, 需要点击两次右键才能打开 HOT 1
- 如何修改z-index值
- Typo error
- z-index层级太低
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue3-context-menu.