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

自由容器中,如何使自定义组件可拖拽? #11302

Closed
JSoon opened this issue Dec 2, 2024 · 1 comment
Closed

自由容器中,如何使自定义组件可拖拽? #11302

JSoon opened this issue Dec 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@JSoon
Copy link

JSoon commented Dec 2, 2024

是否关联于某个问题吗:

因为 Container 组件不能当做 UI 组件引入,所以没办法在自由容器组件中,实现可拖拽的自定义组件。

预期的解决方案:

在自由容器中拖入自定义组件,自定义组件可像系统组件一样,可以进行位置拖拽。
image

其他可接受方案:

自定义组件能否接受系统组件 type 作为其类型?例如:

自定义组件:
@Renderer({
  type: 'container',
  name: 'renderer-demo'
})

这样,自定义组件通过 name 唯一标识,但能够使用系统组件作为它的容器节点,从而具备系统组件的功能特性。

@JSoon JSoon added the enhancement New feature or request label Dec 2, 2024
@JSoon
Copy link
Author

JSoon commented Dec 6, 2024

已解决。

@JSoon JSoon closed this as completed Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant