fix specs, fix merge conflicts and cleanup

This commit is contained in:
Sergio Crisostomo 2018-01-22 14:23:05 +01:00
parent d9ff845f63
commit 5426dcf989
8 changed files with 36 additions and 17 deletions

View file

@ -82,7 +82,7 @@
start: isRange && time === minDay,
end: isRange && time === maxDay
};
}).cells.slice(8);
}).cells;
}
},
methods: {

View file

@ -1,4 +1,6 @@
import {clearHours} from '../util';
export default {
props: {
tableDate: {
@ -36,7 +38,7 @@ export default {
methods: {
handleClick (cell) {
if (cell.disabled) return;
const newDate = cell.date;
const newDate = new Date(clearHours(cell.date));
this.$emit('on-pick', newDate);
this.$emit('on-pick-click');

View file

@ -219,7 +219,6 @@
};
},
prevYear (panel) {
console.log(this)
const increment = this.currentView === 'year' ? -10 : -1;
this.changePanelDate(panel, 'FullYear', increment);
},

View file

@ -132,7 +132,7 @@
// set dateStart
Object.keys(start).forEach(type => {
dateStart[`set${capitalize(type)}`](start[type])
dateStart[`set${capitalize(type)}`](start[type]);
});
// set dateEnd

View file

@ -222,7 +222,6 @@ export const TYPE_VALUE_RESOLVER_MAP = {
},
multiple: {
formatter: (value, format) => {
console.log(value, format);
return value.filter(Boolean).map(date => formatDate(date, format)).join(',');
},
parser: (text, format) => text.split(',').map(string => parseDate(string.trim(), format))