<template>
  <div class="item-info-con flex-default">
    <div class="label">
      {{ label }}
    </div>
    <div class="value-con flex-default">
      <slot name="valueWrap">
        <div class="value" v-show="value">
          {{ value }}
        </div>
        <div class="placeholder" v-show="!value">
          {{ placeholder }}
        </div>
      </slot>
      <m-icon
        icon="icon-more-light"
        :size="10"
        className="more"
        v-show="icon"
      />
    </div>
  </div>
</template>

<script>
export default {
  props: ["label", "value", "icon", "placeholder"],
  data() {
    return {};
  },
  methods: {},
};
</script>

<style lang="less">
.item-info-con {
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f1f1;
  align-items: flex-start;
  .label {
    font-size: 14px;
    color: #140603;
    flex-shrink: 0;
    margin-right: 10px;
    line-height: 20px;
    padding: 16px 0;
  }
  .value-con {
    width: 100%;
    flex-shrink: 1;
    align-items: flex-start;
    padding: 16px 0;
    min-height: 53px;
    .value {
      line-height: 20px;
      flex-shrink: 1;
      width: 100%;
      text-align: right;
      font-size: 14px;
      color: #aeaeae;
      word-wrap: break-word;
      word-break: break-all;
    }
    .placeholder {
      color: #aeaeae;
      font-size: 14px;
      flex-shrink: 1;
      width: 100%;
      text-align: right;
      line-height: 20px;
    }
    .m-icon,
    .more {
      flex-shrink: 0;
      width: 11px !important;
      margin-left: 4px;
      margin-top: 4px;
    }
  }
}
</style>
