refactor(图表): 去除矩形树图的排序

This commit is contained in:
wisonic-s
2025-04-08 17:42:39 +08:00
committed by GitHub
parent b35f771edb
commit 9b18e1adeb
2 changed files with 4 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ const showCustomSort = item => {
const showSort = () => {
const { type: chartType } = props.chart
const { type: propType } = props
const notShowSort = ['word-cloud', 'stock-line'].includes(chartType)
const notShowSort = ['word-cloud', 'stock-line', 'treemap'].includes(chartType)
if (notShowSort || propType === 'extColor') {
return false
}

View File

@@ -320,7 +320,9 @@ const showSort = computed(() => {
props.type !== 'extLabel' &&
props.type !== 'extTooltip' &&
props.type !== 'extBubble' &&
!['indicator', 'liquid', 'gauge', 'word-cloud', 'stock-line'].includes(chart.value.type) &&
!['indicator', 'liquid', 'gauge', 'word-cloud', 'stock-line', 'treemap'].includes(
chart.value.type
) &&
!chart.value.type.includes('chart-mix')
)
})