eslint
This commit is contained in:
parent
03d8b80d45
commit
e3801e6d70
2 changed files with 3 additions and 3 deletions
|
@ -201,7 +201,7 @@
|
||||||
child.width = this.listWidth;
|
child.width = this.listWidth;
|
||||||
child.height = typeof this.height === 'number' ? `${this.height}px` : this.height;
|
child.height = typeof this.height === 'number' ? `${this.height}px` : this.height;
|
||||||
});
|
});
|
||||||
const slidesLength = this.slides.length || 0
|
const slidesLength = this.slides.length || 0;
|
||||||
this.trackWidth = slidesLength * this.listWidth;
|
this.trackWidth = slidesLength * this.listWidth;
|
||||||
},
|
},
|
||||||
// use when slot changed
|
// use when slot changed
|
||||||
|
|
|
@ -214,7 +214,7 @@ export function findComponentDownward (context, componentName) {
|
||||||
// Find components downward
|
// Find components downward
|
||||||
export function findComponentsDownward (context, componentName, ignoreComponentNames = []) {
|
export function findComponentsDownward (context, componentName, ignoreComponentNames = []) {
|
||||||
if (!Array.isArray(ignoreComponentNames)) {
|
if (!Array.isArray(ignoreComponentNames)) {
|
||||||
ignoreComponentNames = [ignoreComponentNames]
|
ignoreComponentNames = [ignoreComponentNames];
|
||||||
}
|
}
|
||||||
return context.$children.reduce((components, child) => {
|
return context.$children.reduce((components, child) => {
|
||||||
if (child.$options.name === componentName) components.push(child);
|
if (child.$options.name === componentName) components.push(child);
|
||||||
|
@ -222,7 +222,7 @@ export function findComponentsDownward (context, componentName, ignoreComponentN
|
||||||
const foundChilds = findComponentsDownward(child, componentName);
|
const foundChilds = findComponentsDownward(child, componentName);
|
||||||
return components.concat(foundChilds);
|
return components.concat(foundChilds);
|
||||||
} else {
|
} else {
|
||||||
return components
|
return components;
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue