<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>
    <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>

<script>
export default {
  name: 'selected-tags-list',
  props: {
    tagsList: {
      type: Array,
      required: true
    }
  },
  mounted() {
    setTimeout(() => {
      console.log(this.tagsList);
    }, 2000);
  }
};
</script>

<style lang="less" scoped></style>
