# 05-forms-basic:checkbox / checkbox-group / radio-group / switch / slider / input / textarea / text-field / search-field 上游基线 ce90ea3(heroui/,只读)对照 heroui-vue/。路径均相对仓库根。示例名全局差异已由简报核过(仅 text-area↔textarea、text-field↔textfield 命名),下文不再重复。 ### checkbox - [示例] checkbox-form:提交反馈交互不同——UP 用 `alert(\`表单提交数据:\n…\`)`(heroui/apps/docs/src/demos/cn/checkbox/form.tsx L10-16),VUE 渲染行内结果 `
{{ result }}
`(heroui-vue/apps/docs/demos/checkbox-form.vue)。alert→行内输出为系统性差异(见小结)。 - [示例] checkbox-custom-indicator:自定义指示器图形不同——UP 为内联 SVG(心形 path、加号 `strokeWidth="3"`、半选横线,custom-indicator.tsx L15-70),VUE 用 Tabler `IconHeartFilled/IconPlus/IconMinus` 且无尺寸类(checkbox-custom-indicator.vue)。UP svg 无宽高按容器填充,Tabler 默认 24px,呈现不同。 - [示例] checkbox-group-with-custom-indicator:UP 内联 X SVG(`M6 18L18 6M6 6l12 12`,checkbox-group/with-custom-indicator.tsx),VUE 用 Tabler 图标(checkbox-group-with-custom-indicator.vue)。同上图标差异。 - [API] `value` 默认值:UP 文档写 `-`((forms)/checkbox.mdx L217),实际原生/RAC 默认 `'on'`;VUE 明确 `'on'`(checkbox.md L223)——UP 文档与自身代码不一致,VUE 更准确。 - [API] `validate` 返回类型:UP `ValidationError | true | null | undefined`(checkbox.mdx L213),VUE `string | string[] | true | null | undefined`(checkbox.md L229);ValidationError 对象结构在 VUE 不支持(VUE 文档自述"暂不提供完整 validationDetails")。 - [文档] 组件结构示例:UP 含 ``(checkbox-group-validation.vue);结构/文案/props 一致。
- [示例] checkbox-group-features-and-addons:VUE ` `(radio-group/validation.tsx 末行),VUE ` `(radio-group-validation.vue),少 `text-muted`(可见视觉差异,小)。
- [示例] radio-group-custom-indicator:选中指示器内容不同——UP `✓`(radio-group/custom-indicator.tsx L15-19 等),VUE Tabler `IconCheck class="size-3 text-background"`(radio-group-custom-indicator.vue)。"✓"文本字形 vs 图标、尺寸类不同。
- [API] UP 表格缺 `validate`/`validationBehavior`/`dir`/`loop`(RAC 支持),VUE 提供(radio-group.md L214-219)。
- [文档] VUE 自身错误:RadioGroup `variant` 行误写"Checkbox 成员可显式覆盖"(radio-group.md L210);"事件与暴露"表沿用 CheckboxGroup 文案"发出新的数组或标量"(L237,RadioGroup 仅标量);L240 提交说明段以"CheckboxGroup 按原生约定…"开头(复用文本)。
- [文档] UP 有 `## 相关案例