commit
d241b8fe7d
3 changed files with 5 additions and 4 deletions
|
@ -201,7 +201,7 @@
|
|||
child.width = this.listWidth;
|
||||
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;
|
||||
},
|
||||
// use when slot changed
|
||||
|
|
|
@ -75,7 +75,8 @@
|
|||
|
||||
return this.calendar(tableYear, tableMonth, (cell) => {
|
||||
// normalize date offset from the dates provided by jsCalendar
|
||||
if (cell.date instanceof Date) cell.date.setTime(cell.date.getTime() + cell.date.getTimezoneOffset() * 60000);
|
||||
// Comment out this code to fix daylight saving time bug
|
||||
// if (cell.date instanceof Date) cell.date.setTime(cell.date.getTime() + cell.date.getTimezoneOffset() * 60000);
|
||||
|
||||
const time = cell.date && clearHours(cell.date);
|
||||
const dateIsInCurrentMonth = cell.date && tableMonth === cell.date.getMonth();
|
||||
|
|
|
@ -214,7 +214,7 @@ export function findComponentDownward (context, componentName) {
|
|||
// Find components downward
|
||||
export function findComponentsDownward (context, componentName, ignoreComponentNames = []) {
|
||||
if (!Array.isArray(ignoreComponentNames)) {
|
||||
ignoreComponentNames = [ignoreComponentNames]
|
||||
ignoreComponentNames = [ignoreComponentNames];
|
||||
}
|
||||
return context.$children.reduce((components, child) => {
|
||||
if (child.$options.name === componentName) components.push(child);
|
||||
|
@ -222,7 +222,7 @@ export function findComponentsDownward (context, componentName, ignoreComponentN
|
|||
const foundChilds = findComponentsDownward(child, componentName);
|
||||
return components.concat(foundChilds);
|
||||
} else {
|
||||
return components
|
||||
return components;
|
||||
}
|
||||
}, []);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue