<template>
  <div>
    <el-form-item label="占位文本">
      <el-input v-model="main.activeOption.placeholder"></el-input>
    </el-form-item>
    <el-form-item label="是否禁用">
      <el-switch v-model="main.activeOption.disabled"></el-switch>
    </el-form-item>
    <el-form-item label="是否可清空">
      <el-switch v-model="main.activeOption.clearable"></el-switch>
    </el-form-item>
    <el-form-item label="最大长度">
      <el-input-number v-model="main.activeOption.maxLength" :min="0"></el-input-number>
    </el-form-item>
    <el-form-item label="最小长度">
      <el-input-number v-model="main.activeOption.minLength" :min="0"></el-input-number>
    </el-form-item>
    <el-form-item label="显示字数统计">
      <el-switch v-model="main.activeOption.showWordLimit"></el-switch>
    </el-form-item>
  </div>
</template>

<script>
export default {
  name: 'input',
  inject: ["main"]
}
</script> 