forked from github/dataease
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:
commit
c5fd8a0658
@ -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')
|
||||
}
|
||||
}
|
||||
|
@ -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')">
|
||||
|
Loading…
Reference in New Issue
Block a user