From 4504a9d0787ec7b02c0aa7d668f5b46882cf4a9f Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Thu, 31 Mar 2022 16:31:36 +0800 Subject: [PATCH] fix tooltips --- src/views/dashboard/graphs/Line.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/dashboard/graphs/Line.vue b/src/views/dashboard/graphs/Line.vue index 084e1c4f..1d72d199 100644 --- a/src/views/dashboard/graphs/Line.vue +++ b/src/views/dashboard/graphs/Line.vue @@ -150,12 +150,14 @@ function getOption() { color: "#ccc", }, enterable: true, + confine: true, extraCssText: "max-height: 300px; overflow: auto; border: none;", }; const tips = { formatter(params: any) { return `${params[0].value[1]}`; }, + confine: true, extraCssText: `height: 20px; padding:0 2px;`, trigger: "axis", textStyle: {