mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 删除ProsemirrorEditor多余的事件监听
This commit is contained in:
parent
3e3bd9de08
commit
6380098036
@ -4,7 +4,6 @@
|
||||
:class="{ 'format-painter': textFormatPainter }"
|
||||
ref="editorViewRef"
|
||||
@mousedown="$event => emit('mousedown', $event)"
|
||||
@touchstart="$event => emit('touchstart', $event)"
|
||||
></div>
|
||||
</template>
|
||||
|
||||
@ -54,7 +53,6 @@ const emit = defineEmits<{
|
||||
(event: 'focus'): void
|
||||
(event: 'blur'): void
|
||||
(event: 'mousedown', payload: MouseEvent): void
|
||||
(event: 'touchstart', payload: TouchEvent): void
|
||||
}>()
|
||||
|
||||
const mainStore = useMainStore()
|
||||
|
@ -70,7 +70,6 @@
|
||||
@update="value => updateText(value)"
|
||||
@blur="checkEmptyText()"
|
||||
@mousedown="$event => handleSelectElement($event, false)"
|
||||
@touchstart="$event => handleSelectElement($event, false)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -50,7 +50,6 @@
|
||||
}"
|
||||
@update="value => updateContent(value)"
|
||||
@mousedown="$event => handleSelectElement($event, false)"
|
||||
@touchstart="$event => handleSelectElement($event)"
|
||||
/>
|
||||
|
||||
<!-- 当字号过大且行高较小时,会出现文字高度溢出的情况,导致拖拽区域无法被选中,因此添加了以下节点避免该情况 -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user