dou wzy
dou wzy
> Hello @Emi94, > thanks for your report, I think the message is displayed, because phpCAS encourages people to use the composer autoloader for including phpCAS from version 1.3.9 on....
我也遇到了这个问题,不过我采取了如下方式进行解决。 **原因:** [因为在 nvue (weex)下 getComponentRect 方法需要在节点渲染后调用才能获取正确的信息]( https://weexapp.com/zh/docs/modules/dom.html#getcomponentrect),而在 nvue 中 $nextTick并不是100%可靠的。 所以根据 vue 的生命周期特性,以及 weex 文档的建议。在updated生命周期回调函数中再次进行一次月份组件宽高的测量。即可解决问题 updated() { // #ifdef APP-NVUE this.$nextTick(() => { uni.$u.sleep(10).then(() => { this.getWrapperWidth() this.getMonthRect() })...
这个就不清楚了,不知道小程序的渲染机制是怎样的。