码迷,mamicode.com
首页 > 其他好文 > 详细

vant area组件简单修改

时间:2020-06-22 17:03:27      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:blob   form   color   pos   list   com   city   sla   column   

可能需要的数据 省市数据

html

 <div class="area-box" :class="showArea?‘show‘:‘‘">
      <div class="area-box-sub" :class="showArea?‘show‘:‘‘">
        <van-area title="标题" :area-list="areaList" value="110101" @confirm="confirm" @cancel="cancle" />
      </div>
    </div>

style

.area-box {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  top: 0;
  height: 100vh;
  /* height: 100vh; */
  overflow: hidden;
  width: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease-in;
  visibility: hidden;
  opacity: 0;
  /* ops */
}



.area-box.show {
  visibility: visible;
  opacity: 1;
}

.area-box-sub {
  transform: translate(0, 100%);
  transition: transform 0.2s ease-in;
}



.area-box-sub.show {
  transform: translate(0, 0);
}

vant area组件简单修改

标签:blob   form   color   pos   list   com   city   sla   column   

原文地址:https://www.cnblogs.com/shiazhen/p/13177684.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!