mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:26:45 +00:00
fix: button ordering
This commit is contained in:
parent
76e02f8ad9
commit
f28a56ea77
@ -50,12 +50,6 @@ export default function Table(props: SimpleTableProps) {
|
|||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<Space style={{marginBottom: 14, position: 'absolute', right: 0, top: -31}}>
|
<Space style={{marginBottom: 14, position: 'absolute', right: 0, top: -31}}>
|
||||||
<Button size={'small'} type={'primary'} onClick={() => {
|
|
||||||
drawerRef.current.setVisible(true);
|
|
||||||
drawerRef.current.setIndex(undefined);
|
|
||||||
drawerRef.current.setData({});
|
|
||||||
drawerRef.current.setTitle('新建子字段');
|
|
||||||
}}>新建</Button>
|
|
||||||
<Popconfirm title="确认删除吗?" onConfirm={() => {
|
<Popconfirm title="确认删除吗?" onConfirm={() => {
|
||||||
console.log({selectedRowKeys})
|
console.log({selectedRowKeys})
|
||||||
const newValues = value.filter(item => selectedRowKeys.indexOf(item.__id) === -1);
|
const newValues = value.filter(item => selectedRowKeys.indexOf(item.__id) === -1);
|
||||||
@ -63,6 +57,12 @@ export default function Table(props: SimpleTableProps) {
|
|||||||
}}>
|
}}>
|
||||||
<Button size={'small'} type={'ghost'} danger>删除</Button>
|
<Button size={'small'} type={'ghost'} danger>删除</Button>
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
|
<Button size={'small'} type={'primary'} onClick={() => {
|
||||||
|
drawerRef.current.setVisible(true);
|
||||||
|
drawerRef.current.setIndex(undefined);
|
||||||
|
drawerRef.current.setData({});
|
||||||
|
drawerRef.current.setTitle('新增子字段');
|
||||||
|
}}>新增</Button>
|
||||||
</Space>
|
</Space>
|
||||||
</div>
|
</div>
|
||||||
<Form target={target} onFinish={(values, index: number) => {
|
<Form target={target} onFinish={(values, index: number) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user