<template>
  <!-- 改组件用于底部固定一个或者三个按钮,写在rt-footer中 -->
  <div class="button-footer-area">
    <div class="flex-num" v-if="count==1">
      <slot name="large" />
    </div>
    <div class="flex-num" v-if="count==3">
      <slot name="left" />
    </div>
    <div class="flex-num" v-if="count==3">
      <slot name="middle" />
    </div>
    <div class="flex-num" v-if="count==3">
      <slot name="right" />
    </div>
  </div>
</template>
<script>
export default {
  name: 'RtButtonFooterArea',
  props: {
    count: {
      type: String | Number,
      required: true,
      default: '1'
    }
  }
};
</script>
<style lang="less">
.button-footer-area {
  display: flex;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: #ffffff;
  color: #0099ff;
  width: 100%;
  .flex-num {
    flex: 1;
    font-size: 14px;
    color: #1286fd;
    font-weight: 400;
  }
}
</style>
