[
https://issues.apache.org/jira/browse/WEEX-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16429585#comment-16429585
]
ASF GitHub Bot commented on WEEX-279:
-------------------------------------
GitHub user gubaojian reopened a pull request:
https://github.com/apache/incubator-weex/pull/1102
[WEEX-279][android]Weex TemplateList Component Fix For Loop ++
[WEEX-279][android]Weex TemplateList Component Fix For Loop ++
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gubaojian/incubator-weex release-0.18-fix-loop
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-weex/pull/1102.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1102
----
commit 99bea7d07d2553e02ffa0e22a4538ca87eb6649f
Author: jianbai.gbj <jianbai.gbj@...>
Date: 2018-04-06T13:50:18Z
[WEEX-279][android]Weex TemplateList Component Fix For Loop ++
----
> recycle-list 组件下的多重循环 错误
> ------------------------
>
> Key: WEEX-279
> URL: https://issues.apache.org/jira/browse/WEEX-279
> Project: Weex
> Issue Type: Bug
> Components: Android
> Affects Versions: 0.18
> Environment: Weex SDK Version
> 0.18.0-beta-3
> JS Framework 0.24.5
> platform android
> osVersion 5.1
> deviceModel m1 metal
> Reporter: Zisong Lu
> Assignee: Adam Feng
> Priority: Blocker
>
> 安卓环境 <recycle-list> 组件下的 v-for = "(xx, index) in xxx 循环" , index 无法取得 (ios 正常)
> {code:java}
> <template>
> <recycle-list for="(item, i) in lists">
> <cell-slot>
> <div v-for="(n, k) in item.ts" :key="k">
> <text class="text">{{n}} -- {{k}}</text>
> </div>
> </cell-slot>
> </recycle-list>
> </template>
> <script>
> export default {
> data () {
> return {
> lists: [
> { ts: ['零', '一', '二', '三', '四'] }
> ]
> }
> }
> }
> </script>
> // 显示结果
> //------------------------------------------------
> // 安卓: 零 -- 0 ios: 零 -- 0
> // 安卓: 一 -- 0 ios: 一 -- 1
> // 安卓: 二 -- 0 ios: 二 -- 2
> // 安卓: 三 -- 0 ios: 三 -- 3
> // 安卓: 四 -- 0 ios: 四 -- 4
> {code}
> 我尝试根据 ’GitHub Pull Request #1102‘ 去修改对应的文件,当前组件的循环确实可以正常运行,
> *但是* 如果当前组件下有{color:#FF0000}带有循环的子组件{color}时,问题依旧存在
> {code:java}
> // index.vue
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)