From 6baafcb579f81050c445c66d47324bb06b06332a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com>
Date: Mon, 20 Mar 2023 15:38:11 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=A6=82=E8=A7=88=E5=BC=95?=
=?UTF-8?q?=E5=85=A5=E5=BA=95=E9=83=A8=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/compenents/footer/index.tsx | 35 ++++++++--------------
src/pages/dashboard/compenents/pie.tsx | 40 --------------------------
src/pages/dashboard/index.tsx | 2 ++
3 files changed, 14 insertions(+), 63 deletions(-)
delete mode 100644 src/pages/dashboard/compenents/pie.tsx
diff --git a/src/compenents/footer/index.tsx b/src/compenents/footer/index.tsx
index ad1301e..7c84f2c 100644
--- a/src/compenents/footer/index.tsx
+++ b/src/compenents/footer/index.tsx
@@ -1,32 +1,21 @@
import React from "react";
-import { Layout, Typography } from "antd";
+import { Layout } from "antd";
export const Footer: React.FC = () => {
return (
-
- © 2021 PlayEdu • 粤ICP备20026280号-01
-
-
- Powered By 杭州白书科技
-
+
);
};
diff --git a/src/pages/dashboard/compenents/pie.tsx b/src/pages/dashboard/compenents/pie.tsx
deleted file mode 100644
index 8b2d787..0000000
--- a/src/pages/dashboard/compenents/pie.tsx
+++ /dev/null
@@ -1,40 +0,0 @@
-import React, { useState, useEffect } from "react";
-import ReactDOM from "react-dom/client";
-import { Pie } from "@ant-design/plots";
-
-const root = ReactDOM.createRoot(
- document.getElementById("root") as HTMLElement
-);
-export const DemoPie = () => {
- const data = [
- { type: "视频数", value: 27 },
- { type: "图片数", value: 25 },
- ];
- const config = {
- appendPadding: 10,
- data,
- angleField: "value",
- colorField: "type",
- radius: 1,
- innerRadius: 0.6,
- label: {
- type: "inner",
- offset: "-50%",
- content: "{value}",
- style: { textAlign: "center", fontSize: 14 },
- },
- interactions: [{ type: "element-selected" }, { type: "element-active" }],
- statistic: {
- content: {
- style: {
- whiteSpace: "pre-wrap",
- overflow: "hidden",
- textOverflow: "ellipsis",
- },
- content: "总资源数",
- },
- },
- };
- return ;
-};
-root.render();
diff --git a/src/pages/dashboard/index.tsx b/src/pages/dashboard/index.tsx
index 415cd1a..4630052 100644
--- a/src/pages/dashboard/index.tsx
+++ b/src/pages/dashboard/index.tsx
@@ -7,6 +7,7 @@ import icon from "../../assets/images/dashboard/icon-more.png";
import iconN1 from "../../assets/images/dashboard/icon-n1.png";
import iconN2 from "../../assets/images/dashboard/icon-n2.png";
import iconN3 from "../../assets/images/dashboard/icon-n3.png";
+import { Footer } from "../../compenents/footer";
export const Dashboard: React.FC = () => {
const navigate = useNavigate();
@@ -314,6 +315,7 @@ export const Dashboard: React.FC = () => {
+
>
);