feat: complete public Form migration and validation focus contract

This commit is contained in:
maoyingjie
2026-10-27 18:28:13 +08:00
parent f424fa5597
commit 2c221e0995
22 changed files with 843 additions and 35 deletions
+16
View File
@@ -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>