tiny-engine
tiny-engine copied to clipboard
fix: 隐藏画布根节点的包裹元素的操作选项
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
- [x] The commit message follows our Commit Message Guidelines
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
- [ ] Built its own designer, fully self-validated
PR Type
What kind of change does this PR introduce?
- [x] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Documentation content changes
- [ ] Other... Please describe:
Background and solution
pr #259 合并后,画布根节点使用div包裹了一层,来自定义根节点的样式
What is the current behavior?
当根节点样式设置了margin时,选中根节点div会展示出操作选项,实际上这些操作选项是无效的。(根节点无法移动、复制、删除)
What is the new behavior?
隐藏根节点div的操作选项
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No
Other information
Summary by CodeRabbit
-
New Features
- Enhanced the canvas component to improve condition checks for better action visibility.
- Added a unique identifier to the root container in the rendering logic for improved node selection.