feat: establish shared field and form foundation
This commit is contained in:
@@ -42,3 +42,11 @@
|
||||
- Chip 演示将上游 `@gravity-ui/icons` 的 CircleFill / CircleInfo / Check / TriangleExclamation / Ban / CircleCheckFill / Clock / Xmark / ChevronDown / CircleDashed 替换为 Tabler `IconCircleFilled` / `IconInfoCircle` / `IconCheck` / `IconAlertTriangle` / `IconBan` / `IconCircleCheckFilled` / `IconClock` / `IconX` / `IconChevronDown` / `IconCircleDashed`(MIT)。
|
||||
- Badge 带内容示例的 Bell 图标替换为 Tabler `IconBell`。Alert 默认指示图标为移植的基线 SVG,非 Tabler。
|
||||
- 图标统一使用 @tabler/icons-vue(MIT)的官方组件,未移植 React 图标依赖;尚未完成自动逐像素对比。
|
||||
|
||||
## FORM-01 字段与表单基础
|
||||
|
||||
- `packages/react/src/components/{textfield,form,label,description,field-error}`:公共语义与组合设计;Vue 以原生控件与类型化上下文实现,不移植 React Aria runtime。
|
||||
- `packages/styles/components/{textfield,field-error}.css`:移植为 hv- 命名空间,保留 Apache-2.0 来源与许可头。
|
||||
- `apps/docs/src/demos/cn/textfield/{basic,with-description,validation}.tsx`:三个基线演示,保留文案/布局,仅把状态与事件改为 Vue。
|
||||
- Form/字段验证页的 `form-foundation.vue` 为本库基础设施回归场景,未冒充上游完整 Form 示例。
|
||||
- 原 Switch 专属 FieldError 移到通用 field 目录;复用 fieldContextKey,而非复制一套说明/错误基础组件。具体差异与 SSR 包装边界见 decisions/field-form-foundation.md。
|
||||
|
||||
Reference in New Issue
Block a user