From eddf3ab5e9408ae9d0c1bcdede3ec3f688547d07 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 13:36:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=A6=82=E8=A7=88=E5=88=9D?= =?UTF-8?q?=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/dashboard/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/dashboard/index.tsx b/src/pages/dashboard/index.tsx index 62104fd..fc56d47 100644 --- a/src/pages/dashboard/index.tsx +++ b/src/pages/dashboard/index.tsx @@ -88,7 +88,12 @@ export const Dashboard: React.FC = () => { label: { show: true, position: "center", - formatter: "总资源数" + num, // 可以自定义,也可以{a}{b}{c}这种 + formatter: ("总资源数" + num), // 可以自定义,也可以{a}{b}{c}这种 + textStyle: { + // 主标题样式 + fontSize: 14, + fontWeight: 600, + }, }, labelLine: { show: false,