<template>
  <el-form
    :label-position="tPosition"
    :label-width="tWidth">
    <el-form-item :label="title" :required="required">
      <el-input :placeholder="pText" :disabled="disabled"></el-input>
    </el-form-item>
  </el-form>
</template>
<script>
export default {
  name: "input",
  props: {
    /**
     * 标题宽度
     */
    tWidth: {
      type: String,
      default: "80px",
    },
    /**
     * 标题位置
     * @type Enum
     * @options ["top","left","right"]
     */
    tPosition: {
      type: String,
      default: "left",
    },
    /**
     * 标题
     */
    title: {
      type: String,
      default: "标题:",
    },

    /**
     * 提示文字
     */
    pText: {
      type: String,
      default: "提示文字",
    },
    /**
     * 是否必填
     */
    required:{
        type:Boolean,
        default:true
    },
    /**
     * 是否禁用
     */
    disabled:{
        type:Boolean,
        default:false
    }
  },
};
</script>
<style scoped>
</style>