index-status.wxs 182 B

123456789101112
  1. function get(index, active) {
  2. if (index < active) {
  3. return 'finish';
  4. } else if (index === active) {
  5. return 'process';
  6. }
  7. return 'inactive';
  8. }
  9. module.exports = get;