Skip to content

v3编译block中使用v-for失效 #1206

Closed
@jin-yufeng

Description

问题描述

<template>
  <view>
    <block v-for="(item, index) in arr" v-bind:key="index">
      {{item}}
    </block>
  </view>
</template>
<script>
  export default {
    data() {
      return {
        arr: [1,2,3]
      }
    }
  }
</script>

通过 v3 版本编译上述代码的 APP,显示空白

系统信息:

  • 发行平台::APP
  • HBuilderX版本:2.5.0(v3)

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions