mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +08:00
fix: 解决删除颜色之后自动选择的错误
This commit is contained in:
parent
6f4e967b49
commit
dc458ea88e
@ -204,8 +204,8 @@ const deleteHandle = (index: number) => {
|
|||||||
colorList.splice(index, 1)
|
colorList.splice(index, 1)
|
||||||
chartEditStore.setEditCanvasConfig(EditCanvasConfigEnum.CHART_CUSTOM_THEME_COLOR_INFO, cloneDeep(colorList))
|
chartEditStore.setEditCanvasConfig(EditCanvasConfigEnum.CHART_CUSTOM_THEME_COLOR_INFO, cloneDeep(colorList))
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
if (index) {
|
if (colorList.length) {
|
||||||
selectHandle(colorList[index - 1])
|
selectHandle(colorList[index - 1 > -1 ? index - 1 : index])
|
||||||
} else {
|
} else {
|
||||||
// 已清空
|
// 已清空
|
||||||
selectColor.selectInfo = undefined
|
selectColor.selectInfo = undefined
|
||||||
|
Loading…
Reference in New Issue
Block a user