weex 通过v-for循环渲染列表。并绑定 ref,在weex-playground 上是可以正常的。但是在xcode模拟器上就报错,找不到
问题出现的环境背景及自己尝试过哪些方法
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)
<template v-if="!cardListLoading">
<Card v-for="(item, index) in slides"
:key="index"
class="card-item"
:userBasic="item"
:ref="cardItem"></Card>
</template>
获取
let current = this.$refs.cardItem[this.currentIndex]
<Card ref="cardItem"></Card>