z***@163.com
z***@163.com
  • 发布:2020-07-14 09:40
  • 更新:2020-07-14 11:06
  • 阅读:656

#插件讨论# 【 ren-calendar - 739190475 】是这样调用吗

分类:uni-app

'''
<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>
'''

2020-07-14 09:40 负责人:无 分享
已邀请:
RenCode

RenCode - arencode@qq.com

是的,调用changYearMonth方法能改变吗?

该问题目前已经被锁定, 无法添加新回复