fix(数据大屏): 气泡弹窗颜色不正确

This commit is contained in:
dataeaseShu
2026-05-12 15:13:27 +08:00
committed by dataeaseShu
parent 0de0ea7180
commit 4685f53a6c
16 changed files with 16 additions and 16 deletions

View File

@@ -329,7 +329,7 @@ const fontFamily = CHART_FONT_FAMILY_ORIGIN.concat(
)
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const resourceType = computed(() =>

View File

@@ -58,7 +58,7 @@ const props = defineProps({
const { frameLinks } = toRefs(props)
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const state = reactive({

View File

@@ -41,7 +41,7 @@ const props = defineProps({
})
const { chart, commonBackgroundPop, element } = toRefs(props)
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const predefineColors = COLOR_PANEL
const fontSizeList = []

View File

@@ -32,7 +32,7 @@ const props = withDefaults(
const predefineColors = COLOR_PANEL
const typeList = formatterType
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const state = reactive({
axisForm: JSON.parse(JSON.stringify(DEFAULT_YAXIS_STYLE))

View File

@@ -42,7 +42,7 @@ const state = reactive({
}
})
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const emit = defineEmits(['onChangeFlowMapPointForm'])

View File

@@ -34,7 +34,7 @@ const props = defineProps({
const emit = defineEmits(['onIndicatorNameChange'])
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const predefineColors = COLOR_PANEL
const fontFamily = CHART_FONT_FAMILY_ORIGIN.concat(

View File

@@ -41,7 +41,7 @@ const props = defineProps({
const emit = defineEmits(['onIndicatorChange', 'onBasicStyleChange'])
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const predefineColors = COLOR_PANEL
const fontFamily = CHART_FONT_FAMILY_ORIGIN.concat(

View File

@@ -48,7 +48,7 @@ const props = defineProps({
})
const dvMainStore = dvMainStoreWithOut()
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const { batchOptStatus } = storeToRefs(dvMainStore)
watch(

View File

@@ -37,7 +37,7 @@ useEmitt({
})
const emit = defineEmits(['onLegendChange', 'onMiscChange'])
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
watch(
() => props.chart.customStyle,

View File

@@ -16,7 +16,7 @@ const props = withDefaults(
)
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const predefineColors = COLOR_PANEL

View File

@@ -50,7 +50,7 @@ const state = reactive({
}
})
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const emit = defineEmits(['onChangeQuadrantForm'])

View File

@@ -41,7 +41,7 @@ const props = defineProps({
const appearanceStore = useAppearanceStoreWithOut()
const emit = defineEmits(['onTextChange'])
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const predefineColors = COLOR_PANEL
const fontFamily = CHART_FONT_FAMILY.concat(

View File

@@ -46,7 +46,7 @@ const dvMainStore = dvMainStoreWithOut()
const { batchOptStatus, mobileInPc } = storeToRefs(dvMainStore)
const predefineColors = COLOR_PANEL
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const emit = defineEmits(['onTooltipChange', 'onExtTooltipChange'])
const curSeriesFormatter = ref<DeepPartial<SeriesFormatter>>({})

View File

@@ -35,7 +35,7 @@ const state = reactive({
axisForm: JSON.parse(JSON.stringify(DEFAULT_XAXIS_STYLE))
})
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const emit = defineEmits(['onChangeXAxisForm'])

View File

@@ -31,7 +31,7 @@ const props = defineProps({
const predefineColors = COLOR_PANEL
const typeList = formatterType
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const state = reactive({
axisForm: JSON.parse(JSON.stringify(DEFAULT_YAXIS_STYLE))

View File

@@ -983,7 +983,7 @@ function onTitleChange() {
}
const toolTip = computed(() => {
return props.themes === 'dark' ? 'light' : 'dark'
return props.themes || 'dark'
})
const marginBottom = computed<string | 0>(() => {