src/utils/utils-custom.js
@@ -872,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) {