mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 缩放文本和表格元素时,重复接收emitter
This commit is contained in:
parent
b5e8c23756
commit
610c818e5a
@ -103,6 +103,8 @@ export default defineComponent({
|
||||
const realHeightCache = ref(-1)
|
||||
|
||||
const scaleElementStateListener = (state: boolean) => {
|
||||
if (handleElementId.value !== props.elementInfo.id) return
|
||||
|
||||
isScaling.value = state
|
||||
|
||||
if (state) editable.value = false
|
||||
|
@ -108,6 +108,8 @@ export default defineComponent({
|
||||
// 监听文本元素的尺寸变化,当高度变化时,更新高度到vuex
|
||||
// 如果高度变化时正处在缩放操作中,则等待缩放操作结束后再更新
|
||||
const scaleElementStateListener = (state: boolean) => {
|
||||
if (handleElementId.value !== props.elementInfo.id) return
|
||||
|
||||
isScaling.value = state
|
||||
|
||||
if (!state && realHeightCache.value !== -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user