统一只读模式下角点选择器状态

只读变换编辑器禁用四个角点按钮

保持所有变更入口的一致交互语义
This commit is contained in:
2026-09-03 12:52:29 +08:00
parent a1b93ccffa
commit c74bfc4d51
@@ -686,6 +686,7 @@ export function TransformEditor({
type="button"
aria-label={corner.label}
aria-pressed={active}
disabled={readOnly}
className={`absolute ${corner.positionClass} z-10 grid size-12 place-items-center rounded-xl border text-[11px] font-semibold transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-orange-300 ${active ? 'border-orange-400 bg-orange-100 text-orange-700 shadow-sm' : 'border-slate-200 bg-white text-slate-500 hover:border-orange-200 hover:bg-orange-50 hover:text-orange-700'}`}
onClick={() => {
selectedCornerRef.current = corner.id;