{{item}} function typeActive(lineType, tabIndex, index) { if (lineType == 0) { return '' } return tabIndex == index ? 'type--cur' : '' } module.exports = typeActive function padding(lineType, scroll) { if (lineType == 1) { return 4 } else if(scroll && lineType !== 1) { return 32 } else { return 12 } } module.exports = padding