5***@qq.com
5***@qq.com
  • 发布:2022-04-04 22:36
  • 更新:2022-04-04 22:42
  • 阅读:224

nvue页面 用的hello项目模板里的代码,在onRead()中自定义组件refs获取不到 HBX是3.3.13

分类:nvue
<swiper class="tab-view" ref="swiper1" id="tab-bar-view" :current="tabIndex" :duration="300"  
                        :circular="true" @change="onswiperchange">  
                        <swiper-item class="swiper-item" v-for="(page, index) in sortList" :key="index">  
                            <swiper-page class="swiper-page" :parentId="pageId" :pid="sortList[tabIndex].id" ref="page"></swiper-page>  
                        </swiper-item>  
                    </swiper>
2022-04-04 22:36 负责人:无 分享
已邀请:
5***@qq.com

5***@qq.com (作者)

setTimeout(() => {  

            }, 1000)onRead()内延迟一秒可以,使用this.$nextTick(() => {  

            })不行欸

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