mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 23:19:37 +00:00
refactor(front): simplify MarkdownInputField by removing unnecessary label and placeholder props
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
<template>
|
||||
<Field :name="props.name" v-slot="{ field }">
|
||||
<div class="flex flex-col gap-2">
|
||||
<Label v-if="props.label">{{ props.label }}</Label>
|
||||
<div class="border rounded-md">
|
||||
<Tiptap
|
||||
:modelValue="field.value"
|
||||
@update:modelValue="field.onChange"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<Field :name="name" v-slot="{ field }">
|
||||
<Tiptap :modelValue="field.value" @update:modelValue="field.onChange" />
|
||||
</Field>
|
||||
</template>
|
||||
|
||||
@@ -17,7 +9,5 @@ import Tiptap from '@/components/Tiptap.vue'
|
||||
|
||||
const props = defineProps<{
|
||||
name: string
|
||||
label?: string
|
||||
placeholder?: string
|
||||
}>()
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user