mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 渐变设置面板在切换操作对象后报错
This commit is contained in:
parent
dffb6235c4
commit
0cca0d6c57
@ -196,7 +196,10 @@ const updateFillType = (type: 'gradient' | 'fill') => {
|
|||||||
slidesStore.removeElementProps({ id: handleElementId.value, propName: 'gradient' })
|
slidesStore.removeElementProps({ id: handleElementId.value, propName: 'gradient' })
|
||||||
addHistorySnapshot()
|
addHistorySnapshot()
|
||||||
}
|
}
|
||||||
else updateElement({ gradient: gradient.value })
|
else {
|
||||||
|
currentGradientIndex.value = 0
|
||||||
|
updateElement({ gradient: gradient.value })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 设置渐变填充
|
// 设置渐变填充
|
||||||
|
@ -388,6 +388,7 @@ const updateBackgroundType = (type: SlideBackgroundType) => {
|
|||||||
rotate: 0,
|
rotate: 0,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
currentGradientIndex.value = 0
|
||||||
slidesStore.updateSlide({ background: newBackground })
|
slidesStore.updateSlide({ background: newBackground })
|
||||||
}
|
}
|
||||||
addHistorySnapshot()
|
addHistorySnapshot()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user