Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

画布禁止添加组件,可以添加指定的组件上 #4359

Open
tigrade opened this issue Jul 11, 2024 · 2 comments
Open

画布禁止添加组件,可以添加指定的组件上 #4359

tigrade opened this issue Jul 11, 2024 · 2 comments

Comments

@tigrade
Copy link

tigrade commented Jul 11, 2024

问题描述

在Stencil添加 2个组件A,B
A组件可以添加到画布上,B组件不能添加到画布上,B组件可以添加到A组件上。
请求需要监听那些事件,如何实现以上效果

重现链接

https://codesandbox.io/s/new)

重现���骤

A组件可以添加到画布上,B组件不能添加到画布上,B组件可以添加到A组件上。

预期行为

A组件可以添加到画布上,B组件不能添加到画布上,B组件可以添加到A组件上。

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 11, 2024

👋 @tigrade

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@cuidong626
Copy link
Contributor

Dnd有一些事件回调,判断一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants