Browse Source

Merge branch 'develop_2025' of git.kdan.cc:Mac_PDF/PDF_Office into develop_2025

niehaoyu 1 month ago
parent
commit
26d90ceb2f

+ 4 - 0
PDF Office/PDF Master/KMClass/NewBatch/View/BatchCollectionView/KMBatchCollectionView.swift

@@ -83,6 +83,10 @@ extension KMBatchCollectionView: KMBatchCollectionViewPrensenterDelegate {
 extension KMBatchCollectionView: NSCollectionViewDelegate {
     //当item被选中
     public func collectionView(_ collectionView: NSCollectionView, didSelectItemsAt indexPaths: Set<IndexPath>) {
+        if self.isDisable {
+            return
+        }
+        
         for item in self.data {
             item.isSelect = false
         }

+ 1 - 6
PDF Office/PDF Master/KMClass/NewBatch/View/BatchCollectionView/View/KMBatchCollectionViewItem.swift

@@ -41,13 +41,8 @@ class KMBatchCollectionViewItem: NSCollectionViewItem {
             self.titleButton.properties.state = .normal
         }
         
+        self.titleButton.properties.isDisabled = self.model.isDisable
         self.titleButton.reloadData()
-        
-        if self.model.isDisable {
-            
-        } else {
-            
-        }
     }
     
 }