<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: flex-start;
  padding: 15px 12px;
  &-left {
    display: flex;
    .text-size(13);
    &-title {
      color: @black;
      font-weight: 600;
    }
    &-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-size(13);
  }
}
</style>
