fix: fix bugs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Button, Input, message, Modal, Select, Switch, Table, Tooltip } from 'antd';
|
||||
import { Button, Input, message, Modal, Select, Space, Switch, Table, Tooltip } from 'antd';
|
||||
import { Fragment, useEffect, useState } from 'react';
|
||||
import { TextArea } from '../components/TextArea';
|
||||
import { useContainerStore } from '../store';
|
||||
@@ -187,6 +187,7 @@ const PublishFormModal = () => {
|
||||
};
|
||||
export const ContainerList = () => {
|
||||
const navicate = useNewNavigate();
|
||||
const [modal, contextHolder] = Modal.useModal();
|
||||
const containerStore = useContainerStore(
|
||||
useShallow((state) => {
|
||||
return {
|
||||
@@ -253,7 +254,7 @@ export const ContainerList = () => {
|
||||
<TextArea className='max-h-[240px] scrollbar' value={item.code} readonly />
|
||||
</div>
|
||||
<div className='flex mt-2 '>
|
||||
<Button.Group>
|
||||
<Space.Compact>
|
||||
<Button
|
||||
onClick={() => {
|
||||
// containerStore.publishData(item);
|
||||
@@ -290,7 +291,7 @@ export const ContainerList = () => {
|
||||
<Button
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
Modal.confirm({
|
||||
modal.confirm({
|
||||
title: 'Delete',
|
||||
content: 'Are you sure delete this data?',
|
||||
onOk: () => {
|
||||
@@ -301,7 +302,7 @@ export const ContainerList = () => {
|
||||
}}
|
||||
icon={<DeleteOutlined />}></Button>
|
||||
</Tooltip>
|
||||
</Button.Group>
|
||||
</Space.Compact>
|
||||
</div>
|
||||
</div>
|
||||
</Fragment>
|
||||
@@ -358,6 +359,7 @@ export const ContainerList = () => {
|
||||
</div>
|
||||
<FormModal />
|
||||
<PublishFormModal />
|
||||
{contextHolder}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user