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, color,
tooltip: { tooltip: {
trigger: "axis", trigger: "axis",
// backgroundColor: "rgb(50,50,50)", zlevel: 1000,
// textStyle: { z: 60,
// fontSize: 13, backgroundColor: "rgb(50,50,50)",
// color: "#ccc", textStyle: {
// }, fontSize: 13,
// enterable: true, color: "#ccc",
// extraCssText: "max-height: 300px; overflow: auto;", },
enterable: true,
extraCssText: "max-height: 300px; overflow: auto; border: none",
}, },
legend: { legend: {
type: "scroll", type: "scroll",

View File

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

View File

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