蓝色的爱
蓝色的爱
  • 发布:2020-10-10 09:11
  • 更新:2020-10-12 15:55
  • 阅读:696

#插件讨论# 【 Calendar 日历 - DCloud 】 startDate,动态加载不起作用;

分类:uni-app

startDate,动态加载不起作用;
const _this=this;
setTimeout(()=>{
_this.startDate = '2020-10-07'
})

2020-10-10 09:11 负责人:无 分享
已邀请:
8***@qq.com

8***@qq.com

我是自己修改组件。 uni-calendar.vue里面添加watch监听 startDate、endDate,以下部分代码。

        watch: {  
            selected(newVal) {  
                this.cale.setSelectInfo(this.nowDate.fullDate, newVal)  
                this.weeks = this.cale.weeks  
            },  
            startDate(newVal){  
                this.cale.startDate = newVal;  
            },  
            endDate(newVal){  
                this.cale.endDate = newVal;  
            }  
        },

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