Merge pull request #10628 from dataease/pr@dev-v2@chart-symbolic-custom-sort-fix

fix(图表-符号地图): 符号地图颜色维度取消自定义排序
This commit is contained in:
jianneng-fit2cloud 2024-06-30 17:05:55 +08:00 committed by GitHub
commit a55e431610
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,7 +171,12 @@ const valueFormatter = () => {
item.value.formatterType = props.type
emit('valueFormatter', item.value)
}
const showCustomSort = item => {
if (props.chart.type === 'symbolic-map') {
return false
}
return !item.chartId && (item.deType === 0 || item.deType === 5)
}
onMounted(() => {
getItemTagType()
})
@ -300,7 +305,7 @@ onMounted(() => {
</el-dropdown-item>
<el-dropdown-item
class="menu-item-padding"
v-if="!item.chartId && (item.deType === 0 || item.deType === 5)"
v-if="showCustomSort(item)"
:command="beforeSort('custom_sort')"
>
<span