前端项目实战叁佰玖拾肆react-admin和material ui-react-hook-form 使用

dsysama

关注

阅读 38

2023-09-09


<Edit resource={resource} id={id}>
      <SimpleForm toolbar={false}>
        <Stack direction={'row'}>
          <TextInput variant='outlined' sx={{ mr: 1 }} source='step_no' label='编号' />
          <TextInput variant='outlined' sx={{ mr: 1 }} source='stand_time' label='工时' />
          <TextInput variant='outlined' sx={{ mr: 1 }} source='stand_price' label='工价' />
          <TextInput variant='outlined' sx={{ mr: 1 }} source='step_desc' label='说明' />
        </Stack>
        <SaveButton sx={{ height: "36px", mt: '9px', mj: 2 }}
          type='button' mutationOptions={{
            onSuccess: () => {
              redirect(false)
              // if(expand){
              //   toggleExpanded()
              // }
            }
          }}
        >
        </SaveButton>
      </SimpleForm>
    </Edit>

重置按钮

前端项目实战叁佰玖拾肆react-admin和material ui-react-hook-form 使用_react.js

精彩评论(0)

0 0 举报