From 20fda7434c88eae3237399a008f6ae0db50d0eab Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 15 九月 2022 19:12:29 +0800
Subject: [PATCH] 2022-09-15

---
 src/tabviews/custom/index.jsx |   62 ------------------------------
 1 files changed, 1 insertions(+), 61 deletions(-)

diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx
index abe3ac2..e9a7411 100644
--- a/src/tabviews/custom/index.jsx
+++ b/src/tabviews/custom/index.jsx
@@ -608,18 +608,6 @@
                       cell.decimal = cell.decimal > 2 ? cell.decimal - 2 : 0
                     }
                   }
-                } else if (cell.eleType === 'icon') {
-                  let fontSize = 14
-                  let lineHeight = 1.5
-            
-                  if (cell.style.fontSize) {
-                    fontSize = parseInt(cell.style.fontSize)
-                  }
-                  if (cell.style.lineHeight) {
-                    lineHeight = parseFloat(cell.style.lineHeight)
-                  }
-            
-                  cell.innerHeight = fontSize * lineHeight
                 }
                 return cell
               })
@@ -728,18 +716,6 @@
                   cell.decimal = cell.decimal > 2 ? cell.decimal - 2 : 0
                 }
               }
-            } else if (cell.eleType === 'icon') {
-              let fontSize = 14
-              let lineHeight = 1.5
-        
-              if (cell.style.fontSize) {
-                fontSize = parseInt(cell.style.fontSize)
-              }
-              if (cell.style.lineHeight) {
-                lineHeight = parseFloat(cell.style.lineHeight)
-              }
-        
-              cell.innerHeight = fontSize * lineHeight
             }
 
             return cell.eleType !== 'button' || skip || permAction[cell.uuid]
@@ -778,20 +754,8 @@
                   cell.decimal = cell.decimal > 2 ? cell.decimal - 2 : 0
                 }
               }
-            } else if (cell.eleType === 'icon') {
-              let fontSize = 14
-              let lineHeight = 1.5
-        
-              if (cell.style.fontSize) {
-                fontSize = parseInt(cell.style.fontSize)
-              }
-              if (cell.style.lineHeight) {
-                lineHeight = parseFloat(cell.style.lineHeight)
-              }
-        
-              cell.innerHeight = fontSize * lineHeight
             }
-            
+
             return cell.eleType !== 'button' || skip || permAction[cell.uuid]
           })
         })
@@ -832,18 +796,6 @@
                 cell.decimal = cell.decimal > 2 ? cell.decimal - 2 : 0
               }
             }
-          } else if (cell.eleType === 'icon') {
-            let fontSize = 14
-            let lineHeight = 1.5
-      
-            if (cell.style.fontSize) {
-              fontSize = parseInt(cell.style.fontSize)
-            }
-            if (cell.style.lineHeight) {
-              lineHeight = parseFloat(cell.style.lineHeight)
-            }
-      
-            cell.innerHeight = fontSize * lineHeight
           }
 
           return cell.eleType !== 'button' || skip || permAction[cell.uuid]
@@ -884,18 +836,6 @@
                   cell.decimal = cell.decimal > 2 ? cell.decimal - 2 : 0
                 }
               }
-            } else if (cell.eleType === 'icon') {
-              let fontSize = 14
-              let lineHeight = 1.5
-        
-              if (cell.style.fontSize) {
-                fontSize = parseInt(cell.style.fontSize)
-              }
-              if (cell.style.lineHeight) {
-                lineHeight = parseFloat(cell.style.lineHeight)
-              }
-        
-              cell.innerHeight = fontSize * lineHeight
             }
             return cell.eleType !== 'button' || skip || permAction[cell.uuid]
           })

--
Gitblit v1.8.0