refactor: 精简导航并扩大工作区内容显示面积

This commit is contained in:
GouJ
2026-09-01 17:45:40 +08:00
parent 70ab4ba48f
commit 0279c701b4
15 changed files with 1256 additions and 821 deletions
+3
View File
@@ -3,6 +3,9 @@ import { NSelect } from 'naive-ui'
/** 展开真实折叠面板后再测试内部操作,避免对不可见控件进行断言。 */
export async function expandSections() {
const tools = document.querySelector<HTMLElement>('[data-workspace-tools][aria-expanded="false"]')
tools?.click()
await flushPromises()
for (let depth = 0; depth < 4; depth++) {
const headers = document.querySelectorAll<HTMLElement>(
'.n-collapse-item:not(.n-collapse-item--active) > .n-collapse-item__header .n-collapse-item__header-main'