feat: migrate NumberField with form integration and docs

This commit is contained in:
maoyingjie
2026-10-23 11:48:06 +08:00
parent 7fc8315037
commit 23527d4e4c
43 changed files with 2788 additions and 9 deletions
+25
View File
@@ -0,0 +1,25 @@
<script setup lang="ts">
import {
Label,
NumberField,
NumberFieldDecrementButton,
NumberFieldGroup,
NumberFieldIncrementButton,
NumberFieldInput,
} from "@heroui-vue/components";
</script>
<template>
<NumberField
class="w-full max-w-64"
:defaultValue="1024"
:minValue="0"
name="width"
>
<Label>宽度</Label>
<NumberFieldGroup>
<NumberFieldDecrementButton />
<NumberFieldInput class="w-[120px]" />
<NumberFieldIncrementButton />
</NumberFieldGroup>
</NumberField>
</template>