封装下拉多选框

<section class=”Select”>

<div>
  <div class="selectTop" @click="selectDown">
    <p class="selectMain">
      <span class="span" v-for="(item,index) in selectList" :key="index">
        <span>{{item.text}}</span>
        <i class="selecticon" @click="setupSelect(item,1)">&times;</i>
      </span>
    </p>
    <i class="seletIcon" v-if="selectMainBool">&#8593;</i>
    <i class="seletIcon" v-else>&#8595;</i>
  </div>
  <div class="selectBottom" v-if="selectMainBool">
    <p v-for="(item,index) in lists" :key="index" @click="setupSelect(item,0)">{{item.text}}</p>
  </div>
</div>

</section>

    原文作者:啊衰
    原文地址: https://segmentfault.com/a/1190000019688843
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞