feat(ui): 添加自定义关闭按钮组件并应用到所有模态框

This commit is contained in:
zhang1106
2026-03-12 12:40:12 +08:00
parent 668ea073e6
commit 4569eabda7
22 changed files with 129 additions and 3 deletions
+4
View File
@@ -27,6 +27,7 @@ import {
CloseOutlined,
} from '@ant-design/icons';
import { userAPI, roleAPI } from '../api';
import CloseButton from '../components/CloseButton';
const { Option } = Select;
@@ -610,6 +611,7 @@ const UserManagement = () => {
</div>
}
open={modalVisible}
closeIcon={<CloseButton />}
onCancel={() => setModalVisible(false)}
footer={null}
width={500}
@@ -734,6 +736,7 @@ const UserManagement = () => {
</div>
}
open={passwordModalVisible}
closeIcon={<CloseButton />}
onCancel={() => setPasswordModalVisible(false)}
footer={null}
width={400}
@@ -795,6 +798,7 @@ const UserManagement = () => {
</div>
}
open={avatarModalVisible}
closeIcon={<CloseButton />}
onCancel={() => setAvatarModalVisible(false)}
footer={null}
width={400}