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 5cd8005491..88e3149e1e 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 @@ -220,6 +220,24 @@ const isBarRangeTime = computed(() => { } return false }) +const showPositionH = computed(() => { + if (showProperty('hPosition')) { + if (props.chart.type !== 'bidirectional-bar') { + return true + } + return props.chart.customAttr.basicStyle.layout === 'horizontal' + } + return false +}) +const showPositionV = computed(() => { + if (showProperty('vPosition')) { + if (props.chart.type !== 'bidirectional-bar') { + return true + } + return props.chart.customAttr.basicStyle.layout === 'vertical' + } + return false +}) watch( () => props.chart.customAttr.basicStyle.layout, () => { @@ -245,12 +263,6 @@ watch( { deep: true } ) -const isBarBidirectionalAndVertical = computed(() => { - if (props.chart.type !== 'bidirectional-bar') { - return true - } - return props.chart.customAttr.basicStyle.layout === 'vertical' -}) onMounted(() => { init() }) @@ -328,7 +340,7 @@ onMounted(() => { {