vue-vben-admin icon indicating copy to clipboard operation
vue-vben-admin copied to clipboard

BasicTree嵌套在basicModal中会导致自定义的右键菜单的无法打开

Open Leonsama opened this issue 3 weeks ago • 0 comments

⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.

  • [x] Read the docs.
  • [x] Make sure the code is up to date. (Some bugs have been fixed in the latest code)
  • [x] This is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

Describe the bug

BasicTree嵌套在basicModal中会导致自定义的右键菜单的无法打开(能进方法,但不能打开右键菜单)

Reproduction

image 弹框下能进入方法,但无法打开 <BasicModal @register="registerModal" title="详细配置" :width="'40%'"> <Alert> <template #message> [<span style="color: red">提示</span>]:<span style="color: green">选中指标项右键可编辑节点</span> </template> </Alert> <BasicTree :treeData="treeData" :beforeRightClick="getRightMenuList" /> </BasicModal> image 页面下能进入方法,也能打开 <Alert type="info" show-icon> <template #message> [<span style="color: red">提示</span>]:<span style="color: green">选中指标项右键可编辑节点</span> </template> </Alert> <BasicTree :treeData="treeData" :beforeRightClick="getRightMenuList" />

System Info

  • Operating System: Windows 11
  • Node version: 20.12.0
  • pnpm version: 9.0.5

Leonsama avatar Jun 14 '24 02:06 Leonsama