🎨 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

@ -39,13 +39,13 @@
function addNum (num1, num2) {
let sq1, sq2, m;
try {
sq1 = num1.toString().split(".")[1].length;
sq1 = num1.toString().split('.')[1].length;
}
catch (e) {
sq1 = 0;
}
try {
sq2 = num2.toString().split(".")[1].length;
sq2 = num2.toString().split('.')[1].length;
}
catch (e) {
sq2 = 0;
@ -93,7 +93,7 @@
focused: false,
upDisabled: false,
downDisabled: false
}
};
},
computed: {
wrapClasses () {
@ -104,7 +104,7 @@
[`${prefixCls}-disabled`]: this.disabled,
[`${prefixCls}-focused`]: this.focused
}
]
];
},
handlerClasses () {
return `${prefixCls}-handler-wrap`;
@ -116,7 +116,7 @@
{
[`${prefixCls}-handler-up-disabled`]: this.upDisabled
}
]
];
},
innerUpClasses () {
return `${prefixCls}-handler-up-inner ${iconPrefixCls} ${iconPrefixCls}-ios-arrow-up`;
@ -128,7 +128,7 @@
{
[`${prefixCls}-handler-down-disabled`]: this.downDisabled
}
]
];
},
innerDownClasses () {
return `${prefixCls}-handler-down-inner ${iconPrefixCls} ${iconPrefixCls}-ios-arrow-down`;
@ -190,10 +190,10 @@
keyDown (e) {
if (e.keyCode === 38) {
e.preventDefault();
this.up()
this.up();
} else if (e.keyCode === 40) {
e.preventDefault();
this.down()
this.down();
}
},
change (event) {
@ -238,5 +238,5 @@
this.changeVal(val);
}
}
}
};
</script>