import React, { Fragment } from 'react';
import { Input, Form } from '@easyv/antd';

const FormItem = Form.Item;

export default function ApiForm() {
  return (
    <Fragment>
      <FormItem label="BaseURL" name="baseURL" rules={[{ required: true, message: '请输入URL地址!', whitespace: true }]}>
        <Input placeholder={'http[s]://hostname[:port][/pathname]'} />
      </FormItem>
      <FormItem label="AppKey" name="appKey" rules={[{ required: true, message: '请输入AppKey!', whitespace: true }]}>
        <Input placeholder="请输入数据源AppKey" />
      </FormItem>
      <FormItem label="AppSecret" name="appSecret" rules={[{ required: true, message: '请输入AppSecret!', whitespace: true }]}>
        <Input placeholder="请输入数据源AppSecret" />
      </FormItem>
    </Fragment>
  );
}
