黑暗模式fix
This commit is contained in:
@@ -366,17 +366,18 @@ export default function PermissionManagement() {
|
||||
{
|
||||
title: '操作',
|
||||
key: 'operation',
|
||||
fixed: 'right',
|
||||
render: (_, record) => (
|
||||
<div className="space-x-2">
|
||||
<Button
|
||||
type="text"
|
||||
type="link"
|
||||
icon={<EditOutlined />}
|
||||
onClick={() => {
|
||||
setModalType('edit');
|
||||
form.setFieldsValue(record);
|
||||
setModalVisible(true);
|
||||
}}
|
||||
/>
|
||||
>编辑</Button>
|
||||
<Popconfirm
|
||||
title="确认删除"
|
||||
description="确定要删除这条权限记录吗?"
|
||||
@@ -385,10 +386,10 @@ export default function PermissionManagement() {
|
||||
onConfirm={() => handleDelete(record.id)}
|
||||
>
|
||||
<Button
|
||||
type="text"
|
||||
type="link"
|
||||
danger
|
||||
icon={<DeleteOutlined />}
|
||||
/>
|
||||
>删除</Button>
|
||||
</Popconfirm>
|
||||
</div>
|
||||
),
|
||||
@@ -522,7 +523,7 @@ export default function PermissionManagement() {
|
||||
|
||||
return (
|
||||
<App>
|
||||
<Card title="权限管理" bordered={false}>
|
||||
<Card title="权限管理" >
|
||||
<RoleHeader
|
||||
onAdd={() => {
|
||||
setModalType('add');
|
||||
@@ -538,12 +539,14 @@ export default function PermissionManagement() {
|
||||
/>
|
||||
|
||||
<Table
|
||||
scroll={{ x: true}}
|
||||
columns={columns}
|
||||
dataSource={permissions}
|
||||
rowKey="id"
|
||||
loading={loading}
|
||||
pagination={pagination}
|
||||
onChange={handleTableChange}
|
||||
className='w-full'
|
||||
/>
|
||||
|
||||
<Modal
|
||||
|
||||
Reference in New Issue
Block a user