问题描述:伪类: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>

Reply via email to