<template>
  <!-- 输出框 -->
  <Input
    v-model="value"
    :width="250"
    :placeholder="placeholder"
    :disabled="isDisabled"
    :type="formItemObj.name === '项目简介' ? 'textarea' : 'input'"
    :rows="6"
    :right-button="
      unit
        ? [
            {
              id: '1',
              name: unit,
              checked: 'checked',
            },
          ]
        : []
    "
  ></Input>
</template>
<script>
export default {
  props: {
    initValue: {
      type: [String, Number, Array, Object],
      default: () => {
        return "";
      },
    },
    placeholder: {
      type: String,
      default: "请输入",
    },
    isDisabled: false,
    unit: String,
    formItemObj: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      value: this.initValue,
    };
  },
};
</script>
