We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题描述
<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,显示空白
v3
APP
系统信息:
The text was updated successfully, but these errors were encountered:
fix(v3): v-for without child element #1206
9f13c0f
@fxy060608 2.5.1(v3) 上面那样可以了,下面这样依然是空白
2.5.1(v3)
<template> <view> <block v-for="(item,index) in arr" v-bind:key="index"> <block v-if="item==3">{{item}}</block> </block> </view> </template> <script> export default { data() { return { arr: [1,2,3] } } } </script>
把 v-for 的 block 换成 view 就可以
v-for
block
view
Sorry, something went wrong.
7691d88
此问题已修复
@fxy060608 这样又空白了(2.6.15 v3)
<template> <view> <block v-for="(item, index) in arr" v-bind:key="index"> <view v-if="item == 0">1</view> <block v-else-if="item == 1">2</block> </block> </view> </template> <script> export default { data() { return { arr:[1] } } } </script>
fxy060608
No branches or pull requests
问题描述
通过
v3
版本编译上述代码的APP
,显示空白系统信息:
The text was updated successfully, but these errors were encountered: