fix specs, fix merge conflicts and cleanup
This commit is contained in:
parent
d9ff845f63
commit
5426dcf989
8 changed files with 36 additions and 17 deletions
|
@ -82,7 +82,7 @@
|
|||
start: isRange && time === minDay,
|
||||
end: isRange && time === maxDay
|
||||
};
|
||||
}).cells.slice(8);
|
||||
}).cells;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -219,7 +219,6 @@
|
|||
};
|
||||
},
|
||||
prevYear (panel) {
|
||||
console.log(this)
|
||||
const increment = this.currentView === 'year' ? -10 : -1;
|
||||
this.changePanelDate(panel, 'FullYear', increment);
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue