apache / incubator-weex

Apache Weex (Incubating)
https://weex.apache.org
Apache License 2.0
13.75k stars 1.82k forks source link

[IOS][recycle-list] Unexpected behavior on recycle-list #2152

Open fred-ye opened 5 years ago

fred-ye commented 5 years ago

When I write code like this:

<template>
 <recycle-list class="list" for="(row, index) in dataList">
      <cell-slot style="flex:row">
       <text>共{{row.rowData.length}}个:</text>
        <div v-for="(item, index) in row.rowData">
          <text>key: {{item.key}} value: {{item.val}}</text>
        </div>
      </cell-slot>
    </recycle-list>
</template>

<script>
  export default {
    data: {
      dataList:[
        {rowData: [{key: 'A1', val: '1'}, {key: 'A2', val:'2'}]},
        {rowData: [{key: 'B1', val: '1'}, {key: 'B2', val: '2'}, {key: 'B3', val: '3'}]}
      ]
    }
  }
</script>

please check the demo

As we expected, after the code on the forth line with bold style executed, it will show a number, but actually, it won't on iOS, please check the screenshot image

YorkShen commented 5 years ago

Have you tried the latest version of weex?

fred-ye commented 5 years ago

Have you tried the latest version of weex?

I downloaded the latest playground application from weex offical website.

I also used taobao mobile application (version 8.4.0) on iOS platfrom to run the demo and had the same issue.

YorkShen commented 5 years ago

Bug received, we will look into it, thanks for your feedback.