<template>
  <div class="base_form">
    <div class="label">
      <img class="pre-tag" src="../../../assets/images/template/pre-tag.png" />
      <div class="label-text">{{ property.label }}</div>
    </div>
    <div class="input-box">
      <el-input
        type="textarea"
        :rows="2"
        :placeholder="'请输入' + property.label"
        v-model="property.value"
      >
      </el-input>
    </div>
  </div>
</template>

<script>
export default {
  props: ["property"],
};
</script>
<style lang="less" scoped>
.base_form {
  flex-shrink: 0;
  padding-left: 18px;
  font-size: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  justify-content: flex-start;
}
.label {
  display: inline-block;
  width: 150px;
  flex-shrink: 0;
  cursor: pointer;
  color: #797d84;
  line-height: 44px;
  font-size: 14px;
  font-weight: 300;
  position: relative;
}
.pre-tag {
  position: absolute;
  left: -30px;
  top: 14px;
  display: none;
}
.label-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.input-box {
  width: 800px;
}
</style>