function isActive(current, index, disabled) { if (disabled) { return false; } return (current || []).indexOf(index) >= 0; } function getStyleHeight(index, contentHeight, disabled) { if (disabled) { return 'height: 0px'; } var height = contentHeight[index]; if (height === '') { return ''; } if (height) { return "height: ".concat(height); } return 'height: 0px'; } export default { isActive: isActive, getStyleHeight: getStyleHeight };