refactor: 组件顶部注释迁入 script setup 块内 + 全量 prettier 格式化

SFC 顶层(块标签外)不是 prettier 认识的注释位置,块注释会被重排拍平;迁入 <script setup> 顶部后 prettier 正确保留 JSDoc 格式。迁移 6 个 .vue 文件;顺带 prettier 格式化 4 个存量未格式化文件(gateway-client.ts、endpoint-queries.spec.ts、json-text-processor.spec.ts、bench-store.spec.ts)。
This commit is contained in:
2026-09-08 11:06:47 +08:00
parent d4fe766373
commit c690e0507e
10 changed files with 76 additions and 35 deletions
+5 -1
View File
@@ -70,7 +70,11 @@ describe('computeVisibleRowWindow', () => {
});
it('零行(空响应)返回空窗口', () => {
expect(computeVisibleRowWindow(0, 0, 400)).toEqual({ startIndex: 0, endIndex: -1, offsetYPx: 0 });
expect(computeVisibleRowWindow(0, 0, 400)).toEqual({
startIndex: 0,
endIndex: -1,
offsetYPx: 0,
});
});
it('非正视口高度安全返回空窗口', () => {