article icon indicating copy to clipboard operation
article copied to clipboard

weex scroller组件的refresh和loading无法隐藏

Open zhangweia opened this issue 8 years ago • 3 comments

<scroller append="tree" class="cScroller">
	<refresh :display="refresh_display" @refresh="onrefresh" class="cRefresh" >
		<text v-if="refresh_display=='hide'">↓ 下拉更新</text>
		<loading-indicator style="width:60;height:60"></loading-indicator>
	</refresh>
	<div class="cContent">
		<text class="cCell" v-for="item in items">{{item.name}}</text>
	</div>
	<loading :display="loading_display" @loading="onloading" class="cRefresh">
		<text v-if="refresh_display=='hide'">↑ 上拉加载更多</text>
		<loading-indicator style="width:60;height:60"></loading-indicator>
	</loading>
</scroller>

通过vue的方式编写,refresh和loading 下拉加载以后,如果添加了refresh,在顶部会有一块refresh高度的空白区域

weex-sdk的版本是 compile 'com.taobao.android:weex_sdk:0.10.0' 另外我想知道在哪里看现在最新的sdk的版本到多少了?

zhangweia avatar May 13 '17 14:05 zhangweia

通过各种尝试以下方法可以解决,不过不是正规解法啊 .cRefresh{ display: flex; flex-direction: column; justify-content: center; align-items: center; margin-top: -200; height: 200; } 就是你设置height是多少,然后就margin-top多少

zhangweia avatar May 13 '17 15:05 zhangweia

weex的团队就没有针对用户提问的bug进行回复的,既然要推vue得写法,就要完善好,不然怎么用?

zhangweia avatar May 15 '17 08:05 zhangweia

正规方法有没解?

lookjoe avatar Apr 18 '18 10:04 lookjoe