From 3f80f9aaf821a0f02cb220088a0df6642c9eb361 Mon Sep 17 00:00:00 2001 From: wangdl Date: Wed, 27 May 2026 22:50:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(ios):=20=E6=8B=86=E5=88=86=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E7=9F=A5=E8=AF=86=E5=BA=93=E5=92=8C=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=9F=A5=E8=AF=86=E7=82=B9=E6=8C=89=E9=92=AE=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E8=AF=AF=E8=A7=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除知识库 🗑 移到左侧灰色按钮,远离右侧操作区 - 选择知识点 ☑ 独立显示在右侧 - 不再共用 ⋯ 菜单 Co-Authored-By: Claude Opus 4.7 --- .../Features/Library/LibrarySubpages.swift | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift b/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift index c5e7056..50a93b6 100644 --- a/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift +++ b/AIStudyApp/AIStudyApp/Features/Library/LibrarySubpages.swift @@ -109,21 +109,19 @@ struct LibraryDetailPage: View { .disabled(selectedIds.isEmpty) } } else { + ToolbarItem(placement: .topBarLeading) { + Button { showDeleteConfirm = true } label: { + Image(systemName: "trash").font(.system(size: 16)).foregroundColor(Color.zxF03) + } + } ToolbarItem(placement: .topBarTrailing) { NavigationLink(value: Route.addKnowledge(knowledgeBaseId: knowledgeBaseId)) { Image(systemName: "plus").font(.system(size: 16, weight: .semibold)).foregroundColor(Color.zxPrimary) } } ToolbarItem(placement: .topBarTrailing) { - Menu { - Button { isSelectMode = true } label: { - Label("选择知识点", systemImage: "checkmark.circle") - } - Button(role: .destructive) { showDeleteConfirm = true } label: { - Label("删除知识库", systemImage: "trash") - } - } label: { - Image(systemName: "ellipsis.circle").font(.system(size: 16)).foregroundColor(Color.zxF05) + Button { isSelectMode = true } label: { + Image(systemName: "checkmark.circle").font(.system(size: 16)).foregroundColor(Color.zxF05) } } }