block:{ name:'碧海蓝天1号楼', units:[{ num:'1单元', floors:[ { num:'1楼', house:[ {num:'101'}, {num:'102'} ] }, { num:'2楼', houses:[ {num:'201'}, {num:'202'} ] } ] }, { num:'2单元', floors:[{ num:'1楼', houses:[ {num:'103'}, {num:'104'} ] }, { num:'2楼', houses:[ {num:'203'}, {num:'204'} ] }] },{ num:'3单元', floors:[{ num:'1楼', houses:[ {num:'105'}, {num:'106'} ] }, { num:'2楼', houses:[ {num:'205'}, {num:'206'} ] }] }] }//效果图
1 回答
已采纳
kixv
TA贡献13条经验 获得超2个赞
<!--表头-->
<div v-for="a in block" v-text="a.name"></div>
<!--body-->
<div v-for="a in block" v-text="a.name">
<div v-for="o in a" v-text="o.num"></div>
</div>
样式自己写啦
添加回答
举报
0/150
提交
取消