唉,我这几天也在用kbone-ui,基本上每个组件都有bug,真遭罪
kbone-ui中KScrollView绑定的事件在小程序中都没有效果?代码如下,web正常,小程序端scrolltoupper、scroll事件都不调用 <KScrollView class="box-chat" id="boxChat" :scroll-y="true" :scroll-anchoring="true" @scrolltoupper="scrollToUpper" @scroll="scroll" :scroll-into-view="scrollTo" > <KView check-reduce class="box-loading" id="boxLoading"> <span class="loading" v-if="hasMore === 0">加载中...</span> <span class="not-more" v-if="hasMore === 2">没有更多消息了</span> <span class="not-more" v-if="hasMore === 3">暂无消息</span> <span class="load-more" v-if="hasMore === 1" @click="loadingHistory()">加载更多消息</span> </KView> <KView v-for="(v, i) in messageList" :key="i" :id="'msg-' + v.id"> <chat-message :msg="v" :online="isUserOnline"></chat-message> </KView> </KScrollView>
2020-05-20各位大佬,如果不用weui,有别的办法可以操纵滚动条吗?
kbone转小程序后利用ref操作滚动条报错?在我的一个.vue文件里 <template> <div class="tabBody" @scroll="onBodyScroll" ref="bodyScroll" /> </template> <script> export default { ... this.$refs.bodyScroll.scrollTo(100, 0);//这里会报错VM3061:1 TypeError: this.$refs.bodyScroll.scrollTo is not a function } </script>
2020-04-30