feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等

This commit is contained in:
zhanjunhao
2026-11-10 17:27:36 +08:00
parent 5463a0c772
commit ed9820e6a6
195 changed files with 3546 additions and 1984 deletions
@@ -17,6 +17,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import {
Plus as ActionPlus,
Trash2 as ActionTrash2,
Save as ActionSave,
Maximize2 as ActionMaximize2,
} from '@/components/common/icons/ActionIcons';
import React, { useEffect, useState, useRef } from 'react';
import {
Button,
@@ -36,7 +42,7 @@ import {
IllustrationNoResult,
IllustrationNoResultDark,
} from '../../../components/common/illustrations';
import { Plus, Edit, Trash2, Save, Bell, Maximize2 } from 'lucide-react';
import { Bell } from 'lucide-react';
import {
API,
showError,
@@ -175,20 +181,17 @@ const SettingsAnnouncements = ({ options, refresh }) => {
render: (text, record) => (
<Space>
<Button
icon={<Edit size={14} />}
theme='light'
type='tertiary'
size='small'
onClick={() => handleEditAnnouncement(record)}
type='link'
size='small'
>
{t('编辑')}
</Button>
<Button
icon={<Trash2 size={14} />}
type='danger'
theme='light'
size='small'
onClick={() => handleDeleteAnnouncement(record)}
type='link'
size='small'
danger
>
{t('删除')}
</Button>
@@ -410,14 +413,14 @@ const SettingsAnnouncements = ({ options, refresh }) => {
<Button
theme='light'
type='primary'
icon={<Plus size={14} />}
icon={<ActionPlus size={14} />}
className='w-full md:w-auto'
onClick={handleAddAnnouncement}
>
{t('添加公告')}
</Button>
<Button
icon={<Trash2 size={14} />}
icon={<ActionTrash2 size={14} />}
type='danger'
theme='light'
onClick={handleBatchDelete}
@@ -428,7 +431,7 @@ const SettingsAnnouncements = ({ options, refresh }) => {
{selectedRowKeys.length > 0 && `(${selectedRowKeys.length})`}
</Button>
<Button
icon={<Save size={14} />}
icon={<ActionSave size={14} />}
onClick={submitAnnouncements}
loading={loading}
disabled={!hasChanges}
@@ -551,7 +554,7 @@ const SettingsAnnouncements = ({ options, refresh }) => {
theme='light'
type='tertiary'
size='small'
icon={<Maximize2 size={14} />}
icon={<ActionMaximize2 size={14} />}
style={{ marginBottom: 16 }}
onClick={() => setShowContentModal(true)}
>