|
[多端开发]
AVM 安卓list-view无法向组件传递对象值
[复制链接]
本帖最后由 布子规 于 2021-4-22 16:01 编辑
以下报错:at startup execute script failed,Cannot read property 'avatar' of undefined at new.js
页面:
- <list-view id="listView" onscrolltolower="scrolltolower">
- <cell class="card">
- <api-card v-bind:it={item}></api-card>
- </cell>
- </list-view>
复制代码
组件:
- <template>
- <view>
- <image class="avatar" src={it.avatar}></image>
- </view>
- </template>
- <script>
- export default {
- name: 'api-card',
- props: {
- it: Object
- }
- }
- </script>
复制代码
|
|