king
2022-06-05 5a5e07a0ce81d064038ece372e7e8844157a7d1b
src/tabviews/custom/index.jsx
@@ -569,6 +569,18 @@
              col.elements = col.elements.map(cell => {
                if (['text', 'number', 'link'].includes(cell.eleType) && !cell.height) {
                  cell.innerHeight = 'auto'
                } 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
              })
@@ -658,6 +670,18 @@
              }
            } else if (['text', 'number', 'link'].includes(cell.eleType) && !cell.height && _hasheight) {
              cell.innerHeight = 'auto'
            } 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]
@@ -688,7 +712,20 @@
              }
            } else if (['text', 'number', 'link'].includes(cell.eleType) && !cell.height && _hasheight) {
              cell.innerHeight = 'auto'
            } 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]
          })
        })
@@ -718,6 +755,18 @@
            }
          } else if (['text', 'number', 'link'].includes(cell.eleType) && !cell.height) {
            cell.innerHeight = 'auto'
          } 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]
@@ -751,6 +800,18 @@
              }
            } else if (['text', 'number', 'link'].includes(cell.eleType) && !cell.height && _hasheight) {
              cell.innerHeight = 'auto'
            } 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]
          })