<template>
  <div class="cell">
    <div class="cell-left">
      <span class="cell-left-title">{{ title }}</span>
      <div class="cell-left-content" :class="{ wrap: wrap }">
        <slot>{{ content }}</slot>
      </div>
    </div>
    <span v-if="!noArrows" class="cell-right iconfont icon-arrow" />
  </div>
</template>
<script>
export default {
  name: 'GoodsCell',
  props: {
    title: {
      type: String,
      default: ''
    },
    content: {
      type: String,
      default: ''
    },
    wrap: {
      type: Boolean,
      default: false
    },
    noArrows: {
      type: Boolean,
      default: false
    }
  }
};
</script>
<style lang="less" scoped>
.cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 35px;
  background: #fff;
  &-left {
    display: flex;
    align-items: center;
    .text-13();
    &-title {
      color: @gray-4;
    }
    &-content {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      color: @black;
      margin-left: 10px;
      // max-width: 550px;
      &.wrap {
        flex-wrap: wrap;
      }
    }
  }
  &-right {
    color: @gray-3;
    .text-12();
  }
}
</style>
