fh created WEEX-499:
-----------------------

             Summary: the element in slider don't trigger it's appear event 
when slider changed
                 Key: WEEX-499
                 URL: https://issues.apache.org/jira/browse/WEEX-499
             Project: Weex
          Issue Type: Bug
          Components: iOS
            Reporter: fh
            Assignee: xingZhang


 
{code:java}
<div>
<slider class="slider"
ref="sliderBox"
:style="{height:normalHeight}"
auto-play="true"
interval="3000">
<div v-for="(item, index) in config.swipeList"
:key="index">
<image resize="cover"
:style="{width:item.width, height:item.height}"
:src="defaultImg"
:placeholder="defaultImg"
v-demo="item.imgUrl"></image>
</div>
<indicator class="silder-indicator" v-if="config.isShowDot"></indicator>
</slider>
</div>
{code}
 

the v-demo listen the image's appear event, however in the slider ,which 
structure looks like the code above, don't rigger it's appear event when slider 
changed. Until i scroll the the <list> the appear event is triggered. 

 

 

我使用 v-demo 这个自定义指令来监听slider内部 image 元素的 appear 事件,在 appear 
事件内做一些处理。但是,像上面这样的结构,slider自动轮播时,内部 image 元素的 appear 事件没有被触发。当我滑动外层的 list 时,这儿的 
image 元素的 appear 事件才触发。

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to