export default {
  name: 'StaticForm',
  props: {
    form: Object
  },
  data() {
    return {
      labelCol: { span: 4 },
      wrapperCol: { span: 14 },
    }
  },
  render() {
    return (
      <a-form-model
        ref="form"
        props={{model: this.form}}
        labelCol={this.labelCol}
        wrapperCol={this.wrapperCol}
      >
        <a-form-model-item
          label="单行文本"
          prop="inputType"
          required={true}
          help="单行文本测试"
          rules={[{ required: true, message: '请输入单行文本', trigger: 'blur' }]}
        >
          <a-input v-model={this.form.inputType} placeholder="请输入"></a-input>
        </a-form-model-item>
      </a-form-model>
    )
  }
}