Merge pull request #12166 from dataease/pr@dev-v2@fix_custom_legend_color

Pr@dev v2@fix custom legend color
This commit is contained in:
wisonic-s 2024-09-11 19:15:45 +08:00 committed by GitHub
commit c5fd8a0658
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -142,6 +142,8 @@ const setupSeriesColor = () => {
const target = document.getElementById(targetId)
if (target) {
seriesColorState.seriesColorPickerId = `#${targetId}`
} else {
seriesColorPickerRef.value?.hide()
}
})
}
@ -175,7 +177,7 @@ const changeSeriesColor = () => {
}
})
if (changed) {
state.value.basicStyleForm[seriesColorName.value] = seriesColorState.seriesColor
state.value.basicStyleForm[seriesColorName.value] = cloneDeep(seriesColorState.seriesColor)
changeBasicStyle('seriesColor')
}
}

View File

@ -209,7 +209,7 @@ onMounted(() => {
</el-radio-group>
</el-form-item>
</template>
<tempalte v-else>
<template v-else>
<el-row :gutter="8">
<el-col :span="12">
<el-form-item
@ -284,7 +284,7 @@ onMounted(() => {
{{ t('chart.line_smooth') }}
</el-checkbox>
</el-form-item>
</tempalte>
</template>
</el-tab-pane>
<el-tab-pane :label="t('chart.yAxisRight')" name="right">
<template v-if="showProperty('colors')">