fix: 样式优化

This commit is contained in:
dataeaseShu
2025-05-30 13:50:34 +08:00
committed by dataeaseShu
parent e0c557c996
commit c46a554249
4 changed files with 7 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ const emit = defineEmits([
const { item } = toRefs(props)
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const showValueFormatter = computed<boolean>(() => {
return (
@@ -845,6 +845,7 @@ span {
background-color: rgba(31, 35, 41, 0.1);
}
&.dark-dimension-quota {
background-color: #292929;
.inner-dropdown-menu {
color: rgba(235, 235, 235, 1);
}

View File

@@ -164,7 +164,7 @@ onMounted(() => {
></Icon>
</el-icon>
</span>
<el-tooltip :effect="themes === 'dark' ? 'light' : 'dark'" placement="top">
<el-tooltip :effect="themes || 'dark'" placement="top">
<template #content>
<table>
<tbody>
@@ -530,6 +530,7 @@ span {
}
}
.dark-dimension-quota {
background-color: #292929;
span {
color: #ebebeb;
}

View File

@@ -80,7 +80,7 @@ const emit = defineEmits([
const { item, chart } = toRefs(props)
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
watch(
[() => props.quotaData, () => props.item, () => props.chart.type],
@@ -999,6 +999,7 @@ span {
background-color: rgba(31, 35, 41, 0.1);
}
&.dark-dimension-quota {
background-color: #292929;
.inner-dropdown-menu {
color: rgba(235, 235, 235, 1);
}

View File

@@ -174,7 +174,7 @@ const editComponentName = () => {
})
}
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const templateStatusShow = computed(() => {