forked from github/dataease
Merge pull request #12517 from dataease/prdev-v2@chart-cancel-sort-style
style(图表): 取消指标卡、水波图、仪表盘的指标排序功能
This commit is contained in:
commit
485cb4b047
@ -373,57 +373,6 @@ onMounted(() => {
|
||||
class="drop-style"
|
||||
:class="themes === 'dark' ? 'dark-dimension-quota' : ''"
|
||||
>
|
||||
<!-- <el-dropdown-item @click.prevent v-if="chart.type === 'chart-mix'">
|
||||
<el-dropdown
|
||||
:effect="themes"
|
||||
placement="right-start"
|
||||
popper-class="data-dropdown_popper_mr9"
|
||||
style="width: 100%"
|
||||
@command="switchChartType"
|
||||
>
|
||||
<span class="el-dropdown-link inner-dropdown-menu menu-item-padding">
|
||||
<span class="menu-item-content">
|
||||
<el-icon>
|
||||
<Icon name="icon_dashboard_outlined" ><icon_dashboard_outlined class="svg-icon" /></Icon>
|
||||
</el-icon>
|
||||
<span>{{ t('chart.chart_type') }}</span>
|
||||
</span>
|
||||
<el-icon>
|
||||
<Icon name="icon_right_outlined"><icon_right_outlined class="svg-icon" /></Icon>
|
||||
</el-icon>
|
||||
</span>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu
|
||||
:effect="themes"
|
||||
class="drop-style sub"
|
||||
:class="themes === 'dark' ? 'dark-dimension-quota' : ''"
|
||||
>
|
||||
<el-dropdown-item class="menu-item-padding" :command="beforeSwitchType('bar')">
|
||||
<span
|
||||
class="sub-menu-content"
|
||||
:class="'bar' === item.chartType ? 'content-active' : ''"
|
||||
>
|
||||
{{ t('chart.chart_bar') }}
|
||||
<el-icon class="sub-menu-content--icon">
|
||||
<Icon name="icon_done_outlined" v-if="'bar' === item.chartType" ><icon_done_outlined class="svg-icon" /></Icon>
|
||||
</el-icon>
|
||||
</span>
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item class="menu-item-padding" :command="beforeSwitchType('line')">
|
||||
<span
|
||||
class="sub-menu-content"
|
||||
:class="'line' === item.chartType ? 'content-active' : ''"
|
||||
>
|
||||
{{ t('chart.chart_line') }}
|
||||
<el-icon class="sub-menu-content--icon">
|
||||
<Icon name="icon_done_outlined" v-if="'line' === item.chartType" ><icon_done_outlined class="svg-icon" /></Icon>
|
||||
</el-icon>
|
||||
</span>
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</el-dropdown-item>-->
|
||||
<el-dropdown-item
|
||||
@click.prevent
|
||||
v-if="chart.type !== 'table-info' && item.summary !== ''"
|
||||
@ -684,7 +633,7 @@ onMounted(() => {
|
||||
props.type !== 'extLabel' &&
|
||||
props.type !== 'extTooltip' &&
|
||||
props.type !== 'extBubble' &&
|
||||
!chart.type.includes('chart-mix')
|
||||
!['chart-mix', 'indicator', 'liquid', 'gauge'].includes(chart.type)
|
||||
"
|
||||
:divided="chart.type !== 'table-info'"
|
||||
>
|
||||
@ -766,7 +715,7 @@ onMounted(() => {
|
||||
:command="beforeClickItem('filter')"
|
||||
:divided="chart.type.includes('chart-mix')"
|
||||
>
|
||||
<span>{{ t('chart.filter') }}...</span>
|
||||
<span>{{ t('chart.filter') }}</span>
|
||||
</el-dropdown-item>
|
||||
|
||||
<el-dropdown-item
|
||||
@ -776,7 +725,7 @@ onMounted(() => {
|
||||
:command="beforeClickItem('formatter')"
|
||||
>
|
||||
<el-icon />
|
||||
<span>{{ t('chart.value_formatter') }}...</span>
|
||||
<span>{{ t('chart.value_formatter') }}</span>
|
||||
</el-dropdown-item>
|
||||
|
||||
<el-dropdown-item class="menu-item-padding" :command="beforeClickItem('rename')">
|
||||
|
Loading…
Reference in New Issue
Block a user