[improvement] optimize eslint-disable (#4070)

This commit is contained in:
neverland
2019-08-08 20:01:41 +08:00
committed by GitHub
parent 5777762249
commit c74d90c561
13 changed files with 9 additions and 20 deletions

View File

@@ -1,4 +1,3 @@
/* eslint-disable object-shorthand */
import { createNamespace } from '../utils';
import { ChildrenMixin } from '../mixins/relation';
@@ -30,6 +29,7 @@ export default createComponent({
},
watch: {
// eslint-disable-next-line object-shorthand
'parent.currentIndex'() {
this.inited = this.inited || this.isActive;
},