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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue