refactor(PlaceholderPage): 移除未使用的showFooter属性和MeauMobile组件

style(dashboard): 统一图表组件中的引号为双引号
This commit is contained in:
超级老白兔
2025-09-08 18:21:14 +08:00
parent 9fa647e40e
commit 2b48dd8722
2 changed files with 5 additions and 9 deletions

View File

@@ -2,14 +2,12 @@ import React from "react";
import { NavBar, Button } from "antd-mobile";
import { PlusOutlined } from "@ant-design/icons";
import Layout from "@/components/Layout/Layout";
import MeauMobile from "@/components/MeauMobile/MeauMoible";
interface PlaceholderPageProps {
title: string;
showBack?: boolean;
showAddButton?: boolean;
addButtonText?: string;
showFooter?: boolean;
}
const PlaceholderPage: React.FC<PlaceholderPageProps> = ({
@@ -17,13 +15,12 @@ const PlaceholderPage: React.FC<PlaceholderPageProps> = ({
showBack = true,
showAddButton = false,
addButtonText = "新建",
showFooter = true,
}) => {
return (
<Layout
header={
<NavBar
backArrow={showBack}
back={showBack}
style={{ background: "#fff" }}
onBack={showBack ? () => window.history.back() : undefined}
left={
@@ -43,7 +40,6 @@ const PlaceholderPage: React.FC<PlaceholderPageProps> = ({
}
/>
}
footer={showFooter ? <MeauMobile /> : undefined}
>
<div style={{ padding: 20, textAlign: "center", color: "#666" }}>
<h3>{title}</h3>

View File

@@ -433,22 +433,22 @@ const Dashboard: React.FC<DashboardProps> = () => {
<Row gutter={[16, 16]} className={styles.chartsRow}>
<Col xs={24} sm={12} lg={6}>
<Card className={styles.chartCard}>
<ReactECharts option={lineOption} style={{ height: '300px' }} />
<ReactECharts option={lineOption} style={{ height: "300px" }} />
</Card>
</Col>
<Col xs={24} sm={12} lg={6}>
<Card className={styles.chartCard}>
<ReactECharts option={columnOption} style={{ height: '300px' }} />
<ReactECharts option={columnOption} style={{ height: "300px" }} />
</Card>
</Col>
<Col xs={24} sm={12} lg={6}>
<Card className={styles.chartCard}>
<ReactECharts option={pieOption} style={{ height: '300px' }} />
<ReactECharts option={pieOption} style={{ height: "300px" }} />
</Card>
</Col>
<Col xs={24} sm={12} lg={6}>
<Card className={styles.chartCard}>
<ReactECharts option={areaOption} style={{ height: '300px' }} />
<ReactECharts option={areaOption} style={{ height: "300px" }} />
</Card>
</Col>
</Row>