清理角点选择器未使用的定位字段

移除 CORNERS 中未被布局读取的 positionClass 死数据。
This commit is contained in:
2026-09-03 14:31:42 +08:00
parent 415240faa7
commit 83c12c3b0b
@@ -61,16 +61,11 @@ const ROW_MODES: AnchorMode[] = ['start', 'center', 'end', 'stretch'];
const CORNERS: readonly {
id: Corner;
label: string;
positionClass: string;
}[] = [
{ id: 'top-left', label: '左上角', positionClass: 'left-1 top-1' },
{ id: 'top-right', label: '右上角', positionClass: 'right-1 top-1' },
{ id: 'bottom-left', label: '左下角', positionClass: 'bottom-1 left-1' },
{
id: 'bottom-right',
label: '右下角',
positionClass: 'bottom-1 right-1',
},
{ id: 'top-left', label: '左上角' },
{ id: 'top-right', label: '右上角' },
{ id: 'bottom-left', label: '左下角' },
{ id: 'bottom-right', label: '右下角' },
];
function CornerIcon({