<template>
  <el-input
    v-if="!preview"
    v-model="models[record.model]"
    type="textarea"
    :placeholder="record.options.placeholder"
    :rows="record.options.rows"
    :autosize="record.options.autosize"
    :maxlength="record.options.maxLength > 0 ? record.options.maxLength : null"
    :show-word-limit="record.options.maxLength && record.options.maxLength > 0 ? true : false"
    @focus="handleFocus"
    @blur="handleBlur"
  />
  <span v-else>{{ models[record.model] }}</span>
</template>
<script>
import { dynamicFun } from '../../../../utils/index.js'
import mixin from '../../mixin.js'
export default {
  mixins: [mixin],
  created() {
	  this.updateSimpleDefaultValue()
  }
}
</script>
