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

This commit is contained in:
zhanjunhao
2026-11-10 17:27:36 +08:00
parent 23824dad32
commit 425077f94b
195 changed files with 3546 additions and 1984 deletions
+14 -12
View File
@@ -17,6 +17,11 @@ 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,
} from '@/components/common/icons/ActionIcons';
import React, { useEffect, useState } from 'react';
import {
Button,
@@ -34,7 +39,7 @@ import {
IllustrationNoResult,
IllustrationNoResultDark,
} from '../../../components/common/illustrations';
import { Plus, Edit, Trash2, Save, HelpCircle } from 'lucide-react';
import { HelpCircle } from 'lucide-react';
import { API, showError, showSuccess } from '../../../helpers';
import { useTranslation } from 'react-i18next';
@@ -111,20 +116,17 @@ const SettingsFAQ = ({ options, refresh }) => {
render: (text, record) => (
<Space>
<Button
icon={<Edit size={14} />}
theme='light'
type='tertiary'
size='small'
onClick={() => handleEditFaq(record)}
type='link'
size='small'
>
{t('编辑')}
</Button>
<Button
icon={<Trash2 size={14} />}
type='danger'
theme='light'
size='small'
onClick={() => handleDeleteFaq(record)}
type='link'
size='small'
danger
>
{t('删除')}
</Button>
@@ -329,14 +331,14 @@ const SettingsFAQ = ({ options, refresh }) => {
<Button
theme='light'
type='primary'
icon={<Plus size={14} />}
icon={<ActionPlus size={14} />}
className='w-full md:w-auto'
onClick={handleAddFaq}
>
{t('添加问答')}
</Button>
<Button
icon={<Trash2 size={14} />}
icon={<ActionTrash2 size={14} />}
type='danger'
theme='light'
onClick={handleBatchDelete}
@@ -347,7 +349,7 @@ const SettingsFAQ = ({ options, refresh }) => {
{selectedRowKeys.length > 0 && `(${selectedRowKeys.length})`}
</Button>
<Button
icon={<Save size={14} />}
icon={<ActionSave size={14} />}
onClick={submitFAQ}
loading={loading}
disabled={!hasChanges}