feat(图表): 数值格式化内,数量单位支持配置英文简称

#14335
This commit is contained in:
ulleo
2025-04-08 14:35:54 +08:00
committed by xuwei-fit2cloud
parent 47c768666e
commit bf3fa3ea64
5 changed files with 9 additions and 9 deletions

View File

@@ -569,7 +569,7 @@ onMounted(() => {
v-model="state.axisForm.axisLabelFormatter.unit"
:placeholder="t('chart.pls_select_field')"
size="small"
@change="changeAxisStyle('axisLabelFormatter.unit')"
@change="changeAxisStyle('axisLabelFormatter')"
>
<el-option
v-for="item in getUnitTypeList(

View File

@@ -789,7 +789,7 @@ const isProgressBar = computed(() => {
:effect="themes"
v-model="state.labelForm.labelFormatter.unit"
:placeholder="$t('chart.pls_select_field')"
@change="changeLabelAttr('labelFormatter.unit')"
@change="changeLabelAttr('labelFormatter')"
>
<el-option
v-for="item in getUnitTypeList(state.labelForm.labelFormatter.unitLanguage)"
@@ -946,7 +946,7 @@ const isProgressBar = computed(() => {
:effect="themes"
v-model="state.labelForm.totalFormatter.unit"
:placeholder="$t('chart.pls_select_field')"
@change="changeLabelAttr('totalFormatter.unit')"
@change="changeLabelAttr('totalFormatter')"
>
<el-option
v-for="item in getUnitTypeList(state.labelForm.totalFormatter.unitLanguage)"
@@ -1109,7 +1109,7 @@ const isProgressBar = computed(() => {
v-model="state.labelForm.quotaLabelFormatter.unit"
:placeholder="t('chart.pls_select_field')"
size="small"
@change="changeLabelAttr('quotaLabelFormatter.unit')"
@change="changeLabelAttr('quotaLabelFormatter')"
>
<el-option
v-for="item in getUnitTypeList(
@@ -1639,7 +1639,7 @@ const isProgressBar = computed(() => {
:effect="themes"
v-model="state.labelForm.labelFormatter.unit"
:placeholder="$t('chart.pls_select_field')"
@change="changeLabelAttr('labelFormatter.unit')"
@change="changeLabelAttr('labelFormatter')"
>
<el-option
v-for="item in getUnitTypeList(state.labelForm.labelFormatter.unitLanguage)"
@@ -1897,7 +1897,7 @@ const isProgressBar = computed(() => {
:effect="themes"
v-model="state.labelForm.labelFormatter.unit"
:placeholder="$t('chart.pls_select_field')"
@change="changeLabelAttr('labelFormatter.unit')"
@change="changeLabelAttr('labelFormatter')"
>
<el-option
v-for="item in getUnitTypeList(state.labelForm.labelFormatter.unitLanguage)"

View File

@@ -645,7 +645,7 @@ onMounted(() => {
v-model="state.tooltipForm.tooltipFormatter.unit"
:placeholder="t('chart.pls_select_field')"
size="small"
@change="changeTooltipAttr('tooltipFormatter.unit')"
@change="changeTooltipAttr('tooltipFormatter')"
>
<el-option
v-for="item in getUnitTypeList(state.tooltipForm.tooltipFormatter.unitLanguage)"

View File

@@ -619,7 +619,7 @@ onMounted(() => {
v-model="state.axisForm.axisLabelFormatter.unit"
:placeholder="t('chart.pls_select_field')"
size="small"
@change="changeAxisStyle('axisLabelFormatter.unit')"
@change="changeAxisStyle('axisLabelFormatter')"
>
<el-option
v-for="item in getUnitTypeList(state.axisForm.axisLabelFormatter.unitLanguage)"

View File

@@ -604,7 +604,7 @@ onMounted(() => {
v-model="state.axisForm.axisLabelFormatter.unit"
:placeholder="t('chart.pls_select_field')"
size="small"
@change="changeAxisStyle('axisLabelFormatter.unit')"
@change="changeAxisStyle('axisLabelFormatter')"
>
<el-option
v-for="item in getUnitTypeList(