v-for渲染列表数据

		<u-grid :col="4">
			<u-grid-item v-for="(item,index) in subject" :key = "name">
				<view>{{item.name}}</view>
				<view>{{item.value}}</view>				
			</u-grid-item>
		</u-grid>
	  </view>

数据示例:

 subject:[{
		  name:'能力',
		  value:'80'
	  },
	  {
	  		  name:'态度',
	  		  value:'80'
	  },
	  {
	  		  name:'团队',
	  		  value:'80'
	  },
	  {
	  		  name:'学习',
	  		  value:'80'
	  },
	  ],
posted @ 2021-05-21 17:00  黑蛋的博客  阅读(127)  评论(0编辑  收藏  举报