You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by 韩海波 <hh...@163.com> on 2018/02/27 03:52:29 UTC

weex v0.17 bug报告

问题描述:伪类:activie 在版本com.taobao.android:weex_sdk:0.17.0@aar 上无效(快速点击可用,正常点击时,无法恢复正常色)




代码样例:只需变更版本即可复现bug。


<template> <list class="list" @loadmore="fetch" loadmoreoffset="10"> <cell class="root rootSelected" v-for="num in lists"> <div class="panel"> <text class="text">{{num}}</text> </div> </cell> </list> </template> <script> const modal = weex.requireModule('modal') const LOADMORE_COUNT = 4 export default { data () { return { lists: [1, 2, 3, 4, 5] } }, methods: { fetch (event) { modal.toast({ message: 'loadmore', duration: 1 }) setTimeout(() => { const length = this.lists.length for (let i = length; i < length + LOADMORE_COUNT; ++i) { this.lists.push(i + 1) } }, 800) } } } </script> <style scoped> .root{ background-color: #FFFFFF; height: 300px; } .rootSelected:active { background-color: #e2e2e2; } .panel { width: 600px; height: 250px; margin-left: 75px; margin-top: 35px; margin-bottom: 35px; flex-direction: column; justify-content: center; border-width: 2px; border-style: solid; border-color: rgb(162, 217, 192); background-color: rgba(162, 217, 192, 0.2); } .text { font-size: 50px; text-align: center; color: #41B883; } </style>

Re: weex v0.17 bug报告

Posted by misakuo <mi...@apache.org>.
It is has been fixed in https://github.com/apache/incubator-weex/pull/907
Upgrade weex to 0.18.0 should be able to solve this problem

在 2018年2月27日 上午11:52,韩海波 <hh...@163.com>写道:

> 问题描述:伪类:activie 在版本com.taobao.android:weex_sdk:0.17.0@aar
> 上无效(快速点击可用,正常点击时,无法恢复正常色)
>
>
>
>
> 代码样例:只需变更版本即可复现bug。
>
>
> <template> <list class="list" @loadmore="fetch" loadmoreoffset="10"> <cell
> class="root rootSelected" v-for="num in lists"> <div class="panel"> <text
> class="text">{{num}}</text> </div> </cell> </list> </template> <script>
> const modal = weex.requireModule('modal') const LOADMORE_COUNT = 4 export
> default { data () { return { lists: [1, 2, 3, 4, 5] } }, methods: { fetch
> (event) { modal.toast({ message: 'loadmore', duration: 1 }) setTimeout(()
> => { const length = this.lists.length for (let i = length; i < length +
> LOADMORE_COUNT; ++i) { this.lists.push(i + 1) } }, 800) } } } </script>
> <style scoped> .root{ background-color: #FFFFFF; height: 300px; }
> .rootSelected:active { background-color: #e2e2e2; } .panel { width: 600px;
> height: 250px; margin-left: 75px; margin-top: 35px; margin-bottom: 35px;
> flex-direction: column; justify-content: center; border-width: 2px;
> border-style: solid; border-color: rgb(162, 217, 192); background-color:
> rgba(162, 217, 192, 0.2); } .text { font-size: 50px; text-align: center;
> color: #41B883; } </style>