<template>
  <a-drawer
    width="45%"
    :title="formTitle"
    :label-col="4"
    :wrapper-col="14"
    :visible="open"
    :body-style="{height:'calc(100vh - 100px)',overflow:'auto'}"
    @close="cancel">
    <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
      <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="API类型" prop="apiType">
            <a-input v-model="form.apiType" placeholder="请输入API类型"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="错误描述" prop="apiError">
            <a-input v-model="form.apiError" placeholder="请输入错误描述"/>
          </a-form-model-item>
        </a-col>
      </a-row>
      </a-spin>
       <div class="bottom-control">
              <a-space>
              <a-button @click="cancel">
                  取消
              </a-button>
              <a-button type="primary" @click="submitForm">
                  保存
              </a-button>
              </a-space>
       </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import RunLogEditForm from './RunLogForm'
export default {
  ...RunLogEditForm
}
</script>
