mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: ProsemirrorEditor组件绑定事件ESLint报错
This commit is contained in:
parent
4070f4a478
commit
3e3bd9de08
@ -3,6 +3,8 @@
|
||||
class="prosemirror-editor"
|
||||
:class="{ 'format-painter': textFormatPainter }"
|
||||
ref="editorViewRef"
|
||||
@mousedown="$event => emit('mousedown', $event)"
|
||||
@touchstart="$event => emit('touchstart', $event)"
|
||||
></div>
|
||||
</template>
|
||||
|
||||
@ -51,6 +53,8 @@ const emit = defineEmits<{
|
||||
(event: 'update', payload: string): void
|
||||
(event: 'focus'): void
|
||||
(event: 'blur'): void
|
||||
(event: 'mousedown', payload: MouseEvent): void
|
||||
(event: 'touchstart', payload: TouchEvent): void
|
||||
}>()
|
||||
|
||||
const mainStore = useMainStore()
|
||||
|
Loading…
x
Reference in New Issue
Block a user