(date)
| 160 | |
| 161 | // date 循环的某一天 |
| 162 | getDayType(date) { |
| 163 | const { type, minDate, maxDate, currentDate } = this.data; |
| 164 | |
| 165 | if (compareDay(date, minDate) < 0 || compareDay(date, maxDate) > 0) { |
| 166 | return 'disabled'; |
| 167 | } |
| 168 | |
| 169 | if (type === config.TYPE_SINGLE) { |
| 170 | return compareDay(date, currentDate) === 0 ? 'selected' : ''; |
| 171 | } |
| 172 | |
| 173 | if (type === config.TYPE_MULTIPLE) { |
| 174 | return this.getMultipleDayType(date); |
| 175 | } |
| 176 | |
| 177 | if (type === config.TYPE_RANGE) { |
| 178 | return this.getRangeDayType(date); |
| 179 | } |
| 180 | }, |
| 181 | |
| 182 | getBottomInfo(type) { |
| 183 | if (this.data.type === config.TYPE_RANGE) { |
nothing calls this directly
no test coverage detected