Archived
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:
@@ -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('非正视口高度安全返回空窗口', () => {
|
||||
|
||||
Reference in New Issue
Block a user