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

有什么办法可以阻止 Slot 组件被 backspace 键删除掉吗 #3031

Open
lavyun opened this issue May 17, 2024 · 1 comment
Open

有什么办法可以阻止 Slot 组件被 backspace 键删除掉吗 #3031

lavyun opened this issue May 17, 2024 · 1 comment

Comments

@lavyun
Copy link

lavyun commented May 17, 2024

No description provided.

@woshilaoge
Copy link
Collaborator

理论上可以,思路大概是。当你选中某个组件时或全量处理,slot 的组件的 meta 信息中,移除或添加一下配置,不可被删除等操作。就像是 Page 组件一样,不可被删除。

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

No branches or pull requests

2 participants