提交
This commit is contained in:
16
甲情_甲意/miniprogram/node_modules/antd-mini/es/Steps/index.sjs
generated
vendored
Normal file
16
甲情_甲意/miniprogram/node_modules/antd-mini/es/Steps/index.sjs
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
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
|
||||
};
|
Reference in New Issue
Block a user