diff --git a/core/core-frontend/src/components/data-visualization/ComponentToolBar.vue b/core/core-frontend/src/components/data-visualization/ComponentToolBar.vue index 43fcd4434f..be57ff85a2 100644 --- a/core/core-frontend/src/components/data-visualization/ComponentToolBar.vue +++ b/core/core-frontend/src/components/data-visualization/ComponentToolBar.vue @@ -143,7 +143,7 @@ onUnmounted(() => { - 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 8406c6e0cc..a9f77c23ef 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 @@ -191,6 +191,13 @@ const checkLabelContent = contentProp => { const showProperty = prop => { return props.propertyInner?.includes(prop) } + +const showEmpty = computed(() => { + return ( + props.propertyInner.length === 0 || + (batchOptStatus.value && showProperty('seriesLabelFormatter')) + ) +}) const showSeriesLabelFormatter = computed(() => { return !batchOptStatus.value && showProperty('seriesLabelFormatter') }) @@ -210,6 +217,7 @@ onMounted(() => { :model="state.labelForm" label-position="top" > + 无其他可设置的属性 {