fix(web): 体征数据图表高度约束 — 消除大片空白
VitalSignsChart 的 Line 组件添加 height: 220 显式约束, 并用 div 包裹防止容器撑开导致页面大片空白
This commit is contained in:
@@ -43,6 +43,7 @@ export function VitalSignsChart({ patientId, indicator: initialIndicator }: Prop
|
||||
yField: 'value',
|
||||
smooth: true,
|
||||
point: { shapeField: 'circle', sizeField: 4 },
|
||||
height: 220,
|
||||
};
|
||||
|
||||
return (
|
||||
@@ -53,7 +54,9 @@ export function VitalSignsChart({ patientId, indicator: initialIndicator }: Prop
|
||||
options={INDICATORS}
|
||||
style={{ width: 180 }}
|
||||
/>
|
||||
<Line {...config} />
|
||||
<div style={{ width: '100%' }}>
|
||||
<Line {...config} />
|
||||
</div>
|
||||
</Space>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user