vue在原有的类名上,动态渲染添加新类名
vue在原有的类名上,动态渲染添加新类名
<view class="other">
<block v-for="(item, index) in otherData" :key='index'>
<view class="item">
//这里的iconfont 属于原来的类名,注意要添加单引号
<text :class="['iconfont',item.icon]"></text>
<view class
原创
2020-06-17 10:20:10 ·
1012 阅读 ·
0 评论