diff --git a/core/core-frontend/src/custom-component/v-query/Component.vue b/core/core-frontend/src/custom-component/v-query/Component.vue index ab22cfabe3..7271cb437d 100644 --- a/core/core-frontend/src/custom-component/v-query/Component.vue +++ b/core/core-frontend/src/custom-component/v-query/Component.vue @@ -86,7 +86,6 @@ const { datasetFieldList } = comInfo(element.value.id) const setCustomStyle = val => { const { - show, borderShow, borderColor, bgColorShow, @@ -102,10 +101,6 @@ const setCustomStyle = val => { textColorShow, title } = val - if (!show) { - Object.assign(customStyle, { ...defaultStyle }) - return - } customStyle.background = bgColorShow ? bgColor || '' : '' customStyle.border = borderShow ? borderColor || '' : '' customStyle.btnList = [...btnList] 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 c29b4f427a..c5d286d835 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 @@ -2,7 +2,6 @@ import { useI18n } from '@/hooks/web/useI18n' import { toRefs } from 'vue' import { COLOR_PANEL } from '@/views/chart/components/editor/util/chart' -import CollapseSwitchItem from '@/components/collapse-switch-item/src/CollapseSwitchItem.vue' const { t } = useI18n() const state = { @@ -24,13 +23,8 @@ const { chart } = toRefs(props)