'''
<template>
<view>
<ren-calendar ref="calendar" :signeddates="signeddates" @onDayClick="onDayClick"></ren-calendar>
<button @click="onMonthChange">改变月份</button>
</view>
</template>
<script>
export default {
data() {
return {
signeddates:['2020-7-1']
}
},
methods: {
onMonthChange(e){//改变月份
console.log(e);
this.$refs.calendar.changYearMonth(2020,6)
},
onDayClick(e) {//日点击
console.log(e);
}
}
}
</script>
'''
1 个回复
RenCode - arencode@qq.com
是的,调用changYearMonth方法能改变吗?