king
2022-11-14 5ec0f02101cb4255c6398856bbf17a2a0b2c9a7e
src/utils/utils-custom.js
@@ -623,6 +623,9 @@
        if (em) {
          item.setting.supModule = ''
        }
        if (item.wrap && item.wrap.supModule) {
          item.wrap.supModule = item.setting.supModule
        }
      }
      if (item.wrap && item.wrap.doubleClick) {
@@ -830,19 +833,10 @@
    }
    if (item.setting && item.setting.supModule && item.setting.supModule[0] !== 'empty') {
      let em = false
      item.setting.supModule = item.setting.supModule.map(c => {
        if (!uuids[c]) {
          em = true
        }
        return uuids[c] || ''
      })
      if (em) {
        item.setting.supModule = ''
      }
      if (item.wrap && item.wrap.supModule) {
        item.wrap.supModule = item.setting.supModule
      }
      item.setting.supModule = ''
    }
    if (item.wrap && item.wrap.supModule) {
      item.wrap.supModule = ''
    }
    if (item.wrap && item.wrap.doubleClick) {
@@ -878,6 +872,25 @@
}
/**
 * @description 获取图表高度
 */
export function getHeight (val) {
  if (typeof(val) === 'string') {
    if (val.indexOf('px') > -1) {
      val = parseFloat(val)
    } else if (val.indexOf('vw') > -1) {
      val = parseFloat(val)
      val = document.body.clientWidth * val / 100
    } else if (val.indexOf('vh') > -1) {
      val = parseFloat(val)
      val = document.body.clientHeight * val / 100
    }
  }
  return parseInt(val || 400) - 30
}
/**
 * @description 获取表名
 */
export function getTables (config, pops) {