🎨 add eslint

This commit is contained in:
jingsam 2016-12-25 22:49:42 +08:00
parent 829a2e4cfc
commit b0893113b3
88 changed files with 376 additions and 370 deletions

View file

@ -43,7 +43,7 @@
stepNumber: '',
nextError: false,
total: 1
}
};
},
computed: {
wrapClasses () {
@ -54,12 +54,12 @@
[`${prefixCls}-custom`]: !!this.icon,
[`${prefixCls}-next-error`]: this.nextError
}
]
];
},
iconClasses () {
let icon = '';
if (!!this.icon) {
if (this.icon) {
icon = this.icon;
} else {
if (this.status == 'finish') {
@ -75,12 +75,12 @@
{
[`${iconPrefixCls}-${icon}`]: icon != ''
}
]
];
},
styles () {
return {
width: `${1/this.total*100}%`
}
};
}
},
watch: {
@ -90,5 +90,5 @@
}
}
}
}
};
</script>