test(Calendar): add test cases

This commit is contained in:
陈嘉涵
2019-12-26 19:10:47 +08:00
committed by neverland
parent 87ecdf9425
commit dec732daac
9 changed files with 790 additions and 10 deletions

View File

@@ -49,10 +49,6 @@ export default createComponent({
},
days() {
if (!this.visible) {
return null;
}
const days = [];
const year = this.date.getFullYear();
const month = this.date.getMonth();
@@ -95,6 +91,7 @@ export default createComponent({
return compareDay(day, currentDate) === 0 ? 'selected' : '';
}
/* istanbul ignore else */
if (type === 'range') {
const [startDay, endDay] = this.currentDate;