Skip to content

Commit

Permalink
refactor: 简化引入的表单组件
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Sep 2, 2023
1 parent 6c37b39 commit 7892d48
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pages/admin/shipping-tpls/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
import {useEffect, useRef, useState} from 'react';
import {CListBtn} from '@mxjs/a-clink';
import {Page, PageActions} from '@mxjs/a-page';
import {Form, FormItem, FormAction} from '@mxjs/a-form';
import {Form, FormItem, FormAction, FormList} from '@mxjs/a-form';
import {
Divider,
Radio,
Switch,
Table,
Form as AntdForm,
InputNumber,
TreeSelect,
Typography,
Expand Down Expand Up @@ -152,7 +151,7 @@ const New = () => {

<Divider/>

<AntdForm.List
<FormList
name="services">
{(fields) => (
<>
Expand Down Expand Up @@ -280,7 +279,7 @@ const New = () => {

</>
)}
</AntdForm.List>
</FormList>
</FormItem>
</>}

Expand Down

0 comments on commit 7892d48

Please sign in to comment.