记录效果如图:
实现过程:
.pug(html)
.row(:gutter='10')
el-col(:span='5')
span.reminder-text 商品标签:
el-col(:span='20').skuTagsArea
.tagGroup(v-for='(item, index) in tagAll')
.tagName {
{item.tagName}}
.sku-tags
.tag-span(
v-for='(tag, ind) in item.tags'
:class="{select: selectTagId[index] && selectTagId[index].key === tag.key && selectTagId[index].active}"
@click='selectTag(index, ind)') {
{tag.tag}}
.js
data() {
return {
...
tagAll: [{
tagName: '辣度标签',