封装下拉多选框

39次阅读

共计 499 个字符,预计需要花费 2 分钟才能阅读完成。

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

正文完
 0