1
0

perf: 优化UI展示

This commit is contained in:
2025-09-15 22:06:04 +08:00
parent 697a58a0e4
commit 7d0062eae0

View File

@@ -66,9 +66,37 @@ const financePropertyLabel = (id: string | undefined, label: string, type: Finan
type: 'wrapper', type: 'wrapper',
size: 'none', size: 'none',
body: [ body: [
label,
{ {
className: 'ml-1 text-secondary', className: 'text-secondary',
type: 'action',
label: label,
level: 'link',
tooltip: '这是什么?',
tooltipPlacement: 'top',
actionType: 'dialog',
dialog: {
title: '',
size: 'lg',
...readOnlyDialogOptions(),
actions: [
{
type: 'action',
label: '新页面打开',
icon: 'fa fa-solid fa-arrow-up-right-from-square',
actionType: 'url',
url: `https://zh.wikipedia.org/wiki/${label}`,
blank: true,
},
],
body: {
type: 'iframe',
src: `https://zh.wikipedia.org/wiki/${label}`,
height: 800,
},
},
},
{
className: 'text-secondary',
type: 'action', type: 'action',
label: '', label: '',
icon: 'fa fa-eye', icon: 'fa fa-eye',
@@ -315,6 +343,19 @@ function StockDetail() {
{ {
label: financePropertyLabel(id, '净利润', 'FINANCE', 'netProfit'), label: financePropertyLabel(id, '净利润', 'FINANCE', 'netProfit'),
content: '${cashFlow.netProfit}', content: '${cashFlow.netProfit}',
span: 3,
},
{
label: financePropertyLabel(id, '营业活动现金流量', 'FINANCE', 'cashFlowFromOperatingActivities'),
content: '${cashFlow.cashFlowFromOperatingActivities}',
},
{
label: financePropertyLabel(id, '投资活动现金流量', 'FINANCE', 'cashFlowFromInvestingActivities'),
content: '${cashFlow.cashFlowFromInvestingActivities}',
},
{
label: financePropertyLabel(id, '筹资活动现金流量', 'FINANCE', 'cashFlowFromFinancingActivities'),
content: '${cashFlow.cashFlowFromFinancingActivities}',
}, },
], ],
}, },