From 5f45a8badf3861e68f935ee10d97dae06d67a129 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com>
Date: Tue, 21 Mar 2023 10:23:54 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=A6=82=E8=A7=88=E8=B7=B3?=
=?UTF-8?q?=E8=BD=AC=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/compenents/footer/index.tsx | 12 ++++++++----
src/index.less | 7 +++++++
src/pages/dashboard/index.tsx | 29 ++++-------------------------
3 files changed, 19 insertions(+), 29 deletions(-)
diff --git a/src/compenents/footer/index.tsx b/src/compenents/footer/index.tsx
index 7c84f2c..8017ab5 100644
--- a/src/compenents/footer/index.tsx
+++ b/src/compenents/footer/index.tsx
@@ -1,5 +1,6 @@
import React from "react";
import { Layout } from "antd";
+import { Link } from "react-router-dom";
export const Footer: React.FC = () => {
return (
@@ -12,10 +13,13 @@ export const Footer: React.FC = () => {
textAlign: "center",
}}
>
-
+
+ {}}
+ >
+
);
};
diff --git a/src/index.less b/src/index.less
index 32ef7db..a3b2ee4 100644
--- a/src/index.less
+++ b/src/index.less
@@ -567,3 +567,10 @@ textarea.ant-input {
overflow: hidden;
text-overflow: ellipsis;
}
+
+.footer-icon {
+ cursor: pointer;
+ &:hover {
+ opacity: 0.8;
+ }
+}
diff --git a/src/pages/dashboard/index.tsx b/src/pages/dashboard/index.tsx
index 4630052..2c1ce82 100644
--- a/src/pages/dashboard/index.tsx
+++ b/src/pages/dashboard/index.tsx
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from "react";
import styles from "./index.module.less";
import { Row, Col, message } from "antd";
-import { useNavigate } from "react-router-dom";
+import { Link, useNavigate } from "react-router-dom";
import banner from "../../assets/images/dashboard/img-a1.png";
import icon from "../../assets/images/dashboard/icon-more.png";
import iconN1 from "../../assets/images/dashboard/icon-n1.png";
@@ -53,24 +53,13 @@ export const Dashboard: React.FC = () => {
tooltip: {
show: true, // 是否显示提示框
},
- title: {
- text: "", //主标题
- left: "center", // 水平对齐方式
- bottom: 0,
- itemGap: 4, // 主副标题相隔间距
- textStyle: {
- // 主标题样式
- fontSize: 16,
- fontWeight: 400,
- },
- },
series: [
{
type: "pie",
radius: ["40%", "60%"], // 环比 圈的大小
center: ["50%", "40%"], // 图形在整个canvas中的位置
color: ["#FE8650", "#FFB504"], // item的取色盘
- avoidLabelOverlap: false,
+ avoidLabelOverlap: true,
itemStyle: {
borderColor: "#fff", // 白边
borderWidth: 2,
@@ -80,16 +69,6 @@ export const Dashboard: React.FC = () => {
disabled: true,
},
label: {
- show: true,
- position: "center",
- formatter: "总资源数" + num, // 可以自定义,也可以{a}{b}{c}这种
- textStyle: {
- // 主标题样式
- fontSize: 14,
- fontWeight: 600,
- },
- },
- labelLine: {
show: false,
},
data: data,
@@ -299,10 +278,10 @@ export const Dashboard: React.FC = () => {
使用指南

-
+
点击查看产品手册,快速玩转Playedu!

-
+