Ver código fonte

【2025】【BOTA】- 注释列表文案和折叠效果修复

yangliuhua 1 mês atrás
pai
commit
fd3eaff52f

+ 4 - 4
PDF Office/PDF Master/KMClass/Left/Annotaion/Controller/KMLeftSideViewController.swift

@@ -406,10 +406,10 @@ class KMLeftSideViewController: KMSideViewController {
     func showMoreGroupView() {
         let groupView = ComponentGroup.createFromNib(in: ComponentLibrary.shared.componentBundle())
         
-        var expand_MenuString = KMLocalizedString("Expand All")
+        var expand_MenuString = KMLocalizedString("Collapse All")
         for secM in self.annoListModel?.datas ?? [] {
             if secM.isExpand == false {
-                expand_MenuString = KMLocalizedString("Collapse All")
+                expand_MenuString = KMLocalizedString("Expand All")
                 break
             }
         }
@@ -479,7 +479,7 @@ class KMLeftSideViewController: KMSideViewController {
                     if an.isKind(of: CPDFFreeTextAnnotation.self) == true ||
                         an.isKind(of: CPDFTextAnnotation.self)  == true {
                     } else  {
-                        let note_Menuitem: ComponentMenuitemProperty = ComponentMenuitemProperty(text: KMLocalizedString("Notes"),
+                        let note_Menuitem: ComponentMenuitemProperty = ComponentMenuitemProperty(text: KMLocalizedString("Edit"),
                                                                                                  identifier: BOTAMenuIdentifier_Annotation_EditNote,representedObject: [data])
                         menuItemArr.append(note_Menuitem)
                         viewHeight += 36.0
@@ -572,7 +572,7 @@ class KMLeftSideViewController: KMSideViewController {
                     viewHeight += 36.0
                 }
             } else if let replyModel = dataItem as? KMBotaAnnotationReplyModel {
-                let note_Menuitem: ComponentMenuitemProperty = ComponentMenuitemProperty(text: KMLocalizedString("Notes"),
+                let note_Menuitem: ComponentMenuitemProperty = ComponentMenuitemProperty(text: KMLocalizedString("Edit"),
                                                                                          identifier: BOTAMenuIdentifier_Annotation_EditNote,representedObject: [replyModel])
                 menuItemArr.append(note_Menuitem)
                 viewHeight += 36.0