<template>
    <BasicEditor :question="question" :surveyModel="surveyModel">
        <el-tab-pane :label="$t('general.btnEdit')" name="edit">
            <el-form label-position="left" size='small'>
                <el-form-item :label="$t('editor.questName')">
                    <el-input v-model="question.name" :disabled="true"></el-input>
                </el-form-item>
                <el-form-item :label="$t('editor.questTitle')">
                    <el-input maxlength="200" v-model="question.title"></el-input>
                </el-form-item>
                <el-form-item :label="$t('editor.questDesc')">
                    <el-input maxlength="1000" type="textarea" v-model="question.description"></el-input>
                </el-form-item>
                <el-form-item :label="$t('editor.questMaxSize')">
                    <el-input v-model="question.maxSize"></el-input>
                </el-form-item>
                <el-form-item :label="$t('editor.questImageHeight')">
                    <el-input v-model="question.imageHeight"></el-input>
                </el-form-item>
                <el-form-item :label="$t('editor.questImageWidth')">
                    <el-input v-model="question.imageWidth"></el-input>
                </el-form-item>
            </el-form>
        </el-tab-pane>
        <el-tab-pane :label="$t('general.btnChoose')" name="vaildator">
            <el-form>
                <el-form-item >
                        <div style="text-align: left;"><el-checkbox v-model="question.visible" >{{ $t('editor.isVisible') }}</el-checkbox></div>
                        <div style="text-align: left;"><el-checkbox v-model="question.isRequired" >{{ $t('editor.isRequired') }}</el-checkbox></div>
                        <!-- <div style="text-align: left;"><el-checkbox v-model="question.startWithNewLine" >是否另起一行</el-checkbox></div>
                        <div style="text-align: left;"><el-checkbox v-model="question.showPreview">是否预览显示选择的文件?</el-checkbox></div> -->
                        <!-- <div style="text-align: left;"><el-checkbox v-model="question.storeDataAsText" label="Store file conten in JSON result astext"></el-checkbox></div> -->
                </el-form-item>
            </el-form>
        </el-tab-pane>
    </BasicEditor>
</template>

<script>
import Editor from './Editor'
import BasicEditor from './BasicEditor'
export default {
  mixins: [Editor],
  components: {
    BasicEditor
  },
  props: ['surveyModel'],
  data: function () {
    var self = this
    return {
      checkList: []
    }
  },
  beforeCreate: function () {

  },
  mounted: function () {
  }
}
</script>
<style type="text/css">
.el-form{
    padding: 15px;
}
.el-form-item{
    margin-bottom: 15px;
}
.el-form-item .el-form-item__label{
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 12px;
    /* line-height: 12px; */
}
.el-form-item .el-form-item__content{
    line-height: 34px;
    font-size: 14px;
}
.el-form-item .el-form-item__content .el-input__inner{
    background-color: #fff !important;
    /*height: 34px;*/
    /*line-height: 34px;*/
    padding: 6px 12px;
}

</style>
