|
|
@@ -5,7 +5,7 @@
|
|
|
ref="Calendar"
|
|
|
class="calendar"
|
|
|
v-model="date"
|
|
|
- :is-expanded="false"
|
|
|
+ :first-day-of-week="1"
|
|
|
:disabled-dates='disabledDates'
|
|
|
@transition-start="queryMoth"
|
|
|
@dayclick="onDayClick">
|
|
|
@@ -48,7 +48,6 @@ export default {
|
|
|
showPicker (){
|
|
|
let weeksBox = document.getElementsByClassName('vc-day');
|
|
|
let pickerBox = document.getElementsByClassName('date-picker-box')[0];
|
|
|
- console.log(this.num,'num')
|
|
|
if( this.showPicker){
|
|
|
for(let i = 0; i < weeksBox.length;i++){
|
|
|
weeksBox[i].style.transitionDuration = `.5s`;
|
|
|
@@ -57,7 +56,6 @@ export default {
|
|
|
pickerBox.style.height = `${this.height}px`;
|
|
|
console.log('show')
|
|
|
}else {
|
|
|
- alert(this.num)
|
|
|
this.height = pickerBox.offsetHeight;
|
|
|
for(let i = 0; i < weeksBox.length;i++){
|
|
|
weeksBox[i].style.transitionDuration = `.5s`;
|
|
|
@@ -71,8 +69,8 @@ export default {
|
|
|
methods:{
|
|
|
foldBox(){
|
|
|
let Calendar = this.$refs.Calendar;
|
|
|
+ console.log(Calendar,'Calendar')
|
|
|
this.num = Calendar.dateParts[0].week - 1;
|
|
|
- console.log(this.num,Calendar,'Calendar')
|
|
|
this.showPicker = !this.showPicker;
|
|
|
},
|
|
|
// 获取年、月份
|