Merge pull request #11206 from dataease/pr@dev-v2@fix_series_label_format

fix(图表): 多序列标签格式化失效
This commit is contained in:
wisonic-s 2024-07-29 10:13:45 +08:00 committed by GitHub
commit 7394264228
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 6 deletions

View File

@ -35,7 +35,6 @@ span {
.drag-placeholder-style {
position: absolute;
top: calc(50% - 4px);
left: 0;
width: 100%;
color: #757575;
text-align: left;

View File

@ -869,7 +869,7 @@ const isGroupBar = computed(() => {
style="width: 100%"
:effect="props.themes"
v-model="curSeriesFormatter.formatterCfg.type"
@change="changeLabelAttr('quotaLabelFormatter')"
@change="changeLabelAttr('seriesLabelFormatter')"
>
<el-option
v-for="type in formatterType"
@ -897,7 +897,7 @@ const isGroupBar = computed(() => {
:min="0"
:max="10"
size="small"
@change="changeLabelAttr('quotaLabelFormatter')"
@change="changeLabelAttr('seriesLabelFormatter')"
/>
</el-form-item>
@ -921,7 +921,7 @@ const isGroupBar = computed(() => {
v-model="curSeriesFormatter.formatterCfg.unit"
:placeholder="t('chart.pls_select_field')"
size="small"
@change="changeLabelAttr('quotaLabelFormatter')"
@change="changeLabelAttr('seriesLabelFormatter')"
>
<el-option
v-for="item in unitType"
@ -945,7 +945,7 @@ const isGroupBar = computed(() => {
size="small"
clearable
:placeholder="t('commons.input_content')"
@change="changeLabelAttr('quotaLabelFormatter')"
@change="changeLabelAttr('seriesLabelFormatter')"
/>
</el-form-item>
</el-col>
@ -957,7 +957,7 @@ const isGroupBar = computed(() => {
size="small"
:effect="props.themes"
v-model="curSeriesFormatter.formatterCfg.thousandSeparator"
@change="changeLabelAttr('quotaLabelFormatter')"
@change="changeLabelAttr('seriesLabelFormatter')"
:label="t('chart.value_formatter_thousand_separator')"
/>
</el-form-item>