mirror of
https://codeberg.org/Sevichecc/Seigwai.git
synced 2025-04-30 07:49:30 +08:00
Change className&mousedown
This commit is contained in:
parent
d71878fc17
commit
9dfd5d34d9
3 changed files with 6 additions and 6 deletions
|
@ -3,7 +3,7 @@ import { SlashProvider } from '@milkdown/plugin-slash'
|
||||||
import { onMounted, onUnmounted, ref, watch } from 'vue'
|
import { onMounted, onUnmounted, ref, watch } from 'vue'
|
||||||
import { usePluginViewContext } from '@prosemirror-adapter/vue'
|
import { usePluginViewContext } from '@prosemirror-adapter/vue'
|
||||||
import type { VNodeRef } from 'vue'
|
import type { VNodeRef } from 'vue'
|
||||||
import { useAddCodeBlock, useToggleBold } from '../../composables/quickCommands'
|
import { useAddCodeBlock, useToggleBold } from '../../composables/commands'
|
||||||
|
|
||||||
let tooltipProvider: SlashProvider
|
let tooltipProvider: SlashProvider
|
||||||
|
|
||||||
|
@ -33,8 +33,8 @@ const { toggleBold } = useToggleBold()
|
||||||
<template>
|
<template>
|
||||||
<div ref="divRef">
|
<div ref="divRef">
|
||||||
<button
|
<button
|
||||||
className="text-gray-600 bg-slate-200 px-2 py-1 rounded-lg hover:bg-slate-300 border hover:text-gray-900"
|
class="text-gray-600 bg-slate-200 px-2 py-1 rounded-lg hover:bg-slate-300 border hover:text-gray-900"
|
||||||
@mousedown="addCodeBlock"
|
@click="addCodeBlock"
|
||||||
>
|
>
|
||||||
Code Block
|
Code Block
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { usePluginViewContext } from '@prosemirror-adapter/vue'
|
||||||
import { onMounted, onUnmounted, ref, watch } from 'vue'
|
import { onMounted, onUnmounted, ref, watch } from 'vue'
|
||||||
|
|
||||||
import type { VNodeRef } from 'vue'
|
import type { VNodeRef } from 'vue'
|
||||||
import { useAddCodeBlock, useToggleBold } from '../../composables/quickCommands'
|
import { useAddCodeBlock, useToggleBold } from '../../composables/commands'
|
||||||
const { view, prevState } = usePluginViewContext()
|
const { view, prevState } = usePluginViewContext()
|
||||||
|
|
||||||
const divRef = ref<VNodeRef>()
|
const divRef = ref<VNodeRef>()
|
||||||
|
@ -41,8 +41,8 @@ const { addCodeBlock } = useAddCodeBlock()
|
||||||
Bold
|
Bold
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
className="text-gray-600 bg-slate-200 px-2 py-1 rounded-lg hover:bg-slate-300 border hover:text-gray-900"
|
class="text-gray-600 bg-slate-200 px-2 py-1 rounded-lg hover:bg-slate-300 border hover:text-gray-900"
|
||||||
@mousedown="addCodeBlock"
|
@click="addCodeBlock"
|
||||||
>
|
>
|
||||||
Code Block
|
Code Block
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in a new issue