<template>
  <div
    class="vux-flexbox"
    :class="{'vux-flex-col': orient === 'vertical', 'vux-flex-row': orient === 'horizontal'}"
    :style="styles"
  >
    <slot />
  </div>
</template>

<script>
export default {
  props: {
    gutter: {
      type: Number,
      default: 8
    },
    orient: {
      type: String,
      default: 'horizontal'
    },
    justify: String,
    align: String,
    wrap: String,
    direction: String
  },
  computed: {
    styles () {
      return {
        'justify-content': this.justify,
        'align-items': this.align,
        'flex-wrap': this.wrap,
        'flex-direction': this.direction
      }
    }
  }
}
</script>
