refactor(图表): 隐藏多序列图表的自定义颜色按钮

This commit is contained in:
wisonic 2024-07-24 15:18:55 +08:00
parent 966dbc3f9e
commit bf4c5ac6a6
3 changed files with 5 additions and 5 deletions

View File

@ -1228,7 +1228,7 @@ export default {
table_layout_tree: '树形展示', table_layout_tree: '树形展示',
top_n_desc: '合并数据', top_n_desc: '合并数据',
top_n_input_1: '显示 Top', top_n_input_1: '显示 Top',
top_n_input_2: ', 其余合并至其他', top_n_input_2: ', 其余合并',
top_n_label: '其他项名称', top_n_label: '其他项名称',
progress_target: '目标值', progress_target: '目标值',
progress_current: '实际值', progress_current: '实际值',

View File

@ -485,7 +485,7 @@ watch(
:change-model="chart.customStyle.xAxis" :change-model="chart.customStyle.xAxis"
@modelChange="val => onChangeXAxisForm(val, 'show')" @modelChange="val => onChangeXAxisForm(val, 'show')"
name="xAxis" name="xAxis"
:title="selectorSpec['x-axis-selector']?.title" :title="selectorSpec['x-axis-selector']?.title || t('chart.xAxis')"
> >
<x-axis-selector <x-axis-selector
class="attr-selector" class="attr-selector"
@ -502,7 +502,7 @@ watch(
:change-model="chart.customStyle.yAxis" :change-model="chart.customStyle.yAxis"
@modelChange="val => onChangeYAxisForm(val, 'show')" @modelChange="val => onChangeYAxisForm(val, 'show')"
name="yAxis" name="yAxis"
:title="$t('chart.yAxis')" :title="t('chart.yAxis')"
> >
<y-axis-selector <y-axis-selector
class="attr-selector" class="attr-selector"

View File

@ -238,7 +238,7 @@ const colorItemBorderColor = (index, state) => {
<el-row> <el-row>
<el-form-item <el-form-item
v-if="showProperty('gradient-color')" v-if="showProperty('gradient-color')"
:label="$t('chart.color_case')" :label="t('chart.color_case')"
class="form-item" class="form-item"
:class="'form-item-' + themes" :class="'form-item-' + themes"
style="flex: 1; padding-right: 8px; margin-bottom: 16px" style="flex: 1; padding-right: 8px; margin-bottom: 16px"
@ -342,7 +342,7 @@ const colorItemBorderColor = (index, state) => {
</span> </span>
</div> </div>
<div class="custom-color-extend-setting colors"> <div v-if="!showProperty('seriesColor')" class="custom-color-extend-setting colors">
<div <div
v-for="(c, index) in state.basicStyleForm.colors" v-for="(c, index) in state.basicStyleForm.colors"
:key="index" :key="index"