feat: complete field documentation and TextArea examples

This commit is contained in:
maoyingjie
2026-10-21 23:41:57 +08:00
parent 37e11e6330
commit 116056832c
40 changed files with 2071 additions and 15 deletions
+9 -1
View File
@@ -57,7 +57,15 @@ Form 的 `validation-errors` 是以字段 name 为键、字符串或字符串数
## 当前边界
本页交付共享协议和验证场景,尚未宣称完整迁移 Form、TextField 的所有上游文档。已迁移的三个 TextField 基线示例在此展示,其余示例后续按清单补齐。
本页交付共享协议和验证场景,是字段/表单基础设施指南,不替代独立组件文档。TextField、Label、Description、FieldError、TextArea 的完整 API 与基线示例见各自组件页:
- [TextField 文本输入框](/components/text-field)
- [Label 标签](/components/label)
- [Description 描述](/components/description)
- [FieldError 字段错误](/components/field-error)
- [TextArea 多行文本框](/components/textarea)
已迁移的三个 TextField 基线示例仍在此展示,便于联调验证。
SSR 支持标准的直接子部件、原生元素/Fragment 包裹的 Description/FieldError,即使说明放在控件之后也能生成完整 ID 关联。自定义 Vue 包装组件中的描述在客户端注册;若首屏 SSR 必须关联,请显式提供控件 aria-describedby 和对应描述 id。Nuxt 完整消费验收尚未进行。