king
2023-01-31 90fff0ec484bbb3a10248f389cb9c4bddeff93ed
src/mob/mobshell/card.jsx
@@ -72,21 +72,21 @@
  }
  let col = 'ant-col-' + (card.width || 24)
  if (card.type === 'login') {
    let height = ''
    if (card.wrap && card.wrap.height) {
      // scaleview
      height = card.wrap.height.replace(/\d+vw/ig, (word) => {
        return parseFloat(word) * (window.GLOB.winWidth || 420) / 100 + 'px'
        // return parseFloat(word) * 350 / 100 + 'px'
      }).replace(/\d+vh/ig, (word) => {
        return parseFloat(word) * (window.GLOB.winHeight || 738) / 100 + 'px'
        // return parseFloat(word) * 615 / 100 + 'px'
      })
    }
  // if (card.type === 'login') {
  //   let height = ''
  //   if (card.wrap && card.wrap.height) {
  //     // scaleview
  //     height = card.wrap.height.replace(/\d+vw/ig, (word) => {
  //       return parseFloat(word) * (window.GLOB.winWidth || 420) / 100 + 'px'
  //       // return parseFloat(word) * 350 / 100 + 'px'
  //     }).replace(/\d+vh/ig, (word) => {
  //       return parseFloat(word) * (window.GLOB.winHeight || 738) / 100 + 'px'
  //       // return parseFloat(word) * 615 / 100 + 'px'
  //     })
  //   }
    
    style.minHeight = height
  }
  //   style.minHeight = height
  // }
  const getCardComponent = () => {
    if (card.type === 'bar' || card.type === 'line') {