refactor: remove placeholder varible

This commit is contained in:
Seviche CC 2023-03-29 18:13:40 +08:00
parent 98837926fe
commit c96ddd6ce6
Signed by: SevicheCC
GPG key ID: C577000000000000

View file

@ -7,7 +7,6 @@ const { editor } = defineProps<{ editor: Editor }>()
const url = ref('')
const showUrlInput = ref(false)
const placeholder = ref('Add Link to text')
const inputUrl = ref<HTMLInputElement | null>(null)
const openLinkInput = () => {
@ -115,7 +114,7 @@ const setLink = () => {
ref="inputUrl"
v-model.trim="url"
class="input input-sm focus:outline-none"
:placeholder="placeholder"
placeholder="Add Link to text"
@blur="showUrlInput = false"
>
<button class="btn btn-sm btn-square" @click="setLink">