Files

16 lines
307 B
Plaintext
Raw Permalink Normal View History

2025-08-18 09:11:51 +08:00
function getClassName(current, index, status) {
current = current || 0;
if (index < current) {
return 'finish';
}
if (index === current) {
if (status === 'error') {
return 'error';
}
return 'active';
}
return 'non-active';
}
export default {
getClassName: getClassName
};