<template>
  <div class="mbui">
    <div class="btm-menu"  v-clickoutside="handleoutside" :class="{active:isShow}">
      <slot name="imgList"></slot>
      <slot name="txtList"></slot>
      <img class="xiala" @click="$emit('close')" :src="require('@/assets/images/jiantou_w.png')" alt="">
    </div>

    <slot name="btn_zhankai"></slot>
    <slot name="aside"></slot>
    <slot name="select"></slot>
  </div>
</template>

<script>
export default {
  props:['isShow'],
  data(){
    return {
    }
  },
  methods:{
    handleoutside(){
      this.$emit('close')
    }
  }
}
</script>

<style lang="less" scoped>
.mbui {
  .btm-menu {
    position: fixed;
    bottom: -100px;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 300px;
    padding: 80px 0 0;
    overflow: hidden;
    max-height: 0;
    background:linear-gradient(to top, rgba(32, 32, 32, 0.8) 0,rgba(32, 32, 32, 0) 70% , rgba(32, 32, 32, 0) 100%);
    transition: .3s ease all;
    .xiala{
      position: absolute;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      width: 28px;
      z-index: 1000;
      cursor: pointer;
    }
  }
  .active{
    max-height: 300px;
    bottom: 0;
  }
}
</style>
