feat: complete public Form migration and validation focus contract
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<script setup lang="ts">
|
||||
import { Button, Form, Input, Label, TextField } from "@heroui-vue/components";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Form
|
||||
class="flex w-80 max-w-full flex-col gap-3 rounded-xl border border-border/80 bg-surface p-4 shadow-sm"
|
||||
@submit.prevent
|
||||
>
|
||||
<TextField is-required name="email" type="email">
|
||||
<Label>工作邮箱</Label>
|
||||
<Input class="bg-field" placeholder="you@company.com" />
|
||||
</TextField>
|
||||
<Button class="w-full" type="submit">继续</Button>
|
||||
</Form>
|
||||
</template>
|
||||
Reference in New Issue
Block a user