1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
| import dayjs from 'dayjs'
| export default {
|
|
| // 判断已选的月份是否大于当前月份
| judgeDateValid(date){
| // 获得当月月份
| let currentMonth = dayjs()
| let selectMonth = date.getTime()
| // 选择大于现在月份
| if(selectMonth > currentMonth){
| return true
| }
|
| return false
| }
|
| }
|
|