乐趣区

封装下拉多选框

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

退出移动版