<template>
  <div class="m-form-item-con" @click="$emit('click')">
    <div class="m-form-item flex-default">
      <div class="label" :style="{ width: labelWidth }">{{ label }}</div>
      <div class="content">
        <slot></slot>
      </div>
      <m-icon icon="icon-more-light" :size="10" className="more" />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    label: String,
    labelWidth: {
      type: String,
      default: "65px",
    },
  },
};
</script>

<style lang="less">
.m-form-item-con {
  padding: 0 13px;
  background: #ffffff;
  > .m-form-item {
    padding: 20px 0;
    // box-shadow: 0px 0px 1px 0px #f1f1f1;
    align-items: flex-start;
    border-top: 1px solid #f1f1f1;
    > .label {
      font-size: 14px;
      color: #140603;
      line-height: 20px;
      font-weight: bold;
      margin-right: 5px;
    }
    > .content {
      flex: 1;
      margin-right: 5px;
    }
    > .more {
      margin-top: 5px;
    }
  }
}
</style>