king
2023-03-06 63a40e3da5f24b449122fb8b50c16dcbf69d5907
src/tabviews/custom/popview/index.jsx
@@ -395,6 +395,14 @@
            cell.style = {...cell.style, ...cell.btnstyle}
          }
          if (cell.controlField) {
            if (/,/ig.test(cell.controlVal)) {
              cell.controlVals = cell.controlVal.split(',')
            } else {
              cell.controlVals = [(cell.controlVal || '')]
            }
          }
          return true
        })
      }
@@ -424,9 +432,12 @@
                  cell.execSuccess = 'mainline'
                }
              }
              if (card.btnstyle) { // 兼容
                card.style = card.style || {}
                card.style = {...card.style, ...card.btnstyle}
              if (cell.controlField) {
                if (/,/ig.test(cell.controlVal)) {
                  cell.controlVals = cell.controlVal.split(',')
                } else {
                  cell.controlVals = [(cell.controlVal || '')]
                }
              }
            } else if (['text', 'number', 'formula'].includes(cell.eleType)) {
              if (!cell.height) {
@@ -462,9 +473,12 @@
                }
              }
              if (card.btnstyle) { // 兼容
                card.style = card.style || {}
                card.style = {...card.style, ...card.btnstyle}
              if (cell.controlField) {
                if (/,/ig.test(cell.controlVal)) {
                  cell.controlVals = cell.controlVal.split(',')
                } else {
                  cell.controlVals = [(cell.controlVal || '')]
                }
              }
            } else if (['text', 'number', 'formula'].includes(cell.eleType)) {
              if (!cell.height) {
@@ -504,6 +518,13 @@
                cell.execSuccess = 'mainline'
              }
            }
            if (cell.controlField) {
              if (/,/ig.test(cell.controlVal)) {
                cell.controlVals = cell.controlVal.split(',')
              } else {
                cell.controlVals = [(cell.controlVal || '')]
              }
            }
          } else if (['text', 'number', 'formula'].includes(cell.eleType)) {
            if (!cell.height) {
              cell.innerHeight = 'auto'
@@ -542,6 +563,14 @@
              cell.style = {...cell.style, ...cell.btnstyle}
            }
            if (cell.controlField) {
              if (/,/ig.test(cell.controlVal)) {
                cell.controlVals = cell.controlVal.split(',')
              } else {
                cell.controlVals = [(cell.controlVal || '')]
              }
            }
            return true
          })
          return col.elements.length !== 0