update style

This commit is contained in:
Qiuxia Fan 2022-03-30 14:03:06 +08:00
parent 88afe29ebb
commit 31ee5aa648
3 changed files with 11 additions and 14 deletions

View File

@ -137,13 +137,15 @@ function getOption() {
color,
tooltip: {
trigger: "axis",
// backgroundColor: "rgb(50,50,50)",
// textStyle: {
// fontSize: 13,
// color: "#ccc",
// },
// enterable: true,
// extraCssText: "max-height: 300px; overflow: auto;",
zlevel: 1000,
z: 60,
backgroundColor: "rgb(50,50,50)",
textStyle: {
fontSize: 13,
color: "#ccc",
},
enterable: true,
extraCssText: "max-height: 300px; overflow: auto; border: none",
},
legend: {
type: "scroll",

View File

@ -18,7 +18,6 @@ limitations under the License. -->
<script lang="ts" setup>
import { computed } from "vue";
import type { PropType } from "vue";
import { StandardConfig } from "@/types/dashboard";
/*global defineProps */
const props = defineProps({
@ -31,11 +30,7 @@ const props = defineProps({
intervalTime: { type: Array as PropType<string[]>, default: () => [] },
config: {
type: Object as PropType<any>,
default: () => ({}),
},
standard: {
type: Object as PropType<StandardConfig>,
default: () => ({}),
default: () => ({ metrics: [] }),
},
});
const option = computed(() => getOption());

View File

@ -153,7 +153,7 @@ function getOption() {
color: "#ccc",
},
enterable: true,
extraCssText: "max-height: 300px; overflow: auto;",
extraCssText: "max-height: 300px; overflow: auto; border: none",
},
legend: {
type: "scroll",