mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 15:13:30 +00:00
fix(front): add class binding to InputField component for improved styling flexibility
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user