From f995a39ce68bb48ae63606c091fb81bf0ce37838 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 12 May 2026 15:13:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20?= =?UTF-8?q?=E6=B0=94=E6=B3=A1=E5=BC=B9=E7=AA=97=E9=A2=9C=E8=89=B2=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subject-setting/dashboard-style/OverallSetting.vue | 2 +- core/core-frontend/src/custom-component/de-frame/FrameLinks.vue | 2 +- .../chart/components/editor/editor-style/VQueryChartStyle.vue | 2 +- .../editor/editor-style/components/DualYAxisSelectorInner.vue | 2 +- .../editor/editor-style/components/FlowMapPointSelector.vue | 2 +- .../editor/editor-style/components/IndicatorNameSelector.vue | 2 +- .../editor/editor-style/components/IndicatorValueSelector.vue | 2 +- .../components/editor/editor-style/components/LabelSelector.vue | 2 +- .../editor/editor-style/components/LegendSelector.vue | 2 +- .../editor/editor-style/components/MiscStyleSelector.vue | 2 +- .../editor/editor-style/components/QuadrantSelector.vue | 2 +- .../components/editor/editor-style/components/TitleSelector.vue | 2 +- .../editor/editor-style/components/TooltipSelector.vue | 2 +- .../components/editor/editor-style/components/XAxisSelector.vue | 2 +- .../components/editor/editor-style/components/YAxisSelector.vue | 2 +- core/core-frontend/src/views/chart/components/views/index.vue | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/OverallSetting.vue b/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/OverallSetting.vue index 48bf4058b5..d22e644542 100644 --- a/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/OverallSetting.vue +++ b/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/OverallSetting.vue @@ -332,7 +332,7 @@ const fontFamily = CHART_FONT_FAMILY_ORIGIN.concat( ) const toolTip = computed(() => { - return props.themes === 'dark' ? 'light' : 'dark' + return props.themes || 'dark' }) const resourceType = computed(() => diff --git a/core/core-frontend/src/custom-component/de-frame/FrameLinks.vue b/core/core-frontend/src/custom-component/de-frame/FrameLinks.vue index 5ed9caa7c5..51f6fe8d6a 100644 --- a/core/core-frontend/src/custom-component/de-frame/FrameLinks.vue +++ b/core/core-frontend/src/custom-component/de-frame/FrameLinks.vue @@ -60,7 +60,7 @@ const props = defineProps({ const { frameLinks } = toRefs(props) const toolTip = computed(() => { - return props.themes === 'dark' ? 'light' : 'dark' + return props.themes || 'dark' }) const state = reactive({ diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue index 57b30e72bf..84e4eaa481 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/VQueryChartStyle.vue @@ -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 = [] diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelectorInner.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelectorInner.vue index fdfae8fc31..728e900bab 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelectorInner.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelectorInner.vue @@ -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)) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/FlowMapPointSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/FlowMapPointSelector.vue index 4e36c0996a..cf9698dabc 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/FlowMapPointSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/FlowMapPointSelector.vue @@ -44,7 +44,7 @@ const state = reactive({ } }) const toolTip = computed(() => { - return props.themes === 'dark' ? 'light' : 'dark' + return props.themes || 'dark' }) const emit = defineEmits(['onChangeFlowMapPointForm']) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/IndicatorNameSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/IndicatorNameSelector.vue index 510fc4a441..b0cceafd64 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/IndicatorNameSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/IndicatorNameSelector.vue @@ -40,7 +40,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( diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/IndicatorValueSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/IndicatorValueSelector.vue index 8be6dfc8fa..bb8b37f7b6 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/IndicatorValueSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/IndicatorValueSelector.vue @@ -46,7 +46,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( diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue index eab1c31138..c41890ea75 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue @@ -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( diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue index 5b2c48952e..f09ae7de77 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue @@ -34,7 +34,7 @@ useEmitt({ }) const emit = defineEmits(['onLegendChange', 'onMiscChange']) const toolTip = computed(() => { - return props.themes === 'dark' ? 'light' : 'dark' + return props.themes || 'dark' }) watch( () => props.chart.customStyle, diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscStyleSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscStyleSelector.vue index 9fda7d29e9..70e5135761 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscStyleSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscStyleSelector.vue @@ -16,7 +16,7 @@ const props = withDefaults( ) const toolTip = computed(() => { - return props.themes === 'dark' ? 'light' : 'dark' + return props.themes || 'dark' }) const predefineColors = COLOR_PANEL diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/QuadrantSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/QuadrantSelector.vue index 22770e03e2..8ef2e9390a 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/QuadrantSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/QuadrantSelector.vue @@ -50,7 +50,7 @@ const state = reactive({ } }) const toolTip = computed(() => { - return props.themes === 'dark' ? 'light' : 'dark' + return props.themes || 'dark' }) const emit = defineEmits(['onChangeQuadrantForm']) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TitleSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TitleSelector.vue index 394785992a..75823120f9 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TitleSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TitleSelector.vue @@ -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( diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue index 64cbfdf144..0c841ddc34 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue @@ -45,7 +45,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>({}) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/XAxisSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/XAxisSelector.vue index eed93d9038..43bb24b95e 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/XAxisSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/XAxisSelector.vue @@ -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']) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/YAxisSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/YAxisSelector.vue index 068c5ecac0..c16bc5e0d6 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/YAxisSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/YAxisSelector.vue @@ -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)) diff --git a/core/core-frontend/src/views/chart/components/views/index.vue b/core/core-frontend/src/views/chart/components/views/index.vue index 4ab63a2c04..c4730744b2 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -975,7 +975,7 @@ function onTitleChange() { } const toolTip = computed(() => { - return props.themes === 'dark' ? 'light' : 'dark' + return props.themes || 'dark' }) const marginBottom = computed(() => {