chore: 恢复旧布局基线(迁移改动丢失后重建,apps/packages 布局暂存)

This commit is contained in:
logan committed 2026-10-14 20:31:17 +08:00
1 parent a9510235bb
commit 456fa6954b
203 files changed
+18787 -48

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
/** 树形方向箭头(SVG 描边 chevron,替代 ▸/▾ 字符 —— Unicode 小三角在部分字体下糊成圆点,
* 填充三角又显臃肿)。细长 ">" 造型,open 时旋转 90° 朝下。 */
export function TreeChevron({
open,
size = 10,
className = "",
}: {
/** undefined = 静态朝右(details 折叠组内由浏览器管开合) */
open?: boolean;
size?: number;
className?: string;
}) {
return (
<svg
viewBox="0 0 12 12"
width={size}
height={size}
fill="none"
stroke="currentColor"
strokeWidth={1.5}
strokeLinecap="round"
strokeLinejoin="round"
aria-hidden="true"
className={`shrink-0 ${open === undefined ? "" : `transition-transform duration-150 ${open ? "rotate-90" : ""}`} ${className}`}
>
<path d="M4.4 2.6 L8.4 6 L4.4 9.4" />
</svg>
);
}