fix(front): add class binding to InputField component for improved styling flexibility

This commit is contained in:
keven1024
2025-05-05 20:54:53 +08:00
parent 216f4f4c38
commit 500d78e428

View File

@@ -2,7 +2,7 @@
<Field :name="props.name" v-slot="{ field }">
<div class="flex flex-col gap-2">
<Label v-if="props.label">{{ props.label }}</Label>
<Input v-bind="field" :placeholder="props.placeholder" />
<Input v-bind="field" :placeholder="props.placeholder" :class="props.class" />
</div>
</Field>
</template>
@@ -12,5 +12,6 @@ const props = defineProps<{
name: string
label?: string
placeholder?: string
class?: string
}>()
</script>