all files / src/stepper/ stepContent.vue

100% Statements 0/0
100% Branches 0/0
100% Functions 0/0
100% Lines 0/0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56                                                                                                               
<template>
  <div class="mu-step-content"  :class="{'last': last}">
    <div style="position: relative; overflow: hidden; height: 100%;">
      <expand-transition>
        <div class="mu-step-content-inner" ref="inner" v-if="active">
          <slot></slot>
        </div>
      </expand-transition>
    </div>
</div>
</template>
 
<script>
import expandTransition from '../internal/expandTransition'
export default {
  name: 'mu-step-content',
  props: {
    active: {
      type: Boolean
    },
    last: {
      type: Boolean
    }
  },
  components: {
    'expand-transition': expandTransition
  }
}
</script>
 
<style lang="less">
@import "../styles/import.less";
.mu-step-content{
  margin-top: -14px;
  margin-left: 25px;
  padding-left: 21px;
  padding-right: 16px;
  overflow: hidden;
  .mu-stepper-vertical & {
    border-left: 1px solid @grey400;
  }
  &.last {
    border-left: none;
  }
}
 
.mu-step-content-inner {
  position: relative;
  width: 100%;
  top: 0px;
  left: 0px;
  overflow: hidden;
}
 
</style>