图表组件封装

This commit is contained in:
mmc
2026-05-14 13:30:29 +08:00
parent 4e5a4fb241
commit abe5631642
3 changed files with 165 additions and 97 deletions

View File

@@ -11,6 +11,7 @@ import {
SelectOutlined, FireOutlined, WarningOutlined, ExclamationCircleOutlined
} from '@ant-design/icons';
import { Line, Area } from '@ant-design/charts';
import { UniversalBarChart, UniversalLineChart } from "../components/recharts"
const { Title, Text } = Typography;
@@ -115,6 +116,7 @@ const generationPerformanceConfig = {
legend: { position: 'top' },
};
export default function AIDiagnosisPage() {
const cardStyle = {
borderRadius: 12,
@@ -140,6 +142,7 @@ export default function AIDiagnosisPage() {
return (
<div style={{ background: '#f5f7fa', minHeight: '100vh', padding: '16px 24px', boxSizing: 'border-box', overflowX: 'hidden' }}>
<style>
{`
.compact-table .ant-table-thead > tr > th {