Commit ce296e1d by caoyanzhi

优化实现

parent ab78ca19
<template>
<div class="flex">
<ul>
<li v-for="item in tagsList[0]" :key="item.tagId"></li>
</ul>
<div v-if="tagsList[1] && tagsList[1].length > 0">
{{ tagsList[1][0].levelType === 'or' ? '或者' : tagsList[1][0].levelType === 'andNot' ? '剔除' : '' }}
<div v-for="(tags, index) in tagsList" :key="tags">
<ul>
<li v-for="tag in tags" :key="tag.tagId"></li>
</ul>
<div v-if="(index === 0 && tagsList.length > 1) || (index === 1 && tagsList.length > 2)">
{{ tagsList[index][0].levelType === 'or' ? '或者' : tagsList[index][0].levelType === 'andNot' ? '剔除' : '' }}
</div>
</div>
<ul>
<li v-for="item in tagsList[1]" :key="item.tagId"></li>
</ul>
<div v-if="tagsList[2] && tagsList[2].length > 0">
{{ tagsList[2][0].levelType === 'or' ? '或者' : tagsList[2][0].levelType === 'andNot' ? '剔除' : '' }}
</div>
<ul>
<li v-for="item in tagsList[2]" :key="item.tagId"></li>
</ul>
</div>
</template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment