diff --git a/core/core-frontend/src/views/chart/components/editor/drag-item/DimensionItem.vue b/core/core-frontend/src/views/chart/components/editor/drag-item/DimensionItem.vue index d53727ee39..d4ee907a53 100644 --- a/core/core-frontend/src/views/chart/components/editor/drag-item/DimensionItem.vue +++ b/core/core-frontend/src/views/chart/components/editor/drag-item/DimensionItem.vue @@ -193,14 +193,15 @@ const showCustomSort = item => { return !item.chartId && (item.deType === 0 || item.deType === 5) } const showSort = () => { - const isExtColor = props.type === 'extColor' - const isChartMix = props.chart.type.includes('chart-mix') - const isDimensionOrDimensionStack = - props.type === 'dimension' || props.type === 'dimensionStack' || props.type === 'dimensionExt' - if (isExtColor) { + const { type: chartType } = props.chart + const { type: propType } = props + const notShowSort = ['word-cloud', 'stock-line'].includes(chartType) + if (notShowSort || propType === 'extColor') { return false } - return !isChartMix || isDimensionOrDimensionStack + const isChartMix = chartType.includes('chart-mix') + const isDimensionType = ['dimension', 'dimensionStack', 'dimensionExt'].includes(propType) + return !isChartMix || isDimensionType } const toggleHide = () => { item.value.index = props.index @@ -225,17 +226,17 @@ onMounted(() => { :style="{ backgroundColor: tagType + '0a', border: '1px solid ' + tagType }" > - + - + - + diff --git a/core/core-frontend/src/views/chart/components/editor/drag-item/QuotaItem.vue b/core/core-frontend/src/views/chart/components/editor/drag-item/QuotaItem.vue index 5bca3e2a9b..afe3c68c70 100644 --- a/core/core-frontend/src/views/chart/components/editor/drag-item/QuotaItem.vue +++ b/core/core-frontend/src/views/chart/components/editor/drag-item/QuotaItem.vue @@ -308,7 +308,9 @@ const showSort = computed(() => { props.type !== 'extLabel' && props.type !== 'extTooltip' && props.type !== 'extBubble' && - !['chart-mix', 'indicator', 'liquid', 'gauge'].includes(chart.value.type) + !['chart-mix', 'indicator', 'liquid', 'gauge', 'word-cloud', 'stock-line'].includes( + chart.value.type + ) ) }) @@ -327,17 +329,17 @@ onMounted(() => { :style="{ backgroundColor: tagType + '0a', border: '1px solid ' + tagType }" > - + - + - +