diff --git a/components/form/demo/typeByDivider.tsx b/components/form/demo/typeByDivider.tsx index f152e7a..93aab0c 100644 --- a/components/form/demo/typeByDivider.tsx +++ b/components/form/demo/typeByDivider.tsx @@ -1,7 +1,7 @@ -import React from 'react' -import { Form } from 'at-console-components' -import { Store } from 'antd/lib/form/interface' import { FormItemProps } from '..' +import { Store } from 'antd/lib/form/interface' +import { Form } from 'at-console-components' +import React from 'react' const { useForm } = Form diff --git a/components/form/demo/typeBySubTitle.tsx b/components/form/demo/typeBySubTitle.tsx new file mode 100644 index 0000000..3eb82d6 --- /dev/null +++ b/components/form/demo/typeBySubTitle.tsx @@ -0,0 +1,50 @@ +import { FormItemProps } from '..' +import { Store } from 'antd/lib/form/interface' +import { Form } from 'at-console-components' +import React from 'react' + +const { useForm } = Form + +export default function BaseDemo() { + const [form] = useForm() + const baseItems: FormItemProps[] = [ + { + label: '介绍', + type: 'subTitle', + }, + { + name: 'name', + label: '姓名', + }, + { + name: 'sex', + label: '性别', + }, + { + label: '其他', + type: 'subTitle', + }, + { + name: 'website', + label: '个人主页', + }, + ] + + return ( +