feat: 添加收入分配规则管理页面及账户、转账、交易、分配规则等相关组件的图标渲染

This commit is contained in:
2026-01-26 02:02:03 +08:00
parent 2cb596f7af
commit 38eeb4a425
8 changed files with 72 additions and 14 deletions

View File

@@ -12,6 +12,7 @@ import type {
AllocationTargetInput,
} from '../../../services/allocationRuleService';
import { getTargetTypeLabel } from '../../../services/allocationRuleService';
import { getDisplayIcon } from '../../../utils/iconUtils';
import './AllocationRuleForm.css';
interface AllocationRuleFormProps {
@@ -283,7 +284,7 @@ export const AllocationRuleForm: React.FC<AllocationRuleFormProps> = ({
<option value=""></option>
{accounts.map((account) => (
<option key={account.id} value={account.id}>
{account.icon} {account.name}
{getDisplayIcon(account.icon)} {account.name}
</option>
))}
</select>
@@ -382,7 +383,7 @@ export const AllocationRuleForm: React.FC<AllocationRuleFormProps> = ({
) : (
accounts.map((account) => (
<option key={account.id} value={account.id}>
{account.icon} {account.name}
{getDisplayIcon(account.icon)} {account.name}
</option>
))
)