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

const FormItem = Form.Item;

export default function DTableAPI() {
  return (
    <Fragment>
      <FormItem
        label="API Key"
        name="api_key"
        rules={[
          { required: true, message: '请输入API Key', whitespace: true },
          { max: 20, message: '长度不能超过20' },
        ]}>
        <Input placeholder="请输入API Key" />
      </FormItem>
    </Fragment>
  );
}
