|
@@ -291,10 +291,7 @@ class TSPTPInputVC: TSBaseVC {
|
|
|
|
|
|
cp.itemDidSelectedHandler = { [weak self] (object, indexPath) in
|
|
cp.itemDidSelectedHandler = { [weak self] (object, indexPath) in
|
|
guard let self = self else { return }
|
|
guard let self = self else { return }
|
|
- if indexPath.section == 0{
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+
|
|
if let sections = viewModel.colDataArray.safeObj(At: indexPath.section) as? TSGenmojiCoLSectionModel{
|
|
if let sections = viewModel.colDataArray.safeObj(At: indexPath.section) as? TSGenmojiCoLSectionModel{
|
|
var dataModelArray:[TSGenmojiModel] = []
|
|
var dataModelArray:[TSGenmojiModel] = []
|
|
for itemModel in sections.items {
|
|
for itemModel in sections.items {
|
|
@@ -335,11 +332,10 @@ class TSPTPInputVC: TSBaseVC {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- let tapGesture = UITapGestureRecognizer(target: self, action: #selector(clickView))
|
|
|
|
- tapGesture.cancelsTouchesInView = false // 确保不影响其他点击事件
|
|
|
|
- collectionComponent.collectionView.addGestureRecognizer(tapGesture)
|
|
|
|
|
|
+// let tapGesture = UITapGestureRecognizer(target: self, action: #selector(clickView))
|
|
|
|
+// tapGesture.cancelsTouchesInView = false
|
|
|
|
+// view.addGestureRecognizer(tapGesture)
|
|
|
|
|
|
-
|
|
|
|
collectionComponent.clear()
|
|
collectionComponent.clear()
|
|
collectionComponent.reloadView(with:viewModel.colDataArray)
|
|
collectionComponent.reloadView(with:viewModel.colDataArray)
|
|
|
|
|