forked from github/dataease
Merge pull request #10628 from dataease/pr@dev-v2@chart-symbolic-custom-sort-fix
fix(图表-符号地图): 符号地图颜色维度取消自定义排序
This commit is contained in:
commit
a55e431610
@ -171,7 +171,12 @@ const valueFormatter = () => {
|
|||||||
item.value.formatterType = props.type
|
item.value.formatterType = props.type
|
||||||
emit('valueFormatter', item.value)
|
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(() => {
|
onMounted(() => {
|
||||||
getItemTagType()
|
getItemTagType()
|
||||||
})
|
})
|
||||||
@ -300,7 +305,7 @@ onMounted(() => {
|
|||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
class="menu-item-padding"
|
class="menu-item-padding"
|
||||||
v-if="!item.chartId && (item.deType === 0 || item.deType === 5)"
|
v-if="showCustomSort(item)"
|
||||||
:command="beforeSort('custom_sort')"
|
:command="beforeSort('custom_sort')"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
|
Loading…
Reference in New Issue
Block a user