feat: 右栏只显示与选中对象相关的内容

滤镜 / 文字两组改成选中对应类型才出现,去掉「请先选中图片」那种占位提示——
一行提示的高度和一组内容差不多,等于白占位置。导出与模板常驻(与选中无关,
且顶栏导出按钮要滚到它)。背景组从右栏摘掉,挪进顶栏的背景工具下拉。

Inspector 在没选中时只留一句说明,画板尺寸的只读回显去掉——尺寸改到顶栏的
画布编辑下拉里了。

补 body[data-tool] 的画布光标规则:文字工具是 I 形,形状工具是十字。
This commit is contained in:
2026-09-05 18:07:51 +08:00
parent 19c8c604cb
commit dd2a310406
3 changed files with 91 additions and 92 deletions
+13
View File
@@ -157,3 +157,16 @@ label {
.menu-block {
padding: 4px 9px 8px;
}
/* ================================================================ 工具光标
* 当前工具决定画布区的鼠标指针。工具状态在 `useEditor().tool`,由 TopBar
* 写到 `document.body.dataset.tool`——这里必须是全局规则:`.stage` 在
* Workspace.vue 里,body 在它外面,作用域样式跨不过去。
*/
body[data-tool="text"] .stage {
cursor: text;
}
body[data-tool="shape"] .stage {
cursor: crosshair;
}