<!--
 * @Author: WangJiaCheng
 * @Date: 2021-05-11 17:37:33
 * @LastEditors: WangJiaCheng
 * @LastEditTime: 2021-05-12 16:16:05
 * @Description: 表单配置
-->
<template>
  <div class="form-config">
    <el-form
      :model="formData"
      label-width="100px"
    >
      <el-form-item label="表单模型" prop="formModel">
        <el-select v-model="formData.formModel" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="表单模型预览">

      </el-form-item>
      <el-form-item label="查询接口" prop="searchApi">
        <el-input v-model="formData.searchApi" />
      </el-form-item>
      <el-form-item label="请求方式" prop="apiMethod">
        <el-input v-model="formData.searchApi" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>

export default {
  name: 'FormConfig',
  components: {
  },
  data() {
    return {
      formData: {},
      options: [
        {
          value: '1',
          label: '表单1'
        },
        {
          value: '2',
          label: '表单2'
        }
      ]
    }
  }
}
</script>

<style lang="less">

</style>
