jiaqingjiayi-xiaochengxu/甲情_甲意/miniprogram/node_modules/antd-mini/es/Steps/index.sjs

16 lines
307 B
Plaintext
Raw Normal View History

2024-11-10 07:01:22 +00:00
function getClassName(current, index, status) {
current = current || 0;
if (index < current) {
2024-12-01 11:56:54 +00:00
return 'finish';
2024-11-10 07:01:22 +00:00
}
if (index === current) {
if (status === 'error') {
return 'error';
}
return 'active';
}
return 'non-active';
}
2024-12-01 11:56:54 +00:00
export default {
getClassName: getClassName
};