mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:55:33 +00:00
fix: action buttons align right
This commit is contained in:
parent
7ce22d7267
commit
2689e070f1
@ -1,6 +1,6 @@
|
|||||||
import React, { useState, useEffect, useImperativeHandle, forwardRef, useRef } from 'react';
|
import React, { useState, useEffect, useImperativeHandle, forwardRef, useRef } from 'react';
|
||||||
import { Button, Drawer } from 'antd';
|
import { Button, Drawer } from 'antd';
|
||||||
import { Tooltip, Input } from 'antd';
|
import { Tooltip, Input, Space } from 'antd';
|
||||||
import {
|
import {
|
||||||
SchemaForm,
|
SchemaForm,
|
||||||
SchemaMarkupField as Field,
|
SchemaMarkupField as Field,
|
||||||
@ -53,13 +53,22 @@ export default forwardRef((props: any, ref) => {
|
|||||||
setVisible(false);
|
setVisible(false);
|
||||||
}}
|
}}
|
||||||
title={title}
|
title={title}
|
||||||
footer={[
|
footer={(
|
||||||
<Button type={'primary'} onClick={async () => {
|
<div
|
||||||
const { values = {} } = await actions.submit();
|
style={{
|
||||||
setVisible(false);
|
textAlign: 'right',
|
||||||
onFinish && onFinish(values, index);
|
}}
|
||||||
}}>提交</Button>
|
>
|
||||||
]}
|
<Space>
|
||||||
|
<Button onClick={() => setVisible(false)}>取消</Button>
|
||||||
|
<Button type={'primary'} onClick={async () => {
|
||||||
|
const { values = {} } = await actions.submit();
|
||||||
|
setVisible(false);
|
||||||
|
onFinish && onFinish(values, index);
|
||||||
|
}}>提交</Button>
|
||||||
|
</Space>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
<SchemaForm
|
<SchemaForm
|
||||||
colon={true}
|
colon={true}
|
||||||
|
Loading…
Reference in New Issue
Block a user